@charset "UTF-8";

/* =========================================================================
   «Сопка» — Владивосток
   Направление: цвето-блочная мозаика. Плоские заливки без теней и рамок,
   крупные плитки разного размера, один гротеск в двух весах.
   Четвёртый визуальный язык сети: не неон, не карточки, не газета.
   ========================================================================= */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --deep: oklch(28% 0.07 235);
  --deep-2: oklch(34% 0.075 232);
  --sea: oklch(58% 0.11 218);
  --foam: oklch(93% 0.03 200);
  --sand: oklch(90% 0.05 85);
  --coral: oklch(66% 0.17 40);
  --coral-2: oklch(58% 0.16 38);
  --white: oklch(98% 0.005 220);
  --ink: oklch(22% 0.03 235);

  --font: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.0938rem);
  --t-lg: clamp(1.0938rem, 1rem + 0.34vw, 1.25rem);
  --t-h3: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);
  --t-h2: clamp(1.5rem, 1.2rem + 1.35vw, 2.375rem);
  --t-h1: clamp(1.9375rem, 1.45rem + 2.4vw, 3.5rem);

  --gap: clamp(0.5rem, 0.3rem + 0.8vw, 0.875rem);
  --pad: clamp(2.75rem, 2rem + 3.4vw, 4.5rem);
  --gutter: clamp(0.875rem, 0.5rem + 1.8vw, 1.75rem);
  --wrap: 76rem;
  --col: 40rem;

  --fast: 130ms;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-lg); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--coral-2); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 2px solid var(--white); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
::selection { background: var(--coral); color: var(--white); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -120%; z-index: 200; background: var(--coral); color: var(--white); padding: 0.7rem 1.2rem; font-weight: 700; text-decoration: none; transition: top 200ms var(--ease); }
.skip:focus { top: 1rem; }

/* --- Сетка --------------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - var(--gutter) * 2, var(--col)); margin-inline: auto; }

.band { padding-block: var(--pad); }
.band--sm { padding-block: calc(var(--pad) * 0.55); }
.band--deep { background: var(--deep); color: var(--foam); }
.band--deep h2, .band--deep h3 { color: var(--white); }
.band--sand { background: var(--sand); }

.lead-in { max-width: 40rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.lead-in p { font-size: var(--t-lg); opacity: 0.8; }

.tag {
  display: inline-block; margin-bottom: 0.85rem; padding: 0.25rem 0.7rem;
  background: var(--coral); color: var(--white);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.band--deep .tag { background: var(--sea); }

.lede { font-size: var(--t-lg); opacity: 0.82; }

/* --- Кнопки: плотные, плоские -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border: 0;
  background: var(--coral); color: var(--white);
  font-family: var(--font); font-size: var(--t-sm); font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--fast) linear, transform var(--fast) var(--ease);
}
.btn:hover { background: var(--coral-2); color: var(--white); transform: translateY(-1px); }
.btn .i { width: 1.05em; height: 1.05em; }
.btn--ghost { background: var(--white); color: var(--ink); }
.btn--ghost:hover { background: var(--deep); color: var(--white); }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--ink); color: var(--white); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--t-base); }
.btn--full { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; text-decoration: none; color: var(--coral-2); }
.band--deep .more { color: var(--sand); }
.more .i { width: 0.95em; height: 0.95em; transition: transform var(--fast) var(--ease); }
.more:hover .i { transform: translateX(3px); }

/* --- Мелочи -------------------------------------------------------------- */
.i { width: 1.25rem; height: 1.25rem; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; background: var(--white); font-size: var(--t-xs); font-weight: 600; }
.pill .i { width: 0.9rem; height: 0.9rem; color: var(--coral); }
.band--deep .pill, .hero .pill, .phead .pill { background: var(--deep-2); color: var(--foam); }
.pill--age { background: var(--coral); color: var(--white); }
.pill--age .i { color: var(--white); }
.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* --- Мозаика: главный приём --------------------------------------------- */
.mosaic { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: clamp(1.15rem, 0.9rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: inherit; grid-column: span 2; min-height: 9rem; }
.tile h3 { margin: 0; }
.tile p { font-size: var(--t-sm); opacity: 0.82; margin: 0; }
.tile .i { width: 1.5rem; height: 1.5rem; margin-bottom: auto; }
.tile--wide { grid-column: span 2; }
@media (min-width: 52rem) { .tile--wide { grid-column: span 4; } .tile--half { grid-column: span 2; } }
.tile--sea { background: var(--sea); color: var(--white); }
.tile--deep { background: var(--deep); color: var(--foam); }
.tile--coral { background: var(--coral); color: var(--white); }
.tile--sand { background: var(--sand); color: var(--ink); }
.tile--white { background: var(--white); color: var(--ink); }
a.tile { transition: transform var(--fast) var(--ease); }
a.tile:hover { transform: translateY(-3px); color: inherit; }

/* --- Числа --------------------------------------------------------------- */
.counts { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 44rem) { .counts { grid-template-columns: repeat(3, 1fr); } }
.count { background: var(--white); padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); }
.count b { display: block; font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; color: var(--coral-2); }
.count span { font-size: var(--t-sm); opacity: 0.8; }

