/* =========================================================
   Контур Видео — landing
   Макет: Figma 1920px, контент 1128px (x 396–1524)
   Шрифт — Involve (SIL OFL 1.1, assets/fonts/OFL.txt), кнопки — Inter.
   *-override: Chrome/Windows берёт у Involve win-метрики (1060/270),
   а Figma — hhea (800/-200/330); без override текст ниже макета на 0.095em.
   ========================================================= */

@font-face { font-family: "Involve"; font-weight: 400; font-display: swap; src: url("../fonts/Involve-Regular.woff2") format("woff2"); ascent-override: 80%; descent-override: 20%; line-gap-override: 33%; }
@font-face { font-family: "Involve"; font-weight: 500; font-display: swap; src: url("../fonts/Involve-Medium.woff2") format("woff2"); ascent-override: 80%; descent-override: 20%; line-gap-override: 33%; }
@font-face { font-family: "Involve"; font-weight: 600; font-display: swap; src: url("../fonts/Involve-SemiBold.woff2") format("woff2"); ascent-override: 80%; descent-override: 20%; line-gap-override: 33%; }
@font-face { font-family: "Involve"; font-weight: 700; font-display: swap; src: url("../fonts/Involve-Bold.woff2") format("woff2"); ascent-override: 80%; descent-override: 20%; line-gap-override: 33%; }

