:root {
  --color-black: #000;
  --color-white: #fff;
}

@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a {
  text-decoration: none;
}

body {
  box-sizing: border-box;
}

aside,
nav,
footer,
header,
section {
  display: block;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
  border: none;
  background-color: transparent;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

ul li {
  list-style: none;
}

dl,
ol,
ul {
  margin: 0;
  padding: 0;
}

label {
  margin: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
}

input:not([type=checkbox]):not([type=radio]),
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

img {
  height: auto;
}

* {
  font-family: "e-Ukraine", sans-serif;
}

/* Холст страницы. Safari на iOS заливает этим цветом полосу под часами и зону
   переката, поэтому он тёмный: сверху под ним герой, снизу тёмный футер.
   Светлый фон контента остаётся на body и перекрывает холст на всю высоту. */
html {
  background-color: #191C1F;
  /* Подсказка браузеру, что холст тёмный: iOS Safari учитывает её,
     когда решает, каким цветом красить свою панель и иконки в ней. */
  color-scheme: dark;
}

body {
  /* Тёмный, как и html: Safari берёт цвет фона страницы, когда красит свою
     полосу с часами. Светлый фон контента живёт на .page, которая оборачивает
     всю страницу целиком, поэтому визуально ничего не меняется. */
  background: #191C1F;
  /* Цвет текста задан явно: при color-scheme: dark браузерное значение по
     умолчанию стало бы белым, и текст в светлых секциях исчез бы. */
  color: #000;
}
body.scroll-hide {
  overflow: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #F6F6F6;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  z-index: 200000000;
}

.logo {
  width: 122px;
}
.logo img {
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.promo {
  border-radius: 0px 0px 24px 24px;
  background: #191C1F;
  background-image: radial-gradient(58% 42% at 50% 72%, rgba(188, 227, 26, 0.09) 0%, rgba(188, 227, 26, 0) 100%);
  padding: calc(72px + env(safe-area-inset-top, 0px)) 5px 15px;
  position: relative;
  z-index: 122222200;
  box-sizing: border-box;
  min-height: calc(100vh - 32px);
  min-height: calc(100svh - 32px);
  display: flex;
  flex-direction: column;
}

.promo > .container {
  flex: 1;
  /* margin: 0 auto у .container во флекс-колонке отменяет растягивание,
     поэтому ширину задаём явно, иначе контейнер схлопывается до содержимого. */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo__wrapper {
  /* Авто-отступы съедают всё свободное место поровну сверху и снизу,
     поэтому заголовок с анимацией встают по центру, а кнопки остаются внизу.
     Внутреннюю раскладку блока это не трогает. */
  margin-top: auto;
  margin-bottom: auto;
}

.promo__title {
  color: #FFF;
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.24px;
  max-width: 265px;
  margin: 0 auto;
}
.promo__title .flip-text {
  margin-left: 7px;
}

.flip-text {
  position: relative;
  z-index: 1;
  color: #191C1F;
  transform: rotate(2deg);
  display: inline-flex;
  font-weight: 700;
  letter-spacing: -0.408px;
  transform: rotate(3deg) translateY(5px);
  justify-content: center;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
}
.flip-text::before {
  position: absolute;
  content: "";
  border-radius: 8px;
  background: #BCE31A;
  width: calc(100% + 16px);
  height: 96%;
  z-index: -1;
}

.promo-circles {
  --s: 1;
  margin-top: 60px;
  position: relative;
  height: 280px;
  max-width: 400px;
  margin: 60px auto 0 auto;
  position: relative;
}
.promo-circles::before {
  content: "";
  position: absolute;
  background-image: url("../img/grid.svg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.promo-circles__text {
  z-index: 2;
}
.promo-circles__text img {
  position: absolute;
}
.promo-circles__text img:nth-child(1) {
  width: calc(82px * var(--s));
  left: 5%;
  top: 9%;
}
.promo-circles__text img:nth-child(2) {
  width: calc(58px * var(--s));
  left: 78%;
  top: 14%;
}
.promo-circles__text img:nth-child(3) {
  width: calc(88px * var(--s));
  left: 46%;
  top: 86%;
}
.promo-circles__text img:nth-child(4) {
  width: calc(69px * var(--s));
  left: 41%;
  top: 79%;
}
.promo-circles__text img:nth-child(5) {
  width: calc(87px * var(--s));
  left: 8%;
  top: 58%;
}
.promo-circles__text img:nth-child(6) {
  width: calc(112px * var(--s));
  left: 25%;
  top: 26%;
}

.promo-circles__icons img {
  position: absolute;
}
.promo-circles__icons img:nth-child(1) {
  left: 32%;
  top: 2%;
width: calc(63px * var(--s));
  height: calc(63px * var(--s));
}
.promo-circles__icons img:nth-child(2) {
  left: 55%;
  top: 1%;
width: calc(74px * var(--s));
  height: calc(74px * var(--s));
}
.promo-circles__icons img:nth-child(3) {
  left: 71%;
  top: 28%;
width: calc(84px * var(--s));
  height: calc(84px * var(--s));
}
.promo-circles__icons img:nth-child(4) {
  left: 67%;
  top: 61%;
width: calc(79px * var(--s));
  height: calc(80px * var(--s));
}
.promo-circles__icons img:nth-child(5) {
  left: 17%;
  top: 72%;
width: calc(70px * var(--s));
  height: calc(70px * var(--s));
}
.promo-circles__icons img:nth-child(6) {
  left: 4%;
  top: 23%;
width: calc(89px * var(--s));
  height: calc(89px * var(--s));
}
.promo-circles__icons img:nth-child(7) {
  left: 35%;
  top: 33%;
width: calc(108px * var(--s));
  height: calc(108px * var(--s));
}

.promo__bottom {
  margin: 60px auto 0;
  /* та же ловушка, что и у .container: авто-отступ во флекс-колонке
     отменяет растягивание, ширину задаём явно */
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.promo__bottom .btn.btn--green {
  position: relative;
  z-index: 2222;
}

.promo__btn {
  margin-bottom: 8px;
}
.promo__btn:last-child {
  margin-bottom: 0;
}

.btn--sticky {
  z-index: 2222;
  width: 100%;
  margin: 0 auto;
  position: relative;
  transition: opacity 0.3s linear;
}

.btn--out {
  position: fixed;
  bottom: 20px;
  max-width: 335px !important;
  left: 50%;
  transform: translateX(-50%);
}

/* .btn--sticky.btn--sticky-fixed {
    position: fixed;
    bottom: 20px;
    max-width: 335px;
    left: 50%;
    transform: translateX(-50%);
} */
.btn--sticky.btn--sticky-fixed {
  opacity: 0;
  pointer-events: none; }

/* .btn--sticky.btn--sticky-fixed {
    transform: translateY(calc(100vh - 100% - 20px));
} */
.sticky-wrap {
  height: 56px;
}

.btn {
  max-width: 580px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.24px;
  border-radius: 500px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px;
  margin: 0 auto;
}
.btn.btn--green {
  color: #191C1F;
  background: #BCE31A;
}
.btn.btn--green:active {
  background: #9ABA16;
}
.btn.btn--black {
  border: 1px solid #191C1F;
  background: #191C1F;
  color: #BCE31A;
}
.btn.btn--blue {
  /* #2170CE замість #2C7FE4: білий підпис 16-17px на світлішому синьому давав
     контраст 3,99 при нормі 4,5 (WCAG 1.4.3). Той самий синій, на крок темніший;
     зірка з ціною (img/price.webp) перефарбована тим самим кроком. */
  background: #2170CE;
  color: #FFF;
  position: relative;
  z-index: 1;
}
.btn.btn--blue::before {
  position: absolute;
  content: "";
  opacity: 0.5;
  background: #2170CE;
  width: 100%;
  height: 100%;
  border-radius: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: btn-before 0.5s cubic-bezier(0, 0.52, 0.58, 1) infinite alternate;
}
.btn.btn--blue::after {
  position: absolute;
  content: "";
  opacity: 0.5;
  background: #2170CE;
  width: 100%;
  height: 100%;
  border-radius: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
  animation: btn-after 0.5s cubic-bezier(0, 0.52, 0.58, 1) infinite alternate;
}

@keyframes btn-before {
  0% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 105%;
    height: 120%;
  }
}
@keyframes btn-after {
  0% {
    width: 100%;
    height: 100%;
  }
  100% {
    width: 110%;
    height: 140%;
  }
}
.if-sec {
  padding: 75px 0 90px;
  background-image: url("../img/Intersect.webp");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  position: relative;
  margin-top: -25px;
}

.if-sec__title {
  color: #191C1F;
  font-size: 30px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.24px;
}

.if-sec__wrapper {
  margin: 5px auto 0;
  height: 453px;
  position: relative;
  max-width: 350px;
}
.if-sec__wrapper svg {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.if-sec__wrapper img {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  /* opacity: 0; */
}

.dot {
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='15' fill='url(%23paint0_radial_122_198)'/%3E%3Cdefs%3E%3CradialGradient id='paint0_radial_122_198' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(15 15) rotate(90) scale(15)'%3E%3Cstop stop-color='%232C7FE4'/%3E%3Cstop offset='1' stop-color='%232C7FE4' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  border-radius: 50%;
  left: 70%;
  top: 4%;
  /* transition: transform 0.08s linear; */
}

.if-sec__item-text {
  position: absolute;
  color: #191C1F;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.24px;
}
.if-sec__item-text span {
  position: relative;
}
.if-sec__item-text span::before {
  position: absolute;
  content: "";
  border-radius: 4px;
  background: #BCE31A;
  width: calc(100% + 8px);
  height: 120%;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.if-sec__item-text:nth-child(4) {
  top: 1%;
  left: 46%;
  transform: rotate(-2deg);
}
.if-sec__item-text:nth-child(5) {
  top: 19%;
  left: 2%;
  transform: rotate(-5deg);
}
.if-sec__item-text:nth-child(6) {
  top: 42%;
  left: 31%;
}
.if-sec__item-text:nth-child(7) {
  top: 64%;
  left: 6%;
}
.if-sec__item-text:nth-child(8) {
  top: 91%;
  left: 34%;
  font-weight: 500;
}

.test {
  margin-top: 80px;
  padding: 0 15px;
}
.test .container {
  border-radius: 24px;
  background: #DDF18C;
  box-shadow: 0px 4px 8px 0px rgba(108, 126, 150, 0.06);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.test__title {
  /* Було #87A11A: на лаймовому фоні цієї секції контраст 2,38 при нормі 4,5
     (WCAG 1.4.3). Той самий оливковий, але темніший — 5,28. */
  color: #4E6605;
  font-size: 16px;
  font-weight: 400;
  line-height: 137.5%;
  letter-spacing: -0.24px;
}

.test__subtitle {
  color: #191C1F;
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.24px;
  margin-top: 16px;
  padding: 0 5px;
}

.test__img {
  margin: 27px auto 0;
  max-width: 257px;
}
.test__img img {
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.test__btn {
  margin-top: 27px;
}

.why {
  margin-top: 80px;
}

.why__title {
  text-align: center;
}
.why__title::after {
  content: "";
  background-image: url("../img/why.webp");
  background-repeat: no-repeat;
  background-size: cover;
  width: 25px;
  height: 25px;
  display: inline-block;
  transform: translate(0, 3px);
}

.title {
  color: #191C1F;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.24px;
}

.why__list {
  margin-top: 8px;
}

.why__list-item {
  padding: 32px 0 32px 42px;
  position: relative;
}
.why__list-item:last-child {
  padding-bottom: 0;
}
.why__list-item:last-child::before {
  display: none;
}
.why__list-item::after {
  content: "";
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='40' fill='none'%3E%3Cpath fill='%23BCE31A' d='M0 26.667C0 31.667 6.4 37.5 10.4 40 8.8 37.5 8 33.333 8 31.667c0-1.667.8-3.334 1.6-5 .64-1.334.8-3.89.8-5 1.92 2 1.867 5.277 1.6 6.666 3.84-2.666 3.2-8.889 2.4-11.666C16 18.333 20 23.333 20 28.333c0 4-2.133 9.445-3.2 11.667C21.6 38.333 28 31.667 28 23.333 28 16.667 23.733 10 21.6 7.5c.64 2.667-.267 5-.8 5.833C20.8 8 14.4 2.223 11.2 0c.64 8-2.933 13.889-4.8 15.833 0-1.333-1.6-3.889-2.4-5C4 12.5 3.2 15 2.4 16.667c-.358.745-2.4 5-2.4 10Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  width: 28px;
  height: 40px;
  left: 0;
  top: 30px;
}
.why__list-item::before {
  position: absolute;
  content: "";
  bottom: 0;
  width: calc(100% - 28px);
  height: 1px;
  right: 0;
  background: #E0E0E0;
}

.why__list-item--title {
  color: #191C1F;
  font-size: 18px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.24px;
  padding-right: 20px;
}
.why__list-item--title .split-word {
  display: inline-block;
  white-space: nowrap;
}

.why__list-item--title .split-mask {
  overflow: hidden;
  display: inline-block;
}

.why__list-item--title .split-char {
  display: inline-block;
}

.why__list-item--text {
  /* Було #989898 на світло-сірій картці: контраст 2,67. Це основний текст
     картки, 15px — має читатися, а не вгадуватися. Тепер 4,93 (#6B6B6B). */
  color: #6B6B6B;
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.24px;
  margin-top: 16px;
}

.wait {
  margin-top: 90px;
}

.wait__title {
  text-align: center;
}

.wait__wrapper {
  margin-top: 24px;
}

.wait-item {
  margin-bottom: 16px;
  border-radius: 24px;
  border: 1px solid #EBEBEB;
  background: #FFF;
  box-shadow: 0px 4px 8px 0px rgba(108, 126, 150, 0.06);
  padding: 30px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.wait-item .flip-text {
  transform: rotate(0);
  margin: 0 7px;
}
.wait-item .flip-text::before {
  height: 140%;
  width: calc(100% + 8px);
}
.wait-item .green::before {
  background: #DDF18C;
}
.wait-item .pink::before {
  background: #FEB8DB;
}
.wait-item .blue::before {
  background: #D5E5FA;
}
.wait-item .pink-light::before {
  background: #FFD3D3;
}

.wait-item__img {
  --w: 1;
  height: calc(120px * var(--w));
  position: relative;
  width: calc(280px * var(--w));
  margin: 0 auto;
  z-index: 1;
}
.wait-item__img img {
  position: absolute;
  display: block;
}

.wait-item--1 img:nth-child(1) {
  width: calc(161.504px * var(--w));
  left: 24%;
  top: 8%;
}
.wait-item--1 img:nth-child(2) {
  width: calc(126.504px * var(--w));
  left: 56%;
  top: -1%;
  z-index: -1;
}
.wait-item--1 img:nth-child(3) {
  width: calc(100.504px * var(--w));
  left: 16%;
  top: -1%;
  z-index: -1;
}
.wait-item--1 img:nth-child(4) {
  width: calc(111.504px * var(--w));
  left: -2%;
  top: 25%;
  z-index: -2;
}

.wait-item--2 img:nth-child(1) {
  width: calc(154.504px * var(--w));
  left: -1%;
  top: -6%;
}
.wait-item--2 img:nth-child(2) {
  width: calc(153.504px * var(--w));
  left: 42%;
  top: 1%;
  z-index: -1;
}

.wait-item--3 img:nth-child(1) {
  width: calc(154.504px * var(--w));
  left: 35%;
  top: -6%;
}
.wait-item--3 img:nth-child(2) {
  width: calc(127.504px * var(--w));
  left: 10%;
  top: 1%;
  z-index: -1;
}

.wait-item--4 .wait-item__img {
  height: calc(90px * var(--w));
}
.wait-item--4 img:nth-child(1) {
  width: calc(221.504px * var(--w));
  left: 18%;
  top: -12%;
}
.wait-item--4 img:nth-child(2) {
  width: calc(234.504px * var(--w));
  left: 3%;
  top: 38%;
  z-index: -1;
}

.wait-item__title {
  color: #191C1F;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.24px;
  margin-top: 30px;
}

.wait-item__text {
  color: #363A3F;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.24px;
  margin-top: 16px;
}

.price {
  margin-top: 80px;
  border-radius: 24px;
  background: #DDF18C;
  padding: 30px 0;
  text-align: center;
}
.price .flip-text {
  transform: rotate(-1deg);
  margin: 0 7px;
}
.price .flip-text::before {
  background-color: #fff;
}

.price__wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price__text {
  color: #191C1F;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.24px;
}

.price__text--bottom {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 400;
}
.price__text--bottom span {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 5px;
}

.price__img {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 290px;
}
.price__img img {
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.price__sum {
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  color: #FFF;
}
.price__sum p {
  font-size: 14px;
  font-weight: 300;
}
.price__sum h3 {
  font-size: 40px;
  font-weight: 500;
  margin-top: 8px;
}
.price__sum span {
  font-size: 20px;
  font-weight: 500;
}

.price__btn {
  margin: 20px auto 0;
  max-width: 311px;
}

/* Плашка «оплата частинами»: біла пігулка з іконкою на лаймовому фоні,
   між «Плати один раз» і кнопкою. */
.price__parts {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 460px;
  padding: 11px 20px;
  border-radius: 500px;
  background: #FFFFFF;
  border: 1px solid rgba(25, 28, 31, 0.08);
  box-shadow: 0 6px 18px rgba(25, 28, 31, 0.10);
  color: #191C1F;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}
.price__parts-ic {
  flex: none;
  display: inline-flex;
  color: #2170CE;
}
.price__parts-ic svg {
  width: 24px;
  height: 24px;
  display: block;
}
.price__parts-txt b {
  font-weight: 700;
}
/* padding, а не лише текст: без нього висота посилання 15px, а мінімальна
   зона натискання за WCAG 2.5.8 — 24px. */
.price__parts-link { display: block; text-align: center; margin: 6px auto 0; padding: 6px 0; color: #3B5D08; font-size: 13px; text-decoration: underline; }

.free {
  margin-top: 80px;
}

.free__title {
  text-align: center;
  line-height: 150%;
}
.free__title .flip-text {
  transform: rotate(0);
  margin: 0 7px;
}
.free__title .flip-text::before {
  background: #D2E6FF;
}

.free__subtitle {
  color: #6B6B6B;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.24px;
  margin-top: 24px;
}

.free__wrapper {
  --w: 1;
  margin: 35px auto 0;
  position: relative;
  height: calc(304px * var(--w));
  z-index: 1;
  max-width: calc(350px * var(--w));
}
.free__wrapper div {
  position: absolute;
  animation: freeAnim 3s infinite;
}
.free__wrapper div img {
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.free__wrapper div:first-child {
  left: 1%;
  top: 3%;
  width: calc(336.448px * var(--w));
}
.free__wrapper div:last-child {
  left: 5%;
  top: 73%;
  width: calc(325.448px * var(--w));
  z-index: -1;
}

@keyframes freeAnim {
  0%, 83%, 100% {
    transform: rotate(0deg);
  }
  17% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
.free__btn {
  margin-top: 55px;
}

.after {
  margin-top: 80px;
  padding: 0 15px;
}
.after .container {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #EBEBEB;
  background: #FFF;
}

.after__title {
  line-height: 150%;
}

.after__wrapper {
  margin-top: 32px;
}

.after__item {
  color: #191C1F;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.24px;
  margin-bottom: 16px;
}
.after__item img {
  width: 44px;
  height: 44px;
}
.after__item:last-child {
  margin-bottom: 0;
}
.after__item p {
  margin-top: 8px;
}

.ask {
  margin-top: 80px;
}

.ask__title {
  text-align: center;
}

.ask__wrapper {
  margin-top: 24px;
}

.ask-item {
  border-radius: 16px;
  border: 1px solid #191C1F;
  background: #DDF18C;
  padding-bottom: 5px;
  margin-bottom: 8px;
  /* Плавне розкриття без ривків: сам пункт — grid, а рядок відповіді
     анімується 0fr -> 1fr чистим CSS-transition. Без JS-вимірів і «снапу». */
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ask-item.is-open {
  grid-template-rows: auto 1fr;
}

.ask-item__title {
  padding: 16px;
  color: #191C1F;
  font-size: 17px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.24px;
  padding-right: 63px;
  position: relative;
}
.ask-item__title.active::before {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19' stroke='%23DDF18C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}
.ask-item__title::before {
  content: "";
  position: absolute;
  border-radius: 100px;
  background: #191C1F;
  width: 32px;
  height: 32px;
  right: 16px;
  top: 14px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5V19M5 12H19' stroke='%23DDF18C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center;
  transition: background-image 0.3s ease-in-out;
}

.ask-item__body {
  overflow: hidden;
  min-height: 0;
}

/* Посилання у відповідях лишалися некрашеними: браузерний світло-бузковий
   на лаймовій картці дає контраст 1,94. Темний лайм + підкреслення. */
.ask-item__text a {
  color: #3B5D08;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ask-item__text {
  color: #4E562D;
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.24px;
  padding: 5px 16px 16px;
  overflow: hidden;
  min-height: 0;
  box-sizing: border-box;
}

.bottom-page {
  border-radius: 16px 16px 0px 0px;
  background: #191C1F;
  margin-top: 80px;
  padding: 30px 0 80px;
  border-bottom: 1px solid #393E44;
  position: relative;
  z-index: 3000;
}

.bottom-page__arrow {
  width: 49px;
  height: 49px;
  position: absolute;
  left: 106px;
  bottom: -43px;
  transform: rotate(-130deg);
  display: inline-block;
}

.bottom-page__text {
  color: #FFF;
  font-size: 20px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.408px;
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}

.bottom-page__btn {
  margin-top: 70px;
}

/* Підзаголовок — лише десктоп (див. @media 1024). На мобілці приховано. */
.bottom-page__sub { display: none; }

.footer {
  background: #191C1F;
  padding: 44px 0 24px;
  position: relative;
  z-index: 3000;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.footer-nav ul a {
  color: #FFF;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.408px;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.408px;
}

.footer-legal a:hover {
  color: #BCE31A;
}

.footer-legal__pay {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 19px;
}

.footer__bottom {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flip-text.flip::before {
  animation: flip 0.2s linear forwards;
}

@keyframes flip {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
  }
}
@media (min-width: 780px) {
  /* --- ГЕРОЙ НА БОЛЬШОМ ЭКРАНЕ: общий масштаб, раскладка ниже по пропорциям окна --- */
  .promo > .container {
    max-width: 1040px;
  }
  .promo__title {
    font-size: 56px;
    margin: 0;
  }
  .promo-circles {
    --s: 1.66;
    width: calc(265px * var(--s));
    height: calc(280px * var(--s));
    max-width: none;
    margin: 0;
    transform: none;
  }
  .promo__bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    max-width: 656px;
    margin: 0;
  }
  .promo__bottom > .btn,
  .promo__bottom > .sticky-wrap {
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  .sticky-wrap {
    display: flex;
  }
  .sticky-wrap > .btn {
    flex: 1;
  }
  .promo__bottom .btn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .promo__bottom .btn.btn--black {
    border: 2px solid #BCE31A;
  }
  .promo__bottom .btn {
    white-space: nowrap;
  }
  .promo > .container {
    justify-content: center;
    row-gap: 56px;
  }
  .promo__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .promo__title {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
  }
  .promo-circles {
    margin: 40px auto 0;
  }
  .promo__bottom {
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
  }
  .sticky-wrap {
    width: auto;
  }
  .logo {
    width: 122px;
  }
  .if-sec {
    background-image: url(../img/Intersect2.webp);
    padding-bottom: 96px;
  }
  .test .container {
    padding: 67px 15px;
  }
  .test__img {
    max-width: 462px;
  }
  .test__title {
    font-size: 22px;
  }
  .why__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    -moz-column-gap: 40px;
    column-gap: 40px;
    margin-top: 40px;
  }
  /* На десктопе заголовок влезает в одну строку — перенос не нужен. */
  .why__title br { display: none; }
  .title {
    font-size: 34px;
  }
  .wait__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    -moz-column-gap: 16px;
    column-gap: 16px;
    margin-top: 40px;
  }
  .price {
    padding: 65px 0;
  }
  .after__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    -moz-column-gap: 62px;
    column-gap: 62px;
    margin-top: 40px;
  }
  .after .container {
    padding: 40px;
  }
  .bottom-page__arrow {
    bottom: -57px;
  }
  .price__img {
    max-width: 409px;
  }
  .promo {
    padding: calc(120px + env(safe-area-inset-top, 0px)) 5px 120px;
  }
  header {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }
}
/* --- НАСТОЯЩИЙ ДЕСКТОП ---
   До 1024px страница просто повторяла телефон: контент 900px и кегли с
   мобильного макета. На широком экране это читается как растянутый телефон,
   поэтому здесь задаётся своя ширина, своя типографическая шкала и свой ритм. */
@media (min-width: 1024px) {
  .container {
    max-width: 1120px;
  }
  /* Проза в одну колонку остаётся узкой: на всю ширину строка вышла бы
     под 130 знаков, читать такое тяжело. Держим 45-75. */
  .ask .container {
    max-width: 820px;
  }
  /* Блок теста страдал тем же, чем блок цены: контент тонул в большой зелёной
     плоскости, а кнопка на два слова растягивалась почти во всю карточку.
     Сужаем карточку до ширины блока цены, ограничиваем строку подзаголовка
     читаемой длиной, кнопку делаем компактной, иллюстрацию крупнее. */
  .test .container {
    max-width: 840px;
    padding: 56px 40px;
  }
  .test__subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .test__img {
    max-width: 520px;
  }
  .test__btn {
    max-width: 320px;
  }
  /* Перенос в заголовке FAQ проставлен тегом в разметке и нужен только на
     узком экране: на десктопе строка помещается целиком. */
  .ask__title br {
    display: none;
  }

  .title {
    font-size: 42px;
  }
  .why__list-item--title {
    font-size: 21px;
  }
  .why__list-item--text {
    font-size: 17px;
    margin-top: 20px;
  }
  .wait-item__title {
    font-size: 24px;
  }
  .wait-item__text {
    font-size: 17px;
  }
  .after__item {
    font-size: 18px;
  }
  .ask-item__title {
    font-size: 19px;
    padding: 20px 63px 20px 20px;
  }
  .ask-item__text {
    font-size: 17px;
    padding: 0 20px 20px;
  }
  .test__title {
    font-size: 26px;
  }
  .btn {
    font-size: 17px;
  }

  /* Больше воздуха между секциями: на широком экране прежние 80px
     склеивают блоки в сплошную ленту. */
  .why,
  .wait,
  .price,
  .free,
  .after,
  .ask {
    margin-top: 120px;
  }
  .why__list {
    -moz-column-gap: 64px;
    column-gap: 64px;
  }
  .wait__wrapper {
    -moz-column-gap: 24px;
    column-gap: 24px;
    margin-top: 48px;
  }
  .after__wrapper {
    -moz-column-gap: 80px;
    column-gap: 80px;
  }
  .footer-legal ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
  }

  /* Иллюстрации внутри блоков рисовались под ширину телефона и в широкой
     карточке терялись. Увеличиваем композицию целиком одним множителем,
     взаимное расположение элементов сохраняется. */
  .wait-item__img {
    --w: 1.3;
  }
  /* Десктоп: «безкоштовний урок» в две колонки — слева заголовок, подзаголовок
     и кнопка, справа карточки уроку/тесту на мягкой подложке. По центру в
     пустоте блок смотрелся слабо. */
  .free .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "title card"
      "sub   card"
      "btn   card";
    align-items: center;
    column-gap: 48px;
    max-width: 1120px;
  }
  .free__title {
    grid-area: title;
    align-self: end;
    text-align: left;
    margin: 0;
  }
  .free__title br {
    display: none;
  }
  .free__subtitle {
    grid-area: sub;
    align-self: center;
    text-align: left;
    margin: 14px 0 0;
    max-width: 40ch;
  }
  .free__btn {
    grid-area: btn;
    align-self: start;
    justify-self: start;
    width: auto;
    /* .btn задаёт margin:0 auto (центрирование) — гасим, чтобы прижать влево. */
    margin: 28px 0 0;
    padding-left: 52px;
    padding-right: 52px;
  }
  .free__wrapper {
    grid-area: card;
    --w: 1.2;
    margin: 0;
    /* Явная ширина: как grid-элемент контейнер с абсолютными карточками
       иначе схлопывается в 0, и карточки уезжают за правый край. */
    width: calc(350px * var(--w));
    justify-self: center;
    align-self: center;
  }
  /* Мягкая подложка-«сцена» позади карточек, не трогая их позиционирование. */
  .free__wrapper::after {
    content: "";
    position: absolute;
    inset: -36px -44px;
    z-index: -3;
    border-radius: 36px;
    background: radial-gradient(115% 125% at 26% 20%, #E6EFFF 0%, #EEF3FA 60%, #F6F6F6 100%);
    box-shadow: 0 30px 70px rgba(44, 127, 228, 0.16);
  }

  /* Блок цены на десктопе растягивался во всю ширину и читался как сплошная
     зелёная полоса. Собираем его в компактную карточку по центру: акцент на
     цене, а не на площади заливки. */
  .price {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 32px;
    padding: 64px 24px;
  }

  /* Секция «Якщо» на десктопе не адаптировалась вовсе: заголовок уезжал к
     левому краю широкого контейнера, а сама композиция (350x453 с текстами,
     разложенными в процентах) оставалась мобильного размера по центру, из-за
     чего слева зияла пустота. Масштабируем композицию целиком через transform:
     взаимное расположение текстов, линии и движущейся точки сохраняется в
     точности, а траектория GSAP остаётся в той же системе координат.
     Прирост высоты компенсируем отступом, иначе блок наедет на следующую секцию. */
  .if-sec__title {
    font-size: 42px;
    text-align: center;
  }
  /* Вместо растянутого вертикального серпантина — 4 карточки-«заметки» (боли
     учня) в ряд и крупный вывод на всю ширину снизу. Узкая вертикальная линия
     на широком экране всегда смотрелась пусто. */
  .if-sec__wrapper {
    transform: none;
    max-width: 1120px;
    height: auto;
    margin: 44px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 22px;
    row-gap: 22px;
    align-items: stretch;
  }
  /* Видимую линию и точку прячем; невидимый inline-svg (opacity:0, absolute)
     остаётся в DOM — GSAP берёт из него геометрию и не ломается. */
  .if-sec__wrapper > img,
  .if-sec .dot {
    display: none;
  }
  /* Первые 4 текста — карточки-заметки одной высоты. */
  .if-sec__item-text {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1.5px solid #191C1F;
    border-radius: 16px;
    padding: 22px 18px;
    font-size: 17px;
    line-height: 146%;
    text-align: center;
    box-shadow: 4px 5px 0 #191C1F;
  }
  .if-sec__item-text:nth-child(4) { transform: rotate(-2deg); }
  .if-sec__item-text:nth-child(5) { transform: rotate(1.5deg); }
  .if-sec__item-text:nth-child(6) { transform: rotate(-1deg); }
  .if-sec__item-text:nth-child(7) { transform: rotate(2deg); }
  /* Пятый — вывод-решение на всю ширину, без карточки. */
  .if-sec__item-text:nth-child(8) {
    grid-column: 1 / -1;
    transform: none;
    display: block;
    text-align: center;
    /* Свой стекинг-контекст: иначе лаймовый span::before (z-index:-1) уходит
       за фон-текстуру секции и подсветка «допоможе тобі!» пропадает.
       top/left сбрасываем — от position:relative ожили мобильные проценты. */
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    margin-top: 30px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 32px;
    font-weight: 700;
    line-height: 138%;
  }
}

/* --- ДЕСКТОПНЫЙ ГЕРОЙ ---
   Композиция строится по вертикали и по центру, а не в две колонки: крупный
   заголовок, под ним кнопки, ниже иллюстрация. Так заголовок получает всю
   ширину экрана и работает как главный акцент, а не делит место с картинкой. */
@media (min-width: 1024px) {
  .promo > .container {
    justify-content: center;
    row-gap: 0;
    max-width: 1180px;
  }
  /* Обёртка растворяется, чтобы заголовок и иллюстрация стали прямыми детьми
     контейнера. Только так между ними можно поставить кнопки, не трогая разметку. */
  .promo > .container {
    align-items: center;
  }
  .promo__wrapper {
    display: contents;
  }
  .promo__title {
    order: 1;
  }
  .promo__bottom {
    order: 2;
  }
  .promo-circles {
    order: 3;
  }
  .promo__title {
    font-size: clamp(52px, 5.4vw, 82px);
    line-height: 118%;
    max-width: 15ch;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
  }
  /* Кнопки идут сразу за заголовком, до иллюстрации: путь «прочитав — натиснув»
     не должен прерываться картинкой. */
  .promo__bottom {
    margin: 40px auto 0;
    max-width: 620px;
  }
  .promo-circles {
    --s: 1.75;
    margin: 8px auto 0;
  }
  /* Плашка за словом «успішно» позиционировалась от статического места внутри
     inline-flex, то есть от центра, и на крупном кегле уезжала вправо-вниз.
     Задаём все четыре стороны: тогда её геометрия не зависит от выкладки.
     transform не трогаем, на нём держится анимация появления scaleY. */
  .promo__title .flip-text::before {
    left: -10px;
    right: -10px;
    /* Плашка опущена ниже строки: у «у» глубокий хвост, и при обрезке по низу
       он выходил на тёмный фон, где тёмная буква просто пропадала. */
    top: -2%;
    bottom: -12%;
    width: auto;
    height: auto;
  }
  .promo__bottom .btn {
    font-size: 17px;
  }
}

/* Невысокие мониторы: иначе связка заголовок + кнопки + иллюстрация
   перестаёт помещаться в экран и герой теряет смысл. */
/* Широкий горизонтальный экран: заголовок слева, иллюстрация справа.
   Так композиция целиком помещается по высоте и заполняет экран по ширине,
   тогда как в вертикальной укладке иллюстрация уезжала за нижний край. */
@media (min-width: 1024px) and (min-aspect-ratio: 1 / 1) {
  .promo > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    justify-content: center;
    -moz-column-gap: 64px;
    column-gap: 64px;
    row-gap: 36px;
    max-width: 1180px;
  }
  .promo__wrapper {
    display: contents;
  }
  .promo__title {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    max-width: 540px;
    margin: 0;
    text-align: left;
    font-size: clamp(44px, 3.9vw, 64px);
  }
  .promo__bottom {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    max-width: 620px;
  }
  .promo-circles {
    --s: 1.5;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .promo__title {
    font-size: clamp(44px, 4.2vw, 62px);
  }
  .promo-circles {
    --s: 1.3;
  }
  .promo__bottom {
    margin-top: 28px;
  }
}

@media (min-width: 1600px) and (min-aspect-ratio: 1 / 1) {
  .promo-circles {
    --s: 1.75;
  }
}

/*# sourceMappingURL=main.css.map */

/* --- ОПЛАТА: вікно з поштою перед переходом на сторінку банку --- */
.pay {
  position: fixed;
  inset: 0;
  z-index: 300000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pay[hidden] {
  display: none;
}

.pay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.72);
}

.pay__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #FFF;
  border-radius: 24px;
  padding: 32px 24px 24px;
  box-sizing: border-box;
}

.pay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #F1F1F1;
  color: #191C1F;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pay__title {
  margin: 0;
  color: #191C1F;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.24px;
}

.pay__text {
  margin: 10px 0 0;
  color: #363A3F;
  font-size: 15px;
  line-height: 150%;
}

.pay__form {
  margin-top: 20px;
}

.pay__input {
  width: 100%;
  box-sizing: border-box;
  /* Высота строки задана явно: у e-Ukraine крупные выносные элементы, и при
     line-height: normal браузер режет хвосты букв «g», «у», «р» о край поля. */
  line-height: 24px;
  padding: 15px 20px;
  border-radius: 500px;
  border: 1px solid #D9D9D9;
  background: #FFF;
  color: #191C1F;
  font-size: 16px;
  font-family: inherit;
}

.pay__input:focus {
  outline: none;
  border-color: #191C1F;
}

.pay__error {
  margin: 10px 0 0;
  color: #C63434;
  font-size: 14px;
}

.pay__submit {
  margin-top: 12px;
}

.pay__submit[disabled] {
  opacity: 0.6;
}

.pay__note {
  margin: 16px 0 0;
  color: #6B6B6B;
  font-size: 13px;
  line-height: 150%;
}

.pay__note a {
  color: #4E7A0B;
}

/* --- ЗБІР КОНТАКТУ ПІСЛЯ ТЕСТУ --- */
.quiz__lead {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: #F1F5FA;
  text-align: left;
}

.quiz__lead-title {
  color: #191C1F;
  font-size: 17px;
  font-weight: 500;
}

.quiz__lead-text {
  color: #5B6167;
  font-size: 14px;
  line-height: 150%;
  margin-top: 6px;
}

.quiz__lead-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.quiz__lead-input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  line-height: 22px;
  padding: 12px 16px;
  border-radius: 500px;
  border: 1px solid #D9D9D9;
  background: #FFF;
  color: #191C1F;
  font-size: 15px;
  font-family: inherit;
}

.quiz__lead-input:focus {
  outline: none;
  border-color: #2170CE;
}

.quiz__lead-btn {
  flex: none;
  padding: 12px 22px;
  border: 0;
  border-radius: 500px;
  background: #2170CE;
  color: #FFF;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.quiz__lead-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Окрема НЕвідмічена згода на розсилку під полем пошти. */
.quiz__lead-opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 12px;
  cursor: pointer;
}
.quiz__lead-opt input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #191C1F;
  cursor: pointer;
}
.quiz__lead-opt span {
  color: #5B6167;
  font-size: 13px;
  line-height: 150%;
}

.quiz__lead-msg {
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}

.quiz__lead-msg--err {
  color: #C63434;
}

@media (min-width: 780px) {
  .quiz__lead {
    padding: 24px;
  }
}

/* Автозаповнення Chrome перебиває фон інпута своїм сірим/жовтим. Тримаємо наш
   білий фон і темний текст: box-shadow inset — єдиний спосіб, а довга затримка
   transition прибирає спалах під час підстановки. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #191C1F;
  -webkit-box-shadow: 0 0 0 1000px #FFF inset;
  box-shadow: 0 0 0 1000px #FFF inset;
  caret-color: #191C1F;
  transition: background-color 9999s ease-in-out 0s;
}

/* --- МЕНЮ САЙТУ: плавуча кнопка + повноекранний оверлей --- */
.menu-toggle {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 400000100;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 8px;
  border: 0;
  border-radius: 500px;
  /* 0.72, а не 0.55: над світлими секціями білий підпис на цій підкладці давав
     контраст 4,07 при нормі 4,5. Розмиття лишається, кнопка так само «скляна». */
  background: rgba(25, 28, 31, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.24px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}
.menu-toggle:hover { background: rgba(25, 28, 31, 0.75); }
/* Плавне зникнення у самому верху сторінки (на герої, де є лого). */
/* Поки відкритий тест або модалка (body.scroll-hide) — ховаємо всю «обвязку»
   сторінки: шапку (fixed, z-index 200000000, інакше висить поверх тесту),
   кнопку меню та плаваючі кнопки. */
body.scroll-hide header,
body.scroll-hide .menu-toggle,
body.scroll-hide .support-fab,
body.scroll-hide .btn--out { display: none !important; }

.menu-toggle.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.menu-toggle__box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #BCE31A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
}
.menu-toggle__text { line-height: 1; }
.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #191C1F;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle__lines { position: relative; }
.menu-toggle__lines::before { top: -5px; left: 0; }
.menu-toggle__lines::after { top: 5px; left: 0; }
/* Гамбургер -> хрестик, коли меню відкрите. */
.menu-toggle.is-open .menu-toggle__lines { background: transparent; }
.menu-toggle.is-open .menu-toggle__lines::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__lines::after { transform: translateY(-5px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 400000090;
  background: #14171A;
  background-image: radial-gradient(70% 55% at 78% 18%, rgba(188, 227, 26, 0.14) 0%, rgba(188, 227, 26, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 28px 40px;
  box-sizing: border-box;
  /* Без мерехтіння: не display:none, а видимість + прозорість. */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}
.menu-nav__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  color: #FFF;
  text-decoration: none;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  /* Пункти стають на місце по черзі, коли меню відкривається. */
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.18s ease;
}
.menu-nav__item span {
  color: #6C7278;
  font-size: 14px;
  font-weight: 500;
  min-width: 24px;
}
.menu-nav__item:hover { color: #BCE31A; }
.menu-overlay.is-open .menu-nav__item {
  animation: menuItemIn 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.menu-overlay.is-open .menu-nav__item:nth-child(1) { animation-delay: 0.05s; }
.menu-overlay.is-open .menu-nav__item:nth-child(2) { animation-delay: 0.10s; }
.menu-overlay.is-open .menu-nav__item:nth-child(3) { animation-delay: 0.15s; }
.menu-overlay.is-open .menu-nav__item:nth-child(4) { animation-delay: 0.20s; }
.menu-overlay.is-open .menu-nav__item:nth-child(5) { animation-delay: 0.25s; }
.menu-overlay.is-open .menu-nav__item:nth-child(6) { animation-delay: 0.30s; }
@keyframes menuItemIn {
  to { opacity: 1; transform: translateY(0); }
}

.menu-foot {
  max-width: 1120px;
  width: 100%;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 500px;
  background: #BCE31A;
  color: #191C1F;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.menu-ig { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 15px;
  display: inline-block; padding: 4px 0; }
.menu-ig:hover { color: #BCE31A; }

/* Секції-якорі не ховаються під нічим: запас зверху на випадок навігації. */
.test, .why, .wait, .price, .ask, .if-sec { scroll-margin-top: 24px; }

@media (min-width: 1024px) {
  .menu-toggle { top: 24px; right: 28px; }
  .menu-nav__item { font-size: 56px; gap: 24px; }
  .menu-nav__item span { font-size: 16px; min-width: 34px; }
}


/* cursor-fix для div-кнопок: обычный указатель, без выделения текста. */
.btn { cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.menu-toggle, .back-link { -webkit-user-select: none; -moz-user-select: none; user-select: none; }

/* Десктопное меню в шапке главной: лого слева, пункты и CTA справа.
   На мобиле пункты/CTA скрыты — там центрированный лого + «Меню»-оверлей. */
.header-nav, .header-cta { display: none; }
@media (min-width: 1024px) {
  /* Розумна шапка: зверху прозора (частина героя), при скролі — solid-бар з блюром,
     ховається вниз / виїжджає вгору. Ховаємо через transform (GPU) — без лагів. */
  header { position: fixed;
    transition: transform .38s cubic-bezier(.22, .61, .36, 1),
      background-color .3s ease, box-shadow .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
    will-change: transform; }
  header.is-scrolled { background-color: rgba(25, 28, 31, .82);
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
  header.is-hidden { transform: translateY(-100%); }

  header .container { max-width: 1120px; width: 100%; display: flex; align-items: center;
    justify-content: space-between; gap: 24px; }
  header .logo { width: 128px; }
  .header-nav { display: flex; align-items: center; gap: 30px; }
  .header-nav a { color: rgba(255, 255, 255, .82); font-size: 15px; letter-spacing: -.24px;
    transition: color .15s ease; }
  .header-nav a:hover,
  .header-nav a.is-active { color: #BCE31A; }
  .header-cta { display: inline-flex; align-items: center; padding: 11px 24px; border-radius: 500px;
    background: #BCE31A; color: #191C1F; font-size: 15px; font-weight: 500; transition: transform .15s ease; }
  .header-cta:hover { transform: translateY(-2px); }
  .menu-toggle { display: none !important; }
  /* Якоря приземляються під фіксованою шапкою, а не ховаються за нею. */
  .test, .why, .wait, .price, .ask, .if-sec, .after { scroll-margin-top: 92px; }
}


/* Крупные экраны: пропорционально увеличиваем весь дизайн (zoom), чтобы блоки
   и тексты росли, а не оставались мини-версией по центру. min-height героя
   уменьшаем на тот же коэффициент, иначе zoom*100svh выпихивает его за экран. */
@media (min-width: 1700px) {
  body { zoom: 1.15; }
  .promo { min-height: calc(87vh - 28px); min-height: calc(87svh - 28px); }
}
@media (min-width: 2200px) {
  body { zoom: 1.35; }
  .promo { min-height: calc(74vh - 24px); min-height: calc(74svh - 24px); }
}

/* На десктопі приховуємо плаваючу нижню кнопку — замість неї кнопка «Підтримка»
   справа знизу. На мобілці sticky-кнопка лишається. */
@media (min-width: 1024px) {
  .btn--out { display: none !important; }
}

/* Плаваюча кнопка підтримки (десктоп): правий нижній кут. */
.support-fab { display: none; }
@media (min-width: 1024px) {
  .support-fab {
    display: inline-flex; align-items: center; gap: 8px;
    position: fixed; right: 24px; bottom: 24px; z-index: 300000000;
    padding: 12px 20px; border-radius: 500px;
    background: #191C1F; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 500; letter-spacing: -.24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .support-fab:hover { transform: translateY(-2px); background: #23272b;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34); }
  .support-fab svg { width: 18px; height: 18px; flex: none; }
}

/* Фінальний CTA-блок на десктопі: зібрана центрована композиція з м'яким
   лаймовим сяйвом. Прибираємо випадкову стрілку, додаємо підзаголовок. */
@media (min-width: 1024px) {
  .bottom-page {
    margin-top: 104px;
    padding: 104px 0 116px;
  }
  .bottom-page > .container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* М'яке лаймове сяйво. Повністю згасає в межах блоку (радіус прозорості
     62% при центрі 44%), тому ані не спливає на світлу секцію зверху, ані не
     обрізається знизу — без overflow:hidden. */
  .bottom-page::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: 920px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(188, 227, 26, 0.16) 0%, rgba(188, 227, 26, 0) 62%);
    pointer-events: none;
    z-index: 0;
  }
  /* Мала мальована стрілка на десктопі виглядає випадковою — ховаємо. */
  .bottom-page__arrow { display: none; }
  .bottom-page__text {
    width: auto;
    max-width: 880px;
    text-align: center;
    font-size: 40px;
    line-height: 124%;
    letter-spacing: -0.8px;
  }
  .bottom-page__sub {
    display: block;
    margin: 18px auto 0;
    max-width: 560px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 17px;
    line-height: 152%;
    letter-spacing: -0.24px;
  }
  .bottom-page__btn {
    width: auto;
    margin-top: 40px;
    font-size: 17px;
    padding: 18px 44px;
  }
}

/* --- Юридичні примітки на лендингу (правки серпня 2026) --- */

/* Дисклеймер під кнопкою тесту: результат не є прогнозом балу НМТ. */
.test__disclaimer {
  max-width: 420px;
  margin: 14px auto 0;
  color: rgba(25, 28, 31, 0.74);
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

/* Згода з офертою під кожною кнопкою купівлі + виноска про порівняння цін. */
.buy-consent {
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(25, 28, 31, 0.74);
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}
/* #3B5D08, а не #4E7A0B: на лаймовому блоці ціни світліший давав 4,14 при нормі
   4,5 для 13px. Той самий темний лайм уже прийнятий у program.css. */
.buy-consent a { color: #3B5D08; text-decoration: underline; }
/* У промо примітка живе всередині блоку кнопок, щоб триматися прямо під ними:
   на десктопі .promo__bottom — сітка на дві колонки, тому розтягуємо на всю
   ширину другим рядом, на мобілці це просто наступний елемент колонки. */
.promo__bottom > .promo__consent {
  grid-column: 1 / -1;
  /* на планшеті не даємо тексту розтягтись на всю ширину кнопок;
     на телефоні контейнер вужчий, тому обмеження ні на що не впливає */
  max-width: 520px;
  margin-top: 12px;
  /* щоб текст не впирався у заокруглений низ промо-блоку */
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 16px;
}
@media (min-width: 1024px) {
  .promo__bottom > .promo__consent {
    max-width: 560px;
    /* у сітці вже є gap 16px — додаємо трохи, щоб вийшло як на мобілці */
    margin: 6px auto 0;
    font-size: 12px;
    line-height: 17px;
  }
}
.promo__consent.buy-consent { color: rgba(255, 255, 255, 0.6); }
.promo__consent.buy-consent a { color: #BCE31A; }
.price__footnote {
  max-width: 520px;
  margin: 10px auto 0;
  color: rgba(25, 28, 31, 0.66);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

/* Що саме входить у безкоштовний урок — під кнопкою «Отримати урок». */
.free__note {
  max-width: 520px;
  margin: 14px auto 0;
  color: rgba(25, 28, 31, 0.72);
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

/* Посилання всередині абзацу мають бути помітні без кольору.
   axe міряв контраст між посиланням і сусіднім текстом: 1,04:1 у нижньому заклику
   і 2,94:1 у примітці під формою — тобто відрізнити посилання від тексту неможливо
   ні оком, ні за правилом WCAG 1.4.1. Підкреслення вирішує це без зміни палітри. */
.free__note a,
.bottom-page__sub a {
  /* Колір успадковуємо від абзацу: у примітці посилання лишалося
     незафарбованим (світло-бузковий колір браузера, контраст 2,21 на світлому),
     а в нижньому заклику збігалося з текстом. Підкреслення відрізняє його
     без кольору, як і вимагає WCAG 1.4.1. */
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
