/* =========================================================
   Connected — стили по макету Figma
   Все размеры заданы в «пикселях макета» через --u:
   • ≥1366px  — десктоп-макет 1920 (1u = 1px, контейнер 1180)
   • 1024–1365 — тот же макет, пропорционально уменьшен (как макет 1024)
   • <1024    — мобильный макет 880 (1u = 100vw / 880)
   • <600     — мобильный макет 440 (1u = 100vw / 684)
   ========================================================= */

/* Шрифт Gogh из макета — коммерческий, его файлов пока нет, поэтому сейчас
   вместо него Montserrat. Когда появятся файлы: положите их в assets/fonts/
   и раскомментируйте блок ниже. */
/*
@font-face { font-family: "Gogh"; src: url("../assets/fonts/Gogh-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gogh"; src: url("../assets/fonts/Gogh-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gogh"; src: url("../assets/fonts/Gogh-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gogh"; src: url("../assets/fonts/Gogh-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
*/

:root {
  --u: 1px;
  --bg: #f4f4f4;
  --ink: #171717;
  --ink-2: #2b2a29;
  --green: #50c878;
  --green-2: #5fbc7f;
  --green-dark: #2d8a4d;
  --grad-green: linear-gradient(90deg, #2d8a4d 0%, #5fbc7f 100%);
  --f-gogh: "Gogh", "Montserrat", system-ui, sans-serif;
  --f-rubik: "Rubik", system-ui, sans-serif;
  --f-open: "Open Sans", system-ui, sans-serif;
  --f-roboto: "Roboto", system-ui, sans-serif;
  --container: calc(1180 * var(--u));
}
@media (max-width: 1365px) { :root { --u: calc(100vw / 1365); } }
@media (max-width: 1023px) { :root { --u: calc(100vw / 880); --container: calc(580 * var(--u)); } }
@media (max-width: 599px)  { :root { --u: calc(100vw / 880); --container: calc(100vw - 32px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-open);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
section { position: relative; scroll-margin-top: calc(68 * var(--u)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn--green {
  color: #fff;
  background: linear-gradient(90deg, #2d8a4d 0%, #5fbc7f 100%);
  box-shadow: 0 calc(23 * var(--u)) calc(30 * var(--u)) rgba(129, 242, 168, .44);
}

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--f-rubik); font-weight: 700;
  font-size: calc(40 * var(--u)); line-height: 1;
  text-align: center; color: var(--ink);
  padding-top: calc(80 * var(--u));
}
.section-title--gogh { font-family: var(--f-gogh); font-weight: 800; }
.section-lead {
  font-family: var(--f-open); font-weight: 300;
  font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u));
  text-align: center; margin-top: calc(26 * var(--u));
}

/* Размытые зелёные пятна */
.blob { position: absolute; border-radius: 50%; background: var(--green); pointer-events: none; }
.blob--adv { left: calc(-185 * var(--u)); top: calc(237 * var(--u)); width: calc(516 * var(--u)); height: calc(516 * var(--u)); opacity: .26; filter: blur(calc(194 * var(--u))); }
.blob--works { left: calc(50% + 470 * var(--u)); top: calc(576 * var(--u)); width: calc(377 * var(--u)); height: calc(201 * var(--u)); opacity: .26; filter: blur(calc(76 * var(--u))); }
.ring { position: absolute; pointer-events: none; }

/* =========================================================
   HEADER
   ========================================================= */
.header { position: sticky; top: 0; z-index: 50; background: #fff; }
.header__inner {
  width: var(--container); margin: 0 auto;
  height: calc(68 * var(--u));
  display: flex; align-items: center; justify-content: space-between;
}
.header__logo img { width: calc(48 * var(--u)); height: calc(44 * var(--u)); }
.header__nav { display: flex; gap: calc(40 * var(--u)); font-family: var(--f-gogh); font-size: calc(16 * var(--u)); line-height: 1; color: var(--ink); }
.header__nav a { position: relative; transition: color .2s; }
.header__nav a:hover { color: var(--green-dark); }
.header__nav sup, .mobile-menu sup { font-weight: 800; color: var(--green); font-size: .5em; margin-left: .2em; vertical-align: .9em; letter-spacing: .02em; }
.header__contacts { display: flex; align-items: flex-start; gap: calc(20 * var(--u)); }
.header__contact-text { display: flex; flex-direction: column; align-items: flex-end; gap: calc(4 * var(--u)); }
.header__phone { font-family: var(--f-open); font-size: calc(16 * var(--u)); line-height: calc(12 * var(--u)); }
.header__tg { font-family: var(--f-open); font-weight: 300; font-size: calc(14 * var(--u)); line-height: calc(14 * var(--u)); }
.header__lang {
  font-family: var(--f-open); font-size: calc(16 * var(--u)); line-height: calc(12 * var(--u));
  padding: calc(8 * var(--u)); border: 1px solid #000; border-radius: calc(20 * var(--u));
  min-width: calc(37 * var(--u));
}
.header__burger, .header__call, .mobile-menu { display: none; }

/* =========================================================
   HERO (размеры в % ширины слайда — как в макете)
   ========================================================= */
.hero { position: relative; overflow: hidden; container-type: inline-size; background: var(--bg); }
.hero__track { position: relative; aspect-ratio: 1918 / 853; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg { position: absolute; inset: 0; }
.hero__content {
  position: absolute; left: 50.078%; top: 9.698cqw; width: 46%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: .782cqw; text-align: center; color: var(--ink);
}
.hero__title { font-family: var(--f-rubik); font-weight: 700; font-size: 2.5026cqw; line-height: 1; text-transform: uppercase; }
.hero__title--gogh { font-family: var(--f-gogh); font-weight: 800; }
.hero__subtitle { font-family: var(--f-open); font-weight: 300; font-size: 2.0855cqw; line-height: 1; }
.hero__subtitle--gogh { font-family: var(--f-gogh); }
.hero__btn {
  position: absolute; left: 40.928%; top: 23.358cqw; width: 18.213%; height: 4.38cqw;
  border-radius: 2.711cqw;
  font-family: var(--f-roboto); font-weight: 600; font-size: 1.0428cqw; line-height: 1;
  box-shadow: 0 1.2cqw 1.57cqw rgba(129, 242, 168, .44);
}
.hero__slide:not(.is-active) .hero__btn { pointer-events: none; }
.hero__dots {
  position: absolute; left: 50%; top: 37.49cqw; transform: translateX(-50%);
  display: flex; gap: 2.08cqw; z-index: 2;
}
.hero__dots button { width: .635cqw; height: .635cqw; min-width: 8px; min-height: 8px; border-radius: 50%; background: #d9d9d9; transition: background .3s, transform .3s; }
.hero__dots button[aria-selected="true"] { background: var(--green); transform: scale(1.15); }

/* =========================================================
   ADVANTAGES
   ========================================================= */
.advantages { overflow: hidden; padding-bottom: calc(132 * var(--u)); }
.advantages__grid {
  position: relative;
  width: var(--container); margin: calc(80 * var(--u)) auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(20 * var(--u));
}
.adv-card { background: #fff; border-radius: calc(48 * var(--u)); overflow: hidden; display: flex; flex-direction: column; }
/* нечётное число карточек: последняя — по центру нижнего ряда */
.adv-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 20 * var(--u)) / 2); }
.adv-card h3 {
  height: calc(105 * var(--u)); padding: 0 calc(28 * var(--u));
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--f-gogh); font-weight: 700; font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u)); color: var(--ink);
}
.adv-card__img { position: relative; aspect-ratio: 580 / 252; overflow: hidden; }
.adv-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.adv-card:hover .adv-card__img img { transform: scale(1.04); }
.adv-card__img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 31.75%; background: linear-gradient(#fff, rgba(255,255,255,0)); }

/* =========================================================
   TELEGRAM SHOP
   ========================================================= */
.tg { background: var(--ink-2); color: #fff; overflow: hidden; height: calc(743 * var(--u)); }
.tg__bg { position: absolute; inset: 0; pointer-events: none; }
.tg__bg img { width: 100%; height: 100%; object-fit: cover; }
.tg__inner { position: relative; width: calc(1184 * var(--u)); height: 100%; margin: 0 auto; }
.tg__text { position: absolute; left: 0; top: calc(109 * var(--u)); width: calc(560 * var(--u)); }
.tg__title { font-family: var(--f-gogh); font-weight: 800; font-size: calc(40 * var(--u)); line-height: 1; }
.tg__title span { color: var(--green-2); }
.tg__pills { display: flex; gap: calc(23.3 * var(--u)); margin-top: calc(21 * var(--u)); }
.pill {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u));
  height: calc(41.9 * var(--u)); padding: 0 calc(15.4 * var(--u));
  border-radius: calc(26 * var(--u)); background: var(--grad-green);
  box-shadow: 0 calc(-1 * var(--u)) calc(37 * var(--u)) rgba(106, 205, 140, .44);
  font-family: var(--f-gogh); font-weight: 800; font-size: calc(10 * var(--u)); line-height: 1; text-transform: uppercase;
}
.pill img { width: calc(13 * var(--u)); height: auto; }
.tg__desc { margin-top: calc(63 * var(--u)); display: flex; flex-direction: column; gap: calc(24 * var(--u)); font-family: var(--f-gogh); font-weight: 300; font-size: calc(24 * var(--u)); line-height: 1; }
.tg__desc b { font-weight: 700; }
/* Картинка выгружена вместе с тенью: смещаем на размер «полей» тени */
.tg__phones { position: absolute; left: calc(466 * var(--u)); top: calc(3 * var(--u)); width: calc(810 * var(--u)); height: auto; max-width: none; pointer-events: none; }
.tg__btn {
  position: absolute; left: calc(845.8 * var(--u)); top: calc(530 * var(--u));
  height: calc(62.7 * var(--u)); padding: 0 calc(22.1 * var(--u));
  gap: calc(11.4 * var(--u)); border-radius: calc(37 * var(--u));
  background: var(--bg); color: var(--green);
  box-shadow: 0 calc(18 * var(--u)) calc(80 * var(--u)) rgba(255, 255, 255, .44);
  font-family: var(--f-gogh); font-weight: 800; font-size: calc(14.27 * var(--u)); line-height: 1;
}
.tg__btn img { width: calc(20 * var(--u)); height: auto; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-bottom: calc(80 * var(--u)); overflow-x: clip; }
.contact .section-title { color: var(--ink-2); }
.ring--contact1 { left: calc(50% + 578 * var(--u)); top: calc(-162 * var(--u)); width: calc(323 * var(--u)); z-index: 1; }
.ring--contact2 { left: calc(50% - 862 * var(--u)); top: calc(-33 * var(--u)); width: calc(323 * var(--u)); }
.contact__body {
  width: calc(1125 * var(--u)); margin: calc(103 * var(--u)) auto 0;
  display: flex; gap: calc(31 * var(--u)); align-items: stretch;
  transform: translateX(calc(-27 * var(--u)));
}
.lead-form {
  position: relative;
  flex: 0 0 calc(580 * var(--u)); min-height: calc(468 * var(--u));
  padding: calc(48 * var(--u));
  border-radius: calc(48 * var(--u));
  background: linear-gradient(90deg, #fff 28%, rgba(255,255,255,.25) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: calc(44 * var(--u));
}
.lead-form h3 { font-family: var(--f-roboto); font-weight: 400; font-size: calc(24 * var(--u)); line-height: 1; color: var(--ink); }
.lead-form__fields { width: 100%; display: flex; flex-direction: column; gap: calc(32 * var(--u)); }
.field input {
  width: 100%; height: calc(60 * var(--u));
  padding: 0 calc(23 * var(--u));
  border: 0; border-bottom: 1px solid rgba(0,0,0,.2); border-radius: 0;
  background: transparent; outline: none;
  font-family: var(--f-open); font-size: calc(19.4 * var(--u)); color: #000;
  transition: border-color .2s;
}
.field input::placeholder { color: rgba(0,0,0,.3); }
.field input:focus { border-bottom-color: var(--green); }
.field input.is-invalid { border-bottom-color: #e5484d; }
.lead-form__submit {
  width: 100%; height: calc(68 * var(--u)); border-radius: calc(52 * var(--u));
  font-family: var(--f-roboto); font-weight: 600; font-size: calc(20 * var(--u)); line-height: 1;
}
.lead-form__submit[disabled] { opacity: .7; cursor: progress; }
.lead-form__status { position: absolute; left: 0; right: 0; bottom: calc(14 * var(--u)); text-align: center; font-size: calc(14 * var(--u)); color: var(--green-dark); min-height: 1em; }
.lead-form__status.is-error { color: #e5484d; }

.steps { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 0; }
.steps li { display: flex; gap: calc(6 * var(--u)); align-items: flex-start; }
.steps img { width: calc(19 * var(--u)); height: calc(38 * var(--u)); flex: none; }
.steps div { display: flex; flex-direction: column; gap: calc(8 * var(--u)); opacity: .8; }
.steps b { font-family: var(--f-gogh); font-weight: 700; font-size: calc(16 * var(--u)); line-height: 1; color: var(--green); }
.steps span { font-family: var(--f-gogh); font-weight: 400; font-size: calc(16 * var(--u)); line-height: 1.2; color: var(--ink-2); max-width: calc(489 * var(--u)); }

/* =========================================================
   WORKS
   ========================================================= */
.works { overflow: hidden; padding-bottom: calc(48 * var(--u)); }
.works .section-title { position: relative; }
.works__slider { position: relative; margin-top: calc(146 * var(--u)); }
.works__track {
  display: flex; gap: calc(20 * var(--u));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 calc(35 * var(--u));
  scroll-padding: 0 calc(35 * var(--u));
}
.works__track::-webkit-scrollbar { display: none; }
.work { flex: none; height: calc(360 * var(--u)); border-radius: calc(32 * var(--u)); overflow: hidden; scroll-snap-align: start; background: #e9e9e9; }
.work img { width: 100%; height: 100%; object-fit: cover; }
.w-s { width: calc(266 * var(--u)); }
.w-m { width: calc(354 * var(--u)); }
.w-l { width: calc(499 * var(--u)); }
.works__arrow { position: absolute; top: calc(155 * var(--u)); z-index: 2; width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: 50%; transition: transform .2s, opacity .2s; }
.works__arrow img { width: 100%; height: 100%; }
.works__arrow:hover { transform: scale(1.08); }
.works__arrow[disabled] { opacity: .4; cursor: default; transform: none; }
.works__arrow--prev { left: calc(50% - 590 * var(--u)); }
.works__arrow--next { left: calc(50% + 540 * var(--u)); }
.works__more { position: relative; margin-top: calc(81 * var(--u)); text-align: center; font-family: var(--f-open); font-weight: 300; font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u)); }
.works__social { position: relative; display: flex; justify-content: center; gap: calc(28.5 * var(--u)); margin-top: calc(29 * var(--u)); }
.btn--social {
  height: calc(86 * var(--u)); padding: 0 calc(32 * var(--u)); gap: calc(16 * var(--u));
  border-radius: calc(49 * var(--u));
  font-family: var(--f-gogh); font-weight: 800; font-size: calc(20 * var(--u)); line-height: 1; letter-spacing: .05em;
  box-shadow: 0 calc(8 * var(--u)) calc(30 * var(--u)) rgba(129, 242, 168, .44);
}
.btn--social img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners { padding-bottom: calc(80 * var(--u)); }
.partners__list {
  width: calc(1780 * var(--u)); max-width: 100%; margin: calc(112 * var(--u)) auto 0;
  display: flex; justify-content: space-between; gap: calc(20 * var(--u));
}
.partners__list li { flex: 0 1 calc(280 * var(--u)); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: calc(35 * var(--u)); }
.partners__logo { width: calc(139 * var(--u)); max-width: 100%; height: calc(139 * var(--u)); display: flex; align-items: center; justify-content: center; }
.partners__logo--wide { width: calc(280 * var(--u)); }
.partners__logo--bat { width: calc(248 * var(--u)); }
.partners__logo img { width: 100%; height: 100%; object-fit: contain; }
.partners__list--few { justify-content: center; gap: calc(160 * var(--u)); }
.partners__logo--geely img { width: 72%; }
.partners__logo--azbuka img { width: 82%; }
.partners__logo--silk img { width: 94%; }
/* четыре партнёра в ряд: меньше промежуток */
.partners__list--few:has(> li:nth-child(4)) { gap: calc(70 * var(--u)); }
.partners__link { display: contents; color: inherit; text-decoration: none; }
.partners__link:hover img { opacity: .75; }
.partners__logo img { transition: opacity .2s; }
.partners__list span { font-family: var(--f-open); font-weight: 700; font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u)); color: var(--ink); text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; display: flow-root; height: calc(350 * var(--u)); overflow: hidden; text-align: center; }
.footer__dome { position: absolute; inset: 0; pointer-events: none; }
.footer__arc { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); }
.footer__arc--green { width: calc(1096 * var(--u)); height: calc(1096 * var(--u)); top: calc(-4 * var(--u)); background: var(--green); }
.footer__arc--white { width: calc(1116 * var(--u)); height: calc(1116 * var(--u)); top: 0; background: #fff; }
.footer__up { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: calc(50 * var(--u)); height: calc(50 * var(--u)); z-index: 2; transition: transform .2s; }
.footer__up:hover { transform: translate(-50%, -60%); }
.footer__up img { width: 100%; height: 100%; }
.footer__logo { position: relative; margin: calc(71 * var(--u)) auto 0; width: calc(181 * var(--u)); height: auto; }
.footer__text { position: relative; margin-top: calc(46 * var(--u)); font-family: var(--f-open); font-weight: 300; font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u)); color: var(--ink); }
.footer__text a:hover { color: var(--green-dark); }
/* Футер в макете начинается с дуги: поднимаем кнопку «наверх» на линию дуги */
.footer { overflow: visible; }
/* запас сверху, чтобы верх дуги не срезался */
.footer__dome { overflow: hidden; top: calc(-10 * var(--u)); }
.footer__arc--green { top: calc(6 * var(--u)); }
.footer__arc--white { top: calc(10 * var(--u)); }

