/* ===== Variables ===== */
:root {
  --color-teal-dark: #0c726e;
  --color-teal-light: #79cecb;
  --color-orange: #ff9d3e;
  --color-card-dark: #1c514f;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: rgba(255, 255, 255, 0.85);

  --gradient-main: linear-gradient(0.423turn, var(--color-teal-dark) 0%, var(--color-teal-light) 100%);
  --gradient-title: linear-gradient(0turn, #fff 51%, rgba(255, 255, 255, 0.13) 100%);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --container: 1160px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 30px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);

  --bp-tablet: 768px;
  --bp-desktop: 1200px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 32px;
}

.section-title--lg {
  font-size: clamp(32px, 5vw, 42px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn--primary {
  color: var(--color-white);
  background: var(--gradient-main);
}

.btn--primary:hover {
  background: var(--color-orange);
}

/* ===== Utilities ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Hero ===== */
.hero {
  padding: 20px 0 0;
  background: var(--color-white);
}

.hero__inner {
  padding-bottom: 40px;
}

.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.hero__picture,
.hero__img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 3.5% 16px 0;
  pointer-events: none;
}

.hero__nav-list {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.hero__nav-list a {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero__nav-list a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero__nav-cta {
  background: rgba(255, 255, 255, 0.12);
}

.hero__burger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-white);
}

.hero__burger span,
.hero__burger::before,
.hero__burger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero__burger {
  flex-direction: column;
  gap: 6px;
}

.hero__burger::before,
.hero__burger::after {
  position: absolute;
}

.hero__burger::before { top: 14px; }
.hero__burger::after { bottom: 14px; }

.hero__burger[aria-expanded="true"] span { opacity: 0; }
.hero__burger[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.hero__burger[aria-expanded="true"]::after { bottom: 21px; transform: rotate(-45deg); }

.hero__mobile-menu {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 50;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 114, 110, 0.96);
  box-shadow: var(--shadow);
}

.hero__mobile-menu[hidden] {
  display: none;
}

.hero__mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.hero__mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

.hero__mobile-menu a:active {
  background: rgba(255, 255, 255, 0.14);
}

/* ===== FAQ ===== */
.faq {
  background: var(--color-white);
}

.faq__grid {
  display: grid;
  gap: 32px;
}

.faq__image-wrap {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

.faq__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.faq__list {
  display: grid;
  gap: 20px;
}

.faq__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  align-items: start;
}

.faq__item::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: var(--color-orange);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.faq__question {
  grid-column: 2;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.faq__answer {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.45;
  color: #555;
}

/* ===== Mission ===== */
.mission {
  background: var(--gradient-main);
  padding: 60px 0;
}

.mission__frame {
  border: 1px solid var(--color-white);
  padding: clamp(48px, 10vw, 120px) clamp(24px, 5vw, 80px);
  text-align: center;
  color: var(--color-white);
}

.mission__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  margin-bottom: 28px;
}

.mission__line {
  width: 50px;
  height: 2px;
  background: var(--color-white);
  margin: 0 auto 40px;
}

.mission__text {
  font-size: clamp(22px, 3.8vw, 20px);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Advantages ===== */
.advantages {
  background: var(--color-white);
  padding: 80px 0;
}

.advantages__grid {
  display: grid;
  gap: 40px;
}

.advantages__header {
  text-align: center;
}

.advantages__list {
  display: grid;
  gap: 16px;
}

.advantages__card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #f5faf9;
  transition: background 0.2s;
}

.advantages__card:hover {
  background: #d6eded;
}

.advantages__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
}

.advantages__icon svg {
  width: 24px;
  height: 24px;
}

.advantages__card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.advantages__card-text {
  font-size: 15px;
  line-height: 1.45;
  color: #555;
}

/* ===== Signup ===== */
.signup {
  padding: 40px 0 80px;
  background: var(--color-white);
}

.signup__card {
  background-color: var(--color-teal-dark);
  background-image: url('../images/hero-pattern.svg'), var(--gradient-main);
  background-size: cover, cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  padding: 40px 20px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.signup__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 28px;
}

.signup__offer {
  background: var(--color-card-dark);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  max-width: 400px;
  margin: 0 auto 28px;
}

.signup__offer-main {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.signup__offer-sub {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--color-orange);
  font-weight: 500;
  margin-bottom: 16px;
}

.signup__timer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.signup__timer-item {
  min-width: 52px;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.signup__timer-num {
  display: block;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.signup__timer-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: lowercase;
}

.signup__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  transition: opacity 0.2s, transform 0.15s;
}

.signup__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.signup__btn--tg { background: #229ed9; }
.signup__btn--wa { background: #25d366; }

.signup__social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signup__avatars {
  display: flex;
  justify-content: center;
}

.signup__avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-orange);
  margin-left: -8px;
}

.signup__avatars img:first-child {
  margin-left: 0;
}

.signup__proof-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .section {
    padding: 75px 0;
  }

  .hero__burger {
    display: none;
  }

  .hero__mobile-menu {
    display: none !important;
  }

  .hero__nav-list {
    display: flex;
  }

  .hero__nav {
    padding-top: 2.8%;
  }

  .hero__nav-list a {
    font-size: 14px;
    padding: 8px 14px;
  }

  .faq__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }

  .faq__image-wrap {
    max-width: none;
    margin: 0;
    justify-self: stretch;
  }

  .faq__list {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

  .faq__item {
    grid-template-columns: auto 1fr;
  }

  .advantages__grid {
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 48px;
  }

  .advantages__header {
    text-align: left;
    position: sticky;
    top: 100px;
  }

  .signup__card {
    padding: 48px 40px 40px;
    border-radius: 24px;
  }

  .signup__offer {
    max-width: 380px;
    padding: 28px 24px;
  }

  .signup__buttons {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .signup__btn {
    flex: 1;
    max-width: 160px;
  }

  .signup__social-proof {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

/* ===== Desktop (1200px+) ===== */
@media (min-width: 1200px) {
  .hero {
    padding: 0;
  }

  .hero__inner {
    padding: 0 20px 60px;
  }

  .hero__nav {
    padding-top: 2.5%;
  }

  .hero__nav-list a {
    font-size: 15px;
    padding: 10px 18px;
  }

  .faq__image-wrap {
    max-height: 640px;
  }

  .faq__question {
    font-size: 18px;
  }

  .faq__answer {
    font-size: 16px;
  }

  .advantages {
    padding: 150px 0;
  }

  .advantages__grid {
    grid-template-columns: 380px 1fr;
    gap: 60px;
  }

  .advantages__card {
    padding: 24px;
  }

  .signup {
    padding: 60px 0 100px;
  }

  .signup__card {
    padding: 60px 48px 48px;
  }

  .signup__offer {
    max-width: 400px;
    padding: 32px 28px;
  }
}

/* ===== Large phones landscape / small tablets fix ===== */
@media (max-width: 767px) {
  .faq__image-wrap {
    max-width: min(100%, 420px);
    max-height: 420px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  .hero__card {
    border-radius: var(--radius-sm);
  }

  .hero__burger {
    top: 12px;
    right: 12px;
  }

  .signup__card {
    border-radius: var(--radius-sm);
    padding: 32px 16px 28px;
  }

  .signup__timer-item {
    min-width: 46px;
    padding: 6px 4px;
  }

  .signup__timer-num {
    font-size: 16px;
  }
}
