:root {
  --mobile-sticky-h: 5rem;
  --brand-blue: #3f3091;
  --brand-blue-2: #31257a;
  --accent-orange: #f07e22;
  --accent-orange-light: #ff9646;
  --neutral: #afaacf;

  /* Surface and text tokens (WCAG-friendly defaults) */
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --surface-1: #ffffff;
  --surface-2: #f5f7ff;
  --surface-3: #eef1ff;
  --text: #1f2430;
  --text-muted: #465067;
  --text-soft: #5c657c;
  --on-dark: #ffffff;

  /* Borders */
  --border-soft: #dfe5f5;
  --border-mid: #cfd7ec;
  --border-strong: #b8bfd0;

  /* Effects */
  --shadow-blue-sm: 0 8px 18px rgba(40, 27, 115, 0.18);
  --shadow-blue-md: 0 10px 24px rgba(40, 27, 115, 0.1);
  --shadow-blue-lg: 0 16px 30px rgba(40, 27, 115, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html,
body {
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
  max-width: 100%;
  overflow-x: clip;
}

main {
  max-width: 100%;
  overflow-x: clip;
}

.container {
  width: min(1040px, calc(100% - clamp(1rem, 4.5vw, 1.5rem)));
  max-width: 100%;
  margin: 0 auto;
}

.narrow {
  width: min(720px, calc(100% - 2rem));
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: saturate(140%) blur(8px);
}

.main-header > .container {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}

.header-inner {
  min-height: 56px;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-segmented {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(63, 48, 145, 0.08);
  border: 0;
  gap: 0;
}

.lang-btn {
  border: 0;
  margin: 0;
  padding: 0.32rem 0.58rem;
  min-height: 32px;
  min-width: 2.35rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn + .lang-btn {
  border-left: 0;
}

.lang-btn:hover {
  color: var(--brand-blue);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.lang-btn.active {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 1px 3px rgba(40, 27, 115, 0.12);
}

.lang-btn.active:hover {
  color: var(--brand-blue);
  background: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.15rem 0.2rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-sm);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: var(--surface-1);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(40, 27, 115, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
  border-color: var(--brand-blue);
  background: var(--surface-2);
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--brand-blue);
  background: var(--surface-3);
}

.menu-toggle-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.menu-toggle-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.2rem;
  min-width: 0;
}

.nav a {
  text-decoration: none;
  color: var(--brand-blue);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.35rem 0.66rem;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover {
  background: var(--surface-1);
  color: #1f165a;
}

.nav a:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 1px;
}

.header-phone {
  text-decoration: none;
  color: var(--on-dark);
  background: var(--brand-blue);
  border: 1px solid #4134a0;
  border-radius: 999px;
  padding: 0 0.65rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(49, 37, 122, 0.25);
  transition: background 0.18s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-phone:hover {
  background: #362887;
  transform: translateY(-1px);
}

.nav-backdrop {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--header-stack-height, 56px);
  background: rgba(17, 20, 37, 0.42);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav-backdrop,
  .menu-toggle-lines span {
    transition: none !important;
  }
}

.hero {
  padding: 1.5rem 0 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7f8ff 100%);
}

.hero-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

h1,
h2,
h3 {
  color: var(--brand-blue);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin: 0.62rem 0 0.52rem;
  max-width: 560px;
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.badge {
  display: inline-block;
  background: linear-gradient(180deg, #f9faff, #f2f4ff);
  border: 1px solid #c3c8e9;
  border-radius: 999px;
  padding: 0.33rem 0.72rem;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 500;
}

.lead {
  font-size: 1rem;
  max-width: 520px;
  margin: 0.2rem 0 0.88rem;
  color: var(--text-muted);
  line-height: 1.52;
  font-weight: 400;
}

.lead-small {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-card {
  background: linear-gradient(145deg, var(--surface-1) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0.55rem 0.62rem;
  box-shadow: var(--shadow-blue-md);
}

#qabul-form {
  scroll-margin-top: 84px;
}

.quick-form {
  display: grid;
  gap: 0.32rem;
}

.quick-form.compact {
  gap: 0.2rem;
}

.quick-form input {
  width: 100%;
  padding: 0.36rem 0.58rem;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.field-group {
  min-width: 0;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.95rem 0 0.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--on-dark);
  border-color: var(--accent-orange);
}

.btn-primary:hover {
  background: var(--accent-orange-light);
  box-shadow: 0 10px 20px rgba(245, 122, 12, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--surface-1);
  color: var(--brand-blue);
}

.btn-outline:hover {
  box-shadow: 0 10px 20px rgba(54, 40, 135, 0.14);
  transform: translateY(-2px);
}

.btn:focus-visible,
.service-card-toggle:focus-visible,
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

.hero-blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-blur-1 {
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  background: #8fa2ff;
}

.hero-blur-2 {
  width: 280px;
  height: 280px;
  left: -100px;
  bottom: -120px;
  background: #ffd2a8;
}

.section {
  padding: 2.6rem 0;
}

.section-tight {
  padding: 1.3rem 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-subtitle {
  margin-top: -0.4rem;
  color: #555c6d;
}

.location-strip {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.location-item {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 10px 22px rgba(40, 27, 115, 0.08);
}

.location-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.location-item p {
  margin: 0;
  color: var(--text-muted);
}

.stats-band {
  background: var(--brand-blue);
  color: var(--on-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.05rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-dark);
}

.stats-band.section-tight {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.services-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.services-list {
  grid-template-columns: 1fr;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem;
  min-width: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #cbd5f0;
  box-shadow: var(--shadow-blue-lg);
}

.service-card .service-card-toggle {
  cursor: pointer;
  margin: 0 0 0.45rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.service-card .service-card-toggle:hover {
  color: var(--brand-orange);
}

.service-card.is-open .service-card-toggle {
  color: var(--brand-orange);
}

.service-card .service-card-extra {
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border-soft);
}

.service-card .service-card-extra .service-card-lead {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card .service-card-extra p:not(.service-card-lead) {
  margin: 0;
  color: #4a5163;
  font-size: 0.92rem;
  line-height: 1.45;
}

.services-carousel {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 10;
}

.services-carousel-track {
  position: relative;
  height: 100%;
}

.services-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  background: linear-gradient(145deg, #f4f6ff, #eef1ff);
  height: 100%;
}

.services-slide.is-active {
  opacity: 1;
  position: relative;
}

.services-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-carousel-dots {
  display: flex;
  gap: 0.45rem;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(3px);
}

.services-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #c9d1ea;
  padding: 0;
}

.services-carousel-dots button.is-active {
  background: var(--brand-blue);
}

.split-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.ticks {
  padding-left: 1.2rem;
}

.ticks li {
  margin-bottom: 0.4rem;
}

.media-card {
  min-height: 280px;
  border-radius: 14px;
  border: 1px solid #d7def0;
  background: linear-gradient(135deg, #e9edff, #f8f9ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0.5rem 1rem;
}

.specialist-card {
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.specialist-title {
  margin: 0;
  padding: 0.85rem 1rem 0.55rem;
  text-align: center;
  color: var(--brand-blue);
  font-size: 1.1rem;
  font-weight: 700;
}

.specialist-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  max-height: 360px;
  height: auto;
  overflow: hidden;
}

.specialist-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.specialist-slide.is-active {
  opacity: 1;
  position: relative;
}

.specialist-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.specialist-carousel-dots {
  display: flex;
  gap: 0.45rem;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(3px);
}

.specialist-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #c9d1ea;
  padding: 0;
}

.specialist-carousel-dots button.is-active {
  background: var(--brand-blue);
}

.split-media-hint {
  position: relative;
  z-index: 0;
  font-size: clamp(0.72rem, 2.8vw, 0.8rem);
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
  max-width: 22rem;
  margin: 0.65rem 0 0;
}

.media-card .split-section-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media-card .split-section-fallback {
  position: relative;
  z-index: 0;
}

.media-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 0.5rem;
}

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 22px rgba(40, 27, 115, 0.09);
  background: var(--surface-1);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.quote-band {
  background: var(--accent-orange);
  text-align: center;
}

.quote-band h3 {
  color: var(--on-dark);
  margin-bottom: 0.35rem;
}

.quote-band p {
  margin: 0;
  color: #fff2e6;
}

.disclaimer {
  border-left: 4px solid var(--accent-orange);
  padding-left: 0.8rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}

.filter-btn {
  border: 1px solid var(--border-mid);
  background: var(--surface-1);
  color: var(--brand-blue);
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.filter-btn.active {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  color: var(--on-dark);
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.carousel-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  background: var(--surface-1);
  color: var(--brand-blue);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-featured {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: center;
  margin: 0.8rem 0 1.2rem;
}

.video-copy {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem;
}

.video-main {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(40, 27, 115, 0.12);
}

#sergeli-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-subtitle {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.video-card {
  background: var(--surface-1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(40, 27, 115, 0.13);
}

.video-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.video-card-body {
  padding: 0.8rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.brand-link-card {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(40, 27, 115, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.brand-link-card:hover {
  transform: translateY(-5px);
  border-color: #c5cff0;
  box-shadow: 0 16px 30px rgba(40, 27, 115, 0.16);
}

.brand-logo {
  width: auto;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.brand-link-card h3 {
  margin: 0.2rem 0 0;
}

.brand-link-card p {
  margin: 0;
  color: var(--text-muted);
}

.brand-cta {
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.review-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface-1);
  border-radius: 14px;
  overflow-wrap: break-word;
  border: 1px solid var(--border-soft);
  padding: 1.4rem;
}

.cta-band {
  background: linear-gradient(90deg, #20155d, #3c2b94);
  color: var(--on-dark);
}

.cta-band h3 {
  color: var(--on-dark);
  margin: 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inline-link {
  color: var(--brand-blue);
}

label {
  display: block;
  margin: 0.24rem 0 0.12rem;
  font-weight: 500;
  font-size: 0.79rem;
}

.quick-form.compact label {
  margin: 0.24rem 0 0.12rem;
  font-size: 0.79rem;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 0.36rem 0.58rem;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  min-height: 38px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  margin-top: 0.9rem;
}

.full {
  width: 100%;
  margin-top: 0.35rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

#form-status {
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.legal-note {
  margin: 0.2rem 0 0.1rem;
  font-size: 0.73rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.message-modal {
  width: min(480px, 92vw);
  border: 0;
  border-radius: 14px;
  padding: 0;
}

.message-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.message-modal-body {
  padding: 1rem;
}

.message-modal-body h3 {
  margin: 0 0 0.45rem;
}

.message-modal-body p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
}

.map-wrap {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-blue-md);
  background: var(--surface-1);
}

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0.65rem;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff, #f8faff);
}

.footer {
  background: #111425;
  color: var(--on-dark);
  padding: 1.5rem 0 5.2rem;
}

.footer a {
  color: var(--on-dark);
}

#video-modal {
  width: min(760px, 95vw);
  border: 0;
  border-radius: 12px;
  padding: 0.8rem;
}

#video-modal::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.close-btn {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  float: right;
}

.mobile-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  display: none;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  gap: clamp(0.3rem, 2vw, 0.45rem);
  padding: 0.5rem max(clamp(0.4rem, 3vw, 0.65rem), env(safe-area-inset-left, 0px))
    calc(0.5rem + env(safe-area-inset-bottom, 0px)) max(clamp(0.4rem, 3vw, 0.65rem), env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 24px rgba(22, 18, 67, 0.1);
  z-index: 120;
  backdrop-filter: blur(10px);
  overflow-x: clip;
  flex-wrap: nowrap;
}

.mobile-sticky .btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  justify-content: center;
  padding-inline: 0.35rem;
  padding-block: 0.48rem;
  border-width: 2px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .services-layout {
    grid-template-columns: 1fr;
  }
  .cards.three,
  .stats-grid,
  .split-grid,
  .location-grid,
  .video-featured {
    grid-template-columns: 1fr 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    padding-bottom: calc(var(--mobile-sticky-h) + env(safe-area-inset-bottom, 0px));
  }

  body.nav-open {
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  .header-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 52px;
    gap: 0.4rem;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
  }

  .logo img {
    height: 28px;
    width: auto;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .lang-segmented {
    padding: 2px;
  }

  .lang-btn {
    min-height: 30px;
    min-width: 2.15rem;
    padding: 0.26rem 0.48rem;
    font-size: 0.64rem;
  }

  .menu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .header-phone {
    padding: 0 0.55rem;
    min-height: 38px;
    font-size: 0.8125rem;
  }

  .nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-stack-height, 56px);
    margin: 0;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) 1rem max(0.75rem, env(safe-area-inset-left));
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--surface-1);
    border: 0;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 48px rgba(22, 18, 67, 0.22);
    gap: 0.2rem;
    z-index: 95;
    max-height: min(75vh, calc(100dvh - var(--header-stack-height, 56px) - 1rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
  }

  .nav a:hover {
    background: var(--surface-2);
    border-color: var(--border-soft);
  }

  .nav a:active {
    background: var(--surface-3);
  }
  .hero {
    padding-top: 1.05rem;
    padding-bottom: 0.25rem;
  }
  #qabul-form {
    scroll-margin-top: calc(96px + env(safe-area-inset-top));
  }
  .section {
    padding: 1.7rem 0;
  }
  .section-tight {
    padding: 0.7rem 0;
  }
  .location-strip {
    padding-top: 0.45rem;
    padding-bottom: 0.7rem;
    overflow-x: clip;
    max-width: 100%;
  }

  .location-strip .container {
    max-width: 100%;
    overflow-x: clip;
  }

  .location-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0.2rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }

  .location-item {
    flex: 0 0 min(16.5rem, 86%);
    max-width: min(16.5rem, 86%);
    min-width: 0;
    scroll-snap-align: start;
    padding: 0.62rem 0.72rem;
    box-shadow: 0 6px 14px rgba(40, 27, 115, 0.07);
  }
  .location-item h3 {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
  }
  .location-item p {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .cards.three,
  .split-grid,
  .video-featured {
    grid-template-columns: 1fr;
  }
  .services-carousel {
    min-height: 220px;
  }
  .services-carousel-dots {
    bottom: 10px;
    transform: translateX(-50%);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.4rem;
  }
  .stat-item strong {
    font-size: 1.7rem;
    line-height: 1;
  }
  .stat-item span {
    font-size: 0.86rem;
    overflow-wrap: break-word;
    padding: 0 0.15rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    min-width: 0;
  }

  .video-card img {
    height: auto;
    min-height: 140px;
    max-height: 220px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .video-card-body {
    padding: 0.75rem;
  }

  .video-copy,
  .video-main {
    min-width: 0;
  }

  .video-carousel {
    grid-template-columns: 1fr;
  }
  .carousel-nav {
    display: none;
  }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-sticky {
    display: flex;
  }

  .mobile-sticky .btn {
    min-height: 46px;
    font-size: clamp(0.78rem, 3.4vw, 0.92rem);
    font-weight: 700;
  }

  .mobile-sticky .btn:hover,
  .mobile-sticky .btn:focus-visible {
    transform: none;
  }

  .mobile-sticky .btn-primary:hover {
    box-shadow: none;
  }

  .mobile-sticky .btn-outline:hover {
    box-shadow: none;
  }

  .footer {
    padding-bottom: 1.5rem;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .section-subtitle,
  .lead,
  .lead-small,
  p {
    overflow-wrap: break-word;
  }

  .map-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .map-frame {
    max-width: 100%;
  }

  .video-filters {
    max-width: 100%;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .quick-form input,
  input[type="text"],
  input[type="tel"] {
    min-height: 44px;
    font-size: 16px;
  }
  .quick-form.compact label,
  label {
    font-size: 0.9rem;
  }
  .hero-card {
    padding: 0.75rem;
  }
  .map-frame {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .map-actions {
    justify-content: stretch;
  }

  .map-actions .btn {
    width: 100%;
  }
}
