:root {
  --bg: #faf9f6;
  --bg-2: #f1efe9;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e3e0d8;
  --accent: #e8590c;
  --accent-ink: #c94f0a;
  --green: #2f9e44;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .mark {
  color: var(--accent);
  font-weight: 900;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color .15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .15s;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero .eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .12s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Секции */
section { padding: 88px 0; }
.section-head { margin-bottom: 56px; }
.section-head .kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
}
.section-head .sub {
  color: var(--muted);
  margin-top: 14px;
  max-width: 52ch;
}

/* Список услуг — крупные строки с номерами */
.service-list { border-top: 1px solid var(--line); }
.service-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .2s;
}
.service-item:hover { padding-left: 12px; }
.service-item .num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.service-item p { color: var(--muted); font-size: 0.98rem; }
.service-item .price {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--ink);
}
.service-item .arrow {
  color: var(--muted);
  font-size: 1.3rem;
  transition: transform .2s, color .2s;
}
.service-item:hover .arrow { transform: translateX(4px); color: var(--accent); }

/* Преимущества — асимметричная сетка */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.feature {
  grid-column: span 4;
  padding: 32px 0;
  border-top: 2px solid var(--ink);
}
.feature:nth-child(2) { grid-column: span 5; }
.feature:nth-child(3) { grid-column: span 3; }
.feature .icon {
  width: 44px; height: 44px;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature .icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.stat .num {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat .num .accent { color: var(--accent); }
.stat .label { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* Таблица цен */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td { font-size: 1.02rem; }
.price-table .price { font-weight: 700; }
.price-table tr:hover td { color: var(--accent); }

/* Форма */
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: #9a968c;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: #e9f7ee;
  border: 1px solid var(--green);
  color: #1e7a34;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Контакты */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item .value { font-weight: 600; font-size: 1.05rem; }
.contact-item .value a:hover { color: var(--accent); }

/* Команда */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.member { border-top: 2px solid var(--ink); padding-top: 24px; }
.member .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.member h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.member .role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: 0.95rem; }

/* CTA-блок */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 64px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta p { color: #b8b8b8; max-width: 44ch; margin: 0 auto 32px; }
.cta .btn-primary { background: var(--accent); }

/* Подвал */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-col .tagline { color: var(--muted); margin-top: 14px; max-width: 30ch; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .feature, .feature:nth-child(2), .feature:nth-child(3) { grid-column: span 6; }
  .team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
  .feature, .feature:nth-child(2), .feature:nth-child(3) { grid-column: span 12; }
  .service-item { grid-template-columns: 40px 1fr; }
  .service-item .price { grid-column: 2; }
  .service-item .arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta { padding: 40px 24px; }
  .form-card { padding: 28px 20px; }
  .price-table th, .price-table td { font-size: 0.9rem; }
}
