/* Олимп — основной стиль. Фирменные цвета сняты с логотипа: бордовый #98002E + чёрный. */
:root {
  --brand: #98002e;
  --brand-dark: #6e0021;
  --brand-soft: #f7e8ec;
  --ink: #15171a;
  --graphite: #1f2226;
  --text: #2b2f35;
  --muted: #5f6772;
  --line: #e2e4e8;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --rust: #c35f24;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .08);
  --container: 1200px;
  --header-h: 76px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(25px, 3vw, 36px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 28px; } }
.narrow > * { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border: 2px solid var(--brand); border-radius: 8px; background: var(--brand); color: #fff; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--ink); color: #c9ccd2; font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { flex: none; display: block; }
.logo__img, .logo img { width: 150px; height: auto; }
@media (min-width: 1100px) { .logo__img { width: 172px; } }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 6px; }
.nav__link:hover, .nav__link.is-active { color: var(--brand); }
.nav__item--dd > .nav__link { padding-right: 26px; }
.nav__item--dd > .nav__link::after { content: ''; position: absolute; right: 12px; top: 19px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.nav__toggle { display: none; }
.nav__dd { position: absolute; left: 0; top: 100%; min-width: 300px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item--dd:hover .nav__dd, .nav__item--dd:focus-within .nav__dd { opacity: 1; visibility: visible; transform: none; }
.nav__dd a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__dd a:hover, .nav__dd a[aria-current] { background: var(--bg-alt); color: var(--brand); }
.nav__mobile-contacts { display: none; }
.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone { color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; margin-left: auto; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, top .2s, background .2s; content: ''; }
.burger span { top: 22px; }
.burger span::before { left: 0; top: -8px; }
.burger span::after { left: 0; top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .header__phone { font-size: 16px; }
  .nav__link { padding: 10px 8px; font-size: 15px; }
  .nav__item--dd > .nav__link { padding-right: 22px; }
  .nav__item--dd > .nav__link::after { right: 8px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .burger { display: block; }
  .header__contacts .btn { display: none; }
  .header__contacts { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 12px 16px 32px; transform: translateX(100%); transition: transform .25s; margin: 0; }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav__link { flex: 1; padding: 14px 4px; font-size: 18px; }
  .nav__item--dd > .nav__link { padding-right: 4px; }
  .nav__item--dd > .nav__link::after { display: none; }
  .nav__toggle { display: block; width: 48px; height: 48px; border: 0; background: none; position: relative; cursor: pointer; }
  .nav__toggle::after { content: ''; position: absolute; left: 19px; top: 17px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
  .nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); top: 21px; }
  .nav__dd { position: static; width: 100%; min-width: 0; box-shadow: none; padding: 0 0 10px 8px; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item--dd:hover .nav__dd { display: none; }
  .nav__item--dd.is-open .nav__dd { display: block; }
  .nav__mobile-contacts { display: flex; flex-direction: column; gap: 10px; padding: 24px 4px 0; }
  .nav__mobile-contacts a { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
}
@media (max-width: 479px) {
  .header__phone { display: none; }
  .logo__img { width: 132px; }
}
body.nav-open { overflow: hidden; }

/* ---------- Главный экран ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg, .page-hero__bg { position: absolute; inset: 0; }
.hero__bg img, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after, .page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 18, .92) 0%, rgba(14, 15, 18, .72) 45%, rgba(14, 15, 18, .25) 100%); }
.hero__in { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); max-width: var(--container); }
.hero__eyebrow, .eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff9fb5; margin-bottom: 14px; }
.eyebrow { color: var(--brand); }
.hero h1 { color: #fff; max-width: 820px; }
.hero__lead { font-size: clamp(18px, 1.8vw, 21px); max-width: 680px; color: #e6e8eb; }
.hero__actions, .page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { position: relative; z-index: 1; background: rgba(14, 15, 18, .78); border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__stats .stats { padding: 22px 0; }
.hero__stats .stats__num { color: #fff; }
.hero__stats .stats__label { color: #c9ccd2; }

.page-hero { position: relative; color: #fff; background: var(--ink); }
.page-hero__in { position: relative; z-index: 1; padding-top: 28px; padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; max-width: 900px; margin-top: clamp(28px, 5vw, 56px); }
.page-hero__lead { font-size: clamp(17px, 1.7vw, 20px); max-width: 760px; color: #e6e8eb; margin: 0; }
.page-hero--plain::after { background: linear-gradient(120deg, var(--ink), #2a1119); }

/* ---------- Хлебные крошки ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: 14px; color: #c9ccd2; }
.crumbs li + li::before { content: '/'; margin: 0 8px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Секции ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--graphite); color: #d6d9de; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; }
.section__head h2 { margin: 0; max-width: 760px; }
.section__head p { margin: 0; max-width: 520px; color: var(--muted); }
.lead { font-size: 19px; color: var(--text); }
.muted { color: var(--muted); }

/* Текст + фото */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--rev > :first-child { order: 2; } }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Карточки */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: inherit; }
.card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 20px; margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: 16px; }
.card__more { margin-top: auto; font-weight: 700; color: var(--brand); font-size: 15px; }
.card__more::after { content: ' →'; }

/* Плитки услуг без фото */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: block; height: 100%; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }
.section--dark .tile { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); border-top-color: var(--brand); }
.section--dark .tile p { color: #b9bec6; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__num { display: block; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; color: var(--brand); line-height: 1.1; }
.stats__label { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.section--dark .stats__num { color: #fff; }
.section--dark .stats__label { color: #b9bec6; }

/* Шаги */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item { counter-increment: s; position: relative; padding: 64px 22px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps__item::before { content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font-size: 28px; font-weight: 800; color: var(--brand); }
.steps__item h3 { font-size: 18px; margin-bottom: 6px; }
.steps__item p { margin: 0; font-size: 15px; color: var(--muted); }

/* Кейсы */
.cases { display: grid; gap: 20px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.case__num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.case h3 { font-size: 19px; }
.case p { margin: 0; color: var(--muted); font-size: 16px; }
.case__tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }

/* Чипы (география, заказчики) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.section--dark .chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }

/* Таблица */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.table th, .table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { width: 38%; font-weight: 600; color: var(--muted); }
.table td { color: var(--ink); overflow-wrap: anywhere; }
.table--data th { width: auto; background: var(--bg-alt); color: var(--ink); }

/* Лицензии */
.license { display: grid; gap: 18px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); }
.license__num { font-size: 20px; font-weight: 800; color: var(--ink); }
.license h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
.license ul { margin: 0; }

/* Галерея */
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery__item { flex: 1 1 260px; position: relative; border-radius: 8px; overflow: hidden; cursor: zoom-in; padding: 0; border: 0; background: var(--bg-alt); }
.gallery__item img { width: 100%; height: 260px; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery--strip .gallery__item img { height: 220px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 11, 13, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 6px; }
.lightbox__cap { color: #d6d9de; margin: 14px 0 0; text-align: center; max-width: 800px; font-size: 15px; }
.lightbox__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--ink); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 22px; top: 12px; font-size: 28px; font-weight: 400; color: var(--brand); }
.faq__item[open] summary::after { content: '−'; }
.faq__a { padding: 0 22px 20px; color: var(--text); }
.faq__a p:last-child { margin: 0; }

/* Призыв */
.cta-band { background: var(--brand); color: #fff; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 48px; padding-bottom: 48px; }
.cta-band__title { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 640px; color: #f6dde4; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-band__phone { color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cta-band__phone:hover { color: #fff; text-decoration: underline; }

/* Форма */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); padding: 13px 14px; border: 1px solid #cfd3d9; border-radius: 8px; background: #fff; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.is-error input { border-color: #c62828; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check.is-error { color: #c62828; }
.form .btn { justify-self: start; }
.form__note { margin: 0; font-size: 15px; color: var(--muted); }
.form-box { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* Контакты */
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list span { display: block; font-size: 14px; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.map { border: 0; width: 100%; height: 420px; border-radius: var(--radius); display: block; background: var(--bg-alt); }

/* Подвал */
.footer { background: var(--ink); color: #aab0b9; font-size: 15px; padding-top: 56px; }
.footer a { color: #d6d9de; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr; } }
.footer__brand img { width: 160px; margin-bottom: 18px; }
.footer__legal { font-size: 14px; color: #7f8791; }
.footer__h { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__contacts { margin-bottom: 18px !important; }
.footer__contacts a { color: #fff; font-weight: 700; }
.footer__links { margin-top: 18px !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* Прочее */
.note { padding: 18px 22px; border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); font-size: 16px; }
.note p:last-child { margin: 0; }
.photo-credit { font-size: 13px; color: var(--muted); margin-top: 8px; }
.error-page { text-align: center; padding: 96px 0; }
.error-page__code { font-size: clamp(80px, 14vw, 160px); font-weight: 800; color: var(--brand); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