:root {
  --orange: #ff8900;
  --black: #000;
  --dark: #1e1e1e;
  --text: #525252;
  --muted: #aaa;
  --line: #e0e0e0;
  --divider: #ebebed;
  --bg: #f5f5f5;
  --footer: #2a2a2a;
  --white: #fff;

  --font: "Involve", "Century Gothic", sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --lh: 1.357; /* line-height "normal" у Involve */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input { font: inherit; }

.wrap { width: 1128px; margin-inline: auto; }

/* ---------- Typography ---------- */

.eyebrow {
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
}

.h2 {
  color: var(--black);
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.center { text-align: center; }
/* CSS добавляет letter-spacing и после последней буквы, Figma — нет:
   компенсируем, чтобы центр текста совпадал с макетом */
.eyebrow.center,
.tariffs__content > .eyebrow,
.contacts > .eyebrow { padding-left: 1.54px; }
.h2.center,
.tariffs__content > .h2,
.contacts > .h2 { padding-left: 1.5px; }
.nudge { position: relative; left: -12px; } /* в макете центр заголовка смещён на 12px */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn img { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: var(--white); font-weight: 500; }
.btn--primary:hover { background: #ff9a26; box-shadow: 0 6px 16px rgba(255, 137, 0, .3); }

.btn--primary-dark { background: var(--orange); color: var(--black); font-weight: 500; }
.btn--primary-dark:hover { background: #ff9a26; }

.btn--dark { background: var(--dark); color: var(--white); font-weight: 500; }
.btn--dark:hover { background: #333; }

.btn--outline { border: 1px solid var(--text); color: var(--text); font-weight: 400; }
.btn--outline:hover { border-color: var(--dark); color: var(--dark); }

.btn--outline-orange { border: 1px solid var(--orange); color: var(--orange); font-weight: 400; }
.btn--outline-orange:hover { background: var(--orange); color: var(--white); }

/* ---------- Header ---------- */

.header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  height: 57px;
  margin-top: 22px;
}

.header__logo { flex: none; width: 180px; height: 57px; }
.header__logo img { width: 100%; height: 100%; object-fit: cover; }

.nav {
  display: flex;
  flex: none;
  gap: 50px;
  width: 607px;
  margin: 18px 0 0 50px;
  padding: 0 12px;
}
.nav__link {
  position: relative;
  display: flex;
  justify-content: center;
  height: 19px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  white-space: nowrap;
  transition: color .2s;
}
.nav__link:nth-child(1) { width: 96px; font-weight: 400; }
.nav__link:nth-child(2) { width: 14px; }
.nav__link:nth-child(3) { width: 98px; }
.nav__link:nth-child(4) { width: 60px; }
.nav__link:nth-child(5) { width: 30px; }
.nav__link:nth-child(6) { width: 30px; }
.nav__link::after {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(50% + .5px);
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--black);
  opacity: 0;
  transition: opacity .2s;
}
.nav__link:hover { color: var(--dark); }
.nav__link.is-active { color: var(--dark); font-weight: 600; }
.nav__link.is-active::after { opacity: 1; }

.header__user {
  flex: none;
  width: 40px;
  height: 40px;
  margin: 8px 0 0 53px;
  border-radius: 50%;
  transition: transform .2s;
}
.header__user:hover { transform: scale(1.06); }
.header__user img { width: 100%; height: 100%; }

.header__download { margin: 8px 0 0 20px; height: 40px; }

.burger { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flow-root;
  height: 609px;
  padding: 0 30px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { margin-top: 86px; }
.hero__title {
  width: 622px;
  margin-top: 5px;
  color: var(--black);
  font-size: 40px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__text {
  width: 399px;
  margin-top: 30px;
  font-size: 14px;
  line-height: 19px;
}
.hero__actions { display: flex; align-items: flex-start; gap: 15px; margin-top: 35px; }
.hero__actions .btn--outline { height: 39px; }

.hero__tags { display: flex; align-items: center; margin-top: 112px; }
.hero__tags li {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__tags li:nth-child(1) { width: 175px; }
.hero__tags li:nth-child(2) { width: 107px; } /* точка 15+3+15 + текст 74 */
.hero__tags li:nth-child(3) { width: 71px; }
.hero__tags li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 15px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ---------- Features ---------- */

.features {
  height: 300px;
  padding-top: 30px;
  border-radius: 10px;
  background: var(--white);
}
.features .h2 { margin-top: 0; }
.features__lead {
  width: 492px;
  margin: 2px auto 0;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 188px);
  margin-top: 29px;
}
.feature {
  position: relative;
  padding: 0 15px;
  text-align: center;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 1px;
  height: 111px;
  background: var(--divider);
}
.feature__icon { display: flex; align-items: center; justify-content: center; height: 22px; }
.feature__icon img { width: auto; height: auto; }
.feature__title {
  height: 24px;
  margin-top: 14px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}
.feature__text { margin-top: 7px; font-size: 10px; line-height: 12px; }

/* ---------- AI ---------- */

.ai {
  display: flex;
  height: 404px;
  margin-top: 70px;
  background: var(--white);
}
.ai__media { flex: none; width: 606px; height: 404px; }
.ai__media img { width: 100%; height: 100%; object-fit: cover; }
.ai__body { padding: 20px 0 0 30px; }
.ai__grid {
  display: grid;
  grid-template-columns: repeat(4, 108px);
  grid-auto-rows: 69px;
  gap: 10px;
  width: 462px;
  margin-top: 17px;
}
.ai-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 21px; /* + 1px border = 22 */
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .2s, color .2s, background-color .2s;
}
.ai-card small { font-size: 9px; }
/* отступы текста по рядам — как в макете */
.ai-card:nth-child(n + 5) { padding-top: 23px; }
.ai-card:nth-child(8) { padding-top: 16px; }
.ai-card:nth-child(n + 9) { padding-top: 22px; }
.ai-card:hover { border-color: #ffc27a; }
.ai-card.is-active { border-color: var(--orange); color: var(--orange); font-weight: 700; }
.ai__cta { width: 462px; margin-top: 20px; text-align: center; }

/* ---------- Events ---------- */

.events { position: relative; height: 404px; margin-top: 70px; }
.events__text { position: absolute; top: 135px; left: 30px; }
.events__title { width: 402px; line-height: 32px; }
.events__lead { width: 332px; margin-top: 9px; font-size: 12px; line-height: 16px; }
.events__media { position: absolute; top: 0; left: 408px; width: 442px; height: 404px; }
.events__media img { width: 100%; height: 100%; object-fit: cover; }
.events__list li {
  position: absolute;
  left: 841px;
  width: 287px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
}
.events__list li:nth-child(1) { top: 56px; }
.events__list li:nth-child(2) { top: 161px; }
.events__list li:nth-child(3) { top: 244px; }
.events__list li:nth-child(4) { top: 333px; }
.events__list b { color: var(--orange); font-weight: 700; }

/* ---------- Connect ---------- */

.connect { width: 672px; margin: 70px auto 0; }
.connect .eyebrow { position: relative; left: -3.5px; } /* в макете центр смещён */
.connect .h2 { position: relative; left: -3px; margin-top: 1px; line-height: 32px; }
.connect__grid { display: grid; grid-template-columns: repeat(2, 326px); gap: 20px; margin-top: 32px; }
.connect-card {
  height: 326px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  text-align: center;
}
.connect-card img { width: 100%; height: 217px; object-fit: cover; }
.connect-card__title {
  margin-top: 19px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}
.connect-card__text { width: 269px; margin: 13px auto 0; font-size: 10px; line-height: 12px; }

/* ---------- Scenarios ---------- */

.scenarios {
  height: 241px;
  margin-top: 70px;
  padding-top: 30px;
  border-radius: 10px;
  background: var(--white);
}
.scenarios__grid {
  display: grid;
  grid-template-columns: repeat(3, 215px);
  grid-auto-rows: 40px;
  gap: 10px;
  width: 665px;
  margin: 19px 0 0 229px;
}
.scenarios__grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  text-transform: uppercase;
}

/* ---------- Plans (cards) ---------- */

.plan {
  position: relative;
  width: 234px;
  height: 361px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  text-align: left;
}
.plan--free { box-shadow: 7px 5px 10.7px rgba(0, 0, 0, .15); overflow: visible; }
.plan--dark { background: var(--dark); }
.plan--accent { box-shadow: inset 0 0 0 2px var(--orange); }
.plan > * { position: absolute; }

.plan__glow {
  top: 139px;
  left: 8px;
  width: 226px;
  height: 222px;
  overflow: hidden;
  border-bottom-right-radius: 10px;
  opacity: .25;
  pointer-events: none;
}
.plan__glow img { position: absolute; top: 0; left: 0; width: 152.21%; max-width: none; height: 154.95%; }

.plan__label {
  top: 20px;
  left: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 1.54px;
}
.plan--dark .plan__label { color: var(--orange); }
.plan__mark { top: 21px; left: 96px; width: 16px; height: 16px; transform: scaleY(-1); }
.plan__popular {
  top: 10px;
  right: 10px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  text-transform: uppercase;
}
.plan__title {
  top: 44px;
  left: 20px;
  width: 194px;
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.plan--dark .plan__title { color: var(--white); }
.plan__price {
  top: 97px;
  left: 20px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 900;
  line-height: 29px;
  white-space: nowrap;
}
.plan--dark .plan__price { color: var(--orange); }
.plan__price small {
  position: absolute;
  top: 13px;
  left: var(--per-x);
  transform: translateX(-50%);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  text-transform: uppercase;
}
.plan--month { --per-x: 90.5px; } /* центр «/ мес» в макете: 110.5px от края карты */
.plan--year { --per-x: 106.5px; }  /* центр «/ год»: 126.5px */
.plan--year .plan__price small { top: 14px; }
.plan__line { left: 20px; width: 194px; height: 1px; background: var(--line); }
.plan--dark .plan__line { background: #3f3f3f; }
.plan__line--1 { top: 129px; }
.plan__line--2 { top: 179px; }
.plan__line--3 { top: 229px; }
.plan__line--4 { top: 279px; }
.plan__item {
  left: 27px;
  width: 181px;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  text-align: center;
  text-transform: uppercase;
}
.plan--dark .plan__item { color: var(--white); }
.plan__item--1 { top: 149px; }
.plan__item--2 { top: 199px; }
.plan__item--3 { top: 248px; }
.plan--dark .plan__item--3 { top: 244px; }
.plan__btn { top: 302px; left: 38.5px; }
.plan--dark .plan__btn { top: 306px; left: 38px; width: 159px; height: 35px; }

/* ---------- Premium (landing) ---------- */

.premium { position: relative; height: 416px; margin-top: 70px; }
.premium__text { position: absolute; top: 97px; left: 50px; }
.premium__title { width: 446px; line-height: 32px; }
.premium__lead { width: 425px; margin-top: 8px; font-size: 12px; line-height: 16px; }
.premium__btn { margin-top: 29px; }
.premium__cards { position: absolute; inset: 0; pointer-events: none; } /* не перекрывает текст и кнопку слева */
.premium__cards .plan { pointer-events: auto; }
.premium__cards .plan--free { position: absolute; top: 11.24px; left: 564.23px; transform: rotate(-6deg); }
.premium__cards .plan--dark { position: absolute; top: 43.48px; left: 806.46px; transform: rotate(6deg); }

/* ---------- FAQ ---------- */

.faq {
  height: 428px;
  margin-top: 70px;
  padding-top: 30px;
  border-radius: 10px;
  background: var(--white);
}
.faq__list { width: 413px; margin: 27px auto 0; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 642px;
  margin-left: -114.5px;
  padding: 19px 0 18px;
  color: var(--text);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
  transition: padding-bottom .3s ease, color .2s;
}
.faq__q:hover { color: var(--dark); }
.faq__item.is-open .faq__q { padding-bottom: 15px; }
.faq__arrow { flex: none; width: 7px; height: 6px; margin-right: 15px; transition: transform .25s; }
.faq__item.is-open .faq__arrow { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  width: 642px;
  margin-left: -114.5px;
  padding: 0 0 21px;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
}

/* ---------- Contacts ---------- */

.contacts { margin-top: 70px; text-align: center; }
.contacts__grid { display: flex; justify-content: center; gap: 20px; margin-top: 27px; }
.contact { display: block; width: 211px; }
.contact__qr {
  position: relative;
  height: 211px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: var(--white);
  transition: box-shadow .2s, transform .2s;
}
.contact:hover .contact__qr { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(255, 137, 0, .18); }
.contact__qr img { position: absolute; }
.contact--tg .contact__qr img { top: 15px; left: 11px; width: 186px; height: 183px; }
.contact--max .contact__qr img { top: 15px; left: 14px; width: 180px; height: 180px; }
.contact__name {
  margin-top: 20px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.footer { height: 116px; margin-top: 73px; background: var(--footer); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; height: 100%; padding: 0 30px; }
.footer__logo { width: 130px; height: 41px; margin-top: 37px; }
.footer__logo img { width: 100%; height: 100%; object-fit: cover; }
.footer__copy {
  color: #898989;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
  margin-top: 53px;
}

/* ---------- Premium page ---------- */

.tariffs { position: relative; display: flow-root; height: 752px; padding: 0 30px; }
.tariffs__content { position: relative; z-index: 1; text-align: center; }
.tariffs__eyebrow { margin-top: 71px; }
.tariffs .h2 { margin-top: 0; }
.tariffs__grid { display: flex; justify-content: center; gap: 20px; margin-top: 41px; }
.tariffs__note { width: 742px; margin: 63px auto 0; font-size: 14px; line-height: 19px; }
.tariffs + .footer { margin-top: 70px; }

/* ---------- Account page ---------- */

.topbar { padding: 0 30px; }

.account { display: flex; align-items: flex-start; margin-top: 20px; }
.account__media { flex: none; width: 482px; height: 723px; }
.account__media img { width: 100%; height: 100%; object-fit: cover; }
.account + .footer { margin-top: 0; }

.login {
  position: relative;
  width: 429px;
  height: 536px;
  margin: 97px 0 0 113px;
  padding: 69px 36px 0;
  border-radius: 11px;
  background: var(--white);
}
.login .h2 { margin-top: 0; }
.login__form { margin-top: 21px; }
.field + .field { margin-top: 10px; }
.field__label {
  display: block;
  padding-left: 15px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
}
.field__input {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--dark);
  font-size: 10px;
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: var(--text); opacity: 1; }
.field__input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 137, 0, .12); }
.field.is-error .field__input { border-color: #e5484d; }
.field__error { display: none; padding: 4px 0 0 15px; color: #e5484d; font-size: 10px; line-height: 12px; }
.field.is-error .field__error { display: block; }
.login__submit { margin: 20px 0 0 149px; }

.google {
  position: absolute;
  top: 426px;
  left: 36px;
  display: flex;
  align-items: center;
  width: 357px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  transition: border-color .2s;
}
.google:hover { border-color: #c8c8c8; }
.google__avatar { flex: none; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; }
.google__text { margin-left: 10px; font-size: 10px; line-height: 13px; }
.google__text b { display: block; color: var(--dark); font-weight: 500; }
.google__text span { display: inline-flex; align-items: center; gap: 3px; color: #555; font-weight: 400; }
.google__logo { flex: none; width: 19.6px; height: 20px; margin-left: auto; }

/* =========================================================
   Адаптив
   ========================================================= */

@media (max-width: 1159px) {
  .wrap { width: auto; margin-inline: 16px; }
  .nudge,
  .connect .eyebrow,
  .connect .h2 { left: 0; }

  /* header */
  .header { align-items: center; height: 56px; margin-top: 16px; }
  .header__logo { width: 150px; height: 47.5px; }
  .header__user { margin: 0 0 0 auto; }
  .header__download { margin: 0 0 0 12px; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: 12px;
    padding: 0 10px;
    border-radius: 12px;
    background: var(--white);
  }
  .burger span { display: block; height: 2px; border-radius: 2px; background: var(--dark); transition: transform .25s, opacity .25s; }
  .header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .burger span:nth-child(2) { opacity: 0; }
  .header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    width: auto;
    margin: 0;
    padding: 8px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link,
  .nav__link:nth-child(n) {
    width: auto;
    height: auto;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 20px;
  }
  .nav__link:hover { background: var(--bg); }
  .nav__link::after { top: 50%; left: auto; right: 14px; width: 6px; height: 6px; margin: -3px 0 0; background: var(--orange); }

  /* hero */
  .hero { height: auto; padding: 0 24px 40px; overflow: hidden; border-radius: 0 0 10px 10px; }
  .hero__bg { object-position: 70% center; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(245, 245, 245, .96) 0%, rgba(245, 245, 245, .85) 45%, rgba(245, 245, 245, 0) 75%);
    pointer-events: none;
  }
  .hero__eyebrow { margin-top: 64px; }
  .hero__title { width: auto; max-width: 560px; white-space: normal; }
  .hero__text { width: auto; max-width: 399px; }
  .hero__tags { margin-top: 140px; }
  .hero__tags li:nth-child(n) { width: auto; }

  /* features */
  .features { height: auto; padding: 30px 0; }
  .features .h2 { padding: 0 16px; }
  .features__lead { width: auto; max-width: 492px; padding: 0 16px; }
  .features__grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .feature + .feature::before { display: none; }
  .feature:not(:nth-child(3n + 1))::before {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--divider);
  }

  /* ai */
  .ai { flex-direction: column; height: auto; overflow: hidden; border-radius: 10px; }
  .ai__media { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .ai__body { padding: 30px 24px 32px; }
  .ai__grid { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .ai__cta { width: 100%; }

  /* events */
  .events { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; height: auto; }
  .events__text { position: static; grid-column: 1 / -1; }
  .events__title { width: auto; }
  .events__lead { width: auto; max-width: 420px; }
  .events__media { position: static; width: 100%; height: auto; max-width: 442px; justify-self: center; }
  .events__media img { height: auto; }
  .events__list { display: grid; gap: 24px; }
  .events__list li { position: static; width: auto; padding-left: 18px; border-left: 2px solid var(--orange); }

  /* connect */
  .connect { width: auto; max-width: 704px; padding-inline: 16px; }
  .connect__grid { grid-template-columns: 1fr 1fr; }
  .connect-card { height: auto; padding-bottom: 24px; }
  .connect-card img { height: auto; aspect-ratio: 326 / 217; }
  .connect-card__text { width: auto; padding: 0 20px; }

  /* scenarios */
  .scenarios { height: auto; padding: 30px 16px; }
  .scenarios__grid { width: auto; max-width: 665px; grid-template-columns: repeat(3, 1fr); margin: 19px auto 0; }

  /* premium */
  .premium { display: flex; flex-direction: column; align-items: center; height: auto; }
  .premium__text { position: static; width: 100%; }
  .premium__title,
  .premium__lead { width: auto; max-width: 446px; }
  .premium__cards { position: relative; inset: auto; width: 476px; height: 410px; margin-top: 40px; }
  .premium__cards .plan--free { top: 11.24px; left: 0; }
  .premium__cards .plan--dark { top: 43.48px; left: 242.23px; }

  /* faq */
  .faq { height: auto; padding: 30px 16px; }
  .faq__list { width: 100%; max-width: 642px; }
  .faq__q,
  .faq__a p { width: auto; margin-left: 0; }
  .faq__q { padding-inline: 8px; text-align: center; }

  /* footer */
  .footer { height: auto; }
  .footer__inner { align-items: center; padding: 30px 16px; }
  .footer__logo,
  .footer__copy { margin-top: 0; }

  /* premium page */
  .tariffs { height: auto; padding: 0 24px 50px; overflow: hidden; border-radius: 0 0 10px 10px; }
  .tariffs__eyebrow { margin-top: 56px; }
  .tariffs__grid { flex-wrap: wrap; }
  .tariffs__note { width: auto; max-width: 742px; margin-top: 40px; }

  /* account page */
  .topbar { padding: 0; }
  .account { flex-direction: row-reverse; gap: 24px; margin: 32px 16px 70px; }
  .account__media { flex: 1 1 0; min-width: 0; height: 723px; overflow: hidden; border-radius: 10px; }
  .login { flex: none; margin: 0; }
}

@media (max-width: 767px) {
  .eyebrow { font-size: 12px; line-height: 16px; letter-spacing: 1.2px; }
  .h2 { font-size: 24px; line-height: 30px; letter-spacing: 1px; }

  .header__download span { display: none; }
  .header__download { width: 40px; padding: 10px; }
  .header__logo { width: 126px; height: 40px; }

  /* hero: текст, затем картинка */
  .hero { display: flex; flex-direction: column; padding: 0 0 0; background: #f1f1f1; }
  .hero .header { margin-inline: 16px; }
  .hero__content { padding: 0 16px; }
  .hero::after { display: none; }
  .hero__eyebrow { margin-top: 36px; }
  .hero__title { font-size: 28px; line-height: 32px; letter-spacing: 1px; }
  .hero__title br { display: none; }
  .hero__text { margin-top: 16px; }
  .hero__actions { flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .hero__tags { flex-wrap: wrap; row-gap: 6px; margin-top: 24px; }
  .hero__tags li { font-size: 12px; }
  .hero > .hero__bg {
    position: relative;
    inset: auto;
    order: 2;
    height: 260px;
    margin-top: 8px;
    object-position: 78% 60%;
  }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:not(:nth-child(3n + 1))::before { display: none; }
  .feature:nth-child(2n)::before {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--divider);
  }

  .ai,
  .events,
  .connect,
  .scenarios,
  .premium,
  .faq,
  .contacts { margin-top: 48px; }
  .ai__body { padding: 24px 16px 28px; }
  .ai__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 64px; }
  .ai-card,
  .ai-card:nth-child(n) { align-items: center; padding-top: 0; }
  .ai__cta .btn { width: 100%; white-space: normal; }

  .events { grid-template-columns: 1fr; }
  .events__list li { font-size: 13px; letter-spacing: 1px; }

  .connect .h2 { line-height: 30px; }
  .connect__grid { grid-template-columns: 1fr; }

  .scenarios__grid { grid-template-columns: repeat(2, 1fr); }

  .premium__title br { display: none; }
  .premium__cards { transform: scale(.68); transform-origin: top center; margin: 24px 0 -131px; }

  .contacts__grid { gap: 12px; }
  .contact { width: calc((100% - 12px) / 2); max-width: 211px; }
  .contact__qr { height: auto; aspect-ratio: 1; }
  .contact--tg .contact__qr img { top: 7.1%; left: 5.2%; width: 88.2%; height: 86.7%; }
  .contact--max .contact__qr img { top: 7.1%; left: 6.6%; width: 85.3%; height: 85.3%; }
  .contact__name { margin-top: 16px; font-size: 14px; }

  .footer { margin-top: 56px; }
  .footer__inner { flex-direction: column; gap: 16px; }

  .tariffs { padding: 0 16px 40px; }
  .tariffs .header { margin-inline: 0; }
  .tariffs__eyebrow { margin-top: 40px; }
  .tariffs__grid { flex-direction: column; align-items: center; margin-top: 28px; }
  .tariffs__note { margin-top: 28px; font-size: 12px; line-height: 16px; }
  .tariffs + .footer { margin-top: 48px; }

  .account { flex-direction: column; align-items: center; gap: 24px; margin: 24px 16px 48px; }
  .account__media { flex: none; width: 100%; height: 320px; }
  .login { width: 100%; max-width: 429px; height: auto; padding: 40px 20px 28px; }
  .login__submit { display: flex; margin: 20px auto 0; }
  .google { position: static; width: 100%; margin-top: 48px; }
}

@media (max-width: 379px) {
  .premium__cards { transform: scale(.6); margin-bottom: -164px; }
  .ai-card { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* v6: compact responsive language selector */
.kv-language{display:flex;align-items:center;gap:7px;margin:8px 12px;padding:4px 0;z-index:20}.kv-language-label{font-size:12px;color:inherit;opacity:.8}.kv-language select{border:1px solid #aaa;border-radius:8px;background:#fff;color:#222;padding:7px 8px;font:inherit;min-width:75px;cursor:pointer}@media(max-width:760px){.kv-language{margin:6px 12px}.kv-language select{padding:6px}}

/* v9: center Google Identity Services button below the regular sign-in action */
.kv-google-area { display:flex; justify-content:center; align-items:center; width:100%; margin:32px auto 0; min-height:44px; }
.kv-google-area > div { margin-left:auto !important; margin-right:auto !important; max-width:100%; }

/* v10 authenticated account */
[hidden]{display:none!important}
.login.kv-is-authenticated{height:auto;min-height:0;align-self:start;padding:32px 28px}
.kv-account-dashboard{width:100%;max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.kv-profile-header{display:flex;align-items:center;gap:14px;min-width:0;padding:8px 0 12px}
.kv-profile-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:50%;display:grid;place-items:center;background:#f1f1f1;color:#333;font-size:24px;font-weight:700}
.kv-profile-identity{min-width:0;flex:1}.kv-profile-name{font-size:20px;line-height:1.25;margin:0;overflow-wrap:anywhere}.kv-profile-email{font-size:13px;color:#777;overflow-wrap:anywhere;margin:5px 0 0}
.kv-plan-badge{border:1px solid #ddd;border-radius:20px;padding:5px 10px;font-size:12px;flex-shrink:0}
.kv-dashboard-card{border:1px solid #e8e8e8;border-radius:18px;padding:22px;background:#fff;min-width:0}
.kv-card-label{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#888;margin:0 0 12px}
.kv-current-plan{font-size:27px;font-weight:700;margin:0 0 14px}.kv-muted{color:#777;font-size:14px;margin:8px 0}
.kv-action{display:inline-flex;align-items:center;justify-content:center;max-width:100%;white-space:normal;text-align:center;text-decoration:none;margin-top:10px;cursor:pointer}
.kv-payment-row{overflow-wrap:anywhere;padding:10px 0;border-bottom:1px solid #eee;font-size:14px}
.kv-logout{align-self:flex-end;border:0;background:transparent;color:#666;cursor:pointer;padding:10px 0;font:inherit}
.kv-logout:hover{text-decoration:underline}
@media(max-width:640px){.login.kv-is-authenticated{padding:24px 16px}.kv-profile-header{flex-wrap:wrap}.kv-dashboard-card{padding:16px}.kv-profile-name{font-size:18px}}

/* v12: account page without hero photo, expanded full-width cards */
.account.wrap{display:flex;flex-direction:column;align-items:stretch;width:min(1100px,calc(100% - 40px));max-width:1100px;margin:38px auto 72px;gap:0}
.account .account__media{display:none!important}
.account .login{box-sizing:border-box;flex:1 1 auto;width:100%;max-width:none;min-width:0;height:auto;min-height:480px;margin:0;padding:52px clamp(22px,5vw,72px);border-radius:18px}
.account .login:not(.kv-is-authenticated) .login__form{max-width:480px;margin-left:auto;margin-right:auto}
.account .login:not(.kv-is-authenticated) .kv-google-area{max-width:480px;margin-left:auto;margin-right:auto}
.account .login.kv-is-authenticated{width:100%;max-width:none;padding:40px clamp(20px,5vw,70px);margin:0}
.account .kv-account-dashboard{width:100%;max-width:none;margin:0;gap:20px}
.account .kv-dashboard-card{width:100%;box-sizing:border-box;padding:26px 30px}
.account .kv-profile-header{width:100%;box-sizing:border-box}
@media(max-width:767px){.account.wrap{width:calc(100% - 24px);margin:18px auto 40px}.account .login,.account .login.kv-is-authenticated{padding:24px 16px}.account .kv-dashboard-card{padding:20px 16px}}
