/* ===== Base ===== */
:root {
  --bg: #001B2E;
  --bg-dark: #000A16;
  --blue: #00A2F9;
  --blue-cyan: #17CDFF;
  --blue-deep: #0176CB;
  --border: #0088CA;
  --white: #FFFFFF;
  --gray: #747C82;
  --btn-gradient: linear-gradient(180deg, #17CDFF 0%, #0176CB 100%);
  --card-gradient: linear-gradient(180deg, #000A16 0%, #001B2E 100%);
  --divider: linear-gradient(180deg, #001B2E 0%, #00A2F9 50%, #001B2E 100%);
  --divider-h: linear-gradient(90deg, #001B2E 0%, #00A2F9 50%, #001B2E 100%);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 52px;
  background: var(--btn-gradient);
  border-radius: 16px;
  font-size: clamp(22px, 1.9vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn__icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ===== Section title ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.section-head__line {
  flex: 0 0 auto;
  width: 195px;
  max-width: 15vw;
  height: 3px;
  background: var(--divider-h);
  border-radius: 10px;
}
.section-title {
  flex: 1;
  font-size: clamp(30px, 3.2vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}
.section-title span { color: var(--blue); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,27,46,0) 55%, var(--bg) 100%),
              linear-gradient(90deg, rgba(0,10,22,.45) 0%, rgba(0,10,22,0) 45%);
}
.hero__inner { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border: 3px solid var(--blue);
  border-radius: 16px;
  font-size: clamp(15px, 1.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
}
.badge__icon { width: 40px; height: 40px; color: var(--blue); flex-shrink: 0; }

.hero__title {
  margin-top: 60px;
  font-size: clamp(44px, 4.2vw, 80px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
.hero__title--accent { color: var(--blue); }

.hero__subtitle {
  margin-top: 40px;
  font-size: clamp(20px, 2.1vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  max-width: 720px;
}

.features {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  margin-top: 60px;
}
.features__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 222px;
  text-align: center;
}
.features__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--divider);
  border-radius: 10px;
}
.features__icon { width: 115px; height: 115px; object-fit: contain; }
.features__label {
  font-size: clamp(16px, 1.4vw, 25px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ===== Promo / Video ===== */
.promo { padding: 60px 0; }
.promo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.promo__media {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.video {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
  border: 3px solid var(--blue);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.video__media { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(70px, 16%, 170px);
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: rgba(1, 9, 18, 0.3);
  backdrop-filter: blur(3px);
  color: var(--white);
  cursor: pointer;
  transition: transform .2s ease, opacity .25s ease, visibility .25s ease;
}
.video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video__play svg { width: 50%; height: 50%; }
.video.is-playing .video__play { opacity: 0; visibility: hidden; }

.video__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,10,22,.6) 100%);
}

/* Fullscreen — показуємо вертикальне відео повністю, без обрізання */
.video:fullscreen {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: #000;
}
.video:fullscreen .video__media { object-fit: contain; }
.video__poly {
  width: 0; height: 0;
  border-left: 22px solid var(--white);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.video__track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,.35);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.video__progress { display: block; width: 0; height: 100%; background: var(--white); }
.video__time { font-size: clamp(14px, 1.1vw, 25px); font-weight: 400; white-space: nowrap; }
.video__ctrl {
  width: 34px;
  height: 34px;
  color: var(--white);
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease;
}
.video__ctrl:hover { transform: scale(1.12); }
.video__ctrl svg { width: 100%; height: 100%; display: block; }
.video__mute .video__icon-muted { display: none; }
.video__mute.is-muted .video__icon-sound { display: none; }
.video__mute.is-muted .video__icon-muted { display: block; }

.promo__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}
.promo__arrow {
  display: block;
  width: clamp(90px, 12vw, 140px);
  height: auto;
  margin: 0 auto 8px;
  pointer-events: none;
}
@media (min-width: 1121px) {
  .promo__arrow {
    position: absolute;
    left: 100%;
    top: 32%;
    margin-left: -10px;
    width: 140px;
  }
}
.promo__heading {
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 34px;
}
.promo__vagas {
  margin-top: 26px;
  font-size: clamp(22px, 2vw, 40px);
  font-weight: 700;
}
.promo__vagas span { color: var(--blue); }

/* ===== Testimonials ===== */
.testimonials { padding: 60px 0; }
.cards-swiper {
  margin-top: 60px;
  padding-bottom: 60px;
}
.cards-swiper .swiper-slide {
  height: auto;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--card-gradient);
  border: 3px solid var(--border);
  border-radius: 24px;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.card__avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.card__avatar--sm { width: 60px; height: 60px; }
.card__user { display: flex; flex-direction: column; margin-right: auto; }
.card__name { font-size: 22px; font-weight: 700; color: #F5F7F8; }
.card__status { font-size: 18px; font-weight: 700; color: #00BDEB; }
.card__menu { font-size: 28px; color: #F5F7F8; align-self: flex-start; }

.card__bubble {
  position: relative;
  margin: 24px 0 10px;
  padding: 20px 24px;
  background: #F3F3F3;
  border-radius: 18px;
  color: #151515;
}
.card__bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -12px;
  border-width: 14px 14px 0 0;
  border-style: solid;
  border-color: #F3F3F3 transparent transparent transparent;
}
.card__msg {
  font-size: clamp(18px, 1.6vw, 27px);
  font-weight: 400;
  line-height: 1.25;
  min-height: calc(1.25em * 3);
}
.card__time {
  display: block;
  margin-top: 12px;
  text-align: right;
  font-size: 18px;
  color: var(--gray);
}

.card__bet {
  width: 100%;
  margin: 20px 0;
  border-radius: 12px;
}

.card__review {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 16px;
  margin-top: auto;
}
.card__review .card__avatar--sm { grid-row: 1; }
.card__review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card__stars { color: #05AFF1; font-size: 24px; letter-spacing: 2px; white-space: nowrap; }
.card__review-text {
  grid-column: 1 / -1;
  font-size: clamp(18px, 1.7vw, 29px);
  font-weight: 400;
  color: #F4F5F6;
  line-height: 1.2;
}

.cards-swiper .swiper-pagination {
  bottom: 0;
}
.cards-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  margin: 0 8px !important;
  background: rgba(255,255,255,.25);
  opacity: 1;
  transition: background .2s ease;
}
.cards-swiper .swiper-pagination-bullet-active {
  background: var(--blue);
}

/* ===== CTA banner ===== */
.cta { padding: 60px 0; }
.cta__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 70px;
  background: linear-gradient(160deg, #0a3350 0%, #021524 35%, #000a16 70%);
  border: 3px solid var(--blue);
  border-radius: 16px;
}
.cta__icon { width: 200px; height: 200px; flex-shrink: 0; }
.cta__text {
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
}
.cta__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta__vagas { font-size: clamp(22px, 2vw, 40px); font-weight: 700; }
.cta__vagas span { color: var(--blue); }

/* ===== Footer ===== */
.footer { padding: 40px 0 70px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.footer__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--divider);
  border-radius: 10px;
}
.footer__item img { width: 95px; height: 95px; object-fit: contain; flex-shrink: 0; }
.footer__item span {
  font-size: clamp(16px, 1.4vw, 25px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ===== Responsive ===== */
@media (max-width: 1480px) {
  .cta__icon { width: 150px; height: 150px; }
  .footer__item img { width: 70px; height: 70px; }
}

@media (max-width: 1120px) {
  .promo__inner { grid-template-columns: 1fr; gap: 40px; }
  .promo__arrow { position: static; width: 120px; margin: 0 auto 6px; }
  .footer__inner { flex-wrap: wrap; }
  .footer__item { flex: 0 0 calc(50% - 15px); }
  .footer__item:nth-child(2)::after { display: none; }
}

@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .features { flex-wrap: wrap; justify-content: center; gap: 50px 44px; }
  .hero__subtitle { max-width: none; }
  .cta__inner { flex-direction: column; text-align: center; padding: 40px; }
  .cta__text { flex: none; }
}

@media (max-width: 767px) {
  .btn { padding: 20px 34px; font-size: clamp(20px, 5vw, 26px); }
  .section-head { gap: 16px; }
  .section-head__line { width: 40px; }

  /* Hero — center image, smaller text */
  .hero { padding: 40px 0 60px; }
  .hero__bg img { object-position: center center; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(0,27,46,.55) 0%, rgba(0,27,46,.35) 45%, var(--bg) 100%);
  }
  .badge { padding: 12px 18px; gap: 10px; }
  .badge__icon { width: 28px; height: 28px; }
  .hero__title { margin-top: 40px; font-size: clamp(30px, 8.5vw, 46px); }
  .hero__subtitle { margin-top: 26px; font-size: clamp(16px, 4.6vw, 24px); }
  .hero__subtitle br { display: none; }

  /* Features — 2 rows, smaller */
  .features { margin-top: 44px; gap: 34px 30px; }
  .features__item { width: 44%; max-width: 200px; gap: 14px; }
  .features__item:not(:last-child)::after { display: none; }
  .features__icon { width: 78px; height: 78px; }
  .features__label { font-size: clamp(14px, 3.6vw, 18px); }

  .footer__item { flex: 0 0 100%; }
  .footer__item::after { display: none !important; }
}
