/* ============================================================
   site.css — общие стили для asudadunya.com
   Используется совместно с Tailwind CDN
   Шрифт Montserrat — локально из /g/fonts/montserrat/
   ============================================================ */

/* ── Montserrat local fonts ──────────────────────────────────── */
@font-face { font-family: 'Montserrat'; font-weight: 300; font-style: normal;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-l.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 300; font-style: italic;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-l-i.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-r.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: italic;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-i.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-m.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: italic;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-m-i.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-s-b.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: italic;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-s-b-i.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-b.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: italic;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-b-i.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-e-b.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: italic;  font-display: swap; src: url('/g/fonts/montserrat/montserrat-e-b-i.woff2') format('woff2'); }

:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --blue-600: #999966;
  --blue-700: #7a7a52;
  --accent:   #999966; /* фирменный хаки */
  --text:     #0f172a;
  --text-muted: #64748b;
  --bg:       #f8fafc;
  --white:    #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

/* ── Scrollbar (webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }

/* ── Utility: gradient text ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #999966 0%, #c8c870 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-link {
  position: relative;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-600);
  border-radius: 9999px;
  transition: width 0.25s;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(135deg, rgba(10,18,35,0.78) 0%, rgba(10,18,35,0.55) 50%, rgba(15,30,60,0.72) 100%),
    url('/img/hero-truck.jpg') center center / cover no-repeat;
  background-color: #020617;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-image: linear-gradient(135deg, #999966 0%, #7a7a52 45%, #999966 100%);
  background-size: 180% 100%;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-position 0.28s cubic-bezier(.22,1,.36,1),
              transform 0.2s cubic-bezier(.22,1,.36,1),
              box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(153,153,102,0.35);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(153,153,102,0.55);
}
.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 3px 10px rgba(15,23,42,0.55);
}
.btn-primary:focus-visible {
  outline: 2px solid rgba(153,153,102,0.95);
  outline-offset: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.22s ease,
              background 0.22s ease,
              color 0.22s ease,
              transform 0.18s cubic-bezier(.22,1,.36,1),
              box-shadow 0.22s ease;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(15,23,42,0.18);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15,23,42,0.6);
}
.btn-outline:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-outline:focus-visible {
  outline: 2px solid rgba(153,153,102,0.95);
  outline-offset: 2px;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s cubic-bezier(.22,1,.36,1);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}
.card:hover {
  box-shadow: 0 12px 40px rgba(153,153,102,0.18), 0 2px 8px rgba(0,0,0,0.08);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0e0, #f8f8f0);
  margin-bottom: 1.25rem;
}
.card-icon svg { color: var(--blue-600); }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-dark { background: var(--navy-900); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7a52;
  background: #f0f0e0;
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #d8d8a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-ligatures: none;
  font-variant-numeric: normal;
  font-feature-settings: "liga" 0, "frac" 0;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 28rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

/* ── Form inputs ────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(153,153,102,0.15);
}
.form-input.error {
  border-color: #ef4444;
}

/* Тёмный вариант инпутов (форма в hero) */
.form-input-dark {
  background: rgba(15,23,42,0.9);
  border-color: rgba(148,163,184,0.6);
  color: #e5e7eb;
}
.form-input-dark::placeholder {
  color: rgba(148,163,184,0.85);
}
.form-input-dark:focus {
  border-color: #b8b870;
  box-shadow: 0 0 0 3px rgba(153,153,102,0.28);
}