/* --- Места --------------------------------------------------------------- */
.spots { display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .spots { grid-template-columns: repeat(2, 1fr); } }
.spot { background: var(--white); padding: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem); display: grid; grid-template-columns: 2rem 1fr; gap: 0.85rem; }
.spot .i { width: 1.35rem; height: 1.35rem; color: var(--coral); margin-top: 0.2rem; }
.spot h3 { font-size: 1.0625rem; margin-bottom: 0.2rem; }
.spot p { font-size: var(--t-sm); opacity: 0.82; margin: 0; }
.spot__when { display: block; margin-top: 0.5rem; font-size: var(--t-xs); font-weight: 700; color: var(--sea); }

/* --- Шаги ---------------------------------------------------------------- */
.steps { display: grid; gap: var(--gap); counter-reset: s; }
@media (min-width: 52rem) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); padding: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--deep); color: var(--white); font-weight: 800; font-size: 0.875rem; margin-bottom: 0.85rem; }
.step h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }
.step p { font-size: var(--t-sm); opacity: 0.82; margin: 0; }

/* --- Списки -------------------------------------------------------------- */
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.marks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; align-items: start; font-size: var(--t-sm); }
.marks .i { width: 1.1rem; height: 1.1rem; color: var(--sea); margin-top: 0.2rem; }
.marks--no .i { color: var(--coral); }

/* --- Врезки -------------------------------------------------------------- */
.aside { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.85rem; background: var(--sand); padding: 1.15rem 1.35rem; margin-block: 1.75em; }
.aside .i { width: 1.4rem; height: 1.4rem; color: var(--coral-2); margin-top: 0.15rem; }
.aside p { font-size: var(--t-sm); }
.aside--alert { background: var(--coral); color: var(--white); }
.aside--alert .i { color: var(--white); }
.aside--alert a { color: var(--white); }

/* --- Таблицы ------------------------------------------------------------- */
.tablebox { overflow-x: auto; background: var(--white); margin-block: 1.75em; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 2px solid var(--foam); vertical-align: top; }
th { font-weight: 700; background: var(--sand); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* --- Текст --------------------------------------------------------------- */
.prose { max-width: var(--col); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; margin-bottom: 0.45em; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.35em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-block: 1.05em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--coral); }
.prose blockquote { margin: 1.6em 0; padding: 1.1rem 1.35rem; background: var(--sea); color: var(--white); font-size: var(--t-lg); font-weight: 600; }

/* --- Вопросы ------------------------------------------------------------- */
.qa { display: grid; gap: 2px; }
.qa__item { background: var(--white); }
.qa__item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary:hover { color: var(--coral-2); }
.qa__item summary .i { width: 1rem; height: 1rem; color: var(--coral); flex: none; margin-top: 0.25rem; transition: transform 200ms var(--ease); }
.qa__item[open] summary .i { transform: rotate(180deg); }
.qa__body { padding: 0 1.25rem 1.15rem; font-size: var(--t-sm); opacity: 0.85; max-width: 48rem; }

/* --- Шапка --------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 60; background: var(--deep); color: var(--foam); }
.top__row { display: flex; align-items: center; gap: 1.25rem; min-height: 3.75rem; }
.logo { display: inline-flex; align-items: baseline; gap: 0.45rem; text-decoration: none; color: var(--white); flex: none; }
.logo b { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; }
.logo span { font-size: 0.6875rem; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 0.45rem 0.75rem; font-size: var(--t-sm); color: var(--foam); text-decoration: none; }
.nav a:hover { background: var(--deep-2); color: var(--white); }
.nav a[aria-current="page"] { background: var(--sea); color: var(--white); font-weight: 600; }

.top__btn { display: none; }
.burger { margin-left: auto; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; gap: 4px; background: var(--deep-2); border: 0; cursor: pointer; }
.burger i { display: block; width: 15px; height: 2px; background: var(--foam); transition: transform 200ms var(--ease), opacity var(--fast) linear; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer { position: fixed; inset: 3.75rem 0 0; z-index: 55; display: none; background: var(--deep); padding: 1.25rem var(--gutter) 3rem; overflow-y: auto; }
.drawer.open { display: block; }
.drawer ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 2px; }
.drawer a { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; background: var(--deep-2); font-size: 1.0625rem; font-weight: 600; text-decoration: none; color: var(--foam); }
.drawer a .i { width: 0.95rem; height: 0.95rem; opacity: 0.6; }

@media (min-width: 62rem) {
  .nav { display: block; }
  .top__btn { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none !important; }
}

/* --- Первый экран -------------------------------------------------------- */
.hero { background: var(--deep); color: var(--foam); padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.hero h1 { color: var(--white); margin-bottom: 0.85rem; }
.hero__lede { font-size: var(--t-lg); opacity: 0.85; max-width: 36rem; margin-bottom: 1.75rem; }
.hero__grid { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 2.5rem); align-items: end; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }

