/*
 * sequre.site · «День з Хижею»
 * Спершу телефон (сайт = апка), далі ≥ 1024 px — комп'ютер з липким iPhone.
 * Кольори — лише токени з tokens.css; на смузі режиму — лише on-mode-*.
 */

/* ───────── Сітка сторінки ─────────
   Одна ширина вмісту для меню, першого екрана й усіх розділів,
   одні бічні поля й один крок між розділами. */

:root {
  --page-max: 1240px;
  --gutter: 16px;
  --section-gap: 72px;
  --page-box: calc(var(--page-max) + 2 * var(--gutter));
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
    --section-gap: 96px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --section-gap: 120px;
  }
}

/* ───────── Основа ───────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--surface);
  color: var(--ink);
  color-scheme: light;
  transition: background-color 0.6s ease, color 0.6s ease;
}

html[data-theme="night"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font: 400 16px/24px var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
figure,
fieldset {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus-ring, var(--ink));
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--s {
  width: 18px;
  height: 18px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 16px;
  top: -120px;
  padding: 12px 16px;
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Світіння сторінки кольором режиму */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-glow::before,
.page-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(110px);
  transition: background-color 0.6s ease, opacity 0.6s ease;
}

.page-glow::before {
  left: -240px;
  top: -260px;
  width: 820px;
  height: 520px;
  opacity: var(--glow-opacity);
}

.page-glow::after {
  right: -280px;
  top: 58vh;
  width: 620px;
  height: 520px;
  opacity: calc(var(--glow-opacity) * 0.45);
}

/* ───────── Кнопки ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-l);
  font: 600 15px/20px var(--font-text);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--quiet {
  background: var(--quiet-fill);
  color: var(--ink);
}

.btn--action {
  padding: 0 12px;
  border-radius: var(--radius-m);
  font: var(--type-button);
}

.btn--wide {
  width: 100%;
}

.btn--large {
  min-height: 52px;
  padding: 0 22px;
  font: 700 15px/20px var(--font-text);
}

.btn[aria-pressed="true"] {
  background: var(--quiet-fill);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

button:disabled[data-chosen] {
  opacity: 1;
}

.actions {
  display: flex;
  gap: var(--space-2);
}

.actions > * {
  flex: 1 1 0;
}

/* ───────── Меню ───────── */

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px var(--gutter) 0;
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: var(--page-max);
  min-height: 56px;
  margin: 0 auto;
  padding: 6px 6px 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  pointer-events: auto;
}

.nav__brand {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 10px 0;
  text-decoration: none;
}

.brand-name {
  font: 800 24px/1 var(--font-display);
  letter-spacing: -0.02em;
}

.nav__sub {
  font: 600 11px/14px var(--font-text);
  color: var(--ink-muted);
  white-space: nowrap;
}

.nav__links a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 12px;
  border-radius: var(--radius-l);
  font: 600 15px/20px var(--font-text);
  text-decoration: none;
}

.weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap-min);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  font: 600 13px/18px var(--font-text);
  white-space: nowrap;
}

.dialect-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--tap-min);
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  color: var(--ink);
  font: 700 13px/18px var(--font-text);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.dialect-toggle__track {
  position: relative;
  flex: none;
  width: 26px;
  height: 16px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.dialect-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transition: left 0.2s ease;
}

.dialect-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.dialect-toggle[aria-pressed="true"] .dialect-toggle__knob {
  left: 13px;
}

.nav__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: 0;
  border-radius: 50%;
  background: var(--quiet-fill);
  color: var(--ink);
}

@media (max-width: 1023.98px) {
  .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: var(--glass-bar);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-filter);
    backdrop-filter: var(--glass-filter);
  }

  .nav__menu:not([data-open]) {
    display: none;
  }

  .weather {
    align-self: flex-start;
  }
}

@media (max-width: 379.98px) {
  .nav__sub {
    display: none;
  }
}

/* ───────── Перший екран ───────── */

