/* BOSFORUS prototype — base: tokens, typography, layout shell, header, menu, footer, forms, shared blocks.
   Tokens: docs/REFERENCES-RU.md п. 4. Breakpoints: 1024px (burger), 767px (phone). */

:root {
  --navy: #132F43;
  --navy-deep: #0C2233;
  --sky: #8DB4C9;
  --ice: #D6E4EC;
  --cream: #F4F1EC;
  --mist: #EDF1F4;
  --white: #FFF;
  --muted: #5B6B7D;
  --line: rgba(19, 47, 67, .14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: 32px;
  --header-h: 92px;
  --mbar-h: 0px;
  --section-y: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; --gutter: 24px; --section-y: 88px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --section-y: 64px; }
}
/* нижняя панель — только вертикальный телефон; горизонтальный телефон и iPad mini — без нее (02.11) */
@media (max-width: 767px) and (orientation: portrait) {
  :root { --mbar-h: 64px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font: 400 18px/1.65 var(--sans);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: var(--mbar-h);
}
@media (max-width: 767px) { body { font-size: 17px; } }
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a[href^="tel:"] { white-space: nowrap; }  /* номер телефона не рвется на строки (02.11) */
p { margin: 0 0 1em; max-width: 70ch; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: .005em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--navy); color: var(--white); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.main { display: block; padding-top: var(--header-h); }
.page--hero .main { padding-top: 0; }

.section { padding: var(--section-y) 0; }
.section--light { background: var(--white); }
.section--mist { background: var(--mist); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy a { color: var(--white); }

/* ---------- typography ---------- */
.heading { text-transform: none; }
.heading em { font-style: italic; }
h1.heading { font-size: clamp(40px, 5.2vw, 72px); }
h2.heading { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: .7em; }
h3.heading { font-size: clamp(24px, 2.4vw, 31px); margin-bottom: .5em; }
.lead { font-size: 22px; line-height: 1.55; }
@media (max-width: 767px) { .lead { font-size: 19px; } }
.muted { color: var(--muted); font-size: 15px; }
.kicker {
  font: 500 14px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.section--navy .kicker { color: var(--ice); }

/* Visible placeholder for facts the client has not sent yet */
.placeholder {
  display: inline; padding: .05em .35em; border-radius: 2px;
  background: #FFF3C4; color: #6B4E00;
  font-family: var(--sans); font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none;
  font-size: max(15px, .8em);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 1px solid var(--navy); border-radius: 0;
  background: var(--navy); color: var(--white);
  font: 500 14px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.section--navy .btn--line, .form--dark .btn--line { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--sm { min-height: 48px; padding: 12px 22px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--white); color: var(--navy);
  border-top: 4px solid var(--sky);
  border-bottom: 1px solid var(--line);
  transition: transform .25s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* R94: вниз дальше высоты шапки — уезжает, вверх — выезжает (класс is-hidden ставит site.js); контент не прыгает:
   шапка fixed, место под неё держит .main */
.header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.header.is-scrolled { background: var(--white); box-shadow: 0 6px 24px rgba(12, 34, 51, .06); }
/* R95: стекло появившейся шапки — ниже, в разделе «header glass» */
@media (prefers-reduced-motion: reduce) { .header { transition: none; } }
.header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.header__logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.header__logo .logo { display: block; width: 224px; height: auto; }

.nav { margin-left: auto; }
/* ≥ 1024px: логотип слева, меню по центру страницы, телефон и EN | RU справа (R69) */
@media (min-width: 1024px) {
  .header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .header__logo { justify-self: start; }
  .nav { margin-left: 0; }
  .header__tools { justify-self: end; }
}
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: 10px 12px; font-size: 16px; text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.nav__link:hover, .nav__link.is-current { border-bottom-color: currentColor; }
.nav__item--drop .nav__link { padding-right: 2px; }
.nav__toggle {
  display: grid; place-items: center; width: 28px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
}
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__item--drop.is-open .nav__toggle .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: -16px; min-width: 340px; padding: 14px 0;
  background: var(--white); color: var(--navy); border: 1px solid var(--line); border-top: 2px solid var(--sky);
  box-shadow: 0 18px 40px rgba(12, 34, 51, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.nav__item--drop:hover .dropdown, .nav__item--drop.is-open .dropdown {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.dropdown__list { list-style: none; }
.dropdown__link { display: flex; align-items: center; gap: 8px; padding: 9px 24px; font-size: 16px; text-decoration: none; }
.dropdown__link:hover, .dropdown__link.is-current { background: var(--mist); }
.dropdown__all { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dropdown__all .dropdown__link { font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.dropdown__link .icon { width: 16px; height: 16px; }

.header__tools { display: flex; align-items: center; gap: 20px; flex: none; }
.header__phone { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 -8px 0 0; text-decoration: none; }
.header__phone .icon { width: 21px; height: 21px; }
.header__phone:hover { opacity: .75; }
.header__phone-text { display: none; }

.lang-switch {  /* одна кнопка на другой язык (02.11) */
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 4px;
  font: 500 14px/1 var(--sans); letter-spacing: .12em; text-decoration: none;
}
.lang-switch:hover { opacity: .75; }
.header .lang-switch { height: 34px; min-width: 44px; border: 1px solid currentColor; }  /* обводка в шапке (02.11) */

.burger { display: none; width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; background: none; cursor: pointer; place-items: center; }
.burger .icon { width: 28px; height: 28px; }

/* over the hero (all widths): transparent header with the white wordmark on the left; after scrolling: light header
   with the navy wordmark (R98; no gold anywhere since 02.11). The white <img> exists only on pages with a hero. */
.header .logo--white { display: none; }
.header--over-hero:not(.is-scrolled) { background: transparent; color: var(--white); border-bottom-color: transparent; }
.header--over-hero:not(.is-scrolled) .header__logo .logo--navy { display: none; }
.header--over-hero:not(.is-scrolled) .header__logo .logo--white { display: block; }

@media (max-width: 1279px) {
  .header__inner { gap: 20px; }
  .header__logo .logo { width: 188px; }
  .nav__link { padding: 10px 9px; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: grid; }
  /* телефон и планшет: трубка и язык слева от бургера (02.11) */
  .header__tools { margin-left: auto; gap: 10px; }
  .header__phone { margin: 0; }
  .header__logo .logo { width: min(52vw, 220px); }
}

/* ---------- mobile panel ---------- */
.mpanel {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: var(--navy); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .25s var(--ease);
}
.mpanel.is-open { opacity: 1; }
.mpanel__top {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  height: var(--header-h); padding: 0 var(--gutter); border-top: 4px solid var(--sky);
}
.mpanel__logo .logo { display: block; width: min(52vw, 220px); height: auto; }
.mpanel__close { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.mpanel__close .icon { width: 28px; height: 28px; }
.mpanel__nav { flex: 1 0 auto; padding: 16px var(--gutter) 32px; }
.mpanel__list { list-style: none; }
.mpanel__list > li { border-bottom: 1px solid rgba(214, 228, 236, .16); }
.mpanel__link { display: block; padding: 14px 0; font: 500 26px/1.2 var(--serif); text-decoration: none; }
.mpanel__link.is-current { font-style: italic; }
.mpanel__sub { list-style: none; padding: 0 0 16px 2px; }
.mpanel__sublink { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 17px; color: var(--ice); text-decoration: none; }
.mpanel__sublink--all { color: var(--white); font: 500 14px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding-top: 12px; }
.mpanel__sublink .icon { width: 16px; height: 16px; }
.mpanel__bottom { display: grid; gap: 20px; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(214, 228, 236, .16); }
.mpanel__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; text-decoration: none; }
.mpanel__request { width: 100%; }
.mpanel__lang { font-size: 16px; }

/* ---------- header glass (R95): the shown header is light frosted glass; without backdrop-filter it stays opaque white.
   Kept out of the "header" section: that section must not use CSS filters on the logo (pages.checks).
   R99: the glass sits on the header's ::before, not on the header itself: an ancestor with backdrop-filter becomes the
   backdrop root in Chrome, and the services dropdown inside it would blur only the header, not the page under the menu.
   The dropdown gets the same glass (over the hero and in the shown header); the mobile menu is untouched ---------- */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header.is-scrolled {
    background: transparent;
    border-bottom: 1px solid rgba(12, 34, 51, .08);
  }
  .header.is-scrolled::before {
    content: ""; position: absolute; inset: -4px 0 -1px; z-index: -1; pointer-events: none;
    background: rgba(255, 255, 255, .76);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
  }
  .dropdown {
    background: rgba(255, 255, 255, .76);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
  }
}

/* ---------- mobile bottom bar ---------- */
.mbar { display: none; }
@media (max-width: 767px) and (orientation: portrait) {
  .mbar {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    height: calc(var(--mbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy); color: var(--white); border-top: 1px solid rgba(214, 228, 236, .18);
  }
  .mbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0;
    font: 500 11px/1.1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  }
  .mbar__item + .mbar__item { border-left: 1px solid rgba(214, 228, 236, .14); }
  .mbar__item:last-child { background: rgba(214, 228, 236, .12); color: var(--white); }  /* «Заявка» выделена, но без светлой плашки (02.11) */
  .mbar__item .icon, .mbar__item .bicon { width: 22px; height: 22px; }
  .mbar__item .bicon { width: 20px; height: 20px; margin: 1px 0; }
  .mbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
}

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: var(--ice); padding: 88px 0 0; font-size: 16px; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer__logo { display: inline-block; }
.footer__logo .logo { width: 220px; height: auto; }
.footer__tagline { margin-top: 20px; max-width: 30ch; color: var(--white); }
.footer__social { margin-top: 30px; }
.footer__social .footer__title { margin-bottom: 12px; }
.footer__social .placeholder { margin-left: 6px; font-size: 12px; letter-spacing: 0; vertical-align: 1px; }
.footer__title { font: 500 14px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__text { font-size: 16px; }
.footer__contacts { list-style: none; display: grid; gap: 12px; }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--sky); }
/* номер и сразу его иконки, по центру его высоты (02.11); не влезают — под номером по центру (site.js, 16.11) */
.phone-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.phone-line > span { white-space: nowrap; }
.phone-line.is-stacked { flex-direction: column; width: fit-content; }
.phone-line.is-stacked .icon-row { margin: 0; }
.footer__phone > .icon { margin-top: 3px; }  /* трубка — по первой строке номеров (16.11) */
.footer__phone .phone-lines { flex: 1; min-width: 0; display: grid; gap: 4px; }
.footer__phone .phone-line { gap: 8px 12px; }
.footer__phone .icon-row { margin: -4px 0 -4px 4px; }
/* копирайт: мельче и приглушённо — не перетягивает внимание от меню и блоков футера (R76) */
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 28px;
  border-top: 1px solid rgba(214, 228, 236, .12); font-size: 13px; color: rgba(214, 228, 236, .55); letter-spacing: .02em;
}
.footer__bottom p { margin: 0; max-width: none; }
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--ice); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__langrow { display: flex; justify-content: flex-end; padding-bottom: 24px; }
.footer__dev { margin-left: auto; }
.footer__langrow .footer__lang {  /* белая кнопка с синей надписью в правом углу (02.11) */
  height: 34px; min-width: 48px; padding: 0 12px; background: var(--white); color: var(--navy);
  font-size: 13px; opacity: 1;
}
.footer__langrow .footer__lang:hover { color: var(--navy); background: var(--ice); opacity: 1; }
/* кнопка языка поднята вровень с нижним краем иконок соцсетей, без пустой строки над разделителем (02.11);
   строка не перехватывает клики по колонкам над ней — только сама кнопка */
@media (min-width: 1024px) {
  .footer__langrow { margin-top: calc(-64px - 34px); padding-bottom: 64px; pointer-events: none; }
  .footer__langrow .footer__lang { pointer-events: auto; }
}
@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  /* телефон (02.11): логотип и девиз по центру → контакты → меню в две колонки → услуги → соцсети */
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer__brand { display: contents; }
  .footer__logo { order: 1; justify-self: center; }
  .footer__tagline { order: 2; justify-self: center; margin-top: -16px; text-align: center; }
  .footer__contacts-col { order: 3; }
  .footer__nav { order: 4; }
  .footer__nav .footer__list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .footer__services { order: 5; }
  .footer__social { order: 6; margin-top: 0; }
  .footer__langrow { margin-top: calc(-40px - 34px - 5px); padding-bottom: 40px; pointer-events: none; }  /* по центру строки иконок 44px */
  .footer__langrow .footer__lang { pointer-events: auto; }
}

/* ---------- cookie line (R82): one thin line at the bottom edge, one "Accept" button ---------- */
.cookie {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px 20px;
  padding: 8px var(--gutter); padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: var(--navy-deep); color: var(--ice); border-top: 1px solid rgba(214, 228, 236, .16);
  font-size: 14px; line-height: 1.4;
}
.cookie__text { margin: 0; max-width: none; }
.cookie__text a { color: var(--white); }
.cookie__accept {
  flex: none; min-height: 34px; padding: 6px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 0;
  background: transparent; color: var(--white); cursor: pointer;
  font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.cookie__accept:hover { background: var(--white); color: var(--navy); }
@media (max-width: 1023px) {
  .cookie { bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); padding-bottom: 8px; }
}
@media (max-width: 767px) {  /* телефон (G01): всё на экране без прокрутки вбок — текст в две строки слева, «Принять» справа; ссылка на политику не рвется */
  .cookie { justify-content: space-between; gap: 12px; padding-left: 12px; padding-right: 12px; font-size: 11.5px; line-height: 1.35; }
  .cookie__text { flex: 1 1 auto; min-width: 0; text-wrap: pretty; }
  .cookie__text a { white-space: nowrap; }
  .cookie__accept { min-height: 36px; padding: 6px 10px; font-size: 11px; letter-spacing: .06em; }
}

/* ---------- messenger and social icons (Dropbox Lib/icons: one-colour silhouettes, colour from CSS) ---------- */
.bicon { width: 22px; height: 22px; flex: none; fill: currentColor; }
.icon-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; }
a.icon-link {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  color: var(--white); text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.icon-link .bicon { width: 19px; height: 19px; }
a.icon-link:hover { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.footer .icon-link:hover { text-decoration: none; }

/* ---------- modal windows: boat viewing (R83), request form (R85) ---------- */
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-top: 2px solid var(--sky); background: var(--white); color: var(--navy);
  box-shadow: 0 24px 60px rgba(12, 34, 51, .3); overflow: auto;
}
.modal::backdrop { background: rgba(6, 22, 38, .62); }
.modal__box { position: relative; padding: 40px 40px 36px; }
.modal__close {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 48px; height: 48px;
  padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer;
}
.modal__close .icon { width: 24px; height: 24px; }
.modal__title { padding-right: 40px; margin-bottom: 10px; font-size: clamp(28px, 3vw, 36px); }
.modal__lead { margin-bottom: 24px; color: var(--muted); font-size: 17px; }
.modal .form--light { padding: 0; border: 0; }
.modal .form__submit { width: 100%; }
@media (max-width: 767px) { .modal__box { padding: 32px 20px 24px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: min(62vh, 560px); background: var(--navy-deep); color: var(--white); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 38, .25) 0%, rgba(6, 22, 38, .2) 40%, rgba(6, 22, 38, .7) 100%);
}
.page-hero__inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 56px; }
.page-hero__kicker { font: 500 14px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ice); margin-bottom: 14px; }
.page-hero__title { max-width: 18ch; }
.page-hero--plain { min-height: 0; background: var(--cream); color: var(--navy); }
.page-hero--plain::after { display: none; }
.page-hero--plain .page-hero__kicker { color: var(--muted); }
/* R86: низкая шапка — «Продажа лодок» и «Услуги»: надзаголовок и заголовок, внимание — на содержимое */
.page-hero--compact { min-height: 0; }
.page-hero--compact .page-hero__inner { padding-top: 72px; padding-bottom: 48px; }
.page-hero--compact::after { background: linear-gradient(90deg, rgba(6, 22, 38, .72) 0%, rgba(6, 22, 38, .45) 55%, rgba(6, 22, 38, .3) 100%); }
/* «Контакты» (16.11): стоп-кадр главной и белый логотип справа, как на главной; заголовок — как у всех страниц */
.page-hero--logo .page-hero__img { object-position: 50% 62%; }
.page-hero__logo {
  position: absolute; z-index: 1; top: 50%; right: max(var(--gutter), calc((100% - var(--container)) / 2));
  width: min(30vw, 380px, 52%); height: auto; transform: translateY(-50%); opacity: .88;
}
@media (max-width: 767px) {
  .page-hero { min-height: 380px; }
  .page-hero--compact { min-height: 0; }
  .page-hero--compact .page-hero__inner { padding-top: 48px; padding-bottom: 32px; }
  .page-hero__inner { padding-bottom: 36px; }
  .page-hero__logo { top: 16px; right: auto; left: 50%; width: min(44vw, 170px); transform: translateX(-50%); }  /* на небе, над яхтами */
}

/* ---------- service tiles ---------- */
.tiles { list-style: none; display: grid; gap: 28px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .tiles--3, .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .tiles { grid-template-columns: 1fr !important; gap: 20px; } }
.tiles__item { display: flex; }
.tile {
  display: flex; flex-direction: column; width: 100%; background: var(--white); color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--sky); transition: box-shadow .25s var(--ease);
}
.section--light .tile { border: 1px solid var(--line); border-bottom: 2px solid var(--sky); }
.tile:hover { box-shadow: 0 16px 36px rgba(12, 34, 51, .12); }
.tile__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ice); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.tile__title { font: 500 31px/1.1 var(--serif); }
.tile__text { font-size: 17px; color: var(--muted); }
.tile__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  font: 500 14px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.tile__more .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.tile:hover .tile__more .icon { transform: translateX(4px); }
@media (max-width: 767px) { .tile__title { font-size: 25px; } .tile__body { padding: 20px; } }
/* горизонтальный телефон и iPad mini (560-767): все плитки услуг по две в ряд, как «Другие услуги» (12.11) */
@media (min-width: 560px) and (max-width: 767px) {
  .tiles { grid-template-columns: repeat(2, 1fr) !important; }
  .tile__title { font-size: 22px; }
  .tile__body { padding: 16px 18px 20px; gap: 8px; }
  .tile__text { font-size: 15px; }
}

