/* ==================== CSS ПЕРЕМЕННЫЕ ==================== */
:root {
  --ink: #16181D;
  --ink-70: #2E3138;
  --ink-40: #737A85;
  --line: #E6E8E4;
  --bg: #F2F3EF;
  --white: #FFFFFF;
  --accent: #CBFF3B;
  --pain: #C4261D;
  --tone: #7B8172;
  --dark-2: #212329;

  --container-width: none;
  --container-padding: var(--pad);
  --pad: 160px;
  --gap: 32px;
  --cols: 3;
  --sect: 112px;
  --head-gap: 64px;
  --r-card: 24px;
  --r-pill: 100px;

  --h1: clamp(32px, 6.6vw, 128px);
  --h2: 48px;
  --h3: 22px;
  --hf: 64px;
  --lead: 18px;
  --caption: 15px;
  --body: 16px;
  --eyebrow: 15px;
  --eyebrow-ico: 44px;

  --photo-w: clamp(200px, 22vw, 420px);
  --lenta-h: 168px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --overshoot: cubic-bezier(.34, 1.56, .64, 1);

  --font-headline: "Unbounded", "Inter", sans-serif;
  --font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-weight-default: 400;
  --font-size-default: var(--body);
  --line-height-default: 1.6;
  --color-primary: var(--ink);
}

/* ==================== СБРОС ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  background-color: transparent;
  border: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* ==================== ШРИФТЫ ==================== */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../font/Unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../font/Unbounded-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026, U+2192, U+2197, U+2212;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../font/Inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../font/Inter-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026, U+2192, U+2197, U+2212;
}

/* ==================== ГЛОБАЛЬНЫЕ СТИЛИ ==================== */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

body {
  font-family: var(--font-family);
  color: var(--color-primary);
  font-weight: var(--font-weight-default);
  font-size: var(--font-size-default);
  line-height: var(--line-height-default);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body._disable-scroll {
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  overflow-x: clip;
}

main {
  flex: 1;
  position: relative;
}

.container {
  max-width: var(--container-width);
  width: 100%;
  padding-inline: var(--container-padding);
  margin-inline: auto;
}

.ico {
  display: block;
  width: 12px;
  height: 12px;
}

.h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.h2 span {
  color: inherit;
}

.h3 {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: var(--h3);
  line-height: 1.3;
}

.lead {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--ink-70);
}

.section {
  position: relative;
  padding-bottom: var(--sect);
  scroll-margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}

/* ==================== АНИМАЦИЯ ПОЯВЛЕНИЯ ==================== */
.anim-js .anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.anim-js .anim._pop {
  transform: scale(.92);
  transition: opacity .5s ease, transform .6s var(--overshoot);
}

.anim-js .anim._chrome {
  transform: scale(.7) rotate(-8deg);
  transition: opacity .5s ease, transform .6s var(--overshoot);
}

.anim-js .anim._num {
  transform: translateX(-60px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.anim-js .anim._visible {
  opacity: 1;
  transform: none;
}

/* ==================== HOVER ==================== */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(24, 26, 30, .18);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(24, 26, 30, .14);
}

.btn:hover .btn__ico {
  transform: translate(3px, -3px);
}

.btn:focus-visible,
.contacts__row:focus-visible,
.site:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ==================== ПЛАВАНИЕ ОБЪЕКТОВ ==================== */
.nowrap {
  white-space: nowrap;
}

/* Заметка на случай обрыва загрузки: стили дошли, значит страница грузится и заметка не нужна */
.slow-note {
  display: none;
}

.float {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}

/* ==================== КНОПКИ ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 19px 34px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--lead);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn._accent {
  background: var(--accent);
  color: var(--ink);
}

.btn._ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  transition: transform .3s var(--ease);
}

.btn._ghost .btn__ico {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* ==================== ОКНО «ОТКЛЮЧИТЕ VPN» ==================== */
.vpn {
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 0;
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--ink);
  overflow-y: auto;
}

.vpn[open] {
  animation: vpn-in .3s var(--ease);
}

.vpn::backdrop {
  background: rgba(22, 24, 29, .6);
}

@keyframes vpn-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.vpn__box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}

.vpn__title {
  padding-right: 44px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--h3);
  line-height: 1.15;
}

.vpn__text {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--ink-70);
}