.br-d { display: inline; }

/* =========================================================
   MOBILE (макет 880 / 440)
   ========================================================= */
@media (max-width: 1023px) {
  .br-d { display: none; }

  /* header */
  .header__inner { height: calc(67.3 * var(--u)); }
  .header__logo, .header__nav { display: none; }
  .header__burger { display: block; width: calc(43.3 * var(--u)); height: calc(43.3 * var(--u)); }
  .header__burger svg { display: block; width: 100%; height: 100%; }
  .header__contacts { align-items: center; gap: calc(36 * var(--u)); }
  .header__contact-text { flex-direction: row; align-items: center; gap: calc(36 * var(--u)); }
  .header__phone { font-size: calc(16 * var(--u)); line-height: 1; }
  .header__tg { font-size: calc(14 * var(--u)); line-height: 1; }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.08);
    padding: 8px var(--pad, 24px) 24px;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid #eee; font-family: var(--f-gogh); font-size: 18px; }
  .mobile-menu__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 16px; }

  /* hero: свой набор слайдов для мобильного макета */
  .hero__track { aspect-ratio: 880 / 630; }
  .hero__content { left: 50%; top: 5.2cqw; width: 58%; gap: .97cqw; }
  .hero__title { font-size: 3.3952cqw; }
  .hero__subtitle { font-size: 2.8293cqw; }
  .hero__btn { left: 37.6%; top: 23.8cqw; width: 24.709%; height: 6cqw; border-radius: 3.678cqw; font-size: 1.4147cqw; box-shadow: 0 1.63cqw 2.13cqw rgba(129, 242, 168, .44); }
  .hero__dots { top: auto; bottom: 3cqw; gap: 3cqw; }
  .hero__dots button { width: 1.2cqw; height: 1.2cqw; }

  /* section titles */
  .section-title { font-size: calc(28 * var(--u)); line-height: calc(24.5 * var(--u)); padding-top: calc(49 * var(--u)); }
  .section-lead { font-size: calc(16 * var(--u)); line-height: 1.1; width: calc(481 * var(--u)); margin: calc(16 * var(--u)) auto 0; }

  /* advantages */
  .advantages { padding-bottom: calc(100 * var(--u)); }
  .advantages .section-title { padding-top: calc(40 * var(--u)); line-height: calc(40 * var(--u)); }
  .advantages__grid { width: calc(435.6 * var(--u)); grid-template-columns: 1fr; margin-top: calc(56 * var(--u)); }
  .adv-card { border-radius: calc(36 * var(--u)); }
  .adv-card:last-child:nth-child(odd) { width: auto; justify-self: stretch; }
  .adv-card h3 { height: calc(78.8 * var(--u)); padding: 0 calc(21 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(19.5 * var(--u)); }
  .adv-card__img { aspect-ratio: 435.6 / 189.3; }
  .blob--adv { opacity: .2; }

  /* telegram */
  .tg { height: auto; padding: calc(67 * var(--u)) 0 calc(84 * var(--u)); }
  .tg__inner { width: calc(570 * var(--u)); height: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .tg__text { position: static; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .tg__title { font-size: calc(28 * var(--u)); line-height: calc(24.5 * var(--u)); }
  .tg__pills { gap: calc(20 * var(--u)); margin-top: calc(12 * var(--u)); }
  .pill { height: calc(34.7 * var(--u)); padding: 0 calc(12.4 * var(--u)); gap: calc(6.4 * var(--u)); border-radius: calc(21 * var(--u)); font-size: calc(8 * var(--u)); }
  .pill img { width: calc(10.4 * var(--u)); }
  .tg__desc { margin-top: calc(30 * var(--u)); gap: calc(14 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.05; }
  .tg__phones { position: relative; left: auto; top: auto; width: calc(560 * var(--u)); margin: calc(10 * var(--u)) 0 calc(-60 * var(--u)); }
  .tg__btn { position: relative; left: auto; top: auto; height: calc(56 * var(--u)); padding: 0 calc(19.3 * var(--u)); gap: calc(9.9 * var(--u)); border-radius: calc(32.4 * var(--u)); font-size: calc(12.4 * var(--u)); }
  .tg__btn img { width: calc(17.5 * var(--u)); }

  /* contact */
  .contact { padding-bottom: calc(50 * var(--u)); }
  .ring--contact1 { left: auto; right: calc(-71 * var(--u)); top: calc(-110 * var(--u)); width: calc(162.4 * var(--u)); opacity: .86; }
  .ring--contact2 { left: calc(-22 * var(--u)); top: calc(-110 * var(--u)); width: calc(162.4 * var(--u)); opacity: .86; }
  .contact__body { width: calc(579 * var(--u)); margin-top: calc(51 * var(--u)); flex-direction: column; gap: calc(52 * var(--u)); transform: none; align-items: center; }
  .lead-form { flex: none; width: 100%; min-height: calc(341 * var(--u)); padding: calc(35 * var(--u)); border-radius: calc(35 * var(--u)); gap: calc(32 * var(--u)); }
  .lead-form h3 { font-size: calc(17.5 * var(--u)); }
  .lead-form__fields { gap: calc(23.3 * var(--u)); }
  .field input { height: calc(43.5 * var(--u)); padding: 0 calc(16.7 * var(--u)); font-size: max(16px, calc(14.1 * var(--u))); }
  .lead-form__submit { height: calc(55 * var(--u)); border-radius: calc(38 * var(--u)); font-size: calc(14.5 * var(--u)); box-shadow: 0 calc(16.7 * var(--u)) calc(21.9 * var(--u)) rgba(129, 242, 168, .44); }
  .lead-form__status { bottom: calc(8 * var(--u)); font-size: max(12px, calc(14 * var(--u))); }
  .steps { width: calc(502 * var(--u)); gap: calc(40.2 * var(--u)); justify-content: flex-start; }
  .steps li { gap: calc(5.1 * var(--u)); }
  .steps img { width: calc(16.2 * var(--u)); height: calc(32.5 * var(--u)); }
  .steps div { gap: calc(6.8 * var(--u)); }
  .steps b, .steps span { font-size: calc(16.4 * var(--u)); }
  .steps span { max-width: none; }

  /* works */
  .works { padding-bottom: calc(40 * var(--u)); }
  .works__slider { margin-top: calc(89 * var(--u)); }
  .works__track { gap: calc(12.3 * var(--u)); padding: 0 calc(98 * var(--u)); scroll-padding: 0 calc(98 * var(--u)); }
  .work { height: calc(221.2 * var(--u)); border-radius: calc(19.6 * var(--u)); }
  .w-s { width: calc(163.4 * var(--u)); }
  .w-m { width: calc(217.5 * var(--u)); }
  .w-l { width: calc(306.6 * var(--u)); }
  .works__arrow { display: none; }
  .blob--works { left: calc(646 * var(--u)); top: calc(373 * var(--u)); width: calc(354 * var(--u)); height: calc(189 * var(--u)); opacity: .2; }
  .works__more { margin-top: calc(50 * var(--u)); font-size: max(12px, calc(14 * var(--u))); line-height: 1.14; }
  .works__social { gap: calc(23.4 * var(--u)); margin-top: calc(18 * var(--u)); }
  .btn--social { height: calc(52.8 * var(--u)); padding: 0 calc(20 * var(--u)); gap: calc(9.8 * var(--u)); border-radius: calc(30 * var(--u)); font-size: calc(12.2 * var(--u)); box-shadow: 0 calc(4.9 * var(--u)) calc(18.4 * var(--u)) rgba(129, 242, 168, .44); }
  .btn--social img { width: calc(24.5 * var(--u)); height: calc(24.5 * var(--u)); }

  /* partners: горизонтальная лента */
  .partners { padding-bottom: calc(60 * var(--u)); }
  .partners__list {
    width: auto; max-width: none; margin-top: calc(68 * var(--u));
    justify-content: flex-start; gap: calc(12.3 * var(--u));
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0 calc(77 * var(--u));
  }
  .partners__list::-webkit-scrollbar { display: none; }
  .partners__list.partners__list--few { justify-content: center; gap: calc(70 * var(--u)); padding: 0 calc(40 * var(--u)); overflow: visible; }
  .partners__list.partners__list--few li { flex: 0 1 calc(320 * var(--u)); }
  .partners__list.partners__list--few .partners__logo { width: calc(300 * var(--u)); height: calc(120 * var(--u)); }
  .partners__list.partners__list--few span { font-size: max(13px, calc(24 * var(--u))); }
  .partners__list li { flex: 0 0 calc(172 * var(--u)); gap: calc(21.5 * var(--u)); scroll-snap-align: center; }
  .partners__logo { width: calc(85.4 * var(--u)); height: calc(85.4 * var(--u)); }
  .partners__logo--wide { width: calc(172 * var(--u)); }
  .partners__logo--bat { width: calc(152.4 * var(--u)); }
  .partners__list span { font-size: max(11px, calc(14.7 * var(--u))); line-height: 1.08; }

  /* footer */
  .footer { height: auto; min-height: calc(383 * var(--u)); padding-bottom: 32px; }
  .footer__up { width: calc(64 * var(--u)); height: calc(64 * var(--u)); }
  .footer__logo { margin-top: calc(100 * var(--u)); }
  .works, .partners { scroll-margin-top: 0; }
  .section-title { scroll-margin-top: 60px; }
  .footer__text { margin-top: calc(46 * var(--u)); }
}

/* Узкие телефоны — макет 440 */
@media (max-width: 599px) {
  .header__inner { width: calc(100vw - 2 * 82 * 100vw / 440); max-width: none; height: 46px; }
  .header__burger { width: 36px; height: 36px; }
  .header__contacts { display: none; }
  .header__call { display: block; width: 30px; height: 30px; }
  .header__call img { width: 100%; height: 100%; }
  .mobile-menu { --pad: 24px; }

  .hero__track { aspect-ratio: 444.37 / 318.13; }
  .hero__content { top: 10.957cqw; }
  .hero__btn { left: 33.15%; top: 28.9cqw; width: 33.756%; height: 8.209cqw; border-radius: 5.025cqw; font-size: 1.9326cqw; }

  .section-title { font-size: max(16px, calc(25 * var(--u))); line-height: 1.1; }
  .section-lead { width: 100%; padding: 0 16px; font-size: max(13px, calc(16 * var(--u))); }
  .advantages__grid { width: calc(100vw * 280 / 440); }
  .adv-card h3 { font-size: max(13px, calc(18 * var(--u))); }
  .tg__phones { width: calc(556 * var(--u)); }
  .tg__title { font-size: max(20px, calc(28 * var(--u))); line-height: 1; }
  .tg__desc { font-size: max(13px, calc(18 * var(--u))); line-height: 1.1; }
  .pill { font-size: max(7px, calc(8 * var(--u))); }
  .tg__btn { font-size: max(9px, calc(12.4 * var(--u))); }
  .steps { width: 100%; }
  .steps b, .steps span { font-size: max(12px, calc(16.4 * var(--u))); }
  .lead-form h3 { font-size: max(14px, calc(17.5 * var(--u))); }
  .lead-form__submit { font-size: max(11px, calc(14.5 * var(--u))); }
  .btn--social { font-size: max(9px, calc(12.2 * var(--u))); }
  .footer__text { font-size: max(16px, calc(24 * var(--u))); line-height: 1.08; }
}

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

/* =========================================================
   ДОБАВЛЕНО: языки, согласие, страницы политики и 404
   ========================================================= */
[hidden] { display: none !important; }

/* Переключатель языка */
.lang { position: relative; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 150px; padding: 6px; border-radius: 14px;
  background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.lang__list a { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-family: var(--f-open); font-size: 15px; }
.lang__list a:hover { background: var(--bg); }
.lang__list a.is-active { color: var(--green-dark); font-weight: 700; }
.mobile-menu__langs { display: flex; gap: 8px; margin-top: 16px; }
.mobile-menu__langs a, .page-langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid #000;
  font-family: var(--f-open); font-size: 15px;
}
.mobile-menu__langs a.is-active, .page-langs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Согласие и антиспам-поле в форме */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u)); }
.lead-form__consent { font-family: var(--f-open); font-size: max(11px, calc(13 * var(--u))); line-height: 1.3; color: rgba(23,23,23,.6); text-align: center; }
.lead-form__consent a { text-decoration: underline; text-underline-offset: 2px; }
.lead-form__consent a:hover { color: var(--green-dark); }
.lead-form { padding-bottom: calc(40 * var(--u)); }
.lead-form__status { bottom: calc(10 * var(--u)); }