/* ---------- photos (12.11): старые фото станции плотов; ширина по пропорциям снимка, ряды одной высоты;
   клик - просмотр на весь экран (.lightbox в boats.css) ---------- */
.photos { margin: 0 0 28px; }
.photos__list { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.photos__item { flex: 3 1 270px; min-width: 0; }
.photos__item--tall { flex: 1.36 1 122px; }
.photos figure { margin: 0; }
.photos__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ice); cursor: zoom-in; }
.photos__open img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photos__item--tall .photos__open img { aspect-ratio: 2 / 2.94; }
.photos__open:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
/* значок «развернуть» в правом верхнем углу, как у фото лодок */
.photos__zoom {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 40px;
  background: rgba(255, 255, 255, .28); color: var(--white);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.photos__open:hover .photos__zoom { background: rgba(255, 255, 255, .85); color: var(--navy); }
.photos__zoom .icon { width: 22px; height: 22px; }
.photos figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 24px; }
.form--dark { background: var(--navy); color: var(--white); padding: 40px; }
.form--light { background: var(--white); color: var(--navy); padding: 40px; border: 1px solid var(--line); }
@media (max-width: 767px) { .form--dark, .form--light { padding: 28px 20px; } }
.section--navy .form--dark { padding: 0; background: transparent; }
.form__title { font: 500 clamp(26px, 2.4vw, 32px)/1.15 var(--serif); }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 15px; letter-spacing: .02em; }
.field__req { margin-left: 2px; color: var(--sky); }
.form--light .field__req { color: var(--navy); }
.field__input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 17px/1.4 var(--sans); color: inherit;
  background: transparent; border: 1px solid var(--line); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