.hero {
  position: relative;
  padding: 84px var(--gutter) 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "card"
    "lede"
    "device"
    "doba";
  gap: 16px;
}

.hero__photos,
.hero__headline {
  grid-area: card;
}

.hero__photos {
  position: relative;
  height: clamp(300px, 84vw, 440px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--media);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
}

.hero__photo--dark {
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero[data-lamps="off"] .hero__photo--dark {
  opacity: 1;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 14, 24, 0.92) 0%, rgba(12, 14, 24, 0.45) 50%, rgba(12, 14, 24, 0) 74%);
}

.hero__glow {
  display: none;
}

.hero__headline {
  position: relative;
  z-index: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  color: var(--on-lock);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/16px var(--font-text);
  color: var(--on-media-strong);
}

.band-square {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--band);
}

.hero__title {
  font: 800 38px/42px var(--font-display);
  letter-spacing: -0.02em;
  color: var(--on-lock);
}

.hero__title-main {
  display: block;
}

/* Що це за сайт — словами, якими шукають: частина H1, видима */
.hero__title-sub {
  display: block;
  margin-top: 12px;
  font: 600 17px/22px var(--font-text);
  letter-spacing: 0;
  color: var(--on-media-strong);
}

.hero__lede {
  grid-area: lede;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__sub {
  font: 400 17px/26px var(--font-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__actions .btn {
  flex: 1 1 auto;
  min-height: 52px;
}

.btn--hero-primary {
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
}

.btn--hero-secondary {
  background: var(--glass-bar);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
}

.hero__device {
  grid-area: device;
}

.hero__doba {
  grid-area: doba;
}

/* ───────── Телефон: рамка лише на комп'ютері ───────── */

.device {
  position: relative;
}

.device__title {
  display: none;
}

.device__glow,
.device__island {
  display: none;
}

.device__chrome {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.energy-strip {
  font: var(--type-strip);
}

.grid-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  vertical-align: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: currentColor;
}

.grid-dot--off {
  background: transparent;
}

.grid-state--offline {
  display: none;
}

html[data-mode="outage"] [data-device="day"] .grid-state--online {
  display: none;
}

html[data-mode="outage"] [data-device="day"] .grid-state--offline {
  display: inline;
}

html[data-mode="outage"] [data-device="day"] .grid-dot {
  background: transparent;
}

/* Перемикач режимів */
.mode-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  height: 56px;
  padding: 4px;
  border-radius: var(--radius-pill);
}

.mode-seg__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font: 700 11px/14px var(--font-text);
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

[data-mode-option="home"] {
  --seg-fill: var(--mode-home);
  --seg-text: var(--on-mode-home);
  --seg-shine: rgba(246, 196, 69, 0.9);
}

[data-mode-option="away"] {
  --seg-fill: var(--mode-away);
  --seg-text: var(--on-mode-away);
  --seg-shine: rgba(44, 75, 176, 0.9);
}

[data-mode-option="night"] {
  /* Активна «Ніч» світліша за смугу, щоб сегмент було видно на нічному склі */
  --seg-fill: #2b3266;
  --seg-text: var(--on-mode-night);
  --seg-shine: rgba(22, 26, 51, 0.9);
}

[data-mode-option="outage"] {
  --seg-fill: var(--mode-outage);
  --seg-text: var(--on-mode-outage);
  --seg-shine: rgba(255, 138, 61, 0.9);
}

.mode-seg__item[aria-current="true"] {
  background: var(--seg-fill);
  color: var(--seg-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 14px -6px var(--seg-shine);
}

/* ───────── Апка: картки, плитки, розмова ───────── */

.app-panel,
.app-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font: var(--type-body);
  color: var(--ink);
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}

.event-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.event-card--reply .event-card__head {
  align-items: flex-start;
}

.event-card--reply:focus {
  outline: none;
}

.event-card--reply:focus-visible {
  outline: 2px solid var(--ink);
}

.event-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-s);
}

.event-icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.event-icon--summary,
.event-icon--home {
  background: var(--mode-home);
  color: var(--on-mode-home);
}

