/* ==========================================================================
   YurtNet — design system
   White background, dark navy primary, bright blue accent. Minimalist,
   generous whitespace, simple line icons, no gradients/carousels/3D/anim.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-card: #ffffff;
  --color-primary: #0b2447;
  --color-primary-dark: #071a33;
  --color-accent: #2f6feb;
  --color-accent-dark: #1f57c9;
  --color-text: #14213d;
  --color-text-muted: #5b6b85;
  --color-border: #e3e8f0;
  --color-success: #1f8a55;
  --color-error: #c0392b;

  /* Fixed dark-navy chip colour (skip-link, footer, WhatsApp button) —
     intentionally does NOT change between themes. */
  --color-ink: #0b2447;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --container-width: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.18s ease;

  --header-height: 76px;
}

:root[data-theme="dark"] {
  --color-bg: #0a1120;
  --color-surface: #111a2e;
  --color-card: #141f36;
  --color-primary: #f3f6fc;
  --color-primary-dark: #ffffff;
  --color-accent: #4d8aff;
  --color-accent-dark: #7aa8ff;
  --color-text: #e6ebf5;
  --color-text-muted: #93a1bf;
  --color-border: #223047;
  --color-success: #3ecf8e;
  --color-error: #ff6b6b;
}

/* A few spots use raw rgba() instead of the palette variables above and
   need an explicit dark-mode override. */
:root[data-theme="dark"] .site-header {
  background: rgba(10, 17, 32, 0.85);
}

:root[data-theme="dark"] .hero {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}

:root[data-theme="dark"] .hero-tag {
  background: rgba(77, 138, 255, 0.15);
  border-color: rgba(77, 138, 255, 0.3);
}

:root[data-theme="dark"] .icon-tile {
  background: rgba(77, 138, 255, 0.14);
}

:root[data-theme="dark"] .radio-option input:checked + span {
  background: rgba(77, 138, 255, 0.14);
}

:root[data-theme="dark"] .form-status.is-success {
  background: rgba(62, 207, 142, 0.14);
}

:root[data-theme="dark"] .form-status.is-error {
  background: rgba(255, 107, 107, 0.14);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* Smooths the light/dark theme switch everywhere by default; elements
     with their own more specific transition (hover effects etc.) override
     this individually where needed. */
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    fill 0.25s ease, stroke 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}

.section--surface {
  background: var(--color-surface);
}

/* Decorative network nodes/lines, reused across sections at low opacity
   so backgrounds read as "technological" rather than empty. */
.section-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.section-decor svg {
  display: block;
}

.section-decor--tr {
  top: -10px;
  right: -10px;
  transform: scale(1.4);
  transform-origin: top right;
  animation: bg-drift-tr 10s ease-in-out infinite;
}

.section-decor--bl {
  bottom: -20px;
  left: -10px;
  transform: scale(1.4);
  transform-origin: bottom left;
  animation: bg-drift-bl 9s ease-in-out infinite;
}

.section-decor--br {
  bottom: -10px;
  right: -10px;
  transform: scale(1.4);
  transform-origin: bottom right;
  animation: bg-drift-br 8s ease-in-out infinite;
}

@keyframes bg-drift-tr {
  0%, 100% { transform: scale(1.4) translate(0, 0); }
  50% { transform: scale(1.4) translate(6px, 6px); }
}

@keyframes bg-drift-bl {
  0%, 100% { transform: scale(1.4) translate(0, 0); }
  50% { transform: scale(1.4) translate(-6px, 6px); }
}

@keyframes bg-drift-br {
  0%, 100% { transform: scale(1.4) translate(0, 0); }
  50% { transform: scale(1.4) translate(-6px, -6px); }
}

@media (max-width: 640px) {
  .section-decor {
    display: none;
  }
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.section-lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--color-text-muted);
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--color-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
}

.btn-ghost:hover {
  color: var(--color-accent);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--color-primary);
  flex: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex: none;
}

