/* =========================================================================
   FAMO 3D — site stylesheet
   Written RTL-first: logical properties throughout, so nothing needs an
   LTR mirror. One file, loaded on every page.
   ========================================================================= */

/* --- Fonts ------------------------------------------------------------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.cdc140628f11.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.dd2193b32cbe.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.7958481fe611.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------ */
:root {
  --ink: #0e1020;
  --ink-soft: #191c33;
  --brand: #5b3df5;
  --brand-strong: #4629db;
  --brand-tint: #efecff;
  --accent: #ff7a2f;
  --accent-tint: #fff1e7;

  --text: #1b1e33;
  --text-muted: #5c6280;
  --surface: #ffffff;
  --surface-muted: #f5f6fb;
  --border: #e4e7f2;

  --success: #128a5a;
  --success-tint: #e6f6ef;
  --danger: #c92a45;
  --danger-tint: #fdecef;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(14, 16, 32, .06), 0 4px 14px rgba(14, 16, 32, .05);
  --shadow-md: 0 8px 30px rgba(14, 16, 32, .10);
  --shadow-brand: 0 10px 28px rgba(91, 61, 245, .28);

  --container: 1180px;
  --header-h: 76px;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-strong); }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px;
  z-index: 200; padding: .7rem 1.2rem;
  background: var(--brand); color: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --- Layout ------------------------------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 780px); }

.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section--muted { background: var(--surface-muted); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2 { color: #fff; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem;
}
.section__head h2 { margin-bottom: 0; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center > div { max-width: 660px; }
.section__foot { margin-top: 1.8rem; text-align: center; }
.section__lead { margin: .9rem 0 0; color: var(--text-muted); }
.section__note {
  margin: 1.8rem 0 0; padding: .9rem 1.2rem;
  font-size: .9rem; color: var(--text-muted);
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* In-page anchors sit under the sticky header without this. */
[id] { scroll-margin-block-start: calc(var(--header-h) + 1.5rem); }

.eyebrow {
  display: inline-block; margin-bottom: .55rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand);
}
.section--dark .eyebrow { color: #a992ff; }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.muted { color: var(--text-muted); }
.empty {
  grid-column: 1 / -1; padding: 3rem 1rem; text-align: center;
  color: var(--text-muted); background: var(--surface-muted);
  border-radius: var(--radius);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; white-space: nowrap;
}
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem;
  font: inherit; font-weight: 500; line-height: 1.4;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-muted); color: var(--text); border-color: #cfd4e6; }
.section--dark .btn--ghost, .hero .btn--ghost, .cta .btn--ghost {
  color: #fff; border-color: rgba(255, 255, 255, .28);
}
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta .btn--ghost:hover {
  background: rgba(255, 255, 255, .1); color: #fff;
}
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--block + .btn--block { margin-top: .7rem; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.4rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
.brand__mark { width: 36px; height: 36px; color: var(--brand); }
.brand__logo { width: 40px; height: 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 1.05rem; }
.brand__text small { font-size: .7rem; color: var(--text-muted); letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.nav a {
  padding: .5rem .8rem; border-radius: var(--radius-sm);
  color: var(--text); font-size: .95rem; white-space: nowrap;
}
.nav a:hover { background: var(--surface-muted); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); font-weight: 500; }

.site-header__actions { display: flex; align-items: center; gap: .7rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--text); font-size: .9rem; font-weight: 500;
}
.header-phone:hover { color: var(--brand); }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 10px;
  flex-direction: column; justify-content: space-between;
  /* Chrome's UA stylesheet sets align-items:center on <button>; without this
     the empty bars have zero max-content width and vanish. */
  align-items: stretch;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(91, 61, 245, .45), transparent 60%),
    radial-gradient(800px 400px at 5% 110%, rgba(255, 122, 47, .28), transparent 60%),
    var(--ink);
  color: #fff;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 3rem;
}
.hero h1 { color: #fff; margin-bottom: .7rem; }
.hero p { color: rgba(255, 255, 255, .78); max-width: 58ch; font-size: 1.05rem; }
.hero .eyebrow { color: #ffb185; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem; margin: 2.8rem 0 0;
  padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__stats dt { font-size: .85rem; color: rgba(255, 255, 255, .62); }
.hero__stats dd {
  margin: .2rem 0 0; font-size: 1.75rem; font-weight: 700; line-height: 1.2;
}
.hero__stats dd span { font-size: .95rem; color: var(--accent); margin-inline-start: .15rem; }

/* Rotating wireframe cube — decorative, hidden from assistive tech. */
.hero__art { display: grid; place-items: center; min-height: 320px; perspective: 900px; }
.hero__cube {
  position: relative; width: 190px; height: 190px;
  transform-style: preserve-3d;
  animation: cube-spin 22s linear infinite;
}
.hero__cube span {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(168, 146, 255, .55);
  background: linear-gradient(135deg, rgba(91, 61, 245, .22), rgba(255, 122, 47, .12));
  border-radius: 6px;
}
.hero__cube span:nth-child(1) { transform: translateZ(95px); }
.hero__cube span:nth-child(2) { transform: rotateY(180deg) translateZ(95px); }
.hero__cube span:nth-child(3) { transform: rotateY(90deg) translateZ(95px); }
.hero__cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(95px); }
.hero__cube span:nth-child(5) { transform: rotateX(90deg) translateZ(95px); }
.hero__cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(95px); }

