/* Водное приключение 2.0 — единый файл стилей */

@font-face { font-family: "Oswald"; src: url(../fonts/Oswald-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/OpenSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/OpenSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/OpenSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #2a231e;
  --brown: #342d26;
  --brown-2: #4a4036;
  --sand: #f4eee5;
  --sand-2: #e9dfd1;
  --blue: #49b8df;
  --blue-dark: #1f7ea3;
  --orange: #ef5a0c;
  --orange-dark: #cc4706;
  --text: #2f2925;
  --muted: #6b625a;
  --line: #e2d8ca;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 35, 30, 0.12);
  --wrap: 1200px;
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 "Open Sans", Arial, sans-serif; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1.15; color: var(--brown); margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 880px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--white); padding: 8px 16px; }
.skip:focus { left: 8px; }
.ym-pixel { position: absolute; left: -9999px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px; border: 2px solid var(--orange); border-radius: 999px; background: var(--orange); color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.btn--small { min-height: 42px; padding: 8px 20px; font-size: 15px; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--brown); }
.btn--ghost-dark { background: transparent; border-color: var(--brown); color: var(--brown); }
.btn--ghost-dark:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 100; background: var(--brown); color: var(--white); transition: box-shadow 0.2s; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header); max-width: 1440px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; flex: none; }
.logo:hover { color: var(--white); }
.logo__mark { width: 64px; height: auto; }
.logo__text { font: 700 16px/1.05 "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue); }
.nav { flex: 1; }
.nav__list { display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list > .menu-item { position: relative; display: flex; align-items: center; }
.nav__list a { display: block; padding: 10px 8px; color: var(--white); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .is-section > a { color: var(--blue); }
.nav__toggle { width: 22px; height: 30px; margin-left: -6px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.nav__toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.menu-item.is-open > .nav__toggle::before { transform: translateY(2px) rotate(-135deg); }
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; margin: 0; padding: 10px 0; list-style: none; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.nav .sub-menu a { color: var(--text); font-weight: 400; white-space: normal; padding: 8px 18px; }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { color: var(--blue-dark); background: var(--sand); }
.nav .menu-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1181px) {
  .nav__list > .menu-item:hover > .sub-menu, .nav__list > .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.nav__contacts { display: none; }
.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header__phone { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--blue); }
.header__email { color: var(--blue); font-size: 14px; text-decoration: none; white-space: nowrap; }
.header__email:hover { color: var(--white); text-decoration: underline; }
.header__mail { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--blue); }
.header__mail:hover { color: var(--white); }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform 0.2s, opacity 0.2s; }
.burger span { top: 21px; }
.burger::before { top: 14px; }
.burger::after { top: 28px; }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* Первый экран */
.hero { position: relative; color: var(--white); background: var(--brown); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(30, 24, 20, 0.88) 0%, rgba(30, 24, 20, 0.62) 50%, rgba(30, 24, 20, 0.2) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2; height: 40px; background: url(../img/edge.webp) center bottom / 100% 100% no-repeat; }
.hero__in { position: relative; z-index: 3; padding-top: 56px; padding-bottom: 40px; }
.hero__title { max-width: 820px; color: var(--white); font-size: clamp(34px, 4.6vw, 58px); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 20px; }
.hero--home .hero__in { padding-top: 110px; padding-bottom: 56px; }
.hero--home .hero__title { font-size: clamp(36px, 5vw, 66px); max-width: 900px; }
.hero__lead { max-width: 680px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero--plain { background: var(--brown); }
.hero--plain .hero__in { padding-bottom: 72px; }

.crumbs { font-size: 14px; margin-bottom: 20px; color: rgba(255, 255, 255, 0.75); }
.crumbs a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs__sep { margin: 0 8px; opacity: 0.5; }

.facts { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 84px; padding: 0; }
.facts__item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); }
.facts__item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.facts__item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.facts__item .icon { width: 48px; height: 48px; flex: none; }
.facts__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.7); }
.facts__value { display: block; font-weight: 700; line-height: 1.35; }

