* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins";
  background-image: url("bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%; /* контроль масштаба */
}

.container {
  width: 100%;
  max-width: 1400px;
  padding: 0 40px;
  margin: 0 auto; /* вот правильное центрирование */
  text-align: center;
}

/* ЗАГОЛОВОК */
.title {
  color: black;
  font-size: 32px;
  font-weight: 500;
  white-space: nowrap; /* в одну линию */
  margin-bottom: 45px;
}

.title span {
  background: #0c4eb9;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* СТРЕЛКА */
.arrow-wrapper {
  margin-bottom: 50px;
}

.arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid blue;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(12, 78, 185, 1);
  animation: pulse 2s infinite ease-in-out;
}

.arrow svg {
  width: 30px;
  height: 30px;
  fill: black;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 15px rgba(47, 107, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(47, 107, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(47, 107, 255, 0.4);
  }
}

/* БЛОК ВИДЕО */
.video-outer {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: none;
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(0, 255, 200, 0.6);
}

.video-inner {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 720 / 900;
  width: 100%;
}

mux-player {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  display: block;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-btni {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c4eb9;
  box-shadow: 0 0 15px rgba(47, 107, 255, 0.4);
  animation: pulseGlow 1.5s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.play-btni:hover {
  transform: scale(1.1);
}

.play-btni svg {
  width: 28px;
  height: 28px;
  fill: white; /* темный треугольник */
}
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(47, 107, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(47, 107, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 15px rgba(47, 107, 255, 0.4);
  }
}
.ai-block {
  margin: 140px auto 0;
  width: 100%;
  max-width: 1320px; /* точный размер из Figma */
}

/* ОСНОВНАЯ КАРТОЧКА */
.ai-content {
  position: relative;
  width: 100%;
  height: 548px; /* фиксированная высота как в макете */
  border: 1px solid rgba(192, 220, 232, 0.78);
  border-radius: 28px;
  padding: 70px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 100%, rgba(201, 232, 255, 0.72), transparent 34%),
    radial-gradient(circle at 83% 100%, rgba(216, 249, 237, 0.76), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f8fbfd 58%, #f1f9fd 100%);
  box-shadow: 0 24px 60px rgba(27, 75, 99, 0.09);
}

/* свечение справа */
.ai-content::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -48px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  z-index: 0;
}

/* легкая виньетка, чтобы правый край не «светился» */
.ai-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  z-index: 0;
}
/* текст */
.ai-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.ai-text h2 {
  color: #07162d;
  text-align: justify;
  font-family: "Poppins";
  font-weight: 700;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 25px;
  max-width: 510px;
}

.ai-text h2 span {
  color: #0977ce;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.ai-desc {
  color: #647886;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  max-width: 470px;
  margin-bottom: 30px;
}

/* информационный блок */
.ai-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 14px;
  margin-bottom: 35px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d5e8e3;
  box-shadow: 0 4px 12px rgba(27, 72, 91, 0.04);
  backdrop-filter: blur(12px);
}

.ai-info p {
  font-size: 14px;
  color: #20394c;
}

.ai-info .star {
  color: #1cad6e;
  font-size: 35px;
}