.vpn__go {
  width: 100%;
  margin-top: 8px;
  justify-content: space-between;
  white-space: normal;
  line-height: 1.25;
}

.vpn__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s ease;
}

.vpn__close:hover {
  background: var(--bg);
}

.vpn__close:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ==================== ШАПКА ==================== */
.header {
  position: relative;
  z-index: 5;
  padding-block: 28px;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: var(--lead);
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 36px;
  font-size: var(--caption);
  font-weight: 500;
}

.header__nav a {
  white-space: nowrap;
  transition: color .2s ease;
}

.header__nav a:hover {
  color: var(--ink-70);
}

.header__btn {
  padding: 8px 8px 8px 24px;
  font-size: var(--caption);
}

.header__side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}

/* Переключатель языка */
.lang {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(22, 24, 29, .07);
}

.lang__item {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: var(--caption);
  font-weight: 600;
  line-height: 1;
  color: var(--ink-70);
  transition: background-color .2s ease;
}

.lang__item:hover {
  background: rgba(22, 24, 29, .07);
}

.lang__item._active,
.lang__item._active:hover {
  background: var(--white);
  color: var(--ink);
}

/* ==================== ПОДВАЛ ==================== */
.footer {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--white);
  padding-block: 120px 48px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 120px;
  align-items: start;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.footer__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1.08;
}

.footer__title span {
  display: block;
  color: var(--accent);
}

.footer__obj {
  display: block;
  flex: none;
  width: clamp(120px, 14vw, 240px);
  margin-left: auto;
  margin-top: -20px;
}

.footer__obj img {
  width: 100%;
}

.footer__text {
  max-width: 520px;
  font-size: var(--lead);
  line-height: 1.55;
  color: #C6CBD2;
}

.footer__photo {
  max-width: 560px;
}

.footer__photo img {
  width: 100%;
  border-radius: var(--r-card);
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts {
  background: var(--dark-2);
  border-radius: 20px;
  padding: 8px 28px;
}

.contacts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.contacts__row + .contacts__row {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.contacts__label {
  font-size: var(--lead);
  font-weight: 600;
}

.contacts__arr {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  transition: transform .3s var(--ease);
}

.contacts__row:hover .contacts__arr {
  transform: translate(4px, -4px);
}

.contacts__row:hover .contacts__label {
  color: var(--accent);
}

.site {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.site:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
}

.site__label {
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site__url {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--h3);
  line-height: 1.15;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.site__arr {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  transition: transform .3s var(--ease);
}

.site:hover .site__arr {
  transform: translate(4px, -4px);
}

.site__note {
  font-size: var(--lead);
  line-height: 1.45;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer__copy {
  font-size: var(--caption);
  line-height: 1.5;
  color: #C6CBD2;
}

/* ==================== БЕГУЩАЯ ЛЕНТА ==================== */
.lenta {
  position: relative;
  height: var(--lenta-h);
  overflow: hidden;
  pointer-events: none;
}

.lenta__belt {
  position: absolute;
  left: -60px;
  right: -60px;
  top: 50%;
  display: flex;
  padding: 18px 40px;
  overflow: hidden;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-2deg);
}

.lenta._dark .lenta__belt {
  background: var(--ink);
  color: var(--accent);
}

.lenta._lime .lenta__belt {
  background: var(--accent);
  color: var(--ink);
}

.lenta._lime {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--lenta-h) / -2);
}

/* Четыре одинаковых дорожки движутся общим блоком на половину его ширины,
   поэтому шов не виден и после поворота телефона текст не наезжает сам на себя */
.lenta__move {
  display: flex;
  flex: none;
  width: max-content;
  animation: lenta 50s linear infinite reverse;
}

.lenta__track {
  flex: none;
  padding-right: .6em;
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 1px;
  line-height: 1.2;
}

@keyframes lenta {
  to { transform: translateX(-50%); }
}

/* ==================== ГЛАВНАЯ СТРАНИЦА: ОБЛОЖКА ==================== */
.hero {
  position: relative;
  padding-bottom: 0;
}

.hero__main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 24px;
  min-height: calc(var(--photo-w) * 1.24 + 90px);
}