/* Точки слайдера: видимая точка прежняя, область нажатия — 24px */
.hero__dots button { position: relative; }
.hero__dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }

/* Страница политики */
.header--simple .header__inner { gap: 16px; }
.page-back { margin-right: auto; margin-left: 24px; font-family: var(--f-open); font-size: 15px; }
.page-back:hover { color: var(--green-dark); }
.page-langs { display: flex; gap: 6px; }
.page-langs a { min-width: 40px; height: 32px; font-size: 13px; }
.doc { width: min(820px, calc(100vw - 32px)); margin: 48px auto 64px; padding: 48px; background: #fff; border-radius: 32px; font-family: var(--f-open); font-size: 16px; line-height: 1.6; color: var(--ink); }
.doc h1 { font-family: var(--f-rubik); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.doc__date { margin-top: 8px; color: rgba(23,23,23,.55); font-size: 14px; }
.doc h2 { margin-top: 32px; font-family: var(--f-gogh); font-weight: 700; font-size: 19px; line-height: 1.3; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.doc-footer { text-align: center; padding: 0 16px 40px; font-family: var(--f-open); font-size: 14px; color: rgba(23,23,23,.6); }
@media (max-width: 1023px) {
  .header--simple .header__inner { width: calc(100vw - 32px); height: 60px; }
  .header--simple .header__logo { display: block; }
  .header--simple .header__logo img { width: 36px; height: 33px; }
  .page-back { margin-left: 8px; font-size: 14px; }
  .doc { padding: 28px 20px; margin: 24px auto 40px; border-radius: 24px; font-size: 15px; }
}
@media (max-width: 420px) { .page-back { display: none; } .header--simple .header__inner { justify-content: space-between; } }

/* 404 */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; gap: 12px; }
.nf__logo { width: 140px; height: auto; margin-bottom: 12px; }
.nf__code { font-family: var(--f-rubik); font-weight: 700; font-size: clamp(72px, 14vw, 140px); line-height: 1; color: var(--green); }
.nf__title { font-family: var(--f-rubik); font-size: clamp(22px, 3vw, 32px); }
.nf__text { font-family: var(--f-open); font-weight: 300; font-size: 18px; max-width: 420px; }
.nf__btn { margin-top: 16px; height: 56px; padding: 0 32px; border-radius: 32px; font-family: var(--f-roboto); font-weight: 600; font-size: 16px; box-shadow: 0 12px 24px rgba(129, 242, 168, .44); }

/* =========================================================
   ВСПЛЫВАЮЩАЯ ФОРМА (макет 926 / 672 / 342)
   ========================================================= */
.modal {
  width: min(calc(926 * var(--u)), calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: calc(45 * var(--u)) calc(49 * var(--u)) calc(45 * var(--u));
  border: 0; border-radius: calc(68 * var(--u));
  background: #fff; color: var(--ink);
  overflow: hidden auto; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
.modal[open] { animation: modal-in .28s ease both; }
.modal::backdrop { background: rgba(23, 23, 23, .55); backdrop-filter: blur(4px); animation: fade-in .28s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
body.is-modal-open { overflow: hidden; }
.modal__ring { position: absolute; left: calc(635.8 * var(--u)); top: calc(-108.3 * var(--u)); width: calc(253 * var(--u)); opacity: .86; pointer-events: none; }
.modal__close {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244,244,244,.9); color: var(--ink); transition: background .2s;
}
.modal__close:hover { background: #e6e6e6; }
.modal__title { position: relative; font-family: var(--f-rubik); font-weight: 700; font-size: calc(40 * var(--u)); line-height: 1; }
.modal__lead { position: relative; max-width: calc(677 * var(--u)); margin: calc(28 * var(--u)) auto 0; font-family: var(--f-open); font-weight: 300; font-size: calc(24 * var(--u)); line-height: calc(26 * var(--u)); }
.lead-form--modal {
  margin-top: calc(22 * var(--u)); min-height: 0;
  padding: calc(32 * var(--u)) calc(48 * var(--u)) calc(40 * var(--u));
  border-radius: calc(48 * var(--u));
  background: none; justify-content: flex-start;
}
.lead-form--modal .lead-form__submit {
  width: calc(484 * var(--u)); height: calc(84 * var(--u)); border-radius: calc(53 * var(--u));
  font-weight: 800; font-size: calc(24 * var(--u)); letter-spacing: .05em;
  box-shadow: 0 calc(8 * var(--u)) calc(30 * var(--u)) rgba(129, 242, 168, .44);
}
.lead-form--modal .lead-form__actions { margin-top: calc(48 * var(--u)); }

@media (max-width: 1023px) {
  .modal { --m: calc((100vw - 32px) / 342); width: calc(100vw - 32px); padding: calc(16.6 * var(--m)) calc(18 * var(--m)) calc(16 * var(--m)); border-radius: calc(25 * var(--m)); }
  .modal__ring { left: calc(234.8 * var(--m)); top: calc(-40 * var(--m)); width: calc(93.4 * var(--m)); }
  .modal__title { font-size: max(20px, calc(14.7 * var(--m))); padding: 0 40px; }
  .modal__lead { margin-top: 10px; max-width: none; font-size: max(14px, calc(9 * var(--m))); line-height: 1.3; }
  .lead-form--modal { margin-top: 8px; padding: 8px 0 12px; }
  .lead-form--modal .lead-form__submit { width: 100%; height: max(48px, calc(36 * var(--m))); border-radius: 30px; font-size: max(13px, calc(8.8 * var(--m))); }
  .lead-form--modal .lead-form__actions { margin-top: 20px; gap: 10px; }
  .lead-form--modal .field input { height: 48px; }
  .modal__close { right: 10px; top: 10px; width: 36px; height: 36px; }
}

/* =========================================================
   НИЖНЯЯ ПАНЕЛЬ НА ТЕЛЕФОНЕ: позвонить / Telegram
   ========================================================= */
.contact-bar { display: none; }
@media (max-width: 1023px) {
  .contact-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px rgba(0,0,0,.08);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .contact-bar.is-visible { transform: none; }
  .contact-bar__btn {
    flex: 1; height: 48px; border-radius: 24px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--f-roboto); font-weight: 600; font-size: 15px; white-space: nowrap;
  }
  .contact-bar__btn--call { color: #fff; background: var(--grad-green); box-shadow: 0 6px 16px rgba(129, 242, 168, .45); }
  .contact-bar__btn--tg { color: #229ed9; background: #fff; border: 1.5px solid #229ed9; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .contact-bar__btn { font-size: 13px; gap: 6px; } }

/* =========================================================
   FAQ — частые вопросы
   ========================================================= */
.faq { padding-bottom: calc(40 * var(--u)); }
.faq__list { width: var(--container); max-width: calc(980 * var(--u)); margin: calc(64 * var(--u)) auto 0; display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.faq__item { background: #fff; border-radius: calc(28 * var(--u)); transition: box-shadow .25s ease; }
.faq__item[open] { box-shadow: 0 calc(12 * var(--u)) calc(36 * var(--u)) rgba(0,0,0,.06); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: calc(26 * var(--u)) calc(84 * var(--u)) calc(26 * var(--u)) calc(32 * var(--u));
  font-family: var(--f-gogh); font-weight: 700; font-size: calc(20 * var(--u)); line-height: 1.3; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: calc(28 * var(--u)); top: 50%;
  width: calc(36 * var(--u)); height: calc(36 * var(--u)); margin-top: calc(-18 * var(--u)); border-radius: 50%;
  background: var(--green) no-repeat center / 45% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--green-dark); }
.faq__a { padding: 0 calc(84 * var(--u)) calc(28 * var(--u)) calc(32 * var(--u)); font-family: var(--f-open); font-weight: 400; font-size: calc(18 * var(--u)); line-height: 1.55; color: rgba(23,23,23,.8); }
.faq__a a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
/* плавное раскрытие там, где браузер это умеет */
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height .3s ease, content-visibility .3s allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}
@media (max-width: 1023px) {
  .faq__list { width: calc(100vw - 32px); max-width: 640px; margin-top: 28px; gap: 10px; }
  .faq__item { border-radius: 20px; }
  .faq__item summary { padding: 18px 60px 18px 20px; font-size: 16px; }
  .faq__item summary::after { right: 16px; width: 30px; height: 30px; margin-top: -15px; }
  .faq__a { padding: 0 20px 20px; font-size: 15px; }
}

/* =========================================================
   Появление блоков при прокрутке
   ========================================================= */


/* =========================================================
   Просмотр фото «Наших работ»
   ========================================================= */
.work__open { display: block; width: 100%; height: 100%; padding: 0; cursor: zoom-in; }
.work__open img { transition: transform .5s ease; }
.work__open:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(15, 15, 15, .94); color: #fff; overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fade-in .25s ease both; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 72px 96px; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 16px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .2s ease; }
.lightbox__img.is-loading { opacity: 0; }
.lightbox__count { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-family: var(--f-open); font-size: 15px; opacity: .75; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #fff; transition: background .2s, transform .2s;
}
.lightbox__btn:hover { background: var(--green); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
@media (max-width: 1023px) {
  .lightbox__stage { padding: 64px 12px 72px; }
  .lightbox__img { border-radius: 12px; }
  .lightbox__nav { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__count { bottom: 28px; }
  .lightbox__close { top: 12px; right: 12px; width: 46px; height: 46px; }
}

/* =========================================================
   Прямые контакты под формой
   ========================================================= */
.contact__direct { position: relative; width: var(--container); margin: calc(72 * var(--u)) auto 0; text-align: center; }
.contact__direct-title { font-family: var(--f-open); font-weight: 300; font-size: calc(22 * var(--u)); color: var(--ink); }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(14 * var(--u)); margin-top: calc(22 * var(--u)); }
.contact__links a {
  display: inline-flex; align-items: center; gap: 10px;
  height: calc(56 * var(--u)); padding: 0 calc(24 * var(--u));
  border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--f-open); font-weight: 400; font-size: calc(18 * var(--u));
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(0,0,0,.05);
  transition: color .2s, box-shadow .2s, transform .2s;
}
.contact__links svg { color: var(--green); flex: none; }
.contact__links a:hover { color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(80,200,120,.22); }
@media (max-width: 1023px) {
  .contact__direct { width: calc(100vw - 32px); max-width: 520px; margin-top: 40px; }
  .contact__direct-title { font-size: 16px; }
  .contact__links { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .contact__links a { height: 52px; padding: 0 20px; font-size: 16px; justify-content: flex-start; }
}

/* =========================================================
   АНИМАЦИИ
   Используем отдельные свойства translate/scale, чтобы не конфликтовать
   с transform, который уже есть у некоторых элементов.
   При «Уменьшить движение» остаются только плавные появления, без сдвигов.
   ========================================================= */
:root { --ease-out: cubic-bezier(.16, .84, .3, 1); }

/* --- Появление при прокрутке --- */
.reveal {
  opacity: 0; translate: 0 40px;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), scale .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal--left  { translate: -56px 0; }
.reveal--right { translate: 56px 0; }
.reveal--zoom  { translate: 0 32px; scale: .92; }
.reveal--blur  { translate: 0 24px; filter: blur(8px); }
.reveal.is-shown { opacity: 1; translate: 0 0; scale: 1; filter: none; }

/* --- Главный экран: текст и кнопка выезжают при каждой смене слайда --- */
.hero__title, .hero__subtitle, .hero__btn {
  opacity: 0; translate: 0 28px;
  transition: opacity .8s var(--ease-out), translate .8s var(--ease-out);
}
.hero__slide.is-active .hero__title    { opacity: 1; translate: 0 0; transition-delay: .25s; }
.hero__slide.is-active .hero__subtitle { opacity: 1; translate: 0 0; transition-delay: .4s; }
.hero__slide.is-active .hero__btn      { opacity: 1; translate: 0 0; transition-delay: .55s, .55s, 0s, 0s, 0s; }
.hero__btn { transition: opacity .8s var(--ease-out), translate .8s var(--ease-out), transform .2s ease, box-shadow .2s ease, filter .2s ease; }
/* медленное приближение фона */
.hero__bg img { scale: 1.07; transition: scale 7s ease-out; }
.hero__slide.is-active .hero__bg img { scale: 1; }
/* точки: активная вытягивается в «таблетку» */
.hero__dots button { transition: background .3s, width .4s var(--ease-out), border-radius .4s; }
.hero__dots button[aria-selected="true"] { transform: none; width: calc(.635cqw * 3.2); min-width: 24px; border-radius: 999px; }

/* --- Шапка: тень после прокрутки --- */
.header { transition: box-shadow .3s ease; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }

/* --- Зелёные кнопки: блик при наведении --- */
.btn--green { position: relative; overflow: hidden; isolation: isolate; }
.btn--green::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  translate: -120% 0; transition: translate .7s ease;
}
.btn--green:hover::after { translate: 120% 0; }
.hero__btn::after { z-index: 1; }

/* --- Телефоны магазина плавно «парят» --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.tg__phones.is-floating { animation: float 6s ease-in-out infinite; }

/* --- Кольца и пятна медленно «дышат» --- */
@keyframes breathe { 0%, 100% { opacity: .26; scale: 1; } 50% { opacity: .38; scale: 1.08; } }
.blob--adv, .blob--works { animation: breathe 9s ease-in-out infinite; }
@keyframes spin-slow { to { rotate: 360deg; } }
.ring { animation: spin-slow 40s linear infinite; }

/* --- Карточки преимуществ приподнимаются при наведении --- */
.adv-card:not(.reveal) { transition: translate .35s var(--ease-out), box-shadow .35s ease; }
.adv-card:not(.reveal):hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }

/* --- Шаги: иконка-«подкова» пульсирует при появлении --- */
@keyframes pop { 0% { scale: .6; opacity: 0; } 70% { scale: 1.15; opacity: 1; } 100% { scale: 1; } }
.steps li.is-shown img { animation: pop .6s var(--ease-out) both; animation-delay: calc(var(--reveal-delay, 0s) + .2s); }

/* --- «Уменьшить движение»: только плавные появления, без сдвигов и бесконечных анимаций --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--zoom, .reveal--blur { translate: none; scale: none; filter: none; transition: opacity .6s ease; transition-delay: var(--reveal-delay, 0s); }
  .hero__title, .hero__subtitle, .hero__btn { translate: none; }
  .hero__bg img, .hero__slide.is-active .hero__bg img { scale: 1; transition: none; }
  .tg__phones.is-floating, .blob--adv, .blob--works, .ring, .steps li.is-shown img { animation: none; }
  .adv-card:not(.reveal):hover { translate: none; }
  .btn--green::after { display: none; }
}

/* Ссылка «Каталог на сайте» в блоке Telegram */
.tg__catalog {
  display: inline-flex; align-items: center; gap: 8px; margin-top: calc(26 * var(--u));
  font-family: var(--f-gogh); font-weight: 700; font-size: max(14px, calc(18 * var(--u)));
  color: #fff; border-bottom: 1.5px solid rgba(255,255,255,.4); padding-bottom: 3px; transition: color .2s, border-color .2s;
}
.tg__catalog:hover { color: var(--green-2); border-color: var(--green-2); }

/* Окно «Магазин»: сайт магазина или Telegram */
.store-choice { width: min(640px, calc(100vw - 32px)); padding: 36px 32px 32px; border-radius: 32px; }
.store-choice .modal__title { font-size: clamp(24px, 3vw, 32px); padding: 0 32px; }
.store-choice .modal__lead { margin-top: 10px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.4; }
.store-choice__options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.store-choice__opt {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 26px 18px 22px; border-radius: 22px; background: var(--bg); border: 2px solid transparent;
  transition: border-color .2s, translate .2s, box-shadow .2s;
}
.store-choice__opt:hover { translate: 0 -3px; border-color: var(--green); box-shadow: 0 12px 28px rgba(80,200,120,.18); }
.store-choice__opt--tg { background: #eaf6ff; }
.store-choice__opt--tg:hover { border-color: #2aabee; box-shadow: 0 12px 28px rgba(42,171,238,.2); }
.store-choice__icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #2aabee; color: #fff; }
.store-choice__icon--web { background: var(--ink-2); }
.store-choice__opt b { font-family: var(--f-gogh); font-weight: 800; font-size: 18px; }
.store-choice__opt small { font-family: var(--f-open); font-size: 14px; line-height: 1.35; color: rgba(23,23,23,.65); }
.store-choice__badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--f-open); font-weight: 700; font-size: 12px; }
@media (max-width: 599px) {
  .store-choice { padding: 28px 18px 18px; border-radius: 24px; }
  .store-choice__options { grid-template-columns: 1fr; }
  .store-choice__opt { flex-direction: row; text-align: left; align-items: center; padding: 16px; gap: 14px; flex-wrap: wrap; }
  .store-choice__opt b { flex: 1; }
  .store-choice__opt small { flex-basis: 100%; padding-left: 70px; margin-top: -10px; }
  .store-choice__icon { width: 52px; height: 52px; flex: none; }
}

/* =========================================================
   МОБИЛЬНАЯ ДОРАБОТКА (≤599px): читаемые тексты и кнопки под палец
   ========================================================= */
@media (max-width: 599px) {
  .header__call { width: 40px; height: 40px; }
  .header__burger { width: 40px; height: 40px; }

  .hero__title { font-size: max(14px, 2.9cqw); }
  .hero__content { width: 72%; }
  .hero__subtitle { font-size: max(11.5px, 2.4cqw); text-wrap: balance; }
  .hero__btn { width: max(170px, 33.756%); left: calc(50% - max(85px, 16.878%)); height: max(38px, 8.209cqw); font-size: max(10.5px, 1.9326cqw); border-radius: 999px; }

  .section-title { font-size: max(22px, calc(25 * var(--u))); }

  .tg__text { width: calc(100vw - 32px); max-width: 420px; }
  .tg__pills { gap: 8px; justify-content: center; flex-wrap: wrap; }
  .pill { flex: none; height: auto; min-height: 24px; padding: 4px 10px; gap: 5px; font-size: 10px; white-space: nowrap; }
  .tg__phones { width: min(calc(100vw - 32px), 420px); }
  .pill img { width: 10px; }
  .tg__btn { height: 44px; padding: 0 20px; gap: 8px; font-size: 13px; border-radius: 24px; }
  .tg__btn img { width: 16px; }
  .tg__catalog { padding: 8px 0; }

  .works__more { font-size: 14px; }
  .btn--social { height: 40px; padding: 0 18px; gap: 8px; font-size: 13px; border-radius: 22px; }
  .btn--social img { width: 20px; height: 20px; }

  .partners__list.partners__list--few span { font-size: 14px; }

  .contact__body { width: calc(100vw - 32px); max-width: 420px; }
  .lead-form { padding: 22px 18px 26px; gap: 18px; border-radius: 24px; }
  .lead-form h3 { font-size: 18px; }
  .lead-form input { height: 44px; font-size: 16px; }
  .lead-form__submit { height: 48px; font-size: 13px; border-radius: 30px; }
  .lead-form__consent { font-size: 12px; line-height: 1.35; }
  .steps b, .steps span { font-size: 14px; }

  .footer__up { width: 44px; height: 44px; }
  .modal__title { padding: 0 44px; }
}

/* ☰ → ✕ при открытом меню */
.burger path { fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 18px 18px; transition: transform .3s var(--ease-out), opacity .2s; }
.header__burger[aria-expanded="true"] .burger path:nth-child(1) { transform: rotate(45deg) translateY(9px); }
.header__burger[aria-expanded="true"] .burger path:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] .burger path:nth-child(3) { transform: rotate(-45deg) translateY(-9px); }
@media (prefers-reduced-motion: reduce) { .burger path { transition: none; } }

/* стрелка подвала не должна касаться контактов над ней */
@media (max-width: 1023px) { .contact__direct { padding-bottom: 28px; } }
/* самые узкие телефоны: поднимаем текст баннера, чтобы он не доставал до кнопки */
@media (max-width: 359px) { .hero__slide[data-slide="3"] .hero__content { top: 6cqw; } }

/* логотипы партнёров появляются одновременно, чтобы подписи стояли на одной линии и во время анимации */
.partners__list--few li { --reveal-delay: 0s !important; }

/* плашки в блоке Telegram: читаемый размер на всех экранах */
.pill { font-size: max(12px, calc(13 * var(--u))); }
@media (max-width: 1023px) {
  .pill { height: auto; min-height: 30px; padding: 5px 13px; gap: 6px; border-radius: 999px; white-space: nowrap; }
  .pill img { width: 12px; }
}
@media (max-width: 599px) { .pill { min-height: 28px; padding: 5px 10px; gap: 5px; } }
@media (max-width: 359px) {
  .tg__pills { gap: 6px; }
  .pill { font-size: 11px; padding: 5px 7px; gap: 4px; }
  .pill img { width: 10px; }
}
/* узкие телефоны: кнопка баннера ниже, чтобы текст до неё не доставал */
@media (max-width: 399px) { .hero__btn { top: 32cqw; } }
@media (max-width: 359px) {
  .hero__btn { top: 34cqw; }
  .adv-card h3 { height: auto; min-height: 34px; padding: 6px 10px; line-height: 1.15; }
}

/* Четыре партнёра на планшете и телефоне — сетка 2 × 2 */
@media (max-width: 1023px) {
  .partners__list.partners__list--few:has(> li:nth-child(4)) { flex-wrap: wrap; gap: calc(70 * var(--u)) calc(40 * var(--u)); }
  .partners__list.partners__list--few:has(> li:nth-child(4)) li { flex: 0 0 calc((100% - 40 * var(--u)) / 2); }
}