@keyframes cube-spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cube { animation: none; transform: rotateX(-22deg) rotateY(-35deg); }
  html { scroll-behavior: auto; }
}

/* --- Page header ------------------------------------------------------- */
.page-header {
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, var(--surface-muted), var(--surface));
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: .4rem; }
.page-header__lead { color: var(--text-muted); max-width: 68ch; font-size: 1.05rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  margin-bottom: .9rem; font-size: .85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: 500; }

/* --- Cards ------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3d8ec; }
.card__title { margin-bottom: .5rem; font-size: 1.12rem; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--brand); }
.card__body { color: var(--text-muted); font-size: .95rem; }

.card--service, .card--bundle { padding: 1.7rem; }
.card__icon {
  display: grid; place-items: center; width: 50px; height: 50px;
  margin-bottom: 1.1rem; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1.2rem 0 0;
  padding-top: 1.1rem; border-top: 1px dashed var(--border);
}
.card__meta dt { font-size: .78rem; color: var(--text-muted); }
.card__meta dd { margin: .1rem 0 0; font-weight: 700; font-size: .95rem; }
.card__link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem; font-size: .92rem; font-weight: 500;
}
.card__link .icon { transition: transform .2s ease; }
.card:hover .card__link .icon { transform: translateX(4px); }

.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-muted); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media-placeholder {
  display: grid; place-items: center; height: 100%;
  color: #b9c0da; background:
    repeating-linear-gradient(45deg, #f0f2f9 0 12px, #f6f7fc 12px 24px);
}
.card__media-placeholder .icon { width: 52px; height: 52px; }
.card__content { padding: 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__tag { margin: .6rem 0 0; font-size: .82rem; color: var(--text-muted); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .8rem; border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  background: var(--surface-muted); color: var(--text-muted);
  border: 1px solid var(--border);
}
a.chip:hover { background: var(--brand-tint); color: var(--brand); border-color: #d8d1ff; }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip--overlay {
  position: absolute; inset-block-start: .8rem; inset-inline-start: .8rem;
  background: rgba(14, 16, 32, .78); color: #fff; border-color: transparent;
  backdrop-filter: blur(4px);
}
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }

/* --- Features / steps / quotes ----------------------------------------- */
.feature {
  padding: 1.7rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.feature__icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  margin-bottom: 1rem; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--text-muted); font-size: .95rem; }

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem; counter-reset: step;
}
.steps li {
  position: relative; padding: 1.8rem 1.5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}