/* кнопка */
.ai-btn {
  display: flex;
  padding: 16px 36px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: #087bd1;
  box-shadow: 0 12px 24px rgba(0, 117, 202, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ai-btn:hover {
  transform: translateY(-1px);
  background: #066fbe;
  box-shadow: 0 15px 28px rgba(0, 117, 202, 0.22);
}

/* рука */
.ai-image {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end; /* прижимаем вниз */
}

.ai-image img {
  width: 640px; /* БОЛЬШАЯ */
  position: absolute;
  right: -120px; /* выход за край */
  bottom: -70px; /* выход вниз */
}
.slots-block {
  margin: 120px auto;
  max-width: 1320px;
}

.slots-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 80px;
  border: 1px solid rgba(192, 220, 232, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 100%, rgba(201, 232, 255, 0.72), transparent 34%),
    radial-gradient(circle at 83% 100%, rgba(216, 249, 237, 0.76), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f8fbfd 58%, #f1f9fd 100%);
  box-shadow: 0 24px 60px rgba(27, 75, 99, 0.09);
}

.slots-left {
  max-width: 480px;
}

.slots-left h2 {
  color: #07162d;
  font-size: 32px;
  line-height: 1.12;
  margin-bottom: 30px;
}

.slots-left h2 span {
  color: #0977ce;
}

.slots-info {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  margin-bottom: 30px;
  border: 1px solid #d5e8e3;
  box-shadow: 0 4px 12px rgba(27, 72, 91, 0.04);
}
.star {
  color: #1cad6e;
  font-size: 35px;
}
.slots-info p {
  font-size: 14px;
  color: #20394c;
}

.slots-btn {
  display: flex;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background: #087bd1;
  box-shadow: 0 12px 24px rgba(0, 117, 202, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.slots-btn:hover {
  transform: translateY(-1px);
  background: #066fbe;
  box-shadow: 0 15px 28px rgba(0, 117, 202, 0.22);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 20px;
}

.slot {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d5e8e3;
  box-shadow: 0 4px 12px rgba(27, 72, 91, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
  color: #718592;
}

.slot-icon {
  font-size: 24px;
  margin-bottom: 6px;
  opacity: 0.7;
}

.slot-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Занято */
.slot.taken {
  background: #d5edff;
  color: #075a91;
  opacity: 1;
}

.slot.taken .slot-label {
  color: #075a91;
}

/* Свободно */
.slot.free {
  background: #cdf7df;
  color: #075c3f;
}

.slot.free .slot-label {
  color: #075c3f;
}

.play-overlay1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-btn1 {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8fffd4 0%, #41d6a4 100%);

  box-shadow:
    0 10px 30px rgba(0, 255, 180, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.3);

  animation: pulseGlow 1.5s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.play-btn1:hover {
  transform: scale(1.1);
}

.play-btn1 svg {
  width: 28px;
  height: 28px;
  fill: #0c1320; /* темный треугольник */
}
@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 255, 180, 0.5),
      0 10px 30px rgba(0, 255, 180, 0.25);
  }

  50% {
    box-shadow:
      0 0 0 18px rgba(0, 255, 180, 0),
      0 15px 40px rgba(0, 255, 180, 0.4);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(0, 255, 180, 0),
      0 10px 30px rgba(0, 255, 180, 0.25);
  }
}
.under-video-wrapper {
  max-width: 1160px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ТАЙМЕР */
.video-timer {
  text-align: center;
  font-size: 20px;
  color: #647886;
  margin-bottom: 40px;
  margin-top: 50px;
}

#timerValue {
  color: #1cad6e;
  font-weight: 700;
}

/* ===== ОБЕРТКА ===== */
.form-wrapper {
  margin-top: 85px;
  position: relative;
  width: 100%; /* берет ширину как видео */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
}

/* ОБА БЛОКА ОДИНАКОВЫЕ */

.form-left-card,
.form-right-card {
  flex: 1; /* занимают одинаковую ширину */
  padding: 60px;
  border: 1px solid rgba(192, 220, 232, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 100%, rgba(201, 232, 255, 0.56), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f8fbfd 58%, #f1f9fd 100%);
  box-shadow: 0 24px 60px rgba(27, 75, 99, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

/* ЛЕВЫЙ */

.form-left-card h2 {
  text-align: left;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: #07162d;
  margin-bottom: 35px;
}

.form-left-card h2 span {
  color: #0977ce;
}

.form-info {
  display: inline-block;
  padding: 18px 28px;
  border-radius: 14px;
  border: 1px solid #d5e8e3;
  color: #20394c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(27, 72, 91, 0.04);
}

/* ПРАВЫЙ */

.form-right-card h3 {
  color: #1cad6e;
  margin-bottom: 28px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.form-right-card form {
  display: flex;
  flex-direction: column;
}

.form-right-card input {
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid #c8dfdc;
  background: #fff;
  color: #000;
  font-size: 15px;
  transition: 0.3s;
}

.form-right-card input:focus {
  border-color: #0789d9;
  box-shadow: 0 0 0 3px rgba(0, 132, 219, 0.14);
  outline: none;
}

.form-btn {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: white;
  background: #087bd1;
  box-shadow: 0 12px 24px rgba(0, 117, 202, 0.18);

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-btn:hover {
  transform: translateY(-1px);
  background: #066fbe;
  box-shadow: 0 15px 28px rgba(0, 117, 202, 0.22);
}

.form-small {
  margin-top: 14px;
  font-size: 12px;
  color: #778a94;
  text-align: center;
}

/* ===== СТРЕЛКИ ПОВЕРХ ===== */
.form-arrows1,
.arrow-circle1 {
  display: none;
}
.form-arrows {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 85px;
  pointer-events: none;
}

.arrow-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  border: 1px solid rgba(192, 220, 232, 0.78);
  background: #087bd1;
  box-shadow: 0 15px 28px rgba(0, 117, 202, 0.22);
}
.final-section {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.final-card {
  max-width: 1320px;
  width: 100%;
  padding: 80px 60px;
  border-radius: 30px;
  background-image: url("bg1.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  backdrop-filter: blur(40px);
}

.final-title {
  text-align: center;
  font-size: 38px;
  color: black;
  font-weight: bold;
}

.final-sub {
  text-align: center;
  color: black;
  margin-top: 10px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}

.stat-box {
  width: 320px;
  height: 200px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stat-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: black;
  font-size: 16px;
}

.stat-icon {
  width: 22px;
  height: 22px;
  fill: #39d98a; /* один цвет для всех */
}

.stat-value {
  margin-top: 22px;
  font-size: 36px;
  font-weight: 700;
  color: black;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 60px 0;
}

.calc-title {
  text-align: center;
  font-size: 22px;
  color: black;
}

.calc-title span {
  color: rgba(12, 78, 185, 1);
}

.calc-card {
  margin: 50px auto 0;
  width: 520px;
  background: #e6e7ea;
  border-radius: 25px;
  padding: 40px;
  text-align: center;
}

.calc-label {
  color: black;
  font-weight: bold;
  margin-bottom: 10px;
}

.calc-value {
  font-size: 64px;
  font-weight: 800;
  color: #0f172a;
}

.calc-line {
  height: 1px;
  background: #c5c8ce;
  margin: 30px 0;
}

.calc-days {
  color: black;
  margin-bottom: 15px;
}

#rangeSlider {
  width: 100%;
  accent-color: blue;
}
.footer {
  padding: 60px 20px 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ЛОГОТИПЫ */
.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px; /* расстояние между рядами */
  margin-bottom: 50px;
}

.footer-logos .logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px; /* расстояние между логотипами */
}

.footer-logos img {
  height: 50px;
  width: auto;
}

/* ССЫЛКИ */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-links a {
  color: black;
  font-size: 20px;
  text-decoration: none;
  color: #666;
}

/* ТЕКСТ */
.footer-text {
  font-size: 16px;
  color: black;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}
.iti__dial-code {
  color: black !important;
}
.iti__country-name {
  color: black !important;
}
.mytext1 {
  color: black;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 992px) {
  .slots-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 50px 40px;
  }

  .slots-left {
    max-width: 100%;
  }

  .slots-left h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .slots-btn {
    width: 100%;
    text-align: center;
  }

  .slots-grid {
    width: 100%;
    justify-content: center;
  }
  .form-wrapper {
    flex-direction: column;
    gap: 0px;
  }

  .form-left-card,
  .form-right-card {
    width: 100%;
  }

  /* стрелки убираем */
  .form-arrows {
    display: none;
  }

  .form-left-card {
    padding: 50px;
  }

  .form-right-card {
    padding: 50px;
  }
  .form-arrows1 {
    display: flex;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    justify-content: center;
  }

  .arrow-circle1 {
    transform: rotate(90deg);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    border: 1px solid rgba(192, 220, 232, 0.78);
    background: #087bd1;
    box-shadow: 0 15px 28px rgba(0, 117, 202, 0.22);
  }
}
@media (max-width: 1100px) {
  .stats-row {
    flex-wrap: wrap;
    gap: 25px;
  }

  .stat-box {
    width: 280px;
    height: 180px;
    padding: 25px;
  }

  .calc-card {
    width: 90%;
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 40px;
  }

  .container {
    padding: 0 20px;
  }

  .title {
    font-size: 20px;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 25px;
  }

  .arrow-wrapper {
    margin-bottom: 30px;
  }

  .arrow {
    width: 44px;
    height: 44px;
  }

  .video-outer {
    max-width: none;
    padding: 10px;
    border-radius: 18px;
  }

  .video-inner {
    border-radius: 14px;
  }
  .ai-content {
    flex-direction: column;
    height: auto;
    padding: 50px 30px 80px 30px;
    text-align: left;
  }

  .ai-text {
    max-width: 100%;
  }

  .ai-text h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .ai-desc {
    font-size: 15px;
  }

  .ai-info {
    margin-bottom: 30px;
  }

  .ai-btn {
    width: 100%;
    display: inline-block;
    padding: 14px 30px;
    font-size: 15px;
  }

  .ai-image {
    width: 100%;
    height: auto;
    position: relative;

    display: flex;
    justify-content: center;
  }

  .ai-image img {
    position: relative;
    width: 380px;
    right: auto;
    bottom: auto;
    transform: none;
  }

  /* уменьшаем свечение */
  .ai-content::after {
    right: -200px;
    top: -150px;
    width: 600px;
    height: 600px;
    filter: blur(30px);
  }
  .slots-block {
    margin: 80px auto;
  }

  .slots-content {
    padding: 35px 25px;
    border-radius: 18px;
  }

  .slots-left h2 {
    font-size: 22px;
  }

  .slots-info {
    padding: 14px 16px;
  }

  .slots-btn {
    font-size: 14px;
  }

  /* СЕТКА (GRID) */
  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    justify-items: center;
  }

  .slot {
    width: 85px;
    height: 85px;
  }

  .slot-icon {
    font-size: 20px;
  }

  .slot-label {
    font-size: 11px;
  }

  .final-card {
    padding: 50px 25px;
    border-radius: 20px;
  }

  .final-title {
    font-size: 28px;
  }

  .final-sub {
    font-size: 14px;
  }

  .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
  }

  .stat-box {
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 25px;
  }

  .stat-value {
    font-size: 30px;
  }

  .divider {
    margin: 40px 0;
  }

  .calc-title {
    font-size: 18px;
  }

  .calc-card {
    width: 100%;
    padding: 30px 20px;
    border-radius: 20px;
  }

  .calc-value {
    font-size: 48px;
  }

  .footer {
    margin-top: 60px;
    padding: 50px 20px 140px 20px;
  }

  .footer-logos {
    gap: 25px;
    margin-bottom: 35px;
  }

  .footer-logos .logos-row {
    gap: 40px; /* меньший отступ */
    /* чтобы не ломалось */
  }

  .footer-logos img {
    height: 22px; /* меньшие логотипы */
  }

  .footer-links a {
    font-size: 15px;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .footer-text {
    font-size: 12px;
    line-height: 1.5;
  }
  .video-timer {
    font-size: 18px;
  }

  .form-wrapper {
    margin-top: 50px;
  }

  .form-left-card,
  .form-right-card {
    padding: 40px 30px;
    border-radius: 18px;
  }

  .form-left-card h2 {
    font-size: 24px;
  }

  .form-info {
    padding: 14px 20px;
    font-size: 13px;
  }

  .form-right-card input {
    padding: 16px;
    font-size: 14px;
  }

  .form-btn {
    padding: 16px;
    font-size: 15px;
  }
}
@media (max-width: 576px) {
  .ai-block {
    margin: 40px auto 0;
  }

  .ai-content {
    padding: 40px 20px 70px 20px;
    border-radius: 18px;
  }

  .ai-text h2 {
    font-size: 24px;
  }

  .ai-image img {
    width: 320px;
    bottom: -69px;
    left: -86px;
  }
  .final-title {
    font-size: 22px;
  }

  .stat-top {
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    font-size: 14px;
  }

  .stat-icon {
    width: 18px;
    height: 18px;
  }

  .stat-value {
    text-align: justify;
    font-size: 26px;
  }

  .calc-value {
    font-size: 40px;
  }
  .under-video-wrapper {
    margin: 40px auto;
    padding: 0 15px;
  }

  .video-timer {
    font-size: 16px;
    margin-top: 30px;
  }

  .form-left-card,
  .form-right-card {
    padding: 40px 20px;
  }

  .form-left-card h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  .footer-links a {
    font-size: 15px;
  }
  .form-btn {
    font-size: 14px;
  }
}

/* Кастомизация Mux Player: оставляем только play/pause, шкалу и качество */
mux-player {
  --center-controls: none;
  --top-controls: none;
  --bottom-play-button: block;
  --time-range: block;
  --rendition-menu-button: block;
  --live-button: none;
  --seek-backward-button: none;
  --seek-forward-button: none;
  --mute-button: none;
  --volume-range: none;
  --captions-button: none;
  --airplay-button: none;
  --pip-button: none;
  --fullscreen-button: none;
  --cast-button: none;
  --playback-rate-button: none;
  --audio-track-menu-button: none;
  --title-display: none;
  --time-display: none;
  --duration-display: none;
}

mux-player::part(range) {
  pointer-events: none;
}

/* ===== REDESIGNED LAST STEP + CALCULATOR ===== */
.final-section {
  margin-top: 80px;
}

.redesigned-final-card {
  width: 100%;
  max-width: 760px;
  padding: 34px 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(192, 220, 232, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 100%, rgba(201, 232, 255, 0.72), transparent 34%),
    radial-gradient(circle at 83% 100%, rgba(216, 249, 237, 0.76), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f8fbfd 58%, #f1f9fd 100%);
  box-shadow: 0 24px 60px rgba(27, 75, 99, 0.09);
  text-align: left;
}

.snapshot-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 24px;
}

.snapshot-kicker,
.projection-kicker {
  margin: 0 0 7px;
  color: #1cad6e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.snapshot-heading h2,
.projection-view h3 {
  margin: 0;
  color: #07162d;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.snapshot-heading h2 {
  font-size: 32px;
  line-height: 1.12;
}

.snapshot-heading h2 span,
.projection-view h3 span {
  color: #0977ce;
}

.snapshot-chart-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin-bottom: 2px;
  fill: none;
  stroke: #108dd2;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snapshot-stats {
  display: grid;
  gap: 14px;
}

.snapshot-stat {
  position: relative;
  min-height: 122px;
  padding: 24px 24px 22px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-radius: 22px;
}

.snapshot-stat::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -34px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.snapshot-stat--users {
  color: #075c3f;
  background: #cdf7df;
}

.snapshot-stat--earnings {
  color: #075a91;
  background: #d5edff;
}

.snapshot-stat--average {
  color: #fff;
  background: #12394a;
}

.snapshot-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.65);
}

.snapshot-stat--average .snapshot-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #7de7b5;
}

.snapshot-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.snapshot-copy {
  min-width: 0;
}

.snapshot-copy > span {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.72;
}

.snapshot-copy strong {
  display: block;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.snapshot-copy small {
  margin-left: 5px;
  font-size: 12px;
  letter-spacing: 0;
}

.snapshot-trend {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-bottom: 2px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.68;
}

.snapshot-trend b {
  font-size: 20px;
  line-height: 0.5;
}

.projection-shell {
  margin-top: 22px;
  border: 1px solid #d7e8e4;
  border-radius: 22px;
  background: rgba(240, 248, 247, 0.94);
  overflow: hidden;
}

.projection-view {
  position: relative;
  padding: 34px;
}

.projection-view[hidden] {
  display: none !important;
}

.projection-view h3 {
  max-width: 590px;
  font-size: 31px;
  line-height: 1.12;
}

.projection-description {
  max-width: 585px;
  margin: 18px 0 28px;
  color: #647886;
  font-size: 15px;
  line-height: 1.55;
}

.projection-primary {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #087bd1;
  box-shadow: 0 12px 24px rgba(0, 117, 202, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.projection-primary:hover {
  transform: translateY(-1px);
  background: #066fbe;
  box-shadow: 0 15px 28px rgba(0, 117, 202, 0.22);
}

.projection-primary:disabled {
  transform: none;
  background: #aebdc5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.68;
}

.projection-primary:focus-visible,
.projection-period:focus-visible,
.projection-close:focus-visible,
.projection-change:focus-visible,
.projection-amount-field:focus-within {
  outline: 3px solid rgba(0, 132, 219, 0.2);
  outline-offset: 2px;
}

.projection-primary > span {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.projection-close {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #657985;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font: 300 31px/38px Arial, sans-serif;
}

.projection-form h3,
.projection-loading h3 {
  max-width: 460px;
  padding-right: 46px;
  margin-bottom: 36px;
}

.projection-field-label {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: #20394c;
  font-size: 14px;
  font-weight: 600;
}

.projection-field-label span {
  color: #748997;
}

.projection-amount-field {
  height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #c8dfdc;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(27, 72, 91, 0.04);
}

.projection-currency {
  color: #18aa68;
  font-size: 27px;
  font-weight: 700;
}

.projection-amount-field input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #07162d;
  background: transparent;
  font: inherit;
  font-size: 30px;
  font-weight: 700;
}

.projection-cad {
  color: #718592;
  font-size: 13px;
  font-weight: 600;
}

.projection-help {
  margin: 8px 0 26px;
  color: #6f838e;
  font-size: 12px;
}

.projection-help.is-error {
  color: #c65050;
}

.projection-periods {
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.projection-periods legend {
  margin-bottom: 12px;
  color: #20394c;
  font-size: 14px;
  font-weight: 600;
}

.projection-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.projection-period {
  position: relative;
  min-height: 56px;
  border: 1px solid #cbdddc;
  border-radius: 12px;
  color: #354d5f;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.projection-period.is-active {
  border-color: #0789d9;
  background: #d6edff;
  box-shadow: 0 0 0 2px rgba(7, 137, 217, 0.13);
}

.popular-badge {
  position: absolute;
  top: -9px;
  right: 7px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #157849;
  background: #a9f0c9;
  font-size: 9px;
  font-weight: 700;
}

.projection-loading {
  min-height: 520px;
}

.projection-loading-content {
  min-height: 345px;
  padding: 56px 10px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projection-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 44px;
}

.projection-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #14b66f;
  animation: projectionPulse 0.9s infinite alternate;
}

.projection-dots i:nth-child(2) {
  background: #269eda;
  animation-delay: 0.18s;
}

.projection-dots i:nth-child(3) {
  background: #83dcd3;
  animation-delay: 0.36s;
}

@keyframes projectionPulse {
  to {
    transform: translateY(-5px);
    opacity: 0.55;
  }
}

.projection-loading-content h4 {
  margin: 0 0 10px;
  color: #07162d;
  font-size: 23px;
  line-height: 1.2;
}

.projection-loading-content p {
  margin: 0;
  color: #6e838f;
  font-size: 14px;
}

.projection-progress {
  width: 78%;
  height: 6px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: #cee6e1;
}

.projection-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14ae71, #078be0);
  animation: projectionProgress 1.35s ease forwards;
}

@keyframes projectionProgress {
  to {
    width: 100%;
  }
}

.projection-result {
  padding-top: 34px;
}

.projection-result > h3 {
  margin-bottom: 24px;
}

.projection-result-kicker {
  margin-bottom: 23px;
}

.projection-estimate {
  margin: 0 0 2px;
  color: #70838f;
  text-align: center;
  font-size: 15px;
}

.projection-profit {
  color: #0877ca;
  text-align: center;
  font-size: 47px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.projection-profit small {
  margin-left: 4px;
  color: #263f50;
  font-size: 18px;
  letter-spacing: 0;
}

.projection-total-row {
  margin-top: 24px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #d3e4e1;
  color: #70838f;
  font-size: 14px;
}

.projection-total-row strong {
  color: #20394c;
}

.projection-growth {
  min-height: 310px;
  margin-top: 18px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d5e8e3;
  border-radius: 18px;
}

.projection-growth-title {
  margin: 0 0 6px;
  color: #1baa6a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.projection-growth-sub {
  margin: 0;
  color: #6d818d;
  text-align: center;
  font-size: 13px;
}

.projection-growth-bars {
  height: 126px;
  margin: 24px 4px 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.projection-growth-bar {
  height: var(--bar-height, 26%);
  min-height: 12px;
  display: block;
  transform: scaleY(0);
  transform-origin: bottom;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, #17c978 0%, #087ed4 100%);
  box-shadow: 0 9px 18px rgba(7, 126, 212, 0.15);
}

.projection-result.is-animated .projection-growth-bar {
  animation: growthBarRise 0.85s cubic-bezier(0.2, 0.85, 0.22, 1) forwards;
}

.projection-result.is-animated .projection-growth-bar:nth-child(2) {
  animation-delay: 0.08s;
}

.projection-result.is-animated .projection-growth-bar:nth-child(3) {
  animation-delay: 0.16s;
}

.projection-result.is-animated .projection-growth-bar:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes growthBarRise {
  to {
    transform: scaleY(1);
  }
}

.projection-growth-points {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  text-align: center;
}

.projection-growth-points div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projection-growth-points span {
  color: #70838f;
  font-size: 10px;
  font-weight: 600;
}

.projection-growth-points strong {
  color: #1d3748;
  font-size: 12px;
}

.projection-ready {
  margin: 22px 0 19px;
  color: #19a868;
  font-size: 13px;
}

.projection-change {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  color: #617782;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.projection-disclaimer {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #778a94;
  text-align: center;
  font-size: 11px;
}

.projection-disclaimer i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23ce7e;
  box-shadow: 0 0 0 5px rgba(35, 206, 126, 0.13);
}

@media (max-width: 768px) {
  .final-section {
    margin-top: 64px;
  }

  .redesigned-final-card {
    padding: 22px 16px 24px;
    border-radius: 24px;
  }

  .snapshot-heading {
    padding: 0 2px 18px;
  }

  .snapshot-kicker,
  .projection-kicker {
    font-size: 9px;
  }

  .snapshot-heading h2 {
    font-size: 22px;
  }

  .snapshot-chart-icon {
    width: 25px;
    min-width: 25px;
    height: 25px;
  }

  .snapshot-stats {
    gap: 10px;
  }

  .snapshot-stat {
    min-height: 106px;
    padding: 18px 17px;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    gap: 14px;
    border-radius: 19px;
  }

  .snapshot-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
  }

  .snapshot-icon svg {
    width: 24px;
    height: 24px;
  }

  .snapshot-copy > span {
    font-size: 11px;
  }

  .snapshot-copy strong {
    font-size: 25px;
  }

  .snapshot-copy small {
    font-size: 10px;
  }

  .snapshot-trend {
    font-size: 9px;
  }

  .projection-shell {
    margin-top: 22px;
    border-radius: 18px;
  }

  .projection-view {
    padding: 29px 18px;
  }

  .projection-view h3 {
    font-size: 24px;
  }

  .projection-description {
    margin: 15px 0 24px;
    font-size: 13px;
  }

  .projection-primary {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  .projection-close {
    top: 18px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 27px;
    line-height: 34px;
  }

  .projection-form h3,
  .projection-loading h3 {
    max-width: 315px;
    margin-bottom: 32px;
  }

  .projection-amount-field {
    height: 58px;
    padding: 0 15px;
  }

  .projection-amount-field input {
    font-size: 27px;
  }

  .projection-help {
    margin-bottom: 24px;
    font-size: 10px;
  }

  .projection-period {
    min-height: 48px;
    font-size: 12px;
  }

  .projection-loading {
    min-height: 490px;
  }

  .projection-loading-content {
    min-height: 330px;
    padding-top: 62px;
  }

  .projection-loading-content h4 {
    font-size: 20px;
  }

  .projection-profit {
    font-size: 40px;
  }

  .projection-growth {
    min-height: 285px;
    padding: 24px 16px 21px;
  }

  .projection-disclaimer {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .redesigned-final-card {
    padding-inline: 12px;
  }

  .snapshot-stat {
    padding-inline: 14px;
    grid-template-columns: 41px minmax(0, 1fr);
  }

  .snapshot-trend {
    grid-column: 2;
    justify-self: end;
    margin-top: -15px;
  }

  .snapshot-copy strong {
    font-size: 23px;
  }

  .projection-view {
    padding-inline: 16px;
  }

  .projection-view h3 {
    font-size: 22px;
  }

  .projection-profit {
    font-size: 36px;
  }
}