/* --- Шапка страницы ------------------------------------------------------ */
.phead { background: var(--deep); color: var(--foam); padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.phead h1 { color: var(--white); margin-bottom: 0.6rem; }
.phead .lede { max-width: 42rem; }
.phead .pills { margin-top: 1.1rem; }

/* --- Крошки -------------------------------------------------------------- */
.crumbs { font-size: var(--t-xs); opacity: 0.7; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.35rem; opacity: 0.5; }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--foam); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* --- Оффер --------------------------------------------------------------- */
.offer { background: var(--coral); color: var(--white); padding: clamp(1.5rem, 1.1rem + 2.4vw, 2.75rem); }
.offer h2 { color: var(--white); max-width: 20ch; }
.offer p { max-width: 44ch; margin-bottom: 1.35rem; opacity: 0.92; }
.offer__note { font-size: var(--t-xs); opacity: 0.8; margin-top: 0.85rem; }
.offer .btn { background: var(--white); color: var(--ink); }
.offer .btn:hover { background: var(--deep); color: var(--white); }

.offer-line { display: grid; gap: 1rem; align-items: center; background: var(--sea); color: var(--white); padding: 1.25rem 1.4rem; margin-block: 2em; }
@media (min-width: 44rem) { .offer-line { grid-template-columns: 1fr auto; } }
.offer-line h3 { color: var(--white); margin-bottom: 0.15rem; font-size: 1.0625rem; }
.offer-line p { font-size: var(--t-sm); opacity: 0.9; margin: 0; }
.offer-line .btn { background: var(--white); color: var(--ink); }
.offer-line .btn:hover { background: var(--deep); color: var(--white); }

/* --- Записи -------------------------------------------------------------- */
.notes { display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .notes { grid-template-columns: repeat(2, 1fr); } }
.note-card { background: var(--white); padding: clamp(1.15rem, 0.9rem + 1vw, 1.6rem); text-decoration: none; color: inherit; display: block; transition: transform var(--fast) var(--ease); }
.note-card:hover { transform: translateY(-3px); color: inherit; }
.note-card__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: var(--t-xs); opacity: 0.65; margin-bottom: 0.5rem; }
.note-card h2, .note-card h3 { font-size: var(--t-h3); margin-bottom: 0.3rem; }
.note-card p { font-size: var(--t-sm); opacity: 0.82; margin: 0; }

.pmeta { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; font-size: var(--t-sm); opacity: 0.75; }
.pmeta i { width: 3px; height: 3px; background: currentColor; display: block; }

.pager { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.pager a, .pager span { min-width: 2.4rem; height: 2.4rem; padding-inline: 0.7rem; display: inline-flex; align-items: center; justify-content: center; background: var(--white); font-size: var(--t-sm); text-decoration: none; color: var(--ink); }
.pager a:hover { background: var(--sea); color: var(--white); }
.pager [aria-current="page"] { background: var(--coral); color: var(--white); font-weight: 700; }

/* --- Картинки ------------------------------------------------------------ */
.shot { margin-block: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* --- Возрастной шлюз ----------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: var(--gutter); background: oklch(22% 0.03 235 / 0.9); }
.gate.open { display: grid; }
.gate__box { width: min(100%, 28rem); background: var(--white); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.gate__mark { width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; display: grid; place-items: center; background: var(--coral); color: var(--white); }
.gate__mark .i { width: 1.4rem; height: 1.4rem; }
.gate h2 { font-size: var(--t-h3); }
.gate p { font-size: var(--t-sm); opacity: 0.85; }
.gate__btns { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.gate__legal { font-size: var(--t-xs); opacity: 0.7; margin-top: 1rem; }

/* --- Подвал -------------------------------------------------------------- */
.foot { background: var(--deep); color: var(--foam); padding-block: clamp(2.25rem, 1.8rem + 2.4vw, 3.5rem) 1.5rem; }
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.foot__about p { font-size: var(--t-sm); opacity: 0.8; margin-top: 0.9rem; max-width: 34ch; }
.foot h3 { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot a { font-size: var(--t-sm); color: var(--foam); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot__bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 2px solid var(--deep-2); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: var(--t-xs); opacity: 0.7; }
.foot__disc { max-width: 66ch; line-height: 1.55; }

/* --- Появление ----------------------------------------------------------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .in { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); animation: in-safety 0.01s linear 2.5s forwards; }
  .in.shown { opacity: 1; transform: none; animation: none; }
}
@keyframes in-safety { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Утилиты ------------------------------------------------------------- */
.muted { opacity: 0.82; }
.dim { opacity: 0.65; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