/* ── Language switcher ──────────────────────────────────────── */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover,
.lang-btn.active {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-link { color: #94a3b8; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-link:hover { color: #fff; }
/* ── Nav dropdown ───────────────────────────────────────────── */
.nav-dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-wrapper > button svg {
  transition: transform 0.2s ease;
}
.nav-dropdown-wrapper.open > button svg {
  transform: rotate(180deg);
}
/* ── Mobile menu ────────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open { max-height: 500px; }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, #1e3a5f 100%);
  padding: 5rem 0 4rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: #64748b; }
.breadcrumb a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--blue-600); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS v2  —  scroll progress, hero entrance, directional fades
   ════════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #999966 0%, #c8c870 100%);
  z-index: 9999;
  border-radius: 0 9999px 9999px 0;
  transition: width 80ms linear;
}

/* ── Navbar compact on scroll ───────────────────────────────── */
.navbar { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.navbar.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,0.4);
  border-bottom-color: rgba(255,255,255,0.12);
}

/* ── Hero entrance animations ───────────────────────────────── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-in-1 { animation: heroIn 0.7s 0.10s cubic-bezier(.22,1,.36,1) both; }
.hero-in-2 { animation: heroIn 0.7s 0.25s cubic-bezier(.22,1,.36,1) both; }
.hero-in-3 { animation: heroIn 0.7s 0.40s cubic-bezier(.22,1,.36,1) both; }
.hero-in-4 { animation: heroIn 0.7s 0.55s cubic-bezier(.22,1,.36,1) both; }

/* ── Page hero auto-animation (inner pages) ───────────────── */
.page-hero .breadcrumb { animation: heroIn 0.55s 0.05s cubic-bezier(.22,1,.36,1) both; }
.page-hero h1          { animation: heroIn 0.65s 0.15s cubic-bezier(.22,1,.36,1) both; }
.page-hero > div > p   { animation: heroIn 0.65s 0.28s cubic-bezier(.22,1,.36,1) both; }

/* ── Fade left / right ─────────────────────────────────────── */
.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1),
              transform 0.7s cubic-bezier(.22,1,.36,1);
}
.fade-left  { transform: translateX(-36px); }
.fade-right { transform: translateX(36px); }
.fade-left.visible,
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ── Scale in ─────────────────────────────────────────────── */
.scale-in {
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  transition: opacity 0.55s cubic-bezier(.22,1,.36,1),
              transform 0.55s cubic-bezier(.22,1,.36,1);
}
.scale-in.visible { opacity: 1; transform: scale(1) translateY(0); }

/* ── Floating decoration ───────────────────────────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.float-anim { animation: floatY 5s ease-in-out infinite; }

/* ── Card shimmer on hover ────────────────────────────────── */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.18) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 1;
}
.card:hover::before { left: 150%; }

/* ── CTA button pulse ring ────────────────────────────────── */
@keyframes ctaPulse {
  0%    { box-shadow: 0 4px 14px rgba(153,153,102,.40), 0 0 0 0    rgba(153,153,102,.22); }
  70%   { box-shadow: 0 4px 14px rgba(153,153,102,.40), 0 0 0 14px rgba(153,153,102,0);  }
  100%  { box-shadow: 0 4px 14px rgba(153,153,102,.40), 0 0 0 0    rgba(153,153,102,0);  }
}
.btn-primary-pulse { animation: ctaPulse 2.4s ease-out infinite; }

/* ════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS v3 — reveal, fade-zoom, stagger, tilt
   ════════════════════════════════════════════════════════════ */

/* ── Improve base fade-up (more dramatic) ──────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1),
              transform 0.7s cubic-bezier(.22,1,.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Reveal — clip-path pull-in from bottom ──────────────── */
.reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.55s cubic-bezier(.22,1,.36,1),
              clip-path 0.65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
}

/* ── Fade zoom — pulls element in with scale ─────────────── */
.fade-zoom {
  opacity: 0;
  transform: scale(0.86) translateY(20px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1),
              transform 0.6s cubic-bezier(.22,1,.36,1);
}
.fade-zoom.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Stagger: children of [data-stagger] get incremental delay ── */
[data-stagger] > *:nth-child(1)  { transition-delay: calc(0  * 0.09s) !important; }
[data-stagger] > *:nth-child(2)  { transition-delay: calc(1  * 0.09s) !important; }
[data-stagger] > *:nth-child(3)  { transition-delay: calc(2  * 0.09s) !important; }
[data-stagger] > *:nth-child(4)  { transition-delay: calc(3  * 0.09s) !important; }
[data-stagger] > *:nth-child(5)  { transition-delay: calc(4  * 0.09s) !important; }
[data-stagger] > *:nth-child(6)  { transition-delay: calc(5  * 0.09s) !important; }
[data-stagger] > *:nth-child(7)  { transition-delay: calc(6  * 0.09s) !important; }
[data-stagger] > *:nth-child(8)  { transition-delay: calc(7  * 0.09s) !important; }

