/* Основные цвета сайта */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-warm: #fff8eb;
  --bg-cool: #eef6ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #f4b63f;
  --accent-dark: #a16207;
  --dark: #0b1220;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 28px;
  --container: 1240px;
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(244, 182, 63, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; flex-direction: column; gap: 4px; }
.brand-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-subtitle { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: #64748b; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.95rem; color: #475569; transition: color 0.25s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn, .contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  transition: transform 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.btn:hover, .contact-chip:hover { transform: translateY(-1px); background: #f8fafc; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--dark); font-weight: 600; }
.btn-primary:hover { background: #edac2f; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle svg:last-child, .menu-toggle.active svg:first-child { display: none; }
.menu-toggle.active svg:last-child { display: block; }

.mobile-panel { display: none; border-top: 1px solid var(--line); padding: 10px 0 18px; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a, .mobile-nav .mobile-link { padding: 14px 16px; border-radius: 18px; color: #334155; background: transparent; }
.mobile-nav a:hover, .mobile-nav .mobile-link:hover { background: #f8fafc; }
.mobile-contacts { display: grid; gap: 10px; margin-top: 12px; }

.section { padding: 96px 0; scroll-margin-top: calc(var(--header-height) + 18px); }
.section-soft { background: rgba(248, 250, 252, 0.92); }
.section-warm { background: rgba(255, 248, 235, 0.92); }
.section-cool { background: rgba(238, 246, 255, 0.92); }

.hero { padding-top: 56px; padding-bottom: 96px; }

.hero-grid, .contacts-grid, .footer-grid, .section-pair, .pair-grid {
  display: grid;
  gap: 28px;
}

.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: start; }
.section-pair { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); align-items: start; }
.pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.contacts-grid, .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff7db;
  border: 1px solid #f8e2a0;
  color: var(--accent-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero h1 {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: 42px;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #475569;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.stats-grid, .services-grid, .benefits-grid, .bullet-grid, .tag-list, .timeline {
  display: grid;
  gap: 18px;
}

.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
.bullet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
.services-grid, .benefits-grid { margin-top: 44px; }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tag-list { margin-top: 28px; grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: start; }

.card, .image-panel, .contact-card, .timeline-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.desktop-image-offset {
  padding-top: 172px;
}

@media (max-width: 980px) {
  .desktop-image-offset {
    padding-top: 0;
  }
}

.card { padding: 24px; }
.card:hover { transform: translateY(-2px); }
.card, .timeline-card, .image-panel img { transition: transform 0.3s ease, box-shadow 0.3s ease; }

.icon-badge {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #f6df9a;
  background: #fff7db;
  color: var(--accent-dark);
}

.card h3, .timeline-card h3, .contact-card h3 {
  margin: 18px 0 0;
  font-size: 1.16rem;
  line-height: 1.3;
}

.card p, .timeline-card p, .contact-card p {
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.78;
}

.section-title { max-width: 760px; }
.section-title.center { margin: 0 auto; text-align: center; }

.section-title h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 18px 0 0;
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.8;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.bullet-item svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent-dark); }
.bullet-item span { color: #334155; line-height: 1.6; }

.label-chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #475569;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.list-stack { margin-top: 24px; display: grid; gap: 14px; }

.list-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.list-row svg { flex: 0 0 auto; color: var(--accent-dark); }
.list-row span { color: #334155; line-height: 1.6; }

.image-panel {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.desktop-align-top { align-self: start; }

.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.image-panel:hover img { transform: scale(1.04); }

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.05), rgba(11, 18, 32, 0.72));
}

.image-badge, .image-title { position: absolute; z-index: 2; }

.image-badge {
  top: 20px;
  left: 20px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 18, 32, 0.66);
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.image-title {
  left: 26px;
  right: 26px;
  bottom: 24px;
  color: var(--white);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.22;
  font-weight: 600;
}

.tag-list .tag {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: #334155;
}

.timeline { position: relative; margin-top: 48px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-card { position: relative; margin-left: 56px; padding: 24px 26px; }

.timeline-step {
  position: absolute;
  left: -56px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff7db;
  border: 1px solid #f6df9a;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-shell {
  padding: 10px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff8eb 0%, #ffffff 45%, #eef6ff 100%);
  box-shadow: var(--shadow);
}

.contact-shell-inner { padding: 34px; border-radius: 26px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contact-card { padding: 28px; }

.contact-list { margin: 18px 0 0; display: grid; gap: 14px; color: #475569; }

.footer {
  background: linear-gradient(180deg, #0b1220 0%, #101a2d 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(226, 232, 240, 0.9);
}

.footer-grid { padding: 54px 0; }
.footer .brand-title, .footer .footer-title { color: var(--white); }
.footer .brand-subtitle, .footer p, .footer a, .footer .footer-note { color: rgba(203, 213, 225, 0.82); }
.footer-links { display: grid; gap: 10px; margin-top: 16px; }
.footer-links a:hover { color: var(--white); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }
.delay-4 { transition-delay: 0.24s; }

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 1180px) {
  .services-grid, .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-height: 76px; }

  .nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel.open { display: block; }

  .hero-grid, .section-pair, .pair-grid, .contacts-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 24px; }
  .image-panel { min-height: 360px; }

  .stats-grid, .bullet-grid, .tag-list { grid-template-columns: 1fr 1fr; }

  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .container { width: min(calc(100% - 24px), var(--container)); }

  .hero { padding-top: 10px; }

  .hero h1 {
    margin-top: 14px;
    font-size: 32px;
    line-height: 0.98;
  }

  .hero-lead, .section-title p, .card p, .timeline-card p, .contact-card p, .list-row span, .bullet-item span {
    line-height: 1.68;
  }

  .stats-grid, .bullet-grid, .services-grid, .benefits-grid, .tag-list {
    grid-template-columns: 1fr;
  }

  .hero-actions, .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn, .contact-chip { width: 100%; }

  .timeline::before { display: none; }
  .timeline-card { margin-left: 0; padding-top: 62px; }
  .timeline-step { left: 22px; top: 18px; }

  .contact-shell-inner, .contact-card, .card, .timeline-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .image-panel { min-height: 300px; }
  .compact-mobile-image { min-height: 300px; }

  .section-title h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}