/* Секции */
.section { padding: 84px 0; }
.section--sand { background: var(--sand); }
.section--sand .steps__item, .section--sand .faq__item { background: var(--white); }
.steps__item, .faq__item { background: var(--sand); }
.section--dark { background: var(--brown); color: var(--white); }
.section--dark .section__title { color: var(--white); }
.section--pull { padding-top: 56px; }
.section--compact { padding: 40px 0 64px; }
.section--brief .section__title { color: var(--white); }
.section--brief { background: var(--brown) linear-gradient(135deg, var(--brown) 0%, #2a3a40 100%); color: var(--white); }
.section__title { font-size: clamp(28px, 3.2vw, 42px); text-transform: uppercase; margin-bottom: 18px; }
.section__intro { max-width: 760px; font-size: 18px; color: var(--muted); margin-bottom: 36px; }
.section--dark .section__intro { color: rgba(255, 255, 255, 0.8); }
.section__subtitle { font: 700 22px/1.3 "Oswald", sans-serif; text-transform: uppercase; color: var(--brown); margin: 48px 0 20px; }
.section--compact .section__subtitle { margin-top: 0; }

/* Текст страницы */
.prose { font-size: 17px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 36px); text-transform: uppercase; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose ul li::marker { color: var(--blue); }
.prose strong { color: var(--brown); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--sand); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--sand); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.prose .lead { font-size: 20px; color: var(--brown); }
.prose .note { padding: 18px 22px; background: #e8f6fb; border-radius: var(--radius); }
.section--sand .prose .note { background: var(--white); }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--2, .cards--4 { grid-template-columns: repeat(2, 1fr); }
.cards--5 { grid-template-columns: repeat(6, 1fr); }
.cards--5 .card { grid-column: span 2; }
.cards--5 .card:nth-child(4), .cards--5 .card:nth-child(5) { grid-column: span 3; }
.cards--1 { grid-template-columns: 1fr; }
.cards--1 .card { flex-direction: row; }
.cards--1 .card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 300px; }
.cards--1 .card__body { justify-content: center; padding: 36px 40px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42, 35, 30, 0.18); color: var(--text); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card__title { font: 700 23px/1.2 "Oswald", sans-serif; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.card__more { margin-top: auto; color: var(--orange); font-weight: 700; }
.card__more::after { content: " →"; }

/* Этапы */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.steps__item { counter-increment: step; position: relative; padding: 26px 22px 24px; border-radius: var(--radius); }
.steps__item::before { content: counter(step, decimal-leading-zero); display: block; font: 700 40px/1 "Oswald", sans-serif; color: var(--blue); margin-bottom: 14px; }
.steps__title { display: block; font-weight: 700; color: var(--brown); margin-bottom: 6px; line-height: 1.35; }
.steps__text { display: block; color: var(--muted); font-size: 15.5px; }

/* Преимущества / допуслуги */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; margin: 24px 0 0; padding: 0; list-style: none; }
.features__item { display: flex; gap: 18px; align-items: flex-start; }
.features__item .icon { flex: none; width: 64px; height: 64px; }
.features__body { display: flex; flex-direction: column; }
.features__title { font-weight: 700; color: var(--brown); font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.features__text { color: var(--muted); font-size: 15.5px; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.2s; }
.gallery__item:hover img { transform: scale(1.05); opacity: 0.9; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 13, 0.94); }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox button { position: absolute; width: 56px; height: 56px; border: 0; background: none; cursor: pointer; color: var(--white); }
.lightbox button::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.lightbox__prev { left: 12px; } .lightbox__prev::before { transform: rotate(135deg); }
.lightbox__next { right: 12px; } .lightbox__next::before { transform: rotate(-45deg); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__close::before { border: 0 !important; width: 26px !important; height: 26px !important; background: linear-gradient(45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%); }

/* Команда */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; margin: 20px 0 0; padding: 0; list-style: none; text-align: center; }
.team__photo { width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; }
.team__name { display: block; font: 700 21px/1.2 "Oswald", sans-serif; text-transform: uppercase; color: var(--brown); }
.team__role { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Отзывы и логотипы */
.logos { display: grid; grid-template-columns: repeat(9, 1fr); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; align-items: center; }
.logos__item img { max-height: 64px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s, opacity 0.2s; }
.logos__item:hover img { filter: none; opacity: 1; }
.logos--brands .logos__item img { max-height: 48px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.reviews__item { padding: 28px; background: var(--sand); border-radius: var(--radius); }
.reviews__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.reviews__quote { margin: 0 0 14px; font: 700 26px/1.2 "Oswald", sans-serif; color: var(--brown); }
.reviews__name { display: block; font-weight: 700; }
.reviews__role { display: block; color: var(--muted); font-size: 15px; }

/* Видео */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 24px; }
.video__poster, .video__player { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border: 0; border-radius: 50%; background: var(--orange); cursor: pointer; box-shadow: 0 0 0 12px rgba(239, 90, 12, 0.25); transition: transform 0.2s; }
.video__play:hover { transform: scale(1.06); }
.video__play::before { content: ""; position: absolute; left: 38px; top: 30px; border-left: 30px solid var(--white); border-top: 18px solid transparent; border-bottom: 18px solid transparent; }

/* FAQ */
.faq { margin-top: 20px; }
.faq__item { border-radius: var(--radius); margin-bottom: 12px; }
.faq__q { position: relative; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--brown); cursor: pointer; list-style: none; line-height: 1.4; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 30px/1 "Open Sans", sans-serif; color: var(--blue); }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 24px 8px; color: var(--text); }