/* ── Card tilt reset (JS adds inline transform on hover) ──── */
.card.no-tilt { transform: none !important; }

/* ════════════════════════════════════════════════════════════
   SERVICES GRID — "Наши услуги"
   ════════════════════════════════════════════════════════════ */

.services-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.services-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.services-title-line {
  position: relative;
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #999966, #c9c98a);
}
.services-title-line::before,
.services-title-line::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(15,23,42,0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1.75rem 1.25rem;
  border-radius: 1.25rem;
  background: #0b315e;
  color: #e5e7eb;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,0.35);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              box-shadow 0.35s cubic-bezier(.22,1,.36,1),
              background 0.35s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: var(--accent);
  border-radius: 1.5rem;
  transform: rotate(-17deg);
  box-shadow: 0 10px 25px rgba(15,23,42,0.55);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.service-card::after {
  content: '';
  position: absolute;
  top: -22px;
  left: -4px;
  width: 140px;
  height: 140px;
  background: #6b6b44;
  border-radius: 1.5rem;
  transform: rotate(-17deg);
  opacity: 0.92;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}

.service-card-inner {
  position: relative;
  z-index: 1;
}

.service-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-icon svg {
  width: 60px;
  height: 60px;
  stroke: #fff;
}

.service-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 40px rgba(15,23,42,0.7);
  background: #102a43;
}

.service-card:hover::before {
  transform: translate(10px, -6px) rotate(-13deg);
}

.service-card:hover::after {
  transform: translate(6px, -4px) rotate(-21deg);
}


/* ══════════════════════════════════════════════════════════════
   HOW WE WORK — section-how
   ══════════════════════════════════════════════════════════════ */

.section-how {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0c1a3a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.section-how::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.section-how::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6,182,212,.14) 0%, transparent 70%);
  pointer-events: none;
}

/* label на тёмном фоне */
.section-label-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37,99,235,.18);
  border: 1px solid rgba(99,179,237,.2);
  padding: 0.3rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* Шаг */
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              background 0.35s ease,
              border-color 0.35s ease;
  overflow: hidden;
}
.how-step:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.07);
  border-color: rgba(96,165,250,.28);
}

/* Декоративный номер */
.how-step-num {
  position: absolute;
  top: 0.5rem; right: 0.875rem;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  user-select: none;
  pointer-events: none;
}

/* Иконка-круг */
.how-step-icon {
  width: 60px; height: 60px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(255,255,255,.04);
  transition: box-shadow 0.3s ease;
}
.how-step:hover .how-step-icon {
  box-shadow: 0 0 0 12px rgba(255,255,255,.06);
}
.how-step-icon svg { width: 28px; height: 28px; color: #fff; }

/* Заголовок */
.how-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Описание */
.how-step-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* Коннектор между иконками */
.how-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  padding-top: 1.875rem;
  flex-shrink: 0;
}
.how-connector svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — ≤ 767px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* ── Секции ────────────────────────────────────────────── */
  .section      { padding: 2.25rem 0; }
  .section-dark { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .page-hero    { padding: 2rem 0 1.5rem; }

  /* ── Hero главной ──────────────────────────────────────── */
  .hero { min-height: auto; padding-top: 3.5rem; padding-bottom: 3rem; }

  /* ── Заголовки (hero главной + секции) ─────────────────── */
  .hero h1            { font-size: 1.75rem !important; line-height: 1.2 !important; }
  .hero h1 br         { display: none; }
  .page-hero h1       { font-size: 1.625rem !important; line-height: 1.25 !important; }

  /* ── Счётчики ──────────────────────────────────────────── */
  .stat-number { font-size: 1.75rem; }

  /* ── Кнопки ─────────────────────────────────────────────── */
  .btn-primary  { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
  .btn-outline  { padding: 0.75rem 1.25rem; font-size: 0.875rem; }

  /* Кнопки в hero: на мобильных тянутся на всю ширину */
  .hero .btn-primary,
  .hero .btn-outline { width: 100%; justify-content: center; }

  /* ── Карточки ───────────────────────────────────────────── */
  .card { padding: 1.125rem; }
  .card-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.875rem; }

  /* ── Модалка — выезжает снизу ───────────────────────────── */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    border-radius: 1.25rem 1.25rem 0 0;
    max-width: 100%;
    padding: 1.5rem;
    transform: translateY(40px);
  }
  .modal-overlay.open .modal-box { transform: translateY(0); }

  /* ── Мобильное меню ─────────────────────────────────────── */
  #mobile-menu.open { max-height: 700px; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  /* ── How-We-Work мобильный ──────────────────────────────── */
  .section-how { padding: 2.5rem 0; }
  .how-connector { display: none; }
  .how-step-icon { width: 48px; height: 48px; }
  .how-step-icon svg { width: 22px; height: 22px; }
  .how-step-num { font-size: 2.5rem; }
  .how-step-title { font-size: 0.9375rem; }

  /* ── Services grid мобильный ─────────────────────────────── */
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .service-card  { min-height: 150px; padding: 1.25rem 0.875rem; }
  .service-card-icon { width: 56px; height: 56px; margin-bottom: 0.875rem; }
  .service-card-icon svg { width: 46px; height: 46px; }
  .service-card-title { font-size: 0.825rem; }
  .services-title { font-size: 1.5rem; }
}

