/* divebanda.ru — стили страницы. Первый экран — по утверждённому макету docs/сайт/макет-первого-экрана.html.
   Все блоки синие, как первый экран: под каждым — подводный кадр под тёмно-синим затемнением,
   текст на полупрозрачных плашках, как «Ваш путь под водой» (владелец, 01.11.2026) */

@font-face { font-family: "Golos Text"; font-weight: 400 600; font-display: swap; src: url(../fonts/golos-text-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 600; font-display: swap; src: url(../fonts/golos-text-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 600 700; font-display: swap; src: url(../fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600 700; font-display: swap; src: url(../fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sea: #071D3F;
  --sea-rgb: 7, 29, 63;
  --aqua: #8CCBFF;
  --aqua-rgb: 140, 203, 255;
  --link: #1659B3;
  --red: #D0103A;
  --red-dark: #A80C2F;
  --tg: #2AABEE;
  --ink: #10252B;
  --text: rgba(255, 255, 255, .92);
  --soft: rgba(255, 255, 255, .78);
  /* полупрозрачная плашка — как «Ваш путь под водой» на первом экране */
  --plate: rgba(var(--sea-rgb), .32);
  --plate-line: rgba(255, 255, 255, .25);
  --head: "Unbounded", "Segoe UI", Arial, sans-serif;
  --body: "Golos Text", "Segoe UI", Arial, sans-serif;
  --wrap: 1280px; /* как у шапки: края текста — на одной линии с логотипом */
  --bar-h: 129px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--sea); color: var(--text); font-family: var(--body); font-size: 19px; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--aqua); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
/* Пометка «не заполнено» — пока черновик. Перед публикацией их на страницах быть не должно (tools/check_site.py) */
mark.todo { background: #FFE58A; color: #3A2F00; padding: 0 4px; border-radius: 4px; font-size: .85em; font-weight: 500; text-shadow: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font: 600 18px/1.2 var(--body); color: #fff; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background .15s; text-shadow: none; }
.btn-red { background: var(--red); box-shadow: 0 8px 24px rgba(208, 16, 58, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost, .btn-line { border: 1.5px solid rgba(255, 255, 255, .65); background: transparent; }
.btn-ghost:hover, .btn-line:hover { background: rgba(255, 255, 255, .1); }

/* Шапка: над видео прозрачная, при прокрутке — тёмно-синяя и ниже */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .25s, box-shadow .25s; }
.bar-in { display: flex; align-items: center; gap: 28px; padding: 14px 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); max-width: 1280px; margin: 0 auto; }
.bar.scrolled { background: var(--sea); box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.bar.scrolled .bar-in { padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 16px; font: 700 27px/1 var(--head); letter-spacing: .03em; color: #fff; text-decoration: none; }
.brand img { width: 100px; height: 100px; transition: width .25s, height .25s; }
.bar.scrolled .brand img { width: 56px; height: 56px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 16px; }
.nav a { color: rgba(255, 255, 255, .92); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.bar .btn { min-height: 46px; font-size: 16px; padding: 0 22px; }
.menu-btn { display: none; margin-left: auto; padding: 9px 16px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; font: 500 15px var(--body); color: #fff; background: transparent; cursor: pointer; }

/* Первый экран */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--sea) center / cover no-repeat; display: flex; flex-direction: column; min-height: max(100svh, 780px); padding-top: var(--bar-h); }
.hero-video { 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(var(--sea-rgb), .86) 0%, rgba(var(--sea-rgb), .6) 48%, rgba(var(--sea-rgb), .22) 100%); }
.hero > :not(.hero-video) { position: relative; z-index: 2; }
.hero-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; width: 100%; max-width: 1280px; margin: 0 auto; padding: 36px 48px 20px; }
.h1 { font-family: var(--head); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 12px rgba(var(--sea-rgb), .45); }
.h1 .ln { display: block; white-space: nowrap; width: max-content; }
.h1 em { font-style: normal; color: var(--aqua); }
.lead .sub { font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .92); margin-top: 22px; text-align: justify; hyphens: auto; }
.ctas { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-top: 30px; }
.channel { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 14px 12px 12px; border-radius: 16px; background: rgba(42, 171, 238, .16); border: 1.5px solid rgba(42, 171, 238, .8); color: #fff; text-decoration: none; transition: background .15s; }
.channel:hover { background: rgba(42, 171, 238, .28); }
.tg-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--tg); display: grid; place-items: center; flex: none; }
.tg-ic svg { width: 24px; height: 24px; fill: #fff; }
.ch-text b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.ch-text small { display: block; font-size: 15px; color: rgba(255, 255, 255, .8); margin-top: 3px; }
.ch-go { margin-left: auto; padding: 11px 18px; border-radius: 999px; background: var(--tg); font-size: 16px; font-weight: 600; white-space: nowrap; }
/* Под галереей: YouTube и Telegram рядом. Красный YouTube — тот же, что у главной кнопки: белый текст на нём читается лучше, чем на ярком #FF0033 */
.media-more { font-size: 21px; color: #fff; margin-top: 40px; max-width: 820px; }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.channels .channel { margin-top: 0; }
.channel-yt { background: rgba(208, 16, 58, .16); border-color: rgba(208, 16, 58, .85); }
.channel-yt:hover { background: rgba(208, 16, 58, .3); }
.channel-yt .tg-ic, .channel-yt .ch-go { background: var(--red); }
.path { background: var(--plate); border: 1px solid var(--plate-line); border-radius: 22px; padding: 31px 33px; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); text-shadow: 0 1px 4px rgba(var(--sea-rgb), .6); }
.path h2 { font: 700 24px/1.25 var(--head); margin-bottom: 7px; text-align: center; }
.hint { font-size: 19px; color: var(--aqua); margin: 0 0 12px; text-align: center; }
.row { display: grid; grid-template-columns: 110px 1fr 22px; gap: 15px; align-items: center; min-height: 62px; padding: 11px 13px; margin: 0 -13px; border-radius: 13px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: inherit; text-decoration: none; transition: background .15s; }
.row:hover { background: rgba(var(--aqua-rgb), .14); }
.row i { font-style: normal; font-size: 31px; color: var(--aqua); justify-self: end; }
.row b { font: 600 23px/1.2 var(--head); }
.row span { font-size: 21px; line-height: 1.3; }
.row.ccr b { color: var(--aqua); }
.path p { font-size: 19px; color: rgba(255, 255, 255, .85); margin-top: 18px; line-height: 1.4; text-align: center; }
.stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; align-items: start; padding: 22px max(48px, calc((100% - 1184px) / 2)) 28px; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(var(--sea-rgb), .55); }
.stats b { display: block; font: 600 24px/1.25 var(--head); color: var(--aqua); }
.stats span { display: block; font-size: 16px; color: rgba(255, 255, 255, .85); margin-top: 6px; }
/* Значки ассоциаций: логотипы в своих цветах на белых плашках — на тёмном фоне их надписи иначе не видны */
.orgs { display: flex; flex-wrap: wrap; gap: 10px; }
.org { position: relative; display: flex; align-items: center; height: 58px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s; }
.org:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.org img { width: auto; height: 36px; }
.org-round { padding: 0 6px; }
.org-round img { height: 50px; }
.org .tip { display: none; position: absolute; left: 0; bottom: calc(100% + 12px); width: 280px; padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--ink); font: 500 15px/1.35 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); z-index: 5; }
.org .tip u { color: var(--link); }
.org:hover .tip, .org:focus-visible .tip { display: block; }