/* Бриф */
.brief { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.brief__info p { color: rgba(255, 255, 255, 0.85); font-size: 18px; }
.brief__contacts { margin: 24px 0 0; padding: 0; list-style: none; }
.brief__contacts li { margin-bottom: 8px; color: rgba(255, 255, 255, 0.75); }
.brief__contacts a { color: var(--white); font-weight: 700; font-size: 20px; text-decoration: none; }
.brief__contacts a:hover { color: var(--blue); }
.brief__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; background: var(--white); border-radius: var(--radius); color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbf9f6; color: var(--text); font-weight: 400; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; background: var(--white); }
.brief__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.brief__note { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Таблицы */
.table-wrap { overflow-x: auto; margin-top: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15.5px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--brown); color: var(--white); font-weight: 600; font-size: 14px; }
.table tbody th { font-weight: 700; color: var(--brown); }
.table tbody tr:nth-child(even) { background: #faf7f2; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
.contacts__list { margin: 0; font-size: 18px; }
.contacts__list dt { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 18px; }
.contacts__list dt:first-child { margin-top: 0; }
.contacts__list dd { margin: 4px 0 0; font-weight: 600; }
.contacts__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Связанные ссылки */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.related a { display: block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--brown); text-decoration: none; font-weight: 600; font-size: 15px; }
.related a:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Подвал */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 64px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__title { font: 700 18px/1.2 "Oswald", sans-serif; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer__list a:hover { color: var(--blue); }
.footer__list .footer__strong { color: var(--white); font-weight: 700; font-size: 17px; }
.footer__bottom { margin-top: 44px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }
.dock { display: none; }

@media (max-width: 1499px) {
  .header__actions .btn { display: none; }
}

/* Узкий десктоп: меню, телефон и почта в одну строку */
@media (min-width: 1181px) and (max-width: 1380px) {
  .header__in { gap: 12px; }
  .nav__list a { padding: 10px 6px; font-size: 14px; }
  .nav__toggle { width: 18px; margin-left: -4px; }
  .header__email { font-size: 13px; }
}
@media (min-width: 1181px) and (max-width: 1290px) {
  .logo__text { display: none; }
}

/* Планшет */
@media (max-width: 1180px) {
  :root { --header: 64px; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .nav { position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; z-index: 99; display: flex; flex-direction: column; padding: 16px 24px 32px; background: var(--brown); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform 0.25s, visibility 0.25s; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; justify-content: flex-start; }
  .nav__list > .menu-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__list > .menu-item > a { flex: 1; padding: 14px 0; font-size: 18px; }
  .nav__toggle { width: 48px; height: 48px; margin: 0; }
  .nav .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 12px 14px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav .menu-item.is-open > .sub-menu { display: block; }
  .nav .sub-menu a { color: rgba(255, 255, 255, 0.85); padding: 9px 0; font-size: 16px; }
  .nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { background: none; color: var(--blue); }
  .nav__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
  .nav__phone { color: var(--white); font-size: 22px; font-weight: 700; text-decoration: none; }
  .nav__email { color: var(--blue); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item:first-child, .facts__item:last-child { border-radius: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .cards, .cards--5 { grid-template-columns: repeat(2, 1fr); }
  .cards--5 .card, .cards--5 .card:nth-child(4), .cards--5 .card:nth-child(5) { grid-column: auto; }
  .cards--5 .card:nth-child(5) { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .brief, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Телефон */
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .wrap { padding: 0 16px; }
  .header__actions { gap: 4px; }
  .header__contacts { display: none; }
  .header__mail { display: flex; }
  .logo__mark { width: 52px; }
  .logo__text { font-size: 14px; }
  .hero__in, .hero--home .hero__in { padding-top: 32px; padding-bottom: 28px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
  .facts__item { padding: 14px 12px; gap: 10px; }
  .facts__item .icon { width: 36px; height: 36px; }
  .facts__value { font-size: 14.5px; }
  .section { padding: 56px 0; }
  .section--pull { padding-top: 40px; }
  .cards, .cards--2, .cards--4, .cards--5 { grid-template-columns: 1fr; }
  .cards--1 .card { flex-direction: column; }
  .cards--1 .card__media { min-height: 0; aspect-ratio: 3 / 2; }
  .cards--1 .card__body { padding: 22px 24px 24px; }
  .cards--5 .card:nth-child(5) { grid-column: auto; }
  .steps, .features { grid-template-columns: 1fr; }
  .team__photo { width: 120px; height: 120px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .brief__form { grid-template-columns: 1fr; padding: 20px; }
  .brief__actions .btn { flex: 1 1 100%; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; font-size: 14px; }
  .prose td, .prose th { white-space: normal; min-width: 110px; }
  .prose .lead { font-size: 18px; }
  .steps__item { padding: 20px; }
  .steps__item::before { font-size: 32px; margin-bottom: 8px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table th, .table td { padding: 2px 0; border: 0; }
  .table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .footer__grid { grid-template-columns: 1fr; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.4fr; background: var(--brown); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2); }
  .dock__item { display: flex; align-items: center; justify-content: center; min-height: 56px; color: var(--white); font-weight: 700; text-decoration: none; }
  .dock__item--accent { background: var(--orange); }
  .dock__item:hover { color: var(--white); }
}
