/* ============================================================
   سپید پاسارگاد — سایت مشاوره استارتاپ و شرکت‌های های‌تک
   Premium dark + matte gold · IRANYekanX · RTL · mobile-first
   ============================================================ */

/* ---------------- Fonts: IRANYekanX (FaNum) ---------------- */
@font-face { font-family: "IRANYekanX"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/IRANYekanXFaNum-Light.woff2") format("woff2"); }
@font-face { font-family: "IRANYekanX"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/IRANYekanXFaNum-Regular.woff2") format("woff2"); }
@font-face { font-family: "IRANYekanX"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/IRANYekanXFaNum-Medium.woff2") format("woff2"); }
@font-face { font-family: "IRANYekanX"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/IRANYekanXFaNum-DemiBold.woff2") format("woff2"); }
@font-face { font-family: "IRANYekanX"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/IRANYekanXFaNum-Bold.woff2") format("woff2"); }
@font-face { font-family: "IRANYekanX"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/IRANYekanXFaNum-ExtraBold.woff2") format("woff2"); }

/* ---------------- Tokens ---------------- */
:root {
  color-scheme: dark;

  --ink: #0a1424;          /* page background — deep navy */
  --ink-2: #08101d;        /* alternate section */
  --ink-3: #060c17;        /* footer / deepest */
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0e1a2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --gold: #c9a961;
  --gold-2: #e3c787;
  --gold-3: #f2e0b6;
  --gold-line: rgba(201, 169, 97, 0.38);
  --gold-soft: rgba(201, 169, 97, 0.12);
  --gold-grad: linear-gradient(120deg, #f0dcae, #c9a961 48%, #a9884a);

  --brand: var(--gold);    /* سازگاری با استایل‌های قدیمی */

  --text: #e9ecf3;
  --muted: #98a2b6;
  --muted-2: #7a8497;

  --ok: #63c99b;
  --ok-soft: rgba(99, 201, 155, 0.12);
  --warn: #dfb15f;
  --warn-soft: rgba(223, 177, 95, 0.12);
  --danger: #f38b8b;
  --danger-soft: rgba(243, 139, 139, 0.12);

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --container: 1160px;
  --header-h: 76px;
}

/* ---------------- Base ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "IRANYekanX", Tahoma, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  background: var(--ink);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
b, strong { font-weight: 700; }

::selection { background: rgba(201, 169, 97, 0.35); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 92px 0; position: relative; }
.section.alt {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-block: 1px solid var(--line);
}
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------------- Section heads ---------------- */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head.center .eyebrow::before { display: none; }
.eyebrow .idx {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--gold-grad);
  border-radius: 6px;
  padding: 1px 8px;
  line-height: 1.7;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}
.section-lead {
  color: var(--muted);
  max-width: 660px;
  margin-top: 16px;
  font-size: 16.5px;
}
.section-head.center .section-lead { margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold-grad);
  color: #14213a;
  box-shadow: 0 10px 26px rgba(201, 169, 97, 0.18);
}
.btn-primary:hover {
  color: #0d1729;
  box-shadow: 0 14px 34px rgba(201, 169, 97, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-2); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold-line); color: var(--gold-2); }

.btn-light { background: #fff; color: #101a2c; }
.btn-light:hover { background: var(--gold-3); }

.btn-dark { background: #101a2c; color: #fff; }
.btn-dark:hover { background: #1a2942; }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: #b9c2d3;
  position: relative;
  padding: 6px 0;
  transition: color 0.16s ease;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-grad);
  transition: width 0.22s ease;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
/* دکمهٔ داخل منو فقط برای موبایل است؛ دسکتاپ از header-cta استفاده می‌کند */
.nav .btn { display: none; margin-inline-start: 4px; padding: 10px 20px; font-size: 14px; }
.header-cta { margin-inline-start: 6px; padding: 10px 22px; font-size: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; }
.nav-phone .ltr { font-size: 14px; }
.nav-phone svg { width: 14px; height: 14px; color: var(--gold-2); flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  width: 42px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--gold-2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 88px) 0 84px;
  background:
    radial-gradient(900px 460px at 78% -12%, rgba(201, 169, 97, 0.16), transparent 62%),
    radial-gradient(760px 480px at 8% 112%, rgba(38, 76, 150, 0.28), transparent 62%),
    linear-gradient(180deg, #0b1729, var(--ink));
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.45;
  font-weight: 800;
  color: #fff;
  max-width: 880px;
}
.hero h1 .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: #a9b4c8;
  font-size: clamp(15.5px, 2vw, 18px);
  max-width: 680px;
  margin-top: 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted-2);
}
.hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.15);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 62px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.stat { padding-inline: 22px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b {
  display: block;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.stat b i { font-style: normal; color: var(--gold); font-size: 0.6em; }
.stat b em { font-style: normal; }
.stat span { display: block; color: var(--muted-2); font-size: 13.5px; margin-top: 4px; }

/* ---------------- Expertise strip ---------------- */
.strip {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 30px;
}
.strip span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 30px;
}
.strip span:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-line);
}

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}
.card:hover::after { transform: scaleX(1); }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 17.5px; font-weight: 700; color: #fff; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14.8px; }

/* ---------------- Packages ---------------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.package:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.package.featured {
  border-color: var(--gold-line);
  background:
    radial-gradient(420px 200px at 80% -10%, rgba(201, 169, 97, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.package .tag {
  position: absolute;
  top: -13px;
  inset-inline-start: 26px;
  background: var(--gold-grad);
  color: #14213a;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 14px;
  box-shadow: 0 8px 18px rgba(201, 169, 97, 0.25);
}
.package h3 { font-size: 18px; font-weight: 700; color: #fff; }
.package .duration { color: var(--muted-2); font-size: 13.8px; margin-top: -7px; }
.package .price {
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.package .price small { font-size: 14px; font-weight: 600; color: var(--gold); }
.package ul { display: grid; gap: 9px; font-size: 14.5px; color: var(--muted); }
.package ul li { display: flex; gap: 9px; align-items: flex-start; }
.package ul li::before {
  content: "✓";
  color: var(--gold-2);
  font-weight: 800;
  line-height: 1.7;
}
.package .btn { margin-top: auto; }
.badge-inline {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 13px;
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(223, 177, 95, 0.3);
}
.badge-inline.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(99, 201, 155, 0.3);
}
.packages-note {
  margin-top: 26px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}

/* ---------------- Process ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  inset-inline: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent);
}
.step { position: relative; padding-top: 0; }
.step b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--ink);
}
.section.alt .step b { box-shadow: 0 0 0 6px #08101d; background: #08101d; }
.step h4 { font-size: 16.5px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step p { font-size: 14.3px; color: var(--muted); }

/* ---------------- Split / checklist ---------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  color: #cdd4e1;
  font-size: 15px;
  transition: border-color 0.2s ease;
}
.checklist li:hover { border-color: var(--gold-line); }
.checklist li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ---------------- Testimonials ---------------- */
.quote-mark {
  font-size: 54px;
  line-height: 0.6;
  color: var(--gold);
  font-weight: 800;
  opacity: 0.65;
  margin-bottom: 18px;
}
.testimonial p { color: #ccd3e0; font-size: 15.3px; }
.testimonial .who {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.6px;
  color: var(--muted-2);
}
.testimonial .who b { display: block; color: var(--gold-2); font-size: 14.5px; font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }
details.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
details.faq[open] { border-color: var(--gold-line); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-inline-start: auto;
  background:
    linear-gradient(var(--gold), var(--gold)) center/100% 1.6px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/1.6px 100% no-repeat;
  transition: transform 0.25s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14.8px;
}

/* ---------------- CTA ---------------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 85% -30%, rgba(201, 169, 97, 0.2), transparent 70%),
    linear-gradient(135deg, #101d33, #0a1424);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  padding: 56px 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
}
.cta h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: #fff; line-height: 1.55; }
.cta p { color: #aab4c7; margin-top: 10px; max-width: 560px; }
.cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 85% -40%, rgba(201, 169, 97, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1729, var(--ink));
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 64px) 0 58px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 0%, #000 10%, transparent 70%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; line-height: 1.5; }
.page-hero p { color: var(--muted); margin-top: 12px; max-width: 660px; font-size: 16.5px; }
.breadcrumb { font-size: 13.5px; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-2); }

/* ---------------- Forms ---------------- */
.form-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: #d6dce8; }
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  width: 100%;
}
.field textarea { min-height: 122px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6f7a8e; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
.field .hint { font-size: 12.8px; color: var(--muted-2); }
.field .error { font-size: 13px; color: var(--danger); min-height: 0; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.checkbox input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--gold); }
.checkbox a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Booking summary ---------------- */
.summary {
  background:
    radial-gradient(340px 180px at 90% -10%, rgba(201, 169, 97, 0.14), transparent 70%),
    linear-gradient(180deg, #101d33, #0b1526);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 30px 26px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.summary h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.summary h3::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.summary .row:last-of-type { border-bottom: 0; }
.summary .row span { color: var(--muted-2); }
.summary .row b { font-weight: 700; color: #fff; text-align: left; }
.summary .total { font-size: 21px !important; color: var(--gold-2) !important; }
.summary .note {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 18px;
}

/* ---------------- Alerts ---------------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 17px;
  font-size: 14.3px;
  display: none;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert.show { display: block; }
.alert.success { background: var(--ok-soft); color: var(--ok); border-color: rgba(99, 201, 155, 0.3); }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: rgba(243, 139, 139, 0.3); }
.alert.info { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold-line); }

/* ---------------- Prose (terms / privacy) ---------------- */
.prose {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px 44px;
}
.prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 34px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  position: relative;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 56px;
  height: 1.5px;
  background: var(--gold-grad);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 16.5px; font-weight: 700; color: var(--gold-2); margin: 20px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 12px; }
.prose b { color: #dfe4ee; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { color: var(--muted); display: grid; gap: 9px; margin-bottom: 14px; }
.prose ul li { position: relative; padding-inline-start: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.prose ol { padding-inline-start: 24px; list-style: decimal; }
.prose ol li::marker { color: var(--gold); font-weight: 700; }
.prose .updated {
  font-size: 13.5px;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 22px;
}

/* ---------------- Contact ---------------- */
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-item:hover { border-color: var(--gold-line); transform: translateX(-4px); }
.contact-item .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: 15px; color: #fff; }
.contact-item span { color: var(--muted); font-size: 14.2px; }
.contact-item .addr-map {
  display: inline-block;
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-item .addr-map:hover { color: var(--gold-2); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  background: var(--ink-3);
  color: #aab3c4;
  padding: 70px 0 0;
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 35%, var(--gold-line) 65%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer img { height: 36px; margin-bottom: 18px; }
.site-footer p { font-size: 14.3px; color: var(--muted-2); max-width: 360px; }
.footer-col h4 {
  color: var(--gold-2);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col h4::after { content: ""; width: 26px; height: 1px; background: var(--gold-line); }
.footer-col ul { display: grid; gap: 11px; font-size: 14.3px; }
.footer-col a { color: var(--muted); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; color: var(--muted); }
.footer-contact .phone-ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--gold-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13.2px;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--gold-2); }

/* ---------------- Reveal on scroll ---------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .grid-3, .packages { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 66px 0; }
  .hero { padding: calc(var(--header-h) + 56px) 0 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 8px; }
  .stat { padding-inline: 16px; }
  .stat:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .cta { padding: 38px 26px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    background: rgba(7, 13, 24, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 15px; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .header-cta { display: none; }
  .nav .btn { display: inline-flex; margin-top: 16px; padding: 13px 20px; }

  .grid-3, .grid-2, .packages, .steps, .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .btn { width: 100%; }
  .form-card, .prose { padding: 24px 20px; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-head { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