.event-icon--away,
.event-icon--camera {
  background: var(--mode-away);
  color: var(--on-mode-away);
}

.event-icon--night {
  background: var(--mode-night);
  color: var(--on-mode-night);
}

.event-icon--outage {
  background: var(--mode-outage);
  color: var(--on-mode-outage);
}

.event-card__title {
  flex: 1;
  font: var(--type-card-title);
}

.event-card__body {
  font: var(--type-body);
}

.event-card--reply .event-card__body {
  flex: 1;
  padding-top: 1px;
}

.event-card__meta {
  font: var(--type-caption);
  color: var(--ink-muted);
}

.reply-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.reply-feed:empty {
  display: none;
}

.section-label {
  padding: 4px 6px 0;
  font: var(--type-section-label);
  letter-spacing: var(--tracking-section-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Батарея */
.battery-tile {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
}

.battery-gauge {
  position: relative;
  flex: none;
  width: 46px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--quiet-fill);
}

.battery-gauge__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--charge);
  background: var(--band);
  transition: background-color 0.6s ease;
}

.battery-gauge__wave {
  position: absolute;
  left: 0;
  bottom: calc(var(--charge) - 1px);
  width: 92px;
  max-width: none;
  height: 8px;
  fill: var(--band);
  animation: khz-wave 2.8s linear infinite;
}

@keyframes khz-wave {
  to {
    transform: translateX(-46px);
  }
}

.battery-tile__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.battery-tile__value {
  font: var(--type-number-xl);
}

.battery-tile__caption {
  font: var(--type-caption);
  color: var(--ink-muted);
}

/* Черга відключення */
.queue {
  overflow: hidden;
  border-radius: var(--radius-l);
}

.queue__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap-min);
  padding: 8px 14px;
}

.queue__row + .queue__row {
  border-top: 1px solid var(--line);
}

.queue__name {
  font: var(--type-body-strong);
}

.queue__status {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  color: var(--ink);
  font: 600 12px/16px var(--font-text);
  white-space: nowrap;
}

.queue__status[data-state="shed"] {
  background: var(--mode-outage);
  color: var(--on-mode-outage);
}

.queue__status[data-state="timed-run"] {
  background: var(--ink);
  color: var(--on-ink);
}

/* Кімнати */
.room-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.room-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-l);
}

.room-tile__name {
  font: var(--type-caption);
  color: var(--ink-muted);
}

.room-tile__value {
  font: var(--type-number-l);
}

/* Смужка «Без інтернету» */
.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  font: var(--type-strip);
}

/* Камери */
.cam {
  --focus-ring: var(--on-media-strong);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1344 / 768;
  border-radius: var(--radius-l);
  background: var(--media);
  color: var(--on-media);
}

.cam > img,
.cam > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam__top {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  color: var(--on-media);
  font: 600 11px/14px var(--font-display);
}

.cam__name {
  color: var(--on-media-strong);
  font-weight: 700;
}

.cam__det,
.cam__live {
  position: absolute;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(28, 36, 32, 0.82);
  color: var(--on-media-strong);
  font: 700 11px/16px var(--font-text);
}

.cam__det {
  left: 8px;
}

.cam__live {
  right: 10px;
}

.cam__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-media-strong);
  animation: khz-pulse 1.6s ease-in-out infinite;
}

@keyframes khz-pulse {
  50% {
    opacity: 0.25;
  }
}

.cam__grain {
  position: absolute;
  inset: -10%;
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: khz-grain 0.5s steps(4) infinite;
}

@keyframes khz-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-2%, -4%); }
  100% { transform: translate(0, 0); }
}

.cam__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: auto;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 36, 32, 0.82);
  color: var(--on-media-strong);
}

/* Розмова */
.chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  font: var(--type-body);
}

.bubble--mine {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--ink);
  color: var(--on-ink);
}