.logo-accent {
  color: var(--color-accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}

.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-desktop a:hover {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.header-actions .btn-primary {
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(47, 111, 235, 0.25);
}

.header-actions .btn-primary:hover {
  box-shadow: 0 5px 16px rgba(47, 111, 235, 0.32);
  transform: translateY(-1px);
}

.header-phone {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lang-switch a {
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.lang-switch a[aria-current="true"] {
  color: var(--color-primary);
}

.lang-switch a:not([aria-current="true"]):hover {
  color: var(--color-accent);
}

.lang-switch .divider {
  color: var(--color-border);
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-primary);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
}

.theme-toggle-icon--sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle-icon--sun {
  display: block;
}

.nav-mobile .theme-toggle {
  margin: 4px 0 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex: none;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle::after {
  position: absolute;
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-card);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile .header-phone {
  display: block;
  margin-top: 20px;
  font-size: 18px;
}

.nav-mobile .btn {
  margin-top: 20px;
}

.nav-mobile .lang-switch {
  margin-top: 24px;
  font-size: 16px;
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(11, 36, 71, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.hero-bg svg {
  position: absolute;
  right: -80px;
  top: -30px;
  width: 620px;
  max-width: none;
  animation: bg-drift-hero 11s ease-in-out infinite;
}

@keyframes bg-drift-hero {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

.hub-halo {
  /* transform-origin is set per-instance via inline style (exact px in the
     SVG's own coordinate space) — the "center" keyword is unreliable for
     scaled SVG shapes across browsers and was causing the ring to drift
     off the hub dot instead of pulsing in place. */
  animation: hub-pulse 3s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-halo,
  .hero-bg svg,
  .section-decor--tr,
  .section-decor--bl,
  .section-decor--br {
    animation: none;
  }

  /* CSS animation doesn't control SVG SMIL <animateMotion>, so the
     traveling dot is hidden outright for reduced-motion users. */
  .pulse-dot {
    visibility: hidden;
  }
}

@media (max-width: 960px) {
  .hero-bg svg {
    width: 420px;
    right: -140px;
  }
}

@media (max-width: 640px) {
  .hero-bg {
    display: none;
  }
}

.hero-inner {
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(47, 111, 235, 0.08);
  border: 1px solid rgba(47, 111, 235, 0.18);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

.hero-caption {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.hero-caption svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex: none;
}

/* ---------- Icon tile ---------- */
.icon-tile {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(47, 111, 235, 0.08);
  color: var(--color-accent);
  margin-bottom: 22px;
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--color-card);
  transition: background-color 0.25s ease, border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 36, 71, 0.08);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  flex: 1;
}

.service-card .btn {
  margin-top: 24px;
  align-self: flex-start;
}

/* ---------- Advantages ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 16px;
  margin: -16px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.advantage-card:hover {
  background: var(--color-card);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11, 36, 71, 0.07);
}

.advantage-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.advantage-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
}

/* ---------- Connection form ---------- */
.connect-section {
  position: relative;
}

.connect-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.connect-info h2 {
  margin-bottom: 16px;
}

.connect-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.connect-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
}

.connect-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex: none;
  margin-top: 2px;
}

.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-row input[type="text"],
.form-row input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-card);
  transition: background-color 0.25s ease, color 0.25s ease, border-color var(--transition);
}

.form-row input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-row input.is-invalid {
  border-color: var(--color-error);
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--color-error);
  margin-top: 6px;
}

.field-error.is-visible {
  display: block;
}

.radio-group {
  display: flex;
  gap: 12px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.radio-option span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.radio-option input:checked + span {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(47, 111, 235, 0.06);
}

.radio-option input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-note a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(31, 138, 85, 0.09);
  color: var(--color-success);
}

.form-status.is-error {
  background: rgba(192, 57, 43, 0.09);
  color: var(--color-error);
}

/* honeypot field, hidden from everyone but bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Contacts ---------- */
.contacts-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: stretch;
}

.contacts-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--color-card);
}

.contacts-card dl {
  margin: 28px 0 0;
}

.contacts-card .contact-row {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 14px;
}

.contacts-card .contact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.contacts-card .contact-row svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex: none;
  margin-top: 2px;
}

.contacts-card dt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}

.contacts-card dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer .section-decor {
  opacity: 0.8;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner .logo {
  color: #fff;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(11, 36, 71, 0.28);
  transition: background var(--transition);
}

.whatsapp-float:hover {
  background: var(--color-accent);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* ---------- Simple pages (privacy / consent / 404 / thank-you) ---------- */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.page-hero p {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.doc {
  padding: 56px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}

.doc h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--color-text);
  font-size: 15.5px;
}

.doc ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}

.doc li {
  margin-bottom: 8px;
}

.doc p + p {
  margin-top: 12px;
}

.state-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.state-page .icon-tile {
  margin: 0 auto 28px;
  width: 72px;
  height: 72px;
}

.state-page .icon-tile svg {
  width: 36px;
  height: 36px;
}

.state-page h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--color-primary);
}

.state-page .state-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 14px;
  display: block;
}

.state-page p {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 440px;
}

.state-page .state-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Scroll reveal ---------- */
/* Class is added by JS only, so content stays fully visible without JS. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.advantage-grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.advantage-grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.advantage-grid .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .connect-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-desktop,
  .header-actions .header-phone,
  .header-actions .lang-switch,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 56px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-primary {
    width: 100%;
  }

  /* ТЗ п.7: на мобильном первом экране — одна основная кнопка.
     "Позвонить" остаётся доступной, но как второстепенная текстовая ссылка. */
  .hero-actions .btn-outline {
    width: auto;
    border-color: transparent;
    background: transparent;
    padding: 4px 8px;
    text-decoration: underline;
    color: var(--color-text-muted);
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
