/* Phones and tablets.
   Phones (≤767): Figma frame «Home — Mobile 390» (53:489), «Mobile — Menu (open)» (58:805),
   interaction notes 58:870. The sticky call-to-action bar of the design was removed on request. Tablets (768–1099) have no frame in
   the file: they keep the narrow desktop layout with the phone's menu and patterns.
   --mk: one design pixel of the 390 frame. */
@property --mk { syntax: "<length>"; inherits: true; initial-value: 1px; }

/* parts that exist for one size only */
@media (min-width: 768px) { .m-only { display: none !important; } }
@media (max-width: 767px) { .d-only { display: none !important; } }
@media (min-width: 1100px) { .menu, .icon-btn--call, .panel__notch-m { display: none !important; } }
@media (min-width: 768px) { .panel__notch-m { display: none; } }

/* ───────────── Full-screen menu (≤1099) ───────────── */
.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 20px 20px calc(32px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--color-bg-strong);
  color: var(--color-text-inverse);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[open] { display: flex; flex-direction: column; gap: 32px; animation: menu-fade .3s ease both; }
.menu::backdrop { background: var(--color-bg-strong); }
.menu__top { display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu .logo { color: #fff; font-family: var(--font-nav); font-weight: 500; font-size: 25px; gap: 10px; }
.menu .logo img { width: 30px; height: 30px; }
.menu__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(251 247 239 / .15); border-radius: 50%; }
.menu__close i { width: 20px; height: 20px; background: url("../assets/mobile/close.svg") center / 11.8px 11.8px no-repeat; }
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-top: 1px solid rgb(251 247 239 / .15);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 30.24px;
  letter-spacing: -.02em;
}
.menu__link[aria-current] { color: var(--color-bg-accent); }
.menu__link i { width: 20px; height: 20px; background: url("../assets/mobile/arrow.svg") center / 10.13px 10.13px no-repeat; }
.menu__link[aria-current] i { background-image: url("../assets/mobile/arrow-accent.svg"); }
.menu__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.menu__phone { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 30.24px; letter-spacing: -.02em; color: var(--color-bg-accent); }
.menu__hours { font-size: 12px; line-height: 15px; color: var(--color-text-inverse-muted); }
.menu__cta { width: 100%; padding: 19px 32px 17px; font-size: 16px; line-height: 20px; }
.menu :focus-visible { outline: 2px solid var(--color-bg-accent); outline-offset: 3px; }
/* the items arrive one after another */
.menu[open] .menu__list li { animation: menu-in .55s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(80ms + var(--i) * 55ms); }
.menu[open] .menu__foot { animation: menu-in .55s cubic-bezier(.23, 1, .32, 1) .42s both; }
@keyframes menu-fade { from { opacity: 0; } }
@keyframes menu-in { from { opacity: 0; translate: 0 18px; } }
html:has(.menu[open]) { overflow: hidden; }

/* ───────────── Header (≤1099) ───────────── */
@media (max-width: 1099px) {
  .header .icon-btn--call { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-border-on-photo-muted); background: rgb(255 255 255 / .14); }
  .icon-btn--call span { width: 20px; height: 20px; background: url("../assets/mobile/call.svg") center / 16px 16px no-repeat; }
  .header .burger { width: 44px; height: 44px; border: 1px solid var(--color-border-on-photo-muted); background: rgb(255 255 255 / .14); }
  .header .burger span { width: 20px; height: 20px; background: url("../assets/mobile/burger.svg") center / 15.13px 8.47px no-repeat; }
  .header .burger span::before, .header .burger span::after { display: none; }
  .header .actions .btn { display: none; }
  .header .nav { display: none; }
}