.bubble--khyzha {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px 18px 18px 6px;
  background: var(--glass-tile);
  box-shadow: var(--glass-shadow);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  min-height: var(--tap-min);
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  color: var(--ink);
  font: var(--type-button);
  text-align: left;
}

.chip[data-chosen] {
  background: var(--ink);
  color: var(--on-ink);
}

.say {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 4px 4px 4px 18px;
  border-radius: var(--radius-pill);
}

.composer:focus-within {
  box-shadow: var(--glass-shadow), 0 0 0 2px var(--ink);
}

.composer__input {
  flex: 1;
  min-width: 0;
  height: var(--tap-min);
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  /* 16 px, а не 15 з токена: iPhone не збільшує сторінку при фокусі */
  font: 400 16px/20px var(--font-text);
}

.composer__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.composer__send,
.composer-link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
}

.composer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 4px 4px 4px 18px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font: var(--type-input);
  text-decoration: none;
}

.composer-link > span:first-child {
  flex: 1;
}

.panel-note {
  font: var(--type-caption);
  color: var(--ink-muted);
  text-align: center;
}

/* Екран блокування і «Доба» */
.app-panel--lock {
  --focus-ring: var(--on-lock);
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(12, 14, 24, 0.5) 0%, rgba(12, 14, 24, 0.86) 70%),
    url("../media/hero-dark.jpg") 58% 50% / cover no-repeat,
    var(--night-surface);
  color: var(--on-lock);
}

.lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 26px 14px 16px;
}

.lock__clock {
  font: var(--type-clock);
  letter-spacing: var(--tracking-clock);
  color: var(--on-lock);
}

.doba {
  --focus-ring: var(--on-lock);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border-radius: 26px;
  background: var(--lock-surface);
  color: var(--on-lock);
  text-align: center;
}

.doba__head {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: var(--type-caption);
  color: var(--on-lock-muted);
}

.doba__label {
  font: var(--type-section-label);
  letter-spacing: var(--tracking-section-label);
  text-transform: uppercase;
}

.doba__ring {
  width: 180px;
  height: 180px;
}

.doba__track {
  fill: none;
  stroke: rgba(226, 229, 246, 0.14);
  stroke-width: 12;
}

.doba__outage {
  fill: none;
  stroke: var(--mode-outage);
  stroke-width: 12;
  stroke-linecap: round;
}

.doba__now {
  fill: var(--on-lock);
  stroke: var(--lock-surface);
  stroke-width: 3;
}

.doba__hour,
.doba__value,
.doba__unit {
  text-anchor: middle;
}

.doba__hour {
  fill: var(--on-lock-muted);
  font: 400 10px var(--font-display);
}

.doba__value {
  fill: var(--on-lock);
  font: 800 30px var(--font-display);
}

.doba__unit {
  fill: var(--on-lock-muted);
  font: 400 11px var(--font-text);
}

.doba__title {
  font: var(--type-card-title);
}

.doba__next {
  font: 400 13px/18px var(--font-text);
  color: var(--on-lock-muted);
}

/* ───────── День з Хижею ───────── */

.section-title {
  font: 800 34px/38px var(--font-display);
  letter-spacing: -0.025em;
}

/* Надрядок розділу: що тут, звичайними словами пошуку */
.section-eyebrow {
  margin-bottom: 12px;
  font: var(--type-section-label);
  letter-spacing: var(--tracking-section-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-lead {
  max-width: 720px;
  margin-top: 10px;
  font: 400 17px/26px var(--font-text);
  color: var(--ink-muted);
}

.day {
  position: relative;
  padding-top: var(--section-gap);
}

.day__intro,
.day__body {
  max-width: var(--page-box);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.day__device {
  display: none;
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 40px 0 8px;
}

/* Остання сцена закінчує день: під нею — лише крок між розділами */
.scene:last-child {
  padding-bottom: 0;
}

.scene__time {
  display: flex;
}

.scene__badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--band);
  color: var(--on-band);
  font: var(--type-pill);
  transition: background-color 0.6s ease, color 0.6s ease;
}

.scene__title {
  font: 800 26px/30px var(--font-display);
  letter-spacing: -0.02em;
}

.scene__text {
  max-width: 560px;
  font: 400 17px/26px var(--font-text);
}

.scene__slot {
  align-self: stretch;
  margin-top: 6px;
}

/* На телефоні панель — вікно апки просто в сцені (екран блокування має своє тло) */
.scene__slot > .app-panel:not(.app-panel--lock) {
  padding: 12px;
  border-radius: 30px;
  background: var(--glass-bar);
  box-shadow: var(--glass-shadow);
}

/* Перемикач «Вимкнути інтернет» */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--glass-bar);
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  font: 700 15px/20px var(--font-text);
}

