/* ===========================================================
   Алтай Медиа — рекламное агентство
   Светлый, чистый стиль. Общие стили для всех страниц.
   =========================================================== */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f6f6;
  --bg-soft-2:   #efefef;
  --ink:         #1a1a1a;
  --ink-soft:    #4a4a4a;
  --ink-mute:    #888888;
  --line:        #e4e4e4;
  --line-strong: #d0d0d0;
  --brand:       #1a1a1a;
  --brand-dark:  #000000;
  --brand-soft:  #f0f0f0;
  --accent:      #1a1a1a;
  --accent-soft: #ededed;
  --radius:      18px;
  --radius-sm:   10px;
  --shadow:      0 18px 50px -22px rgba(0, 0, 0, .28);
  --shadow-sm:   0 8px 24px -12px rgba(0, 0, 0, .18);
  --maxw:        1180px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.22rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-size: .98rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .35);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-light:hover { background: rgba(255,255,255,.26); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  justify-self: center;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 22px; justify-self: end; }
.nav-phone {
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
}
.nav-staff {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nav-staff:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Дропдаун «Служебный вход» ---------- */
.nav-staff-wrap { position: relative; display: inline-block; }
.nav-staff-wrap > .nav-staff {
  cursor: pointer;
  font: inherit;
  user-select: none;
}
.nav-staff-wrap > .nav-staff::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  opacity: .55;
  transition: transform .15s ease;
}
.nav-staff-wrap.open > .nav-staff::after { transform: rotate(180deg); }
.staff-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 32px -16px rgba(0,0,0,.18), 0 2px 6px -3px rgba(0,0,0,.08);
  z-index: 70;
}
.nav-staff-wrap.open .staff-menu { display: block; }
.staff-menu li { list-style: none; margin: 0; }
.site-header .staff-menu a {
  display: block;
  padding: 9px 16px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
  line-height: 1.4;
}
.site-header .staff-menu a:hover {
  color: var(--brand);
  background: #fafafa;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Унификация шапки ---------- */
/* Все элементы в шапке отображаются одним стилем: цвет, размер, шрифт */
.site-header .brand,
.site-header .nav-links a,
.site-header .nav-phone,
.site-header .nav-cta .btn,
.site-header .nav-staff {
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
  height: auto;
  line-height: 1.4;
}
.site-header .brand span,
.site-header .brand small {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  display: inline;
}
.site-header .brand:hover,
.site-header .nav-links a:hover,
.site-header .nav-phone:hover,
.site-header .nav-cta .btn:hover,
.site-header .nav-staff:hover {
  color: var(--brand);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 95% -20%, var(--brand-soft), transparent 65%),
    var(--bg);
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { margin-bottom: 30px; }
.hero-actions { margin-bottom: 0; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 36px 40px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.4);
}
.hero-stats .stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero-stats .stat-row:first-child { padding-top: 0; }
.hero-stats .stat-row:last-child { padding-bottom: 0; border-bottom: 0; }
.hero-stats .stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}
.hero-stats .stat-label {
  font-size: .95rem;
  color: rgba(255,255,255,.72);
  text-align: right;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.section-head .text { max-width: 640px; }
.section-head h2 { margin: 14px 0 12px; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cards.two-up {
  grid-template-columns: 1fr 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: #d3dbe8;
}
.card-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; }
.card.accent .card-ico { background: #1a1a1a; color: #fff; }
.card.dark {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.card.dark:hover { border-color: #1a1a1a; box-shadow: 0 18px 50px -22px rgba(0,0,0,.6); }
.card.dark p { color: rgba(255,255,255,.72); }
.card.dark .card-ico { background: rgba(255,255,255,.12); color: #fff; }
.card.dark .more { color: #fff; }
.card-stat {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.card-stat-label {
  display: block;
  font-size: .82rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  font-weight: 700;
}
.card.dark .card-stat-label { color: rgba(255,255,255,.55); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 18px; }
.card .more {
  margin-top: auto;
  font-weight: 700;
  font-size: .92rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .more svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Feature list ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px;
}
.feature .num {
  font-size: .8rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .1em;
}
.feature h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Channels / logos strip ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.channel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  display: block;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
a.channel:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.channel b { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.channel span { font-size: .85rem; color: var(--ink-mute); }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  border-radius: 26px;
  padding: 54px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stats-band .stat b {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  display: block;
}
.stats-band .stat span { color: rgba(255,255,255,.74); font-size: .94rem; }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-soft);
  -webkit-text-stroke: 1.5px var(--brand);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 7px; }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255,255,255,.08), transparent 70%),
    linear-gradient(135deg, #1a1a1a, #383838);
  color: #fff;
  border-radius: 26px;
  padding: 58px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 480px; }

/* ---------- Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .info-row {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-row:last-child { border-bottom: 0; }
.contact-info .info-ico {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.contact-info .info-ico svg { width: 22px; height: 22px; }
.contact-info .info-row span { color: var(--ink-mute); font-size: .85rem; display: block; }
.contact-info .info-row b { font-size: 1.04rem; font-weight: 700; }
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font);
  font-size: .98rem;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 26, 26, .08);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: 12px; text-align: center; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, var(--brand-soft), transparent 70%),
    var(--bg-soft);
  padding: 64px 0 68px;
  border-bottom: 1px solid var(--line);
}
.crumbs {
  font-size: .86rem;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.crumbs a:hover { color: var(--brand); }
.page-hero h1 {
  margin-bottom: 16px;
  max-width: 820px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
}
.page-hero p { font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; }

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse .split-text { order: 2; }
.prose h2 { margin-bottom: 16px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.checklist { list-style: none; margin: 18px 0 0; }
.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: .98rem;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { margin-bottom: 18px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-of-type { border-bottom: 0; }
.price-row .pr-name { font-weight: 600; }
.price-row .pr-name span { display: block; font-size: .82rem; color: var(--ink-mute); font-weight: 400; }
.price-row .pr-val { font-weight: 800; white-space: nowrap; }

/* ---------- Tag pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 0;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1018;
  color: #aab3c2;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #6b7585; }
.footer-about { font-size: .92rem; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a, .footer-col p { display: block; font-size: .93rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: .84rem;
  color: #6b7585;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
/* Мобильное выпадающее меню — едино для всех страниц, наполняется через JS */
.mobile-drawer { display: none; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 70px; }
  .cards, .features, .channels, .steps,
  .stats-band, .split, .contact-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split.reverse .split-text { order: 0; }

  /* Мобильная шапка: только название, телефон, бургер */
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta { gap: 14px; }
  .nav-cta .btn,
  .nav-cta .nav-staff,
  .nav-cta .nav-staff-wrap { display: none; }
  .nav-cta .nav-phone { display: inline-flex; font-size: .9rem; }
  .burger { display: flex; }

  /* Выпадающее меню */
  .mobile-drawer.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 24px;
    z-index: 60;
    box-shadow: 0 10px 24px -16px rgba(0,0,0,.2);
  }
  .mobile-drawer.open a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    text-align: left;
    width: auto;
    justify-content: flex-start;
    letter-spacing: 0;
  }
  .mobile-drawer.open a:last-child { border-bottom: 0; }
  .mobile-drawer.open a:hover { color: var(--brand); background: transparent; }

  .cta-band, .stats-band { padding: 40px 30px; }
}
@media (max-width: 600px) {
  .cards, .cards.two-up, .features, .channels, .steps,
  .stats-band, .split, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 32px; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .card-stat { font-size: 1.8rem; }
  .hero-stats { padding: 28px 24px; }
  .hero-stats .stat-num { font-size: 2rem; }
}