.hero__eyebrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__eyebrow-ico {
  display: grid;
  place-items: center;
  width: var(--eyebrow-ico);
  height: var(--eyebrow-ico);
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .06em;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: var(--h1);
  line-height: .96;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.hero__plate-wrap {
  display: inline-block;
  transform: rotate(-1.5deg);
}

.hero__plate {
  display: inline-block;
  padding: .04em .18em .1em;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 18px 36px -14px rgba(22, 24, 29, .28);
}

.hero__photo {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 1%;
  width: var(--photo-w);
}

.hero__photo-img {
  display: block;
  width: 100%;
  border: 5px solid var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 48px -8px rgba(13, 15, 8, .18);
  transform: rotate(6deg);
}

.hero__knot {
  position: absolute;
  z-index: 3;
  top: calc(var(--photo-w) * .86);
  right: calc(var(--photo-w) * -.14);
  width: calc(var(--photo-w) * .6);
  pointer-events: none;
}

.hero__knot img {
  width: 100%;
}

/* Звезда стоит в левом поле страницы, посередине отступа контейнера */
.hero__spark {
  --spark: clamp(24px, 2.4vw, 44px);
  position: absolute;
  z-index: 3;
  top: calc(var(--photo-w) * 1.38);
  left: calc((var(--pad) + var(--spark)) / -2);
  width: var(--spark);
  pointer-events: none;
}

.hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  padding-top: 16px;
  padding-bottom: 40px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 620px;
}

.hero__lead {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--ink-70);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 56px;
  flex: none;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
  max-width: 240px;
}

.fact::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--ink);
}

.fact__num {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--h2);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.fact__text {
  font-size: var(--caption);
  line-height: 1.35;
  color: var(--ink-70);
}

/* ==================== ШАПКА СЕКЦИИ ==================== */
.head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: var(--head-gap);
}

.hero + .section {
  padding-top: calc(var(--sect) * .4);
}

.head__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 1000px;
}

.decor {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 20vw, 306px);
  height: clamp(165px, 17.5vw, 266px);
  pointer-events: none;
  user-select: none;
}

.decor__num {
  position: absolute;
  left: 0;
  top: 2%;
  width: 92%;
  height: 48%;
  object-fit: contain;
  object-position: left top;
}

.decor__obj {
  position: absolute;
  left: 22%;
  top: 6%;
  width: 78%;
  height: 94%;
}

.decor__obj img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==================== КАРТОЧКИ ==================== */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 2px 10px -4px rgba(22, 24, 29, .06);
}

.card._accent {
  background: var(--accent);
}

.card__text {
  color: var(--ink-70);
  font-size: var(--lead);
}

/* ==================== ОБО МНЕ ==================== */
.about__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 80px;
  align-items: start;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  font-size: var(--lead);
  line-height: 1.6;
  color: var(--ink-70);
}

.about__card {
  gap: 24px;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checks__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: var(--lead);
  color: var(--ink-70);
}

.checks__ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
}

.checks__ico .ico {
  width: 14px;
  height: 14px;
}

/* ==================== ПРОБЛЕМЫ ==================== */
.problems__box {
  padding: 0 40px;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 2px 10px -4px rgba(22, 24, 29, .06);
}

.problems__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: 32px;
}

.problems__row + .problems__row {
  border-top: 1px solid var(--line);
}

.problems__ask {
  display: flex;
  align-items: center;
  gap: 16px;
}

.problems__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--pain);
  color: var(--white);
}

.problems__arr {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.problems__answer {
  color: var(--ink-70);
  font-size: var(--lead);
}

/* ==================== ОТЗЫВЫ ==================== */
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 2px 10px -4px rgba(22, 24, 29, .06);
}

.quote._accent {
  background: var(--accent);
}

.quote__text {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: var(--h3);
  line-height: 1.4;
}

.quote__by {
  font-size: var(--caption);
  line-height: 1.45;
  color: var(--ink-70);
}

.reviews__cols {
  columns: 3;
  column-gap: var(--gap);
}

.review {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--gap);
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: 0 2px 10px -4px rgba(22, 24, 29, .06);
}

.review__text {
  font-size: var(--lead);
  line-height: 1.55;
  color: var(--ink-70);
}

.review__by {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--caption);
  line-height: 1.4;
  color: var(--ink-70);
}

.review__by b {
  font-weight: 600;
  color: var(--ink);
}