.switch__track {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  box-shadow: inset 0 0 0 1.5px var(--ink-muted);
  transition: background-color 0.25s ease;
}

.switch__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transition: left 0.2s ease, background-color 0.25s ease;
}

.switch[aria-checked="true"] .switch__track {
  background: var(--ink);
  box-shadow: none;
}

.switch[aria-checked="true"] .switch__knob {
  left: 22px;
  background: var(--on-ink);
}

/* ───────── З якими системами працює ───────── */

.systems {
  max-width: var(--page-box);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.systems__groups {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.systems__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
}

.systems__title {
  font: 700 22px/26px var(--font-display);
}

.systems__note {
  color: var(--ink-muted);
}

.systems__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-l);
  background: var(--quiet-fill);
}

.system__name {
  font: var(--type-body-strong);
}

.system__what {
  font: 400 13px/18px var(--font-text);
  color: var(--ink-muted);
}

.systems__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.systems__chips li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  font: var(--type-button);
}

.systems__fine {
  max-width: 760px;
  margin-top: 24px;
  font: 400 13px/19px var(--font-text);
  color: var(--ink-muted);
}

.hero__systems {
  font: 500 14px/20px var(--font-text);
  color: var(--ink-muted);
}

.hero__systems a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────── Ціни ───────── */

.prices {
  max-width: var(--page-box);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.price-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
}

.price-card__name {
  font: 700 22px/26px var(--font-display);
}

.price-card__price {
  font: 800 34px/40px var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price-card__from {
  display: block;
  font: 400 16px/24px var(--font-text);
  letter-spacing: 0;
  color: var(--ink-muted);
}

.price-card__scope {
  font: var(--type-body-strong);
}

.price-card__includes {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.price-card__includes li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 26px;
}

.price-item__title {
  font: var(--type-body-strong);
}

.price-item__text {
  font: 400 13px/18px var(--font-text);
  color: var(--ink-muted);
}

.prices__note {
  max-width: 760px;
  margin: 0 0 20px;
  font: 400 14px/21px var(--font-text);
  color: var(--ink-muted);
}

.prices__note strong {
  color: var(--ink);
  font-weight: 600;
}

/* Галочка: дві сторони рамки, повернуті на 45° */
.price-card__includes li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* ───────── Питання й відповіді ───────── */

.faq {
  max-width: var(--page-box);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.faq__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
}

.faq__q {
  font: 700 19px/24px var(--font-display);
  letter-spacing: -0.01em;
}

.faq__a {
  font: 400 15px/23px var(--font-text);
  color: var(--ink-muted);
}

/* ───────── Заявка ───────── */

/* ol.… — специфічніше за скидання ol[class] */
ol.lead-steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.lead-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font: 400 16px/24px var(--font-text);
  color: var(--ink-muted);
}

.lead-steps strong {
  color: var(--ink);
  font-weight: 600;
}

.lead-steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -4px;
  border-radius: var(--radius-m);
  background: var(--band);
  color: var(--on-band);
  font: 800 15px/1 var(--font-display);
  transition: background-color 0.6s ease, color 0.6s ease;
}

.lead {
  display: grid;
  gap: 24px;
  max-width: var(--page-box);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font: 600 15px/20px var(--font-text);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  color: var(--ink);
  font: 400 16px/22px var(--font-text);
}

