:root {
  --navy: #071a33;
  --navy-2: #0c2a52;
  --blue: #0d56b8;
  --blue-bright: #1a73e8;
  --ice: #eaf3ff;
  --mist: #f5f8fc;
  --line: #d7e3f2;
  --text: #122033;
  --muted: #5a6b80;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 26, 51, 0.12);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--mist);
  font-family: "DM Sans", "Vazirmatn", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 24px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  inset-inline-start: 12px;
  top: 12px;
  z-index: 80;
  background: var(--white);
  padding: 8px 12px;
}

.topbar {
  background: #050f1e;
  color: #b9dcff;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar-inner span { white-space: nowrap; }

.ltr-num,
[dir="ltr"].ltr-num,
[data-phone-text],
a[href^="tel:"],
a[href^="mailto:"] {
  unicode-bidi: isolate;
  direction: ltr;
  white-space: nowrap;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 26, 51, 0.96);
  backdrop-filter: blur(16px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(280px, 52vw);
  background: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.nav-item {
  position: relative;
}
.nav-item > a,
.nav > a,
.nav > .header-phone {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255,255,255,.86);
  font-size: 0.92rem;
  padding: 10px 10px;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav > a:hover,
.header-phone:hover { color: var(--white); }
.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  inset-inline-start: 0;
  min-width: min(260px, calc(100vw - 32px));
  max-width: min(320px, calc(100vw - 24px));
  background: var(--white);
  color: var(--navy);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.nav-drop a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: normal;
}
.nav-drop a:hover { background: var(--ice); }
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop,
.nav-item.open .nav-drop {
  display: block;
}
.header-phone {
  font-weight: 700;
  color: #b9dcff !important;
}
.lang {
  display: none;
}
.lang button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.8);
  padding: 6px 10px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
}
.btn-primary { background: var(--blue-bright); color: var(--white); }
.btn-primary:hover { background: #155dc4; }
.btn-book {
  background: #f5c518;
  color: var(--navy);
}
.btn-book:hover { background: #ffd43a; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.28);
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  border-radius: 10px;
  padding: 8px 10px;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(62, 196, 240, .18), transparent 28%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 36px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9dcff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.hero p.lead {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shots {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
  margin-top: 28px;
  max-width: 38rem;
  align-items: start;
}
.hero-shots a {
  display: block;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.hero-shots img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}
.hero-shots a:hover img { transform: scale(1.03); }

.hero-form {
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.12);
  scroll-margin-top: 90px;
}
.hero-form h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--navy);
}
.hero-form .form-note {
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.hero-form .form-grid {
  grid-template-columns: 1fr 1fr;
}
.hero-form textarea { min-height: 72px; }
.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.form-trust span {
  background: var(--ice);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 0 40px;
}
.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  border: 1px solid rgba(245, 197, 24, .55);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.trust-mark {
  color: #f5c518;
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.section .intro {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 28px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(7,26,51,.03);
  scroll-margin-top: 90px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover, .step:hover, .branch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ice);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.why-photo {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d4ea2;
}
.why-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.tech-photo img {
  min-height: 280px;
  object-fit: cover;
  object-position: center 18%;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check b {
  color: var(--blue);
}

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.brands-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}
.brand-logo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 92px;
  padding: 16px 18px;
  display: grid;
  place-items: center;
}
.brand-logo img {
  width: 100%;
  max-width: 150px;
  height: 44px;
  object-fit: contain;
}
.brand-logo span {
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brands-photo {
  margin: 0 0 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brands-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.brands-photo:hover img { transform: scale(1.03); }
.city-groups { display: grid; gap: 18px; }
.city-group h3 { margin: 0 0 10px; font-size: 1.05rem; }
.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.branch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.branch-card iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}
.branch-body { padding: 18px; }
.branch-body h3 { margin: 0 0 8px; }
.branch-body p { margin: 0 0 12px; color: var(--muted); }
.branch-google {
  display: inline-flex;
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}
.branch-google:hover { text-decoration: underline; }
#branches { scroll-margin-top: 90px; }
.nav-drop-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px 2px;
}
.footer-book {
  margin-top: 8px;
}
.footer .btn-book {
  color: var(--navy) !important;
  text-decoration: none;
}

.review {
  background: linear-gradient(135deg, #0d56b8, #083a7a);
  color: var(--white);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.review h2 { color: var(--white); margin-bottom: 8px; }
.review p { margin: 0; color: rgba(255,255,255,.86); }

.band {
  background: var(--navy);
  color: var(--white);
}
.band-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 36px 0;
}
.band p { color: rgba(255,255,255,.8); margin: 8px 0 0; }

.footer {
  background: #050f1e;
  color: rgba(255,255,255,.78);
  padding: 36px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer a { color: var(--white); }
.footer h3 { color: var(--white); margin: 0 0 10px; font-size: 1rem; }
.copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  font-size: 0.88rem;
}

/* Form */
.form-page { padding: 40px 0 80px; }
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 760px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--mist);
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
.full { grid-column: 1 / -1; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}
.choice input {
  width: auto;
  margin-top: 3px;
}
.form-note { color: var(--muted); margin: 0 0 22px; }
.success, .error {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.success { background: #e8f7ee; color: #135c32; }
.error { background: #fdecee; color: #8a1f2a; }
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.call-bar {
  display: none;
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 30;
  background: var(--blue-bright);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  padding: 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

[dir="rtl"] .check { flex-direction: row; }
[dir="rtl"] .nav-drop { inset-inline-start: auto; inset-inline-end: 0; }

@media (max-width: 1280px) {
  .header-phone { display: none; }
}
@media (max-width: 1180px) {
  .logo-img { height: 44px; }
  .nav-item > a,
  .nav > a,
  .nav > .header-phone { font-size: 0.86rem; padding: 10px 7px; }
}

@media (max-width: 980px) {
  body { padding-bottom: 76px; }
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .header-actions { margin-inline-start: auto; }
  .hero-grid, .why-grid, .cards, .trust, .footer-grid, .form-grid, .checks, .steps, .hero-form .form-grid, .branch-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 74px;
    inset-inline: 0;
    background: var(--navy);
    padding: 12px 16px 18px;
    gap: 0;
    max-height: calc(100vh - 74px);
    overflow: auto;
  }
  .nav-item > a,
  .nav > a,
  .nav > .header-phone,
  .nav .btn {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-drop {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    margin: 0 0 8px;
    box-shadow: none;
  }
  .nav-item.open .nav-drop { display: block; }
  .nav-item:hover .nav-drop,
  .nav-item:focus-within .nav-drop { display: none; }
  .nav-item.open:hover .nav-drop,
  .nav-item.open:focus-within .nav-drop { display: block; }
  .nav:not(.open) > .header-phone { display: none; }
  .nav.open > .header-phone,
  .nav.open .btn {
    display: flex;
    width: auto;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
  }
  .menu-toggle { display: inline-flex; }
  .header { position: sticky; }
  .header-inner { position: relative; }
  .hero-actions .btn-ghost { display: none; }
  .header-phone { display: none; }
  .call-bar { display: block; }
  .review, .band-inner { flex-direction: column; align-items: flex-start; }
  .hero-shots { max-width: none; }
  .topbar-inner span { white-space: normal; }
}

@media (max-width: 640px) {
  .hero-grid, .why-grid, .cards, .trust, .footer-grid, .form-grid, .checks, .steps, .hero-form .form-grid, .branch-grid, .hero-shots {
    grid-template-columns: 1fr;
  }
  .hero-form { padding: 18px; }
  .section { padding: 48px 0; }
}