/* ── Spinner (кнопки форм) ─────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner.hidden { display: none; }

/* ══════════════════════════════════════════════════════════════
   REVIEWS SECTION — блок отзывов
   ══════════════════════════════════════════════════════════════ */

/* Секция на главной — тёмный фон */
.section-reviews {
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 60%, #0c1a3a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.section-reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(153,153,102,.12) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(37,99,235,.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Заголовок на тёмном фоне */
.reviews-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.reviews-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.reviews-title-line {
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #999966, #c9c98a);
}

/* Слайдер (горизонтальный scroll) */
.reviews-slider-wrap {
  position: relative;
}

.reviews-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Карточка отзыва */
.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  backdrop-filter: blur(6px);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: rgba(153,153,102,0.35);
}

/* Шапка: аватар + имя + дата + рейтинг */
.review-card-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #999966, #0b315e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.review-author-name {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.review-date {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}
.review-stars span {
  font-size: 1rem;
  color: #64748b;
}
.review-stars span.filled {
  color: #f59e0b;
}

/* Текст */
.review-body {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* ── Страница отзывов ─────────────────────────────────────── */
.reviews-page-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 3rem;
  align-items: start;
}

/* Левый список */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Карточка на странице (светлая) */
.review-card-light {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.review-card-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.review-card-light .review-author-name { color: #1e293b; }
.review-card-light .review-date        { color: #94a3b8; }
.review-card-light .review-body        {
  color: #475569;
  -webkit-line-clamp: 10;
}

/* Пагинация */
.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.625rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination-btn:disabled,
.pagination-btn[aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
}

/* Сайдбар — форма отзыва */
.review-form-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 80px;
}
.review-form-sidebar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

/* Группа звёздочек */
.star-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.star-rating input[type="radio"] { display: none; }
.star-rating label {
  font-size: 1.625rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}
.star-rating label:hover,
.star-rating label.hovered,
.star-rating input[type="radio"]:checked ~ label {
  color: #f59e0b;
}
.star-rating label:hover { transform: scale(1.2); }

/* Пустое состояние */
.reviews-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #94a3b8;
}
.reviews-empty svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

/* ── Мобильный адаптив отзывов ───────────────────────────── */
@media (max-width: 767px) {
  .section-reviews { padding: 2.5rem 0; }
  .reviews-slider { grid-template-columns: 1fr; gap: 1rem; }
  .reviews-title { font-size: 1.5rem; }
  .reviews-page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .review-form-sidebar { position: static; }
  .review-card-light { padding: 1.25rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .reviews-slider { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-page-grid { grid-template-columns: 1fr 290px; gap: 2rem; }
}