textarea.field__input { min-height: 120px; resize: vertical; }
select.field__input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238DB4C9' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field__input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky); }
.form--dark .field__input { border-color: rgba(214, 228, 236, .32); background: rgba(255, 255, 255, .04); }
.form--dark .field__input::placeholder { color: rgba(214, 228, 236, .6); }
.form--dark select.field__input option { color: var(--navy); background: var(--white); }
.form--dark input[type="date"].field__input { color-scheme: dark; }
/* пустая дата без подсказки формата «дд.мм.гггг»: она появляется в фокусе (11.11); класс is-empty ставит site.js */
input[type="date"].field__input.is-empty:not(:focus)::-webkit-datetime-edit { color: transparent; }
.field--checkbox { grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field__check { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sky); cursor: pointer; }
.field__check-label { font-size: 15px; line-height: 1.5; }
.field__check-label a { text-decoration: underline; text-underline-offset: .2em; }
.field__check-label a:hover { color: var(--sky); }
.form--light .field__check-label a:hover { color: var(--muted); }
.field--checkbox .form__error { grid-column: 1 / -1; }
.form__error { margin: 2px 0 0; font-size: 15px; color: #B3261E; }
.form--dark .form__error { color: #FFD8D2; }
.field.is-invalid .field__input { border-color: #B3261E; }
.form--dark .field.is-invalid .field__input { border-color: #FFB4A9; }
.form__submit { justify-self: start; min-width: 220px; }
@media (max-width: 767px) { .form__submit { width: 100%; } }

/* ---------- prototype stubs (until the page module is ready) ---------- */
.stub-hero {
  display: flex; align-items: flex-end; min-height: 100vh; padding-bottom: 120px;
  background: var(--navy-deep) center / cover no-repeat; color: var(--white);
}
.stub-split { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 56px; align-items: start; }
@media (max-width: 1023px) { .stub-split { grid-template-columns: 1fr; } }
.stub-center { text-align: left; }
.thanks-form { font-style: italic; font-family: var(--serif); font-size: 1.2em; }
