/* ОМА Отдых · дизайн-система. Механики и типографика — из «Хроники» (стекло, пилюли, серифные заголовки,
   появление при прокрутке), палитра — синий ОМА #005DD6 на холодной бумаге. */

@font-face { font-family: "Playfair"; src: url(/assets/fonts/playfair-display-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair"; src: url(/assets/fonts/playfair-display-400italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair"; src: url(/assets/fonts/playfair-display-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F3F6FB;
  --bg-2: #E6ECF6;
  --card: #FBFCFE;
  --ink: #0C1A33;
  --ink-2: #364766;
  --mute: #7684A0;
  --pale: #C3CEE2;
  --line: rgba(12,26,51,.09);
  --line-2: rgba(12,26,51,.16);
  --accent: #005DD6;
  --accent-ink: #004AAD;
  --accent-2: #5C9BFF;
  --sky: #DCE8FD;
  --sky-2: #C5D8FA;
  --ok: #1E8A5F;
  --warn: #C2701A;
  --glass: rgba(251,252,254,.6);
  --e: cubic-bezier(.32,.72,.3,1);
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-xl: 28px; --r-xxl: 40px; --pill: 999px;
  --gut: clamp(16px, 3.5vw, 50px);
  --shadow: 0 24px 60px -32px rgba(8,36,92,.42);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; }
img { display: block; max-width: 100%; }
canvas { display: block; }
::selection { background: rgba(0,93,214,.2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
em, .em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.mute { color: var(--mute); }
.nowrap { white-space: nowrap; }

/* ---------- кастомный курсор (только мышь) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
  html.has-cursor .cursor { display: block; }
}
.cursor__ring { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; overflow: hidden;
  transition: width .38s var(--e), height .38s var(--e), margin .38s var(--e), background .3s, opacity .2s, box-shadow .3s; }
.cursor__label { font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .38s var(--e); white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(0,93,214,.12); box-shadow: inset 0 0 0 1px rgba(0,93,214,.35); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 10px 30px -12px rgba(8,36,92,.35); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.82); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--gut);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.top.is-stuck, .top.is-solid { background: rgba(243,246,251,.74); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; transition: transform .5s var(--e); }
.brand:hover img { transform: scale(1.03); }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line); }
.nav a { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--pill); font: 500 13.5px/1 var(--sans); color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.8); color: var(--ink); }
.nav a.is-on { background: var(--ink); color: #fff; }
.top__right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.omaid { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 6px 0 14px; border-radius: var(--pill); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 13px/1 var(--sans); }
.omaid .av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 12px/1 var(--sans); }
.omaid .bal { color: var(--accent); }
.cartbtn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.cartbtn svg { width: 18px; height: 18px; }
.cartbtn b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 10.5px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.cartbtn b:empty { display: none; }
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .omaid .nm { display: none; }
}

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: var(--pill);
  font: 500 15px/1 var(--sans); letter-spacing: -.015em; white-space: nowrap; transition: background .18s, color .18s, box-shadow .18s, transform .18s var(--e); }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--blue { background: var(--accent); color: #fff; }
.btn--blue:hover { background: var(--accent-ink); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); transition: transform .38s var(--e); }
.btn:hover .btn__dot { transform: scale(1.5); }
.btn--blue .btn__dot { background: #fff; }
.btn--glass { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { background: rgba(255,255,255,.92); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.roll { --rh: 1.3em; display: inline-block; height: var(--rh); overflow: hidden; vertical-align: middle; }
.roll > span { display: flex; height: var(--rh); align-items: center; }
.roll b { display: inline-block; font-weight: inherit; white-space: pre; transition: transform .38s var(--e); transition-delay: calc(var(--i) * 22ms); }
:is(a, button):hover > .roll b { transform: translateY(calc(var(--rh) * -1)); }

/* ---------- появление ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--e), transform .6s var(--e); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.sec-mark { display: flex; align-items: center; gap: 10px; font: 500 14px/1 var(--sans); color: var(--ink-2); margin-bottom: clamp(18px, 3vh, 30px); }
.sec-mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.sec-mark .n { color: var(--mute); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .75s var(--e); transition-delay: calc(var(--i) * 40ms + var(--d, 0s)); }
.split.is-in .w > span { transform: none; }

/* ---------- секции ---------- */
.sec { padding-block: clamp(70px, 12vh, 140px); position: relative; }
.sec__head { max-width: 860px; margin-bottom: clamp(36px, 6vh, 64px); }
.sec__head.c { text-align: center; margin-inline: auto; }
.sec__head.c .sec-mark { justify-content: center; }
.h2 { font: 400 clamp(32px, 4.4vw, 60px)/1.06 var(--serif); letter-spacing: -.022em; }
.h2 .soft { color: var(--mute); }
.lede { margin-top: 18px; font: 400 clamp(16px, 1.3vw, 18px)/1.6 var(--sans); color: var(--ink-2); max-width: 640px; }
.sec__head.c .lede { margin-inline: auto; }
.card { background: var(--card); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--pill); background: var(--sky); color: var(--accent-ink); font: 500 12.5px/1 var(--sans); white-space: nowrap; }
.chip--ink { background: var(--ink); color: #fff; }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.chip--ok { background: #DDF2E8; color: var(--ok); }
.chip--warn { background: #FBEBD8; color: var(--warn); }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px 0 9px; border-radius: var(--pill); background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line); font: 500 12.5px/1 var(--sans); color: var(--ink-2); }
.pill-badge i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }

/* ---------- поля ---------- */
.field { display: block; }
.field > span { display: block; font: 500 13px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 7px; }
.in, .ta, .sel { width: 100%; display: block; border: 0; outline: 0; border-radius: var(--r-m); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 13px 15px;
  font: 400 16px/1.4 var(--sans); color: var(--ink); transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.ta { min-height: 96px; resize: vertical; }
.in:focus, .ta:focus, .sel:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s; }
.check:hover { background: #fff; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .bx { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); flex: none; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.check .bx::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + .bx { background: var(--accent); box-shadow: none; }
.check input:checked + .bx::after { opacity: 1; }
.check .t { flex: 1; font: 500 14.5px/1.3 var(--sans); }
.check .t small { display: block; font-weight: 400; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.check .p { font: 500 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.check:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); background: #fff; }

/* ---------- модалка и шторка ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__bg { position: absolute; inset: 0; background: rgba(8,20,44,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--card); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 40px 100px -40px rgba(8,20,44,.6); transform: translateY(20px) scale(.98); transition: transform .45s var(--e); }
.modal.is-open .modal__box { transform: none; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.modal__x:hover { background: var(--bg-2); }
.modal h3 { font: 400 clamp(26px, 3vw, 34px)/1.1 var(--serif); letter-spacing: -.02em; padding-right: 40px; }
.modal .sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.drawer { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--card); box-shadow: -30px 0 80px -40px rgba(8,20,44,.5);
  transform: translateX(105%); transition: transform .5s var(--e); display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font: 400 26px/1.1 var(--serif); }
.drawer__body { flex: 1; overflow: auto; padding: 16px 22px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.scrim { position: fixed; inset: 0; z-index: 105; background: rgba(8,20,44,.28); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.is-on { opacity: 1; visibility: visible; }

/* ---------- тост ---------- */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: var(--pill); background: var(--ink); color: #fff; font: 500 14px/1.3 var(--sans); box-shadow: 0 20px 50px -20px rgba(8,20,44,.6);
  transition: opacity .3s, transform .45s var(--e), visibility .3s; max-width: calc(100vw - 24px); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: none; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.toast a { color: var(--accent-2); margin-left: 6px; }

/* ---------- корзина ---------- */
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ci .n { font: 500 14px/1.3 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci .s { margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.ci .pr { font: 600 15px/1 var(--sans); text-align: right; }
.qty { margin-top: 8px; display: inline-flex; align-items: center; gap: 2px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 28px; height: 28px; border-radius: 50%; font-size: 16px; }
.qty button:hover { background: var(--bg); }
.qty span { min-width: 22px; text-align: center; font: 500 13px/1 var(--sans); }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.sumrow b { color: var(--ink); font-weight: 600; }
.sumrow.total { font: 600 18px/1.2 var(--sans); color: var(--ink); padding-top: 12px; }
.empty { text-align: center; padding: 50px 10px; color: var(--mute); }
.empty .serif { font-size: 26px; color: var(--ink); display: block; margin-bottom: 8px; }

/* ---------- подвал ---------- */
.final { text-align: center; padding-block: clamp(80px, 14vh, 160px) 70px; }
.final h2 { font: 400 clamp(38px, 6vw, 84px)/1.02 var(--serif); letter-spacing: -.025em; }
.final p { margin: 20px auto 0; max-width: 500px; font-size: 17px; color: var(--ink-2); }
.final .btn { margin-top: 30px; }
.foot { border-top: 1px solid var(--line); padding: 36px var(--gut) 50px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot img { height: 26px; }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; font: 500 13px/1 var(--sans); color: var(--mute); }
.foot__links a:hover { color: var(--ink); }
.foot__note { width: 100%; font-size: 12.5px; color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split .w > span { transition: none !important; opacity: 1 !important; transform: none !important; }
}