@media (max-width: 767px) {
  .page > * { --mk: min(100cqw / 390, 1.2px); }
  .scale { --u: var(--mk); --ui: var(--mk); }
  /* ───────────── Header ───────────── */
  .header { top: calc(20 * var(--mk)); right: calc(20 * var(--mk)); left: calc(20 * var(--mk)); }
  .header .logo { gap: calc(10 * var(--mk)); font-size: calc(25 * var(--mk)); letter-spacing: -.04em; }
  .header .logo img { width: calc(30 * var(--mk)); height: calc(30 * var(--mk)); }
  .header .actions { gap: calc(8 * var(--mk)); }
  .header .icon-btn--call, .header .burger { width: calc(44 * var(--mk)); height: calc(44 * var(--mk)); }

  /* ───────────── Hero (63:596, 390 × 1201) ───────────── */
  .hero { display: block; height: calc(1201 * var(--mk)); background: var(--color-bg-sky); }
  .hero__media { --lift: 0px; position: absolute; inset: 0 0 auto; z-index: -1; height: calc(711 * var(--mk)); overflow: hidden; }
  .hero__photo, .hero__house {
    position: absolute;
    top: 0;
    left: calc(50% - 621.1 * var(--mk)); /* the design's crop, mirrored with the picture */
    width: calc(1247.2 * var(--mk));
    height: calc(711 * var(--mk));
    max-width: none;
  }
  .hero__tint {
    top: 0;
    height: calc(711 * var(--mk));
    background:
      linear-gradient(rgb(28 27 25 / .35), rgb(28 27 25 / 0) calc(160 * var(--mk))),
      linear-gradient(var(--color-bg-sky), rgb(157 172 185 / 0) 37.311%);
  }
  .hero__shade { top: 0; height: calc(711 * var(--mk)); background: linear-gradient(rgb(44 50 56 / 0) 30.168%, rgb(28 27 25 / .6) 86.034%); }
  .hero__wordmark {
    --bleed: calc(8 * var(--mk));
    top: calc(96 * var(--mk) - var(--bleed));
    left: calc(20 * var(--mk));
    translate: none;
    padding: var(--bleed) var(--bleed) var(--bleed) 0;
    font-size: calc(86 * var(--mk));
    line-height: .74;
    letter-spacing: -.04em;
    background: linear-gradient(#fff var(--bleed), rgb(255 255 255 / .2) calc(100% - var(--bleed)));
    -webkit-background-clip: text;
    background-clip: text;
  }

  .hero__intro {
    position: absolute;
    top: calc(414 * var(--mk));
    bottom: auto;
    left: calc(20 * var(--mk));
    gap: calc(13 * var(--mk));
    min-height: 0;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
  }
  .overline {
    gap: calc(8 * var(--mk));
    height: calc(32 * var(--mk));
    min-height: 0;
    padding: 0 calc(12 * var(--mk));
    font-family: var(--font-ui);
    font-size: calc(13 * var(--mk));
    white-space: nowrap;
  }
  .overline__dot { width: calc(6 * var(--mk)); height: calc(6 * var(--mk)); }
  .hero__title { margin-left: calc(-2 * var(--mk)); font-size: calc(60 * var(--mk)); line-height: .92; letter-spacing: calc(-2.7 * var(--mk)); }

  /* the notched sheet: 390 × 591 from y 610; «Каталог» sits in the notch */
  .panel { position: absolute; top: calc(610 * var(--mk)); right: 0; bottom: auto; left: 0; display: block; height: calc(591 * var(--mk)); padding: 0; background: none; }
  .panel__shape { display: block; position: absolute; inset: 0; }
  .panel__shape::before, .panel__shape::after, .panel__notch-d { display: none; }
  .panel__shape svg.panel__notch-m { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; }
  .panel__cta { position: absolute; top: calc(22 * var(--mk)); left: 50%; width: auto; order: 0; translate: -50% var(--lift, 0px); }
  .panel__calc { position: absolute; top: calc(128 * var(--mk)); right: calc(20 * var(--mk)); left: calc(20 * var(--mk)); translate: 0 var(--lift, 0px); }
  .about, .review { position: absolute; right: calc(20 * var(--mk)); left: calc(20 * var(--mk)); width: auto; max-width: none; margin: 0; translate: 0 var(--lift, 0px); }
  .about { top: calc(212 * var(--mk)); gap: calc(16 * var(--mk)); }
  .ring { width: calc(40 * var(--mk)); height: calc(40 * var(--mk)); border-width: .909px; }
  .about__text { font-size: calc(17 * var(--mk)); line-height: calc(25.5 * var(--mk)); }
  /* same order as on the desktop: label, quote, author, stars with the score */
  .review {
    top: calc(372 * var(--mk));
    gap: calc(12 * var(--mk));
    padding-top: calc(20 * var(--mk));
    border-top: 1px solid rgb(28 27 25 / .12);
  }
  .review__label { font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .review blockquote { font-size: calc(18 * var(--mk)); line-height: calc(24.3 * var(--mk)); }
  .review figcaption { gap: calc(12 * var(--mk)); }
  .review__author { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .review__stars { gap: calc(4 * var(--mk)); }
  .review__stars img { width: calc(18 * var(--mk)); height: calc(18 * var(--mk)); }
  .review figcaption strong { font-size: calc(18 * var(--mk)); line-height: calc(22 * var(--mk)); }

  /* ───────────── 02 «Рішення» (53:552): a swipe row with a pager ───────────── */
  .solutions.section { gap: calc(24 * var(--mk)); padding: calc(40 * var(--mk)) calc(20 * var(--mk)) calc(64 * var(--mk)); }
  .solutions .section-head { gap: calc(24 * var(--mk)); }
  .section-head__title { gap: calc(24 * var(--mk)); }
  .solutions__cards {
    display: flex;
    gap: calc(12 * var(--mk));
    margin: 0 calc(-20 * var(--mk));
    padding: 0 calc(20 * var(--mk));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: calc(20 * var(--mk));
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .solutions__cards::-webkit-scrollbar { display: none; }
  .solutions__cards > * { flex: 0 0 calc(300 * var(--mk)); height: calc(500 * var(--mk)); min-height: 0; scroll-snap-align: start; }
  /* scoped to section 02: the story's full-screen scenes use the same class names and keep the
     desktop's look (white figure card, three points, power range) */
  .solutions .solution { display: block; padding: 0; border-radius: calc(28 * var(--mk)); }
  .solutions .solution__shade { height: calc(360 * var(--mk)); background: linear-gradient(rgb(28 27 25 / 0), rgb(28 27 25 / .6) 40%, rgb(28 27 25 / .92)); }
  .solutions .solution__tag {
    position: absolute;
    top: calc(16 * var(--mk));
    left: calc(16 * var(--mk));
    gap: calc(8 * var(--mk));
    padding: calc(4 * var(--mk)) calc(12 * var(--mk)) calc(4 * var(--mk)) calc(4 * var(--mk));
    font-size: calc(12 * var(--mk));
    white-space: nowrap;
  }
  .solutions .solution__tag-icon { width: calc(24 * var(--mk)); height: calc(24 * var(--mk)); background-position: center; }
  .solutions .solution__tag-icon--house { background-image: url("../assets/mobile/tag-house.svg"); background-size: calc(11.66 * var(--mk)) calc(11.1 * var(--mk)); }
  .solutions .solution__tag-icon--factory { background-image: url("../assets/mobile/tag-factory.svg"); background-size: calc(12.63 * var(--mk)) calc(9.93 * var(--mk)); }
  .solutions .solution__stat {
    position: absolute;
    top: calc(281 * var(--mk));
    left: calc(16 * var(--mk));
    flex-direction: row;
    align-items: baseline;
    gap: calc(8 * var(--mk));
    width: auto;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .solutions .solution__stat strong { font-size: calc(30 * var(--mk)); line-height: calc(37 * var(--mk)); color: var(--color-bg-accent); }
  .solutions .solution__stat span { width: auto; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); color: var(--color-text-on-photo-muted); }
  .solutions .solution__content { position: absolute; top: calc(330 * var(--mk)); right: calc(16 * var(--mk)); bottom: auto; left: calc(16 * var(--mk)); width: auto; margin: 0; padding: 0; gap: calc(12 * var(--mk)); }
  .solutions .solution__title { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .solutions .solution__benefits { gap: calc(12 * var(--mk)); width: 100%; }
  .solutions .solution__benefits li { gap: calc(8 * var(--mk)); font-size: calc(13 * var(--mk)); line-height: calc(16 * var(--mk)); }
  .solutions .solution__benefits li:nth-child(3) { display: none; }
  .solutions .solution__benefits li::before {
    width: calc(22 * var(--mk));
    height: calc(22 * var(--mk));
    background: rgb(255 255 255 / .14) url("../assets/mobile/check.svg") no-repeat center;
    background-size: calc(9.2 * var(--mk)) auto;
  }
  .solutions .solution__footer .btn { padding: calc(13 * var(--mk)) calc(22 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(18 * var(--mk)); }
  .solutions .solution__power { display: none; }

  .dealers { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; padding: calc(24 * var(--mk)); border-radius: calc(28 * var(--mk)); }
  .dealers__top { display: flex; flex-direction: column; align-items: flex-start; gap: calc(16 * var(--mk)); }
  .dealers__badge { width: calc(44 * var(--mk)); height: calc(44 * var(--mk)); background-image: url("../assets/mobile/dealer.svg"); background-size: calc(18.2 * var(--mk)) auto; }
  .dealers__title { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); }
  .dealers__proof strong { font-size: calc(60 * var(--mk)); line-height: calc(55.2 * var(--mk)); letter-spacing: -.045em; }
  .dealers__perks { display: none; }
  .dealers__text { font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); color: var(--color-text-inverse-muted); }
  .dealers .btn { width: 100%; padding: calc(13 * var(--mk)) calc(22 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(18 * var(--mk)); }

  .pager { display: flex; gap: calc(6 * var(--mk)); align-self: flex-start; }
  .pager button { width: calc(6 * var(--mk)); height: calc(6 * var(--mk)); padding: 0; border: 0; border-radius: var(--radius-full); background: rgb(28 27 25 / .12); transition: width .35s cubic-bezier(.23, 1, .32, 1), background-color .35s ease; }
  .pager button[aria-current] { width: calc(24 * var(--mk)); background: var(--color-bg-strong); }

  /* shared section heads */
  .section-index { padding: calc(9 * var(--mk)) calc(12 * var(--mk)) calc(7 * var(--mk)); }
  .section-index::before { width: calc(6 * var(--mk)); height: calc(6 * var(--mk)); }
  .solutions .section-title, .section-title { font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; }
  .section-lead { font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
}

/* ───────────── 03 «Каталог» (53:640) ───────────── */
@media (max-width: 767px) {
  .catalog.section { gap: calc(24 * var(--mk)); padding: calc(32 * var(--mk)) calc(20 * var(--mk)) calc(64 * var(--mk)); }
  .catalog .section-head { gap: calc(24 * var(--mk)); }
  .catalog__intro { align-self: stretch; }
  .catalog__actions { display: block; width: 100%; }
  .catalog .search { width: 100%; height: calc(56 * var(--mk)); gap: calc(12 * var(--mk)); padding: 0 calc(20 * var(--mk)); background: var(--color-bg-surface); }
  .catalog .search__icon { width: calc(18 * var(--mk)); height: calc(18 * var(--mk)); background-size: calc(13.8 * var(--mk)); }
  .catalog .search input { font-size: max(16px, calc(15 * var(--mk))); } /* 16px: phones don't zoom into the field */
  .catalog .search input::placeholder { font-size: calc(15 * var(--mk)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: calc(12 * var(--mk)); }
  .tile { --t: var(--mk); gap: 0; aspect-ratio: auto; height: calc(200 * var(--mk)); min-height: 0; padding: calc(14 * var(--mk)); border-radius: calc(22 * var(--mk)); }
  .tile__photo { object-position: 100% 50%; }
  .tile--kits { grid-column: span 2; grid-row: auto; gap: calc(12 * var(--mk)); height: calc(380 * var(--mk)); margin-bottom: calc(12 * var(--mk)); padding: calc(20 * var(--mk)); border-radius: calc(28 * var(--mk)); background: #f1ece6; }
  .tile--kits .tile__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; order: 0; object-position: 100% 50%; }
  .tile--kits .tile__title { top: 0; max-width: calc(184 * var(--mk)); font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .tile--kits .tile__text { display: none; }
  .tile--kits .tags { max-width: calc(184 * var(--mk)); gap: calc(6 * var(--mk)); }
  .tile--kits .tags li { padding: calc(4 * var(--mk)) calc(12 * var(--mk)); font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .tile--kits .tile__cta { position: absolute; bottom: auto; top: calc(316 * var(--mk)); left: calc(20 * var(--mk)); padding: calc(13 * var(--mk)) calc(22 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(18 * var(--mk)); }
  .tile--kits .tile__num { top: calc(22 * var(--mk)); right: calc(20 * var(--mk)); font-size: calc(14 * var(--mk)); }
  .tile--category .tile__title { max-width: calc(141 * var(--mk)); font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; }
  .tile--category .tile__num { top: auto; right: auto; bottom: calc(14 * var(--mk)); left: calc(14 * var(--mk)); font-weight: 500; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); letter-spacing: 0; }
  .tile--category .tags, .tile--category .tile__go { display: none; }
  .tile--stat { order: 1; justify-content: space-between; align-items: flex-start; gap: 0; padding: calc(16 * var(--mk)); }
  .tile--stat .tile__label { font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .tile--stat .tile__figure { display: flex; flex-direction: column; gap: calc(4 * var(--mk)); }
  .tile--stat .tile__big { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; white-space: nowrap; }
  .tile--stat .tile__figure p:not(.tile__big) { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .tile--stat > :not(.tile__label):not(.tile__figure) { display: none; }
  .catalog__all { width: 100%; padding: calc(19 * var(--mk)) 0 calc(17 * var(--mk)); font-size: calc(16 * var(--mk)); line-height: calc(20 * var(--mk)); }
  .catalog .more { display: flex; flex-direction: column; align-items: flex-start; gap: calc(24 * var(--mk)); margin: 0; }
  .more__label { font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .more__list { display: flex; flex-wrap: wrap; gap: calc(8 * var(--mk)); }
  .more__list .pill { padding: calc(8 * var(--mk)) calc(16 * var(--mk)); font-size: calc(13 * var(--mk)); line-height: calc(16 * var(--mk)); }
  .more__list li:nth-child(5) { display: none; } /* «Технічна документація» is not in the phone design */
}

/* ───────────── 04 «Як ми працюємо» (55:495, Process Scene / Mobile 54:436) ───────────── */
@media (max-width: 767px) {
  .process { --s: var(--mk); }
  .process--phone .process__pin { position: static; display: block; height: auto; padding: 0; }
  .process--phone .process__track { height: auto; }
  .process--phone .process__canvas { display: flex; flex-direction: column; gap: calc(24 * var(--mk)); width: auto; height: auto; padding: calc(64 * var(--mk)) calc(20 * var(--mk)); }
  .process--phone .process__story { height: auto; margin: 0; }
  .process--phone .process__scene { position: static; display: flex; flex-direction: column; align-items: flex-start; gap: calc(20 * var(--mk)); max-width: none; height: auto; margin: 0; padding: 0; }
  .process--phone .process__scene > * { position: static; order: 3; }
  .process--phone .process__head { order: 0; display: flex; flex-direction: column; align-items: flex-start; gap: calc(24 * var(--mk)); margin-bottom: calc(4 * var(--mk)); }
  .process--phone .process__index { padding: calc(9 * var(--mk)) calc(12 * var(--mk)) calc(7 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .process--phone .process__index::before { width: calc(6 * var(--mk)); height: calc(6 * var(--mk)); }
  .process--phone .process__title { margin: 0; font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; white-space: normal; color: var(--color-text-inverse); }

  /* the house: a square picture, its pins in the same spots as on the desktop stage */
  .process--phone .stage-box { order: 1; display: block; width: 100%; height: auto; aspect-ratio: 1; container-type: normal; flex: none; }
  .process--phone .stage { --t: calc(var(--mk) * 350 / 872); width: calc(350 * var(--mk)); height: calc(350 * var(--mk)); --r: calc(28 * var(--mk)); touch-action: pan-y; cursor: grab; }
  .process--phone .stage__picture { left: 0; width: 100%; height: 100%; }
  .process--phone .pin { left: calc((var(--x) + 116) * var(--t)); }
  .process--phone .pin::before { width: calc(22 * var(--mk)); height: calc(22 * var(--mk)); }
  .process--phone .pin::after { width: calc(8 * var(--mk)); height: calc(8 * var(--mk)); }
  .process--phone .pins:not([data-step="3"]) .pin:nth-child(n+2), .process--phone .pins[data-step="3"] .pin:first-child { display: none; }
  .process--phone .pin .pin__label {
    top: calc(-11.5 * var(--mk));
    padding: calc(4 * var(--mk)) calc(12 * var(--mk));
    font-size: calc(12 * var(--mk));
    line-height: calc(15 * var(--mk));
  }
  .process--phone .pin__label::before { width: calc(16 * var(--mk)); }
  .process--phone .pin--right .pin__label { left: calc(27 * var(--mk)); }
  .process--phone .pin--left .pin__label { right: calc(27 * var(--mk)); }
  /* step 4's second pin reads to the right on the phone */
  .process--phone .pins[data-step="3"] .pin__label { right: auto; left: calc(27 * var(--mk)); }
  .process--phone .pins[data-step="3"] .pin__label::before { left: auto; right: 100%; }
  .process--phone .status, .process--phone .flow {
    top: calc(300 * var(--mk));
    padding: calc(8 * var(--mk)) calc(16 * var(--mk));
    font-size: calc(12 * var(--mk));
    line-height: calc(15 * var(--mk));
    white-space: nowrap;
  }
  .process--phone .flow { gap: calc(4 * var(--mk)); }
  .process--phone .flow p { flex-direction: row; gap: calc(4 * var(--mk)); }
  .process--phone .flow span, .process--phone .flow strong, .process--phone .flow i { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); font-weight: 500; color: var(--color-text-inverse); }

  /* big number, step, text, chips */
  .process--phone .odo { order: 2; display: flex; align-items: flex-start; gap: calc(10 * var(--mk)); }
  .process--phone .odo { --n: calc(72 * var(--mk)); } /* the design's 96, made smaller on request */
  .process--phone .odo__number { font-size: var(--n); line-height: calc(var(--n) * .88); letter-spacing: -.05em; }
  .process--phone .odo__window { width: calc((var(--digit, 38) + 16) * var(--mk)); margin-right: calc(-16 * var(--mk)); height: calc(var(--n) * .88); }
  .process--phone .odo__reel { translate: 0 calc(var(--index, 0) * var(--n) * -.88); }
  .process--phone .odo__reel > span { height: calc(var(--n) * .88); }
  .process--phone .odo__of { padding-top: calc(8 * var(--mk)); font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .process--phone .steps { width: auto; display: grid; margin: 0; }
  .process--phone .step { grid-area: 1 / 1; gap: calc(20 * var(--mk)); opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity .2s ease, translate .2s ease, visibility 0s .2s; }
  .process--phone .step.is-active { opacity: 1; visibility: visible; translate: none; transition: opacity .45s ease .12s, translate .55s cubic-bezier(.23, 1, .32, 1) .12s; }
  .process--phone .step__title { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .process--phone .step__num { display: none; }
  .process--phone .step__body { gap: calc(20 * var(--mk)); }
  .process--phone .step__text { width: auto; font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .process--phone .step__chips li, .process--phone .step__chips li:first-child { padding: calc(8 * var(--mk)) calc(12 * var(--mk)); font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }

  /* timeline: nodes at 8 · 91.5 · 175 · 258.5 · 342 of 350 */
  .process--phone .timeline { order: 4; position: relative !important; top: 0; width: calc(350 * var(--mk)); height: calc(48 * var(--mk)); }
  .process--phone .timeline__track, .process--phone .timeline__fill { top: calc(13 * var(--mk)); right: auto; left: calc(8 * var(--mk)); width: calc(334 * var(--mk)); height: calc(2 * var(--mk)); }
  .process--phone .timeline__node { top: 0; width: calc(56 * var(--mk)); height: calc(28 * var(--mk)); }
  .process--phone .timeline__node:nth-of-type(1) { left: calc(-20 * var(--mk)); }
  .process--phone .timeline__node:nth-of-type(2) { left: calc(63.5 * var(--mk)); }
  .process--phone .timeline__node:nth-of-type(3) { left: calc(147 * var(--mk)); }
  .process--phone .timeline__node:nth-of-type(4) { left: calc(230.5 * var(--mk)); }
  .process--phone .timeline__node:nth-of-type(5) { left: calc(314 * var(--mk)); }
  .process--phone .timeline__node::before { width: calc(9 * var(--mk)); height: calc(9 * var(--mk)); }
  .process--phone .timeline__node.is-active::before { width: calc(28 * var(--mk)); height: calc(28 * var(--mk)); }
  .process--phone .timeline__node.is-active::after { width: calc(12 * var(--mk)); height: calc(12 * var(--mk)); }
  .process--phone .timeline__node::after { content: ""; }
  .process--phone .timeline__node > span { top: calc(32 * var(--mk)); right: auto; left: 50%; translate: -50% 0; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .process--phone .timeline__node > span span { position: static; font-size: inherit; line-height: inherit; translate: none; }

  /* calculator card */
  .process--phone .process__canvas > .calc { display: flex; flex-direction: column; gap: calc(16 * var(--mk)); max-width: none; margin: 0; padding: calc(24 * var(--mk)); border-radius: calc(28 * var(--mk)); }
  .process--phone .calc__head { gap: calc(16 * var(--mk)); }
  .process--phone .calc__title { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); }
  .process--phone .calc__badge { padding: calc(4 * var(--mk)) calc(12 * var(--mk)); }
  .process--phone .calc__field { gap: calc(16 * var(--mk)); }
  .process--phone .segmented span { height: calc(40 * var(--mk)); font-size: calc(13 * var(--mk)); }
  .process--phone .calc__scale { display: none; }
  .process--phone .calc__toggle span { font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .process--phone .calc__control { height: calc(56 * var(--mk)); padding-inline: calc(20 * var(--mk)); font-size: max(16px, calc(15 * var(--mk))); }
  .process--phone .calc__select { padding-right: calc(52 * var(--mk)); }
  .process--phone .calc__result { gap: calc(8 * var(--mk)); padding: calc(16 * var(--mk)) calc(20 * var(--mk)); }
  .process--phone .calc__result div { gap: calc(24 * var(--mk)); }
  .process--phone .calc__submit { width: 100%; padding-block: calc(19 * var(--mk)) calc(17 * var(--mk)); font-size: calc(16 * var(--mk)); }
  .process--phone .calc__note { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
}

/* The same pinned scroll as on the desktop (process.js): the scene holds the screen while five
   screens scroll past. The house takes the height the texts leave; short screens tighten up. */
@media (max-width: 767px) {
  .process--phone.process--sticky .process__canvas { padding-top: 0; }
  .process--phone.process--sticky .process__story { height: calc(6 * 100svh); }
  .process--phone.process--sticky .process__scene { position: sticky; top: 0; justify-content: center; height: 100svh; gap: min(calc(20 * var(--mk)), 1.3svh); padding: max(6px, .9svh) 0; }
  .process--phone.process--sticky .process__scene > :not(.stage-box) { flex: none; }
  .process--phone.process--sticky .process__head { gap: min(calc(24 * var(--mk)), 1.6svh); margin-bottom: 0; }
  .process--phone.process--sticky .process__title { display: block; margin: 0; font-size: min(calc(40 * var(--mk)), 4.4svh); }
  .process--phone.process--sticky .stage-box { display: grid; place-items: stretch; flex: 0 1 calc(350 * var(--mk)); width: calc(350 * var(--mk)); min-height: 0; aspect-ratio: auto; container-type: size; }
  /* the card is as wide as the text (the user asked); the house in it is as large as the height
     allows: where that is less than the width, the empty sky and ground of the picture are cut */
  .process--phone.process--sticky .stage { --t: calc(min(100cqw, 100cqh / .81) / 872); width: 100cqw; height: 100cqh; background: #20222e; transition: background-color .7s ease; }
  .process--phone.process--sticky :is(.stage__picture, .pins) { position: absolute; inset: auto; top: calc((100% - 872 * var(--t)) * .47); left: calc(50% - 436 * var(--t)); width: calc(872 * var(--t)); height: calc(872 * var(--t)); }
  /* a slightly narrower picture melts into the card at its sides */
  .process--phone.process--sticky .stage__picture { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent); }
  .process--phone.process--sticky .stage[data-step="2"] { background-color: #1f202c; }
  .process--phone.process--sticky .stage[data-step="3"] { background-color: #1a1e2a; }
  .process--phone.process--sticky .stage[data-step="4"] { background-color: #1c202c; }
  .process--phone.process--sticky .stage[data-step="5"] { background-color: #21242b; }
  .process--phone.process--sticky :is(.status, .flow) { top: auto; bottom: calc(14 * var(--mk)); }
  /* on a small house the energy readout shrinks with it */
  .process--phone.process--sticky .flow, .process--phone.process--sticky .flow :is(span, strong, i) { font-size: min(calc(12 * var(--mk)), calc(36 * var(--t))); }
  .process--phone.process--sticky .flow { padding-inline: min(calc(16 * var(--mk)), calc(40 * var(--t))); }
  .process--phone.process--sticky .odo { --n: min(calc(72 * var(--mk)), 8.6svh); }
  .process--phone.process--sticky .step { gap: min(calc(16 * var(--mk)), 1.4svh); }
  .process--phone.process--sticky .step__body { gap: min(calc(16 * var(--mk)), 1.4svh); }
  .process--phone.process--sticky .step__title { font-size: min(calc(28 * var(--mk)), 3.6svh); line-height: 1.08; }
  .process--phone.process--sticky .step__chips { display: flex; }
}
/* tall phones have room for the design's two-line heading */
@media (max-width: 767px) and (min-height: 780px) {
  .process--phone.process--sticky .process__title { font-size: calc(40 * var(--mk)); }
}
@media (max-width: 767px) and (max-height: 620px) {
  .process--phone.process--sticky :is(.process__index, .step__chips) { display: none; }
  .process--phone.process--sticky .step__text { font-size: calc(14 * var(--mk)); line-height: 1.4; }
}

/* ───────────── 05 «Проєкти» (55:587 intro, 55:611 stack, 55:712 button) ───────────── */
@media (max-width: 767px) {
  .projects { --p: var(--mk); }
  .projects__canvas { display: flex; flex-direction: column; align-items: flex-start; gap: calc(24 * var(--mk)); max-width: none; padding: calc(64 * var(--mk)) calc(20 * var(--mk)); }
  .projects__canvas > .section-index { margin: 0; }
  .projects__count { display: contents; }
  .projects__count strong { font-family: var(--font-display); font-size: calc(128 * var(--mk)); line-height: .84; letter-spacing: -.06em; white-space: nowrap; }
  .projects__count span { display: block; margin: 0; padding: 0; font-family: var(--font-display); font-weight: 500; font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; color: var(--color-text-secondary); }
  .projects__count b { font-weight: 500; }
  .projects__text { display: block; margin: 0; }
  .projects__title { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .projects__lead, .projects__text .btn { display: none; }
  .projects__index { width: 100%; margin: 0; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: calc(12 * var(--mk)); height: auto; padding: calc(16 * var(--mk)) calc(12 * var(--mk)); }
  .row__num { font-size: calc(12 * var(--mk)); font-weight: 500; letter-spacing: 0; }
  .row__title { font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; }
  .row__power { grid-column: 3; grid-row: 1; font-weight: 700; font-size: calc(18 * var(--mk)); line-height: calc(22 * var(--mk)); }
  .row__place, .row__kind { display: none; }
  .row:active, .row:focus-visible, .row.is-active { border-radius: calc(18 * var(--mk)); background: var(--color-bg-accent); }

  /* panels: a screen each, the next one drives over (28 px of overlap, as drawn) */
  .stack { margin-top: 0; background: var(--color-bg-inverse); }
  .project { --shade: linear-gradient(rgb(28 27 25 / .55), rgb(28 27 25 / 0)) top / 100% calc(160 * var(--mk)) no-repeat, linear-gradient(rgb(28 27 25 / 0), rgb(28 27 25 / .6) 45%, rgb(28 27 25 / .92)) bottom / 100% calc(440 * var(--mk)) no-repeat; height: 100lvh; min-height: calc(600 * var(--mk)); margin-bottom: calc(-28 * var(--mk)); }
  .project:last-child { margin-bottom: 0; }
  .project__card { display: block; padding: 0; border-radius: calc(28 * var(--mk)) calc(28 * var(--mk)) 0 0; box-shadow: 0 calc(-24 * var(--mk)) calc(64 * var(--mk)) rgb(15 15 18 / .5); }
  .project__bar { position: absolute; top: calc(24 * var(--mk)); right: calc(20 * var(--mk)); left: calc(20 * var(--mk)); flex-wrap: nowrap; justify-content: space-between; height: calc(32 * var(--mk)); }
  .project__counter { flex-basis: auto; font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .project__tag { top: 0; padding: calc(4 * var(--mk)) calc(12 * var(--mk)); font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .project__tag + .project__tag, .project__more { display: none; }
  .project__hero { position: absolute; right: calc(20 * var(--mk)); bottom: calc(208 * var(--mk)); left: calc(20 * var(--mk)); gap: calc(8 * var(--mk)); margin: 0; white-space: nowrap; }
  .project:last-child .project__hero { bottom: calc(180 * var(--mk)); }
  .project__title { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .project__figure { flex-wrap: nowrap; gap: calc(12 * var(--mk)); }
  .project__big { font-size: calc(128 * var(--mk)); line-height: .84; letter-spacing: -.06em; }
  .project__unit { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .project__stats { position: absolute; right: calc(20 * var(--mk)); bottom: calc(68 * var(--mk)); left: calc(20 * var(--mk)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(12 * var(--mk)); width: auto; max-width: none; margin: 0; white-space: nowrap; }
  .project:last-child .project__stats { bottom: calc(40 * var(--mk)); }
  .project__stats li { gap: calc(2 * var(--mk)); padding: calc(12 * var(--mk)) calc(4 * var(--mk)); }
  .project__stats strong { font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; }
  .project__stats li > span { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .projects__all { position: relative; z-index: 1; display: flex; justify-content: center; padding: calc(24 * var(--mk)) calc(20 * var(--mk)) calc(50 * var(--mk)); background: var(--color-bg-strong); }
  .projects__all .btn { --ui: var(--mk); width: 100%; padding: calc(19 * var(--mk)) 0 calc(17 * var(--mk)); font-size: calc(16 * var(--mk)); line-height: calc(20 * var(--mk)); }
}

/* ───────────── 06 «Зелений тариф і моніторинг» (55:715) ───────────── */
@media (max-width: 767px) {
  .tariff { --s: var(--mk); }
  .tariff__canvas { max-width: none; padding: calc(64 * var(--mk)) calc(20 * var(--mk)); }
  .tariff__earn { gap: calc(24 * var(--mk)); }
  .tariff__index { padding: calc(9 * var(--mk)) calc(12 * var(--mk)) calc(7 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .tariff__index::before { width: calc(6 * var(--mk)); height: calc(6 * var(--mk)); }
  .tariff__title { margin: 0; font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; white-space: normal; }
  .tariff__lead { margin: 0; font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }

  /* the calculator: tap a power instead of dragging */
  .income { gap: calc(20 * var(--mk)); margin: 0; padding: calc(24 * var(--mk)); border-radius: calc(28 * var(--mk)); }
  .income__head { order: 10; display: block; height: auto; }
  .income__label { display: none; }
  .income__head .btn { width: 100%; margin: 0; padding: calc(13 * var(--mk)) 0; font-size: calc(14 * var(--mk)); line-height: calc(18 * var(--mk)); }
  .power { gap: calc(20 * var(--mk)); width: 100%; }
  .power__row { height: auto; align-items: center; font-size: calc(13 * var(--mk)); }
  .power__value { margin: 0; font-size: calc(28 * var(--mk)); }
  .power__slider { display: flex; gap: calc(4 * var(--mk)); height: auto; padding: calc(4 * var(--mk)); border-radius: var(--radius-full); background: rgb(251 247 239 / .15); }
  .power__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .power__tick { position: static; flex: 1; width: auto; height: calc(32 * var(--mk)); margin: 0; border-radius: var(--radius-full); color: var(--color-text-inverse); transition: background-color .25s ease, color .25s ease; }
  .power__tick i { display: none; }
  .power__tick > span, .power__tick:first-of-type > span, .power__tick:last-of-type > span { position: static; display: block; translate: none; padding: 0; font-size: calc(13 * var(--mk)); }
  .power__tick.is-current { background: var(--color-bg-accent); color: var(--color-text-primary); }
  .power__tick.is-current > span { color: var(--color-text-primary); }
  .income__result { gap: calc(4 * var(--mk)); }
  .income__sum { font-size: calc(60 * var(--mk)); line-height: calc(55.2 * var(--mk)); letter-spacing: -.045em; }
  .income__note { display: block; padding: 0; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); color: var(--color-text-inverse-muted); }
  .income__note strong { font-weight: 500; font-size: inherit; line-height: inherit; }
  .income__note strong::after { content: " · "; }
  .income__note span { width: auto; font-size: inherit; line-height: inherit; }
  .months { height: calc(130 * var(--mk)); }
  .months::before { display: none; }
  .month { width: calc(18 * var(--mk)); }
  .month i { bottom: calc(24 * var(--mk)); height: calc(96 * var(--mk)); }
  .month span { top: calc(112 * var(--mk)); font-size: 0; line-height: calc(15 * var(--mk)); }
  .month span::first-letter { font-size: calc(12 * var(--mk)); } /* one letter under each bar, as drawn */
  /* the month's figure shows once a bar is tapped */
  .months__tip { bottom: auto; top: calc(-6 * var(--mk)); opacity: 0; }
  .months.is-touched .months__tip { opacity: 1; }

  /* monitoring: badge, headline, text, the phone with its three notes, store buttons */
  .monitor { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 0; margin-top: calc(64 * var(--mk)); }
  .monitor__intro { display: contents; }
  .monitor__badge { grid-row: 1; padding: calc(9 * var(--mk)) calc(12 * var(--mk)) calc(7 * var(--mk)); border-color: var(--color-bg-strong); background: var(--color-bg-strong); color: var(--color-text-inverse); font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .monitor__badge::before { width: calc(6 * var(--mk)); height: calc(6 * var(--mk)); }
  .monitor__title { grid-row: 2; max-width: none; margin: calc(24 * var(--mk)) 0 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .monitor__text { grid-row: 3; max-width: none; margin-top: calc(24 * var(--mk)); font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .monitor__stores { grid-row: 5; justify-self: stretch; align-items: stretch; width: 100%; margin-top: calc(24 * var(--mk)); gap: calc(8 * var(--mk)); }
  .monitor__stores .btn { flex: 1 1 0; justify-content: center; min-width: 0; /* the two share the whole width */ padding: calc(13 * var(--mk)) calc(8 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(18 * var(--mk)); }
  .live-chip { display: none; }
  .phone-box, .orbit { grid-row: 4; grid-column: 1; align-self: start; justify-self: start; }
  .phone-box { --s: var(--mk); width: calc(236 * var(--mk)); height: calc(496 * var(--mk)); margin: calc(32 * var(--mk)) 0 calc(16 * var(--mk)) calc(114 * var(--mk)); }
  .phone-mock { border-radius: calc(40 * var(--mk)); box-shadow: 0 calc(30 * var(--mk)) calc(60 * var(--mk)) calc(-10 * var(--mk)) rgb(38 31 5 / .35); }
  .app { top: calc(8 * var(--mk)); left: calc(8 * var(--mk)); gap: calc(12 * var(--mk)); width: calc(220 * var(--mk)); height: calc(480 * var(--mk)); padding: calc(14 * var(--mk)) calc(14 * var(--mk)) 0; border-radius: calc(32 * var(--mk)); }
  .app__status { height: calc(18 * var(--mk)); font-size: calc(12 * var(--mk)); }
  .app__status i { width: calc(64 * var(--mk)); height: calc(18 * var(--mk)); border-radius: calc(9 * var(--mk)); }
  .app__head p:first-child span { display: none; }
  .app__head strong { font-size: calc(18 * var(--mk)); }
  .app__online { gap: calc(4 * var(--mk)); padding: calc(4 * var(--mk)) calc(8 * var(--mk)); }
  .app__online::before { width: calc(5 * var(--mk)); height: calc(5 * var(--mk)); }
  .app .ring-chart { width: calc(112 * var(--mk)); height: calc(120 * var(--mk)); margin: 0 auto; }
  .app .ring-chart img { top: calc(4 * var(--mk)); left: calc(50% - 56 * var(--mk)); width: calc(112 * var(--mk)); height: calc(112 * var(--mk)); }
  .app .ring-chart p { top: calc(35.5 * var(--mk)); right: 0; left: 0; }
  .app .ring-chart strong { font-size: calc(28 * var(--mk)); line-height: calc(34 * var(--mk)); }
  .app .ring-chart span { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .app__now { gap: calc(8 * var(--mk)); }
  .app__now p { padding: calc(8 * var(--mk)) calc(12 * var(--mk)); border-radius: calc(12 * var(--mk)); }
  .app__now strong { font-size: calc(18 * var(--mk)); white-space: nowrap; } /* Safari would wrap «6,8 кВт» */
  .app__tabs, .hours span, .app__bar, .app__today li:not(:first-child) { display: none; }
  .hours { height: calc(70 * var(--mk)); }
  .hours i { bottom: calc(4 * var(--mk)); left: calc(var(--i) * 16.55 * var(--mk)); width: calc(10 * var(--mk)); height: calc(var(--hm) * var(--mk)); }
  /* the phone design has 12 hours (55:797), not the desktop's 14: more would run out of the screen */
  .hours i:nth-of-type(n+13) { display: none; }
  .hours i:nth-of-type(1), .hours i:nth-of-type(12) { --hm: 5; }
  .hours i:nth-of-type(2) { --hm: 13; }
  .hours i:nth-of-type(3) { --hm: 26; }
  .hours i:nth-of-type(4) { --hm: 40; }
  .hours i:nth-of-type(5) { --hm: 52; }
  .hours i:nth-of-type(6) { --hm: 61; }
  .hours i:nth-of-type(7) { --hm: 64; }
  .hours i:nth-of-type(8) { --hm: 58; }
  .hours i:nth-of-type(9) { --hm: 45; }
  .hours i:nth-of-type(10) { --hm: 29; }
  .hours i:nth-of-type(11) { --hm: 14; }
  .hours i.is-peak { opacity: .55; }
  .hours i:nth-of-type(7) { opacity: 1; }
  .app__today li { gap: calc(4 * var(--mk)); height: calc(38 * var(--mk)); padding: 0; } /* Safari sets the text a touch wider */
  .app__today span { font-size: calc(12 * var(--mk)); }
  .app__today strong { font-size: calc(18 * var(--mk)); }
  .orbit { position: relative; width: auto; margin: 0; z-index: 3; }
  .orbit + .orbit { margin: 0; }
  .widget { position: relative; width: auto; max-width: none; margin: 0; gap: calc(4 * var(--mk)); padding: calc(12 * var(--mk)) calc(16 * var(--mk)); border-radius: calc(18 * var(--mk)); white-space: nowrap; }
  .widget--sold { top: calc((32 + 102) * var(--mk)); left: 0; height: auto; }
  .widget--outages { top: calc((32 + 252) * var(--mk)); left: 0; height: auto; }
  .widget--saved { top: calc((32 + 402) * var(--mk)); left: calc(20 * var(--mk)); height: auto; }
  .widget__label, .widget__caps { font-weight: 500; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); letter-spacing: 0; text-transform: none; }
  .widget__value, .widget__strong { font-weight: 700; font-size: calc(18 * var(--mk)); line-height: calc(22 * var(--mk)); letter-spacing: 0; }
  .widget__spark, .widget__note::before { display: none; }
  .widget__note { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); color: var(--color-bg-accent); }
}

/* ───────────── 07 «Бренди» (58:544) ───────────── */
@media (max-width: 767px) {
  .brands.section { --m: calc(var(--mk) * 40 / 88); padding: calc(64 * var(--mk)) 0; }
  .brands__head { gap: calc(24 * var(--mk)); padding-inline: calc(20 * var(--mk)); }
  .brands__heading { gap: calc(24 * var(--mk)); }
  .brands__heading .section-title { font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; }
  .brands__intro { width: auto; max-width: none; margin: 0; }
  .brands__lead { font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .brands__stats { gap: calc(32 * var(--mk)); margin-top: calc(24 * var(--mk)); }
  .brands__stats li, .brands__stats li + li { flex: none; min-width: calc(124 * var(--mk)); width: auto; gap: calc(2 * var(--mk)); }
  .brands__stats strong { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .brands__stats span { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .brands .marquee { margin-top: calc(28 * var(--mk)); }
  .brands--live .marquee { height: calc(56 * var(--mk)); }
  .brands--live .marquee--outline { height: calc(40 * var(--mk)); margin-top: calc(30 * var(--mk)); }
  .marquee__item { gap: calc(20 * var(--mk)); padding-right: calc(20 * var(--mk)); }
  .marquee__star { width: calc(18 * var(--mk)); height: calc(18 * var(--mk)); }
  .brand { gap: calc(6 * var(--mk)); height: calc(40 * var(--mk)); }
  .brand::before { inset: calc(-8 * var(--mk)) calc(-20 * var(--mk)); }
  .brand__name { font-size: calc(40 * var(--mk)); line-height: calc(40 * var(--mk)); letter-spacing: -.03em; }
  .brand__cat { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .marquee--outline .brand__name { -webkit-text-stroke-width: calc(1.8 * var(--mk)); }
  .brands__note { top: 0; margin-top: calc(44 * var(--mk)); padding-inline: calc(20 * var(--mk)); font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .brands__rule { display: none; }
}

/* ───────────── 08 «Часті питання» (58:602) ───────────── */
@media (max-width: 767px) {
  .faq.section { gap: calc(24 * var(--mk)); padding: calc(40 * var(--mk)) calc(20 * var(--mk)) calc(64 * var(--mk)); }
  .faq__head { align-items: flex-start; }
  .faq__head .section-title { margin: calc(24 * var(--mk)) 0 0; font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; }
  .faq__lead { display: none; }
  .faq__item { padding-bottom: calc(20 * var(--mk)); }
  .faq__row { min-height: calc(52 * var(--mk)); margin-top: calc(20 * var(--mk)); }
  .faq__q { padding-right: calc(4 * var(--mk)); font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; }
  .faq__toggle { width: calc(52 * var(--mk)); height: calc(52 * var(--mk)); }
  .faq__btn::after { inset: calc(-20 * var(--mk)) 0; }
  .faq__a { padding-top: calc(16 * var(--mk)); font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .faq__list > .faq__item:nth-last-child(2) { border-bottom: 1px solid rgb(28 27 25 / .12); } /* the sixth closes the list */
  .faq__help { gap: calc(12 * var(--mk)); width: 100%; max-width: none; padding: calc(24 * var(--mk)); border-radius: calc(28 * var(--mk)); }
  .faq__help-title { max-width: calc(284 * var(--mk)); font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); }
  .faq__help-text { font-size: calc(15 * var(--mk)); line-height: calc(22.5 * var(--mk)); }
  .faq__phone { padding: 0; }
  .faq__phone a { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .faq__phone span { display: none; }
  .faq__call { padding: calc(19 * var(--mk)) 0 calc(17 * var(--mk)); font-size: calc(16 * var(--mk)); line-height: calc(20 * var(--mk)); }
}

/* ───────────── 09 «Старт» (58:657, 390 × 1530) ─────────────
   start.js adds --split: the photo card alone, the form below it with the offices. The card still
   grows to the whole screen and sticks, and the form and offices drive up over it. */
@media (max-width: 767px) {
  .start--split { --side: calc(20 * var(--mk)); --card: calc(540 * var(--mk)); padding: calc(24 * var(--mk)) 0 calc(64 * var(--mk)); }
  .start--split.start--pin {
    --travel: 70svh;
    --inset: calc((100lvh - var(--card)) / 2); /* lvh: no strip left under the photo in Safari */
    --rise: calc(64 * var(--mk));
    --at: calc(100lvh - var(--inset) + 24 * var(--mk));
    padding-bottom: 0;
  }

  .start--split .cta { height: var(--card); clip-path: inset(0 var(--side) round calc(28 * var(--mk))); }
  .start--split.start--pin .cta { height: 100lvh; clip-path: inset(var(--inset) var(--side) round calc(28 * var(--mk))); }
  .start--split .cta__content { position: absolute; inset: 0; display: block; padding: 0; }
  .start--split.start--pin .cta__content { top: var(--inset); bottom: auto; height: var(--card); }
  .start--split .cta__shade { background: linear-gradient(rgb(28 27 25 / .8), rgb(28 27 25 / .2) 50%, rgb(28 27 25 / .88)); }
  .start--split .cta__index { position: absolute; top: calc(20 * var(--mk)); left: calc(40 * var(--mk)); }
  .start--split .cta__title { position: absolute; top: calc(72 * var(--mk)); left: calc(40 * var(--mk)); width: calc(310 * var(--mk)); margin: 0; font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; white-space: normal; }
  .start--split .cta__lead { display: none; }
  .start--split .cta__proof { position: absolute; top: calc(469 * var(--mk)); left: calc(40 * var(--mk)); gap: calc(24 * var(--mk)); flex-wrap: nowrap; margin: 0; }
  .start--split .cta__proof li { gap: calc(2 * var(--mk)); }
  .start--split .cta__proof strong { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .start--split .cta__proof span { font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }

  .start--split .offices { margin-top: calc(24 * var(--mk)); padding-inline: calc(20 * var(--mk)); }
  .start--split.start--pin .offices { margin-top: 0; padding-bottom: var(--rise); }

  .start--split .lead { width: auto; max-width: none; margin: 0; gap: calc(12 * var(--mk)); padding: calc(24 * var(--mk)); border-radius: calc(28 * var(--mk)); }
  .start--split.start--pin .lead { box-shadow: 0 18px 48px rgb(0 0 0 / .28); }
  .start--split .lead__title { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); white-space: nowrap; }
  .start--split .lead__segments span { height: calc(40 * var(--mk)); font-size: calc(13 * var(--mk)); }
  .start--split .lead__control { height: calc(55 * var(--mk)); font-size: max(16px, calc(15 * var(--mk))); } /* under 16px iOS zooms into the field */
  .start--split .lead__control::placeholder { font-size: calc(15 * var(--mk)); }
  .start--split .lead__submit { height: calc(56 * var(--mk)); padding-block: 0; font-size: calc(16 * var(--mk)); }
  .start--split .lead__note { min-height: 0; }

  .start--split .offices__head { margin-top: calc(24 * var(--mk)); }
  .start--split .offices__title { top: 0; font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .start--split .offices__lead { display: none; }
  .start--split .offices__list { display: flex; flex-direction: column; gap: calc(8 * var(--mk)); margin-top: calc(24 * var(--mk)); }
  .start--split .office { min-height: 0; border-radius: calc(22 * var(--mk)); }
  .start--split .office__head { top: 0; }

  .start--split .office--hotline { gap: calc(6 * var(--mk)); margin-bottom: calc(16 * var(--mk)); padding: calc(20 * var(--mk)); }
  .start--split .office--hotline .office__head { gap: calc(6 * var(--mk)); }
  .start--split .office--hotline .office__city { font-size: calc(28 * var(--mk)); line-height: calc(30.24 * var(--mk)); letter-spacing: -.02em; }
  .start--split .office--hotline .office__foot { display: block; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); color: var(--color-text-on-accent-muted); }
  .start--split .office--hotline :is(.office__big, .office__hours) { display: inline; font: inherit; }
  .start--split .office--hotline .office__big::after { content: " · "; }
  .start--split .office--hotline .office__link { display: none; }

  /* a city: kind, name and phone on the left, a round route button on the right */
  .start--split .office:not(.office--hotline) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(2 * var(--mk)) calc(12 * var(--mk)); padding: calc(16 * var(--mk)) calc(20 * var(--mk)); }
  .start--split .office:not(.office--hotline) :is(.office__head, .office__foot) { display: contents; }
  .start--split .office:not(.office--hotline) :is(.office__kind, .office__city, .office__big) { grid-column: 1; justify-self: start; }
  .start--split .office:not(.office--hotline) .office__kind { font-weight: 500; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); letter-spacing: 0; text-transform: none; }
  .start--split .office:not(.office--hotline) .office__city { font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; }
  .start--split .office:not(.office--hotline) .office__big { font-weight: 500; font-size: calc(13 * var(--mk)); line-height: calc(16 * var(--mk)); }
  .start--split .office:not(.office--hotline) .office__hours { display: none; }
  .start--split .office:not(.office--hotline) .office__link { grid-column: 2; grid-row: 1 / 4; justify-content: center; width: calc(40 * var(--mk)); height: calc(40 * var(--mk)); padding: 0; border-radius: 50%; background: var(--color-bg-subtle, rgb(28 27 25 / .06)); }
  .start--split .office:not(.office--hotline):is(:focus-within, :hover) .office__link { background: rgb(251 247 239 / .12); }
  .start--split .office:not(.office--hotline) .office__link .u-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ───────────── 10 «Footer» (58:726, 390 × 1174) ───────────── */
@media (max-width: 767px) {
  .footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: calc(64 * var(--mk)) calc(20 * var(--mk)) calc(8 * var(--mk)); }
  .footer > * { grid-column: 1 / -1; }
  .footer > :not(.wordmark) { padding-inline: 0; }
  .footer__head { gap: calc(32 * var(--mk)); }
  .footer__slogan { margin: 0; font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
  .subscribe { gap: calc(12 * var(--mk)); width: 100%; }
  .footer__label { font-size: calc(14 * var(--mk)); line-height: calc(17 * var(--mk)); }
  .subscribe__text { display: none; }
  .subscribe__field { height: calc(54 * var(--mk)); padding: 0 calc(4 * var(--mk)) 0 calc(20 * var(--mk)); }
  .subscribe__field input { font-size: max(16px, calc(15 * var(--mk))); }
  .subscribe__field input::placeholder { font-size: calc(15 * var(--mk)); }
  .subscribe__field .btn { height: calc(44 * var(--mk)); padding: 0 calc(22 * var(--mk)); font-size: calc(14 * var(--mk)); }
  /* the fine print is not in the phone design; it still appears to explain a mistake */
  .subscribe__note:not(.is-error) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .footer__rule { margin-top: calc(32 * var(--mk)); }
  .footer__columns { display: contents; }
  .footer__contacts, .footer__nav, .totop { grid-column: 1 / -1; }
  .footer__contacts { gap: calc(8 * var(--mk)); width: auto; max-width: none; margin-bottom: calc(32 * var(--mk)); padding-top: calc(24 * var(--mk)); }
  .footer__phone { margin: 0; font-size: calc(40 * var(--mk)); line-height: 1; letter-spacing: -.03em; }
  .footer__caption { margin: 0; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .footer__lines { gap: calc(8 * var(--mk)); }
  .footer__lines li { line-height: calc(23 * var(--mk)); }
  .footer__lines a { color: var(--color-text-inverse); }
  .footer__hours { display: none; }
  .footer__social { gap: calc(8 * var(--mk)); padding-top: calc(8 * var(--mk)); }
  .social { width: calc(44 * var(--mk)); height: calc(44 * var(--mk)); }
  .social i { width: calc(18 * var(--mk)); height: calc(18 * var(--mk)); }
  .social--instagram i { background-size: calc(14.28 * var(--mk)) calc(14.28 * var(--mk)); }
  .social--facebook i { background-position: calc(4.11 * var(--mk)) calc(1.86 * var(--mk)); background-size: calc(8.5 * var(--mk)) calc(14.36 * var(--mk)); }
  .social--youtube i { background-size: calc(15.78 * var(--mk)) calc(11.28 * var(--mk)); }
  .social--telegram i { background-position: calc(1.33 * var(--mk)) calc(2.39 * var(--mk)); background-size: calc(15.18 * var(--mk)) calc(13 * var(--mk)); }

  /* link groups */
  .footer__nav { padding-inline: calc(4 * var(--mk)); border-top: 1px solid rgb(251 247 239 / .15); }
  .footer__nav:last-of-type { border-bottom: 1px solid rgb(251 247 239 / .15); }
  .footer__nav .footer__label { top: 0; font-family: var(--font-display); font-weight: 500; font-size: calc(20 * var(--mk)); line-height: calc(24 * var(--mk)); letter-spacing: -.01em; text-transform: none; color: var(--color-text-inverse); }
  .footer__nav ul { gap: calc(12 * var(--mk)); margin: 0; }
  .footer__nav li { line-height: calc(23 * var(--mk)); }
  .footer__nav:not(.footer__nav--fold) { padding-block: calc(20 * var(--mk)); } /* without the script: all open */
  .footer__nav--fold { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .4s cubic-bezier(.23, 1, .32, 1); }
  .footer__nav--fold.is-open { grid-template-rows: auto 1fr; }
  .footer__nav--fold ul { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .4s; }
  .footer__nav--fold.is-open ul { visibility: visible; }
  .footer__nav--fold :is(li:last-child, li:has(+ .d-only:last-child)) { padding-bottom: calc(20 * var(--mk)); } /* the last one shown */
  .footer__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: calc(20 * var(--mk)) 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; color: inherit; cursor: pointer; }
  .footer__nav--fold.is-open .footer__toggle { padding-bottom: calc(12 * var(--mk)); }
  .footer__toggle { transition: padding .4s cubic-bezier(.23, 1, .32, 1); }
  .footer__toggle::after { content: ""; flex: none; width: calc(20 * var(--mk)); height: calc(20 * var(--mk)); background: url("../assets/mobile/plus.svg") center / calc(11.8 * var(--mk)) calc(11.8 * var(--mk)) no-repeat; }
  .footer__nav.is-open .footer__toggle::after { background-image: url("../assets/mobile/minus.svg"); background-size: calc(11.8 * var(--mk)) calc(1.8 * var(--mk)); }

  /* bottom: the small print, with the round «Вгору» beside it */
  .footer__rule--bar { display: none; }
  .footer > .footer__bar { order: 1; grid-column: 1; flex-direction: column; align-items: flex-start; gap: calc(6 * var(--mk)); min-height: 0; margin-top: calc(32 * var(--mk)); }
  .footer__copy { top: 0; font-size: calc(13 * var(--mk)); line-height: calc(16 * var(--mk)); }
  .footer__legal { gap: 0; font-size: calc(12 * var(--mk)); line-height: calc(15 * var(--mk)); }
  .footer__legal li:nth-child(2)::before { content: " · "; white-space: pre; }
  .footer__lang { gap: calc(4 * var(--mk)); margin-top: calc(6 * var(--mk)); padding: 0; border: 0; }
  .footer__lang a:not([aria-current]) { border: 1px solid rgb(251 247 239 / .15); }
  .totop { order: 2; grid-column: 2; align-self: center; gap: 0; width: auto; margin-top: calc(32 * var(--mk)); }
  .totop__btn { width: calc(64 * var(--mk)); height: calc(64 * var(--mk)); }
  .totop__btn i { width: calc(24 * var(--mk)); height: calc(24 * var(--mk)); background-size: calc(13.8 * var(--mk)) calc(15.8 * var(--mk)); }
  .totop span { display: none; }

  /* the design's «SOLARIS», 340 wide from x 23 */
  .footer > .wordmark { --w: calc(349 * var(--mk) / 1733); order: 3; margin: calc(32 * var(--mk) - 30 * var(--w)) calc(-20 * var(--mk)) 0; height: calc(353 * var(--w)); }
  .wordmark span { left: calc(var(--x) * var(--w) + 22 * var(--mk) - 34 * var(--w)); }
}

/* ───────────── Tablet hero (768–1099, no frame): the headline stays inside the photo and on the
   first screen ───────────── */
@media (min-width: 768px) and (max-width: 1099px) {
  .hero__media { height: min(calc(var(--lift) + 857 * var(--u)), max(560px, 100svh)); overflow: hidden; }
  .hero__intro { min-height: 320px; margin-top: -320px; }
}

@media (max-width: 767px) {
  .footer__nav:not(.footer__nav--fold) ul { margin-top: calc(12 * var(--mk)); } /* without the script */
}
@media (prefers-reduced-motion: reduce) {
  .menu[open], .menu[open] .menu__list li, .menu[open] .menu__foot { animation: none; }
}