.steps__num {
  display: grid; place-items: center; width: 42px; height: 42px;
  margin-bottom: 1rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
}
.steps h3 { color: #fff; margin-bottom: .35rem; }
.steps p { color: rgba(255, 255, 255, .68); font-size: .95rem; }

.quote {
  margin: 0; padding: 1.8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 1rem;
}
.quote__stars { display: flex; gap: .2rem; color: var(--accent); }
.quote__stars .icon { width: 18px; height: 18px; fill: currentColor; stroke-width: 0; }
.quote blockquote { margin: 0; color: var(--text); font-size: .98rem; }
.quote figcaption { display: flex; flex-direction: column; margin-top: auto; }
.quote figcaption strong { font-size: .95rem; }
.quote figcaption span { font-size: .85rem; color: var(--text-muted); }

/* --- Accordion --------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: .7rem; }
.accordion__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.accordion__item[open] { border-color: #d0c8ff; box-shadow: var(--shadow-sm); }
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 500;
  list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary .icon { color: var(--brand); transition: transform .2s ease; }
.accordion__item[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }

/* --- Prose ------------------------------------------------------------- */
.prose-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.5rem; align-items: start;
}
.prose { min-width: 0; font-size: 1.03rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose__media {
  width: 100%; margin-bottom: 1.8rem;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  margin-bottom: 1.4rem; font-size: .88rem; color: var(--text-muted);
}

.check-list { display: flex; flex-direction: column; gap: .75rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; }
.check-list .icon { color: var(--success); margin-top: .35em; }

.side-card {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  padding: 1.7rem; background: var(--surface-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.side-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 1rem; border-radius: 14px;
  background: var(--brand); color: #fff;
}
.side-card__sub { margin-top: 1.6rem; font-size: 1rem; }
.side-card__stats { margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.side-card__stats > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: .8rem; border-bottom: 1px dashed var(--border);
}
.side-card__stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
.side-card__stats dt { color: var(--text-muted); font-size: .9rem; }
.side-card__stats dd { margin: 0; font-weight: 700; font-size: .92rem; text-align: end; }
.side-card__links { display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.gallery figcaption { margin-top: .5rem; font-size: .85rem; color: var(--text-muted); }

/* --- Split band -------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 2.5rem; align-items: start;
}
.split__text h2 { margin-bottom: .7rem; }
.split__text > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.split__aside {
  padding: 1.7rem; background: var(--surface-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.split__aside h3 { margin-bottom: 1.1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

/* --- Forms ------------------------------------------------------------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: .45rem; font-size: .92rem; font-weight: 500; }
.form-group label span { color: var(--danger); }

.form-control, .form-select, .search input {
  width: 100%; padding: .75rem 1rem;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus, .form-select:focus, .search input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 61, 245, .14);
}
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.8; }
input[type="file"].form-control { padding: .55rem .7rem; background: var(--surface-muted); }

.form-help { margin: .4rem 0 0; font-size: .82rem; color: var(--text-muted); }
.form-error { margin: .4rem 0 0; font-size: .85rem; color: var(--danger); }

.alerts { padding-top: 1.5rem; }
.alert {
  padding: .95rem 1.2rem; margin-bottom: .8rem;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .95rem;
}
.alert--success { background: var(--success-tint); color: var(--success); border-color: #bfe6d5; }
.alert--error { background: var(--danger-tint); color: var(--danger); border-color: #f6c9d2; }
.alert--info, .alert--warning { background: var(--brand-tint); color: var(--brand-strong); border-color: #d8d1ff; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.contact-form {
  padding: 1.9rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.contact-form > .muted { margin-bottom: 1.6rem; font-size: .92rem; }

.contact-info {
  padding: 1.9rem; background: var(--surface-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-list { display: flex; flex-direction: column; gap: .85rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .93rem; }
.contact-list .icon { margin-top: .3em; color: var(--brand); }
.contact-list--lg li { gap: .9rem; align-items: flex-start; }
.contact-list--lg div { display: flex; flex-direction: column; }
.contact-list--lg span { font-size: .8rem; color: var(--text-muted); }
.contact-list--lg p { margin: 0; }
.contact-info__quick { margin-top: 1.6rem; }

.map-embed {
  margin-top: 1.6rem; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

.blog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.blog-toolbar .filters { margin-bottom: 0; }
.search { position: relative; display: flex; align-items: center; min-width: 260px; }
.search input { padding-inline-end: 2.8rem; }
.search button {
  position: absolute; inset-inline-end: .5rem;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: transparent; border: 0; cursor: pointer; color: var(--text-muted);
}
.search button:hover { color: var(--brand); }

/* --- Pagination -------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 2.8rem; }
.pagination__link {
  min-width: 42px; padding: .5rem .85rem; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); background: var(--surface); font-size: .92rem;
}
.pagination__link:hover { border-color: var(--brand); color: var(--brand); }
.pagination__link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination__link.is-disabled { color: #b4b9cf; pointer-events: none; background: var(--surface-muted); }

/* --- CTA --------------------------------------------------------------- */
.cta {
  padding-block: clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(120deg, var(--brand-strong), #7a4bff 55%, var(--accent));
  color: #fff;
}
.cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta .btn--primary { background: #fff; color: var(--brand-strong); box-shadow: none; }
.cta .btn--primary:hover { background: rgba(255, 255, 255, .9); color: var(--brand-strong); }

/* --- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 3.5rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem; padding-bottom: 2.8rem;
}
.brand--footer { color: #fff; margin-bottom: 1rem; }
.brand--footer .brand__mark { color: #a992ff; }
.brand--footer .brand__text small { color: rgba(255, 255, 255, .5); }
.site-footer__brand p { font-size: .93rem; max-width: 42ch; }
.site-footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer__col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .93rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.site-footer .contact-list .icon { color: #a992ff; }

.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.socials a:hover { background: var(--brand); border-color: var(--brand); }

.site-footer__bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
}
.site-footer__bar p { margin: 0; }
.site-footer__meta { letter-spacing: .08em; color: rgba(255, 255, 255, .45); }

/* --- Error pages ------------------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.error-page__code {
  display: block; font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 700;
  line-height: 1; color: var(--brand-tint);
}
.error-page .hero__actions { justify-content: center; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .prose-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 1.25rem 1.6rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .25s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .8rem 1rem; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .site-header__actions { margin-inline-start: auto; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .section__head { align-items: flex-start; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .contact-form, .contact-info { padding: 1.3rem; }
}

/* Header gains a shadow once the page scrolls. */
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