/* Блоки: подводный кадр (--bg) под тёмно-синим затемнением; края затемнены сильнее, чтобы блоки плавно перетекали друг в друга */
.section { position: relative; padding: 104px 0; color: var(--text);
  background:
    linear-gradient(180deg, rgba(var(--sea-rgb), .97) 0%, rgba(var(--sea-rgb), .64) 16%, rgba(var(--sea-rgb), .64) 84%, rgba(var(--sea-rgb), .97) 100%),
    var(--bg, none) center / cover no-repeat fixed,
    var(--sea); }
.section h2 { font: 700 38px/1.18 var(--head); color: #fff; max-width: 900px; text-shadow: 0 2px 12px rgba(var(--sea-rgb), .5); }
.section h3 { font: 700 24px/1.25 var(--head); color: #fff; }
.section .intro { font-size: 21px; color: var(--soft); margin-top: 16px; max-width: 820px; }
.section p + p { margin-top: 14px; }
/* Полупрозрачные плашки: сквозь них виден подводный фон */
.card, .steps li, .note, .price-box, .course, .faq details, .lead-form, .form-done, .about-text {
  background: var(--plate); border: 1px solid var(--plate-line); border-radius: 20px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); text-shadow: 0 1px 4px rgba(var(--sea-rgb), .6); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; margin-top: 40px; }
.about figure img { width: 100%; height: 100%; border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; }
.about figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
.about-text { padding: 28px 30px; align-self: center; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { padding: 24px; }
.card b { display: block; font: 700 19px/1.3 var(--head); color: var(--aqua); margin-bottom: 8px; }

/* Шаги — 2 × 2: в четырёх узких колонках текст переносился через 2–3 слова (владелец, 03.11.2026) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; list-style: none; }
.steps li { counter-increment: step; padding: 24px 28px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 18px; align-content: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--aqua); color: var(--sea); font: 700 20px var(--head); text-shadow: none; grid-row: 1 / span 2; }
.steps b { font-size: 20px; color: #fff; align-self: center; }
.steps li span { grid-column: 2; }
.trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; }
.price-box { padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.price-box .price { font: 700 40px/1 var(--head); color: var(--aqua); }
.note { position: relative; padding: 22px 24px 22px 29px; }
.note::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px; border-radius: 0 5px 5px 0; background: var(--aqua); }
.note b { display: block; margin-bottom: 6px; color: var(--aqua); }
.bring { margin-top: 24px; padding: 18px 24px 18px 29px; }
.trip { margin-top: 28px; max-width: 820px; padding: 28px 30px; }
.trip h3 { margin-bottom: 12px; }
.trip ul { padding-left: 22px; margin-bottom: 14px; }
.trip li + li { margin-top: 4px; }
.pools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }

.course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 32px; margin-top: 20px; }
.course:first-of-type { margin-top: 36px; }
.course dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; }
.course dt { font-weight: 600; color: var(--aqua); }
.course .btn { margin-top: 18px; }
/* Технический дайвинг и ребризер — на фоне своего видео. Видео закреплено на экране, как фоновые кадры блоков, но видно только внутри зоны;
   края зоны растворяются в фоне раздела. Затемнение — как у остальных блоков. Видео включает site.js, когда зона подходит к экрану */
.tech-zone { --fade: 72px; position: relative; margin-top: 20px; padding: var(--fade) 0; clip-path: inset(0);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.tech-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.tech-zone::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(var(--sea-rgb), .64); opacity: 0; transition: opacity .8s; }
.tech-zone.on .tech-video, .tech-zone.on::before { opacity: 1; }
.tech-zone > .wrap { position: relative; z-index: 2; }
.tech-zone .course:first-of-type { margin-top: 0; }
.tech-zone + .wrap .course:first-of-type { margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 18px; border-radius: 14px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); vertical-align: top; }
.table th { background: rgba(var(--sea-rgb), .6); color: var(--aqua); font-weight: 600; }
.table td:last-child, .table th:last-child { white-space: nowrap; text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; list-style: none; }
.gallery a { display: block; color: inherit; text-decoration: none; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.02); }
.gallery span { display: block; font-size: 16px; color: var(--soft); margin-top: 8px; }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; margin: auto; }
.viewer::backdrop { background: rgba(4, 12, 26, .9); }
.viewer img { max-width: 96vw; max-height: 84vh; border-radius: 10px; }
.viewer p { color: #fff; font-size: 17px; margin-top: 10px; text-align: center; }
.viewer button { position: fixed; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

.faq { margin-top: 32px; max-width: 900px; }
.faq details { margin-bottom: 12px; border-radius: 16px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 20px; color: #fff; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 30px; color: var(--aqua); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; }

/* Заявка: плашка полупрозрачная, поля белые — так их проще заполнить */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.lead-form { padding: 32px; display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: #fff; }
.field input[type=text], .field input[type=tel], .field textarea { width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 12px; font: 19px var(--body); color: var(--ink); background: #fff; text-shadow: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--aqua); outline: 3px solid rgba(var(--aqua-rgb), .45); }
fieldset.field { border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; font-weight: 500; margin: 0; cursor: pointer; }
.choices input { width: 20px; height: 20px; accent-color: var(--aqua); }
.choices label:has(input:checked) { border-color: var(--aqua); background: rgba(var(--aqua-rgb), .2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 3px; accent-color: var(--aqua); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 18px; }
.form-msg.err { color: #FFB3C1; font-weight: 600; }
.form-done { padding: 40px 32px; font-size: 21px; }
.or-tg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.or-tg .btn { background: var(--tg); }

/* Подвал */
.footer { background: #04142C; color: rgba(255, 255, 255, .8); padding: 48px 0 110px; font-size: 16px; }
.footer a { color: var(--aqua); }
.footer .wrap { display: grid; gap: 10px; }
.footer b { color: #fff; font-family: var(--head); font-size: 18px; }
.foot-social { display: flex; gap: 12px; margin: 4px 0; }
.foot-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--tg); display: grid; place-items: center; transition: filter .15s; }
.foot-ic:hover { filter: brightness(1.15); }
.foot-ic svg { width: 22px; height: 22px; fill: #fff; }
.foot-yt { background: var(--red); }
.foot-small { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* Плавающая кнопка Telegram (телефон) и окно о cookie */
.tg-float { display: none; position: fixed; right: 16px; bottom: 18px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--tg); place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.tg-float svg { width: 30px; height: 30px; fill: #fff; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; font-size: 17px; line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--link); }
.cookie .btns { display: flex; gap: 10px; }
.cookie .btn { min-height: 48px; font-size: 17px; padding: 0 20px; }
.cookie .btn-line { border-color: var(--link); color: var(--link); }
.cookie .btn-line:hover { background: #EAF2FC; }

/* Политика, согласие, 404 — светлые: длинный юридический текст легче читать на белом */
body.doc { background: #fff; color: var(--ink); }
.doc a { color: var(--link); }
.doc-head { background: var(--sea); }
.doc-head .bar-in { border: 0; }
.doc main { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; font-size: 18px; }
.doc main h1 { font: 700 32px/1.2 var(--head); color: var(--sea); margin-bottom: 12px; }
.doc main h2 { font: 700 22px/1.3 var(--head); color: var(--sea); margin: 36px 0 12px; }
.doc main p, .doc main ul { margin-top: 10px; }
.doc main ul { padding-left: 24px; }
.doc main .meta { color: #4A5F66; }
.doc .footer a { color: var(--aqua); }

/* Шапка до 1300 px: поля и промежутки меньше, чтобы каждый пункт меню остался в одну строку */
@media (max-width: 1300px) {
  .bar-in { gap: 20px; padding-left: 32px; padding-right: 32px; }
  .nav { gap: 18px; }
}
/* До 1240 px меню в строку не помещается — вместо него кнопка «Меню», «Записаться» остаётся */
@media (max-width: 1240px) {
  .nav { display: none; }
  .bar .btn { margin-left: auto; }
  .menu-btn { display: block; margin-left: 0; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--sea); padding: 8px 20px 18px; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
  .nav.open a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
}

/* Планшет и узкое окно */
@media (max-width: 1100px) {
  .channels { grid-template-columns: 1fr; }
  .bar .btn { display: none; }
  .menu-btn { margin-left: auto; }
  /* Первый экран в одну колонку, заголовок и текст по центру */
  .hero { min-height: 0; }
  .hero-main { grid-template-columns: 1fr; gap: 32px; }
  .lead, .path { width: 100%; max-width: 720px; margin: 0 auto; }
  .h1 { font-size: 34px; text-align: center; }
  .h1 .ln { width: auto; white-space: normal; font-size: inherit !important; }
  .lead .sub { text-align: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* Фон «fixed» на планшетах и телефонах часто не работает — фон прокручивается вместе с блоком */
  .section { background-attachment: scroll; }
}
@media (max-width: 900px) {
  :root { --bar-h: 101px; }
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .bar-in { padding: 14px 18px; gap: 10px; }
  .brand { font-size: 19px; gap: 12px; }
  .brand img { width: 72px; height: 72px; }
  .bar.scrolled .brand img { width: 48px; height: 48px; }
  .hero-main { gap: 28px; padding: 24px 20px; }
  /* На телефоне прямоугольник из крупных букв не собрать — заголовок и текст по центру (с 1100 px) */
  .h1 { font-size: 27px; }
  .lead .sub { font-size: 17px; }
  .sub .more { display: none; }
  .ctas { grid-template-columns: 1fr; }
  .ctas .btn { width: 100%; }
  .channel { flex-wrap: wrap; }
  .ch-text { flex: 1 1 200px; }
  .ch-go { flex: 1 1 100%; text-align: center; }
  .path { padding: 24px 18px; }
  .path h2 { font-size: 22px; }
  .hint { font-size: 18px; }
  .row { grid-template-columns: 88px 1fr 16px; gap: 10px; }
  .row b { font-size: 21px; }
  .row span { font-size: 18.5px; }
  .path p { font-size: 18px; }
  .stats { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .org { height: 52px; padding: 0 12px; }
  .org img { height: 32px; }
  .org-round img { height: 44px; }
  .steps li { padding: 20px 18px; grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .steps li::before { width: 40px; height: 40px; font-size: 18px; }
  .trip { padding: 22px 18px; }
  .stats b { font-size: 21px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 27px; }
  .section h3 { font-size: 21px; }
  .section .intro { font-size: 18px; }
  .media-more { font-size: 18px; }
  .about, .trial, .form-wrap, .course { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .btn { white-space: normal; text-align: center; padding: 10px 22px; }
  .price-box .btn { width: 100%; }
  .about figure img { aspect-ratio: 4 / 5; object-position: 38% center; }
  .about-text { padding: 22px 18px; }
  .cards3, .steps, .pools { grid-template-columns: 1fr; }
  .course { padding: 22px 18px; }
  .course dl { grid-template-columns: 1fr; gap: 2px; }
  .course dd { margin-bottom: 10px; }
  .tech-zone { --fade: 48px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery span { font-size: 14px; }
  .lead-form { padding: 22px 18px; }
  .tg-float { display: grid; }
  .cookie { grid-template-columns: 1fr; left: 10px; right: 10px; bottom: 10px; }
  .cookie .btns .btn { flex: 1; }
  /* Таблицы курсов на телефоне — карточками */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid rgba(255, 255, 255, .16); padding: 12px 0; }
  .table td { border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; }
  .table td:first-child { font-weight: 600; color: #fff; }
  .table td:last-child { font-weight: 600; color: var(--aqua); }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* Входы в раздел tech.divebanda.ru: вторая кнопка в блоке курса и ссылка на конфигуратор */
.course .btn + .btn { margin-top: 12px; }
.course .tech-link { margin-top: 18px; font-size: 18px; }
.course .tech-link a { color: var(--aqua); text-underline-offset: 4px; }
@media (max-width: 760px) { .course .btn { white-space: normal; text-align: center; } }