.field__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.field__input[aria-invalid="true"] {
  border-width: 2px;
  border-color: var(--ink);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font: 600 14px/20px var(--font-text);
  color: var(--ink);
}

.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font: 800 12px/1 var(--font-display);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--quiet-fill);
  box-shadow: inset 0 0 0 1px var(--ink-muted);
  font: 600 15px/20px var(--font-text);
  cursor: pointer;
}

.choice input:checked + span {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: none;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.choice input[aria-invalid="true"] + span {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap-min);
  font: 600 15px/20px var(--font-text);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--ink);
}

.lead-form__status {
  padding: 14px 16px;
  border-radius: var(--radius-l);
  background: var(--quiet-fill);
  font: 600 15px/22px var(--font-text);
}

/* ───────── Підвал ───────── */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font: 400 14px/20px var(--font-text);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  max-width: var(--page-box);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
}

.site-footer__name {
  margin-right: 6px;
  font: 800 20px/24px var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Цифри — Geologica з табличними цифрами. Стоїть після компонентів:
   шорткат `font:` у компонентах скидає font-variant-numeric. */
.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ───────── Наведення ───────── */

@media (hover: hover) {
  .nav__links a:hover,
  .chip:not(:disabled):hover,
  .btn--quiet:hover {
    background: var(--quiet-fill);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .btn--primary:not([aria-pressed="true"]):hover {
    opacity: 0.88;
  }
}

/* ───────── Ширше за телефон ───────── */

@media (min-width: 720px) {
  .faq__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Планшет: картки цін одна під одною, склад — у дві колонки */
  .price-card__includes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 12px;
  }

  .hero__actions .btn {
    flex: 0 1 auto;
  }
}

/* ───────── Комп'ютер ≥ 1024 px ───────── */

@media (min-width: 1024px) {
  :root {
    /* Масштаб iPhone 390×844 на комп'ютері */
    --device-scale: 0.8;
    --device-width: calc(390px * var(--device-scale));
  }

  html {
    scroll-padding-top: 96px;
  }

  /* Меню в один ряд */
  .site-header {
    padding: 14px var(--gutter) 0;
  }

  .nav {
    gap: 10px 18px;
    padding: 8px 8px 8px 22px;
  }

  .nav__brand {
    flex: none;
  }

  .nav__sub {
    font-size: 12px;
    line-height: 16px;
  }

  .nav__menu {
    display: contents;
  }

  .nav__links {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
  }

  .nav__links a {
    padding: 0 10px;
    font-size: 14px;
  }

  .weather {
    order: 2;
  }

  .dialect-toggle {
    order: 3;
  }

  .nav__cta {
    order: 4;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  .nav__toggle {
    display: none;
  }

  /* Перший екран: місто на все тло, текст ліворуч, iPhone по центру, «Доба» праворуч */
  .hero {
    --focus-ring: var(--on-lock);
    display: flex;
    align-items: center;
    min-height: max(760px, 100vh);
    min-height: max(760px, 100svh);
    padding: 112px var(--gutter) 64px;
    overflow: clip;
    border-radius: 0 0 40px 40px;
    background: var(--night-surface);
    color: var(--on-lock);
  }

  .hero__inner {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) var(--device-width);
    grid-template-areas:
      "headline device"
      "lede device"
      "doba device";
    align-content: center;
    align-items: center;
    column-gap: 48px;
    row-gap: 24px;
  }

  .hero__photos {
    position: absolute;
    inset: 0;
    height: auto;
    border-radius: 0;
  }

  .hero__photo {
    object-position: 62% 50%;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(12, 14, 24, 0.92) 0%, rgba(12, 14, 24, 0.72) 34%, rgba(12, 14, 24, 0.18) 64%, rgba(12, 14, 24, 0.35) 100%),
      linear-gradient(0deg, rgba(12, 14, 24, 0.85) 0%, rgba(12, 14, 24, 0) 30%);
  }

  .hero__glow {
    display: block;
    position: absolute;
    left: 50%;
    top: 140px;
    width: 560px;
    height: 560px;
    margin-left: -120px;
    border-radius: 50%;
    background: var(--band);
    filter: blur(120px);
    opacity: 0.34;
    pointer-events: none;
  }

  .hero__headline {
    grid-area: headline;
    align-self: end;
    gap: 22px;
    max-width: 560px;
    padding: 0;
  }

  .hero__kicker {
    gap: 10px;
    font-size: 13px;
    line-height: 18px;
    color: var(--on-lock-muted);
  }

  .band-square {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-s);
  }

  .hero__title {
    font-size: 68px;
    line-height: 72px;
    letter-spacing: -0.03em;
  }

  .hero__title-sub {
    margin-top: 18px;
    font-size: 20px;
    line-height: 26px;
  }

  .hero__lede {
    position: relative;
    z-index: 1;
    align-self: start;
    gap: 22px;
    max-width: 520px;
  }

  .hero__sub {
    font-size: 18px;
    line-height: 28px;
    color: var(--on-mode-night);
  }

  .btn--hero-primary {
    background: var(--on-lock);
    color: var(--night-surface);
  }

  .btn--hero-secondary {
    background: var(--glass-dark-tile);
    box-shadow: var(--glass-dark-shadow);
    -webkit-backdrop-filter: var(--glass-dark-filter);
    backdrop-filter: var(--glass-dark-filter);
    color: var(--on-lock);
  }

  .hero__device {
    position: relative;
    z-index: 1;
    justify-self: center;
  }

  .hero__doba {
    position: relative;
    z-index: 1;
    max-width: 520px;
  }

  .doba--aside {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "ring title"
      "ring next";
    align-items: center;
    column-gap: 20px;
    row-gap: 6px;
    padding: 18px 22px;
    border-radius: 28px;
    background: var(--glass-dark-sheen), rgba(32, 37, 64, 0.78);
    text-align: left;
  }

  .doba--aside .doba__head { grid-area: head; }
  .doba--aside .doba__ring { grid-area: ring; width: 132px; height: 132px; }
  .doba--aside .doba__title { grid-area: title; align-self: end; }
  .doba--aside .doba__next { grid-area: next; align-self: start; }

  /* Рамка iPhone */
  .device {
    width: calc(390px * var(--device-scale));
    height: calc(844px * var(--device-scale));
    flex: none;
  }

  .device__frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 390px;
    height: 844px;
    padding: 11px;
    border-radius: 62px;
    background: #05060b;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    transform: scale(var(--device-scale));
    transform-origin: 0 0;
  }

  .device__screen {
    --focus-ring: var(--ink);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 368px;
    height: 822px;
    overflow: hidden;
    border-radius: 52px;
    background: var(--surface);
    color: var(--ink);
    transition: background-color 0.6s ease, color 0.6s ease;
  }

  .device__glow {
    display: block;
    position: absolute;
    left: -140px;
    top: -210px;
    width: 640px;
    height: 430px;
    border-radius: 50%;
    background: var(--glow);
    filter: blur(60px);
    opacity: 0.9;
    transition: background-color 0.6s ease;
  }

  .device__island {
    display: block;
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 12px;
    width: 112px;
    height: 32px;
    margin-left: -56px;
    border-radius: var(--radius-pill);
    background: #05060b;
  }

  .device__chrome {
    position: relative;
    z-index: 1;
    flex: none;
    margin: 0;
    padding: 58px 14px 0;
    color: var(--on-band);
    transition: color 0.6s ease;
  }

  .device__title {
    display: block;
    padding: 0 2px;
    font: var(--type-screen-title);
    letter-spacing: var(--tracking-screen-title);
  }

  .energy-strip {
    margin-top: -8px;
    padding: 0 2px;
  }

  .mode-seg {
    color: var(--ink);
  }

  .device__stage {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    padding: 12px 14px 26px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .device__stage::-webkit-scrollbar {
    display: none;
  }

  /* Поле «Скажи Хижі…» на першому екрані — унизу телефона, як в апці */
  .device__stage > .app-stack {
    min-height: 100%;
  }

  .device__stage > .app-stack > .composer-link {
    margin-top: auto;
  }

  .device[data-screen="lock"] .device__screen {
    background: var(--night-surface);
  }

  .device[data-screen="lock"] .device__chrome,
  .device[data-screen="lock"] .device__glow {
    display: none;
  }

  .device[data-screen="lock"] .device__stage {
    padding: 0;
  }

  .device__stage > .app-panel--lock {
    min-height: 100%;
    border-radius: 0;
  }

  .device__stage > .app-panel--lock .lock {
    padding-top: 84px;
  }

  [data-device="day"] .device__stage > .app-panel {
    animation: khz-panel-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  [data-device="day"] .chat[data-say-log] {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  @keyframes khz-panel-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }

  /* День: сцени ліворуч, липкий iPhone праворуч */
  .section-title {
    font-size: 52px;
    line-height: 56px;
  }

  .section-lead {
    font-size: 19px;
    line-height: 28px;
  }

  .day__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(40px, 6vw, 96px);
  }

  .day__device {
    display: block;
    position: sticky;
    top: max(96px, calc(50vh - 422px * var(--device-scale) + 20px));
    align-self: start;
    margin-top: 48px;
  }

  .scene {
    justify-content: center;
    gap: 18px;
    min-height: 82vh;
    min-height: 82svh;
    padding: 72px 0;
  }

  /* Перша сцена — одразу під вступом, поруч із телефоном */
  .scene:first-child {
    justify-content: flex-start;
    padding-top: 56px;
  }

  /* Остання — текст унизу, урівень з низом iPhone: день закінчується
     одним краєм в обох колонках, і над «Дружить майже з усіма»
     той самий крок, що між іншими розділами. Висота 50vh — щоб сцена
     ставала активною, поки iPhone ще стоїть на місці. */
  .scene:last-child {
    justify-content: flex-end;
    min-height: 50vh;
    min-height: 50svh;
    padding-bottom: 0;
  }

  .scene__title {
    max-width: 600px;
    font-size: 38px;
    line-height: 42px;
    letter-spacing: -0.025em;
  }

  .scene__text {
    font-size: 19px;
    line-height: 29px;
  }

  .scene__slot {
    display: none;
  }

  .systems__groups {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .price-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-card__includes {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__systems {
    color: var(--on-lock-muted);
  }

  .lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 48px;
  }

  .lead__intro {
    position: sticky;
    top: 120px;
  }

  .lead-form {
    padding: 28px;
  }

  .faq__item {
    padding: 24px;
  }

  .faq__q {
    font-size: 21px;
    line-height: 26px;
  }
}

/* Широкий комп'ютер: «Доба» окремою колонкою праворуч */
@media (min-width: 1200px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) var(--device-width) minmax(240px, 280px);
    grid-template-areas:
      "headline device doba"
      "lede device doba";
    column-gap: 40px;
  }

  .doba--aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px;
    text-align: center;
  }

  .doba--aside .doba__ring {
    width: 180px;
    height: 180px;
  }

  .doba--aside .doba__title,
  .doba--aside .doba__next {
    align-self: auto;
  }
}

/* Невисокий екран: iPhone менший, щоб уміщався повністю */
@media (min-width: 1024px) and (max-height: 820px) {
  :root {
    --device-scale: 0.7;
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  :root {
    --device-scale: 0.6;
  }
}

/* Вузький комп'ютер: меню щільніше, щоб уміщалось в один ряд */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .nav {
    gap: 10px;
  }

  .nav__sub {
    display: none;
  }

  .nav__links {
    flex-wrap: nowrap;
  }

  .nav__links a {
    padding: 0 8px;
    white-space: nowrap;
  }

  /* Лишаємо температуру, назву міста — лише для екранних читалок */
  .weather__place {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ───────── Без руху ───────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
