/* Общий стиль страниц агентов «Лёгкости» (стиль «Облака»): небо, плывущие облака, белые стеклянные карточки.
   Страницы: nebo, kuhnya, prognoz, pauza, otzyv, nochi, uzhin. Облака на фоне рисует oblaka.js. */
@font-face { font-family: Golos; src: url(fonts/GolosText-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Golos; src: url(fonts/GolosText-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Golos; src: url(fonts/GolosText-ExtraBold.ttf); font-weight: 800; font-display: swap; }
@font-face { font-family: Mono; src: url(fonts/JetBrainsMono-Medium.ttf); font-weight: 500; font-display: swap; }
:root {
  --sky1: #7FBFF2; --sky2: #DDF0FF; --ink: #14201A; --muted: #4F6170; --leaf: #15724A; --sun: #FFC23D; --card: rgba(255,255,255,.78); --line: rgba(255,255,255,.9);
  --gray: #9AA7B4; --dark: #5D6B7A;
  --display: Golos, "Helvetica Neue", Arial, sans-serif; --mono: Mono, ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #F4FAFF; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: linear-gradient(180deg, var(--sky1) 0, var(--sky2) 100vh, #F4FAFF 160vh, #F4FAFF); }
body.dusk { --sky1: #A4B6EA; --sky2: #F6CDB9; --muted: #3C4660; }
body.night { --sky1: #1C2552; --sky2: #4A4E8C; --ink: #F2F4FF; --muted: #C3C8E6; --card: rgba(255,255,255,.12); --line: rgba(255,255,255,.22); background: linear-gradient(180deg, var(--sky1) 0, var(--sky2) 100vh, var(--sky2)); }
button { font: inherit; color: inherit; }

/* облака на фоне */
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sky svg { position: absolute; left: 0; fill: #fff; animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
body.night .sky svg { fill: #8C93C8; }

.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px) 48px; }
header { display: flex; align-items: center; gap: 16px; padding: 20px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.cta { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; background: var(--leaf); color: #fff; font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 99px; text-decoration: none; }
.cta svg { width: 18px; height: 18px; }

.kicker { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
h1 { font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.lead { margin: 14px 0 22px; font-size: 18px; line-height: 1.45; color: var(--muted); max-width: 600px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 24px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px -30px rgba(20,50,90,.45); }
.card + .card { margin-top: 16px; }
.card h2 { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(20,50,90,.12); background: rgba(255,255,255,.85); color: #14201A; border-radius: 99px; padding: 10px 16px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .12s, background .2s, color .2s; }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip.on { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.chip small { font: 500 11px var(--mono); opacity: .7; margin-left: 4px; }
.chip:focus-visible, .btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; padding: 14px 22px; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--leaf); color: #fff; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255,255,255,.85); color: #14201A; border: 1px solid rgba(20,50,90,.12); }
.btn[disabled] { opacity: .45; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mono { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.big { font-weight: 800; font-size: clamp(40px, 8vw, 64px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--leaf); height: 28px; }
.say { font-size: 18px; line-height: 1.45; margin: 0; }
.say b { font-weight: 800; }
.next { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.next p { margin: 0; color: var(--muted); font-size: 15px; flex: 1 1 260px; }
.pop { animation: pop .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.cloud { display: block; }

footer { position: relative; z-index: 1; text-align: center; padding: 10px 16px 90px; font-size: 14px; color: var(--muted); }
footer a { color: inherit; }

.bdm-back { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top,0px) + 14px); left: 50%; transform: translateX(-50%); font: 500 12px/1 Mono,ui-monospace,monospace; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(15,42,30,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 9px 14px; border-radius: 99px; text-decoration: none; white-space: nowrap; }
.bdm-back:focus-visible { outline: 2px solid #FFC23D; outline-offset: 2px; }
@media (max-width: 760px) {
  .bdm-back { top: calc(env(safe-area-inset-top,0px) + 12px); font-size: 11px; padding: 8px 12px; }
  header { padding-top: 54px; }
  .cta { padding: 10px 16px; font-size: 15px; }
  .lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .sky svg { animation: none; } .pop { animation: none; } * { transition: none !important; } }
/* белое облако на белой карточке: тонкий контур, чтобы его было видно */
.card .cloud path { stroke: rgba(40,80,130,.2); stroke-width: 3; }
