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

:root {
  --bg: #0a0e1a;
  --title: #f5a623;
  --accent: #4fd1a5;
  --text: #e8edf2;
  --card-border: #1c2b4a;
  --faq-bg: #1c2b4a;
  --btn-radius: 24px;
  --img-radius: 16px;
  --footer-bg: #07090f;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Teachers", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
.section-title {
  font-family: "Audiowide", sans-serif;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 160px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: "Teachers", sans-serif;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  transition:
    color 0.2s,
    opacity 0.2s;
}

.nav-links a:hover {
  color: var(--title);
  opacity: 1;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

/* mobile nav drawer */
/* .mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10, 14, 26, 0.98);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 24px 24px;
  gap: 16px;
} */

.mobile-nav {
  display: none;
  flex-direction: column;

  /* Кольори та рамки */
  background: #0d121f; /* Темний фон як на скріні */
  border: 1px solid var(--card-border);
  border-radius: 16px;

  /* Позиціонування */
  position: fixed; /* Щоб меню не залежало від потоку документу */
  top: 80px; /* Відступ від верхнього краю (навбару) */
  left: 20px; /* Відступ зліва */
  right: 20px; /* Відступ справа */
  z-index: 999;

  /* Внутрішні відступи та центрування тексту */
  padding: 40px 24px;
  gap: 24px;
  text-align: center;

  /* Тінь для об'єму */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* .mobile-nav a {
  font-family: "Teachers", sans-serif;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}

.mobile-nav a:hover {
  color: var(--title);
  opacity: 1;
} */

.mobile-nav a {
  font-family: "Teachers", sans-serif;
  font-size: 24px; /* Робимо посилання більшими */
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--title);
}

/* ── BUTTON ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  font-family: "Teachers", sans-serif;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--title);
  color: #0a0e1a;
}

.btn-primary:hover {
  background-color: var(--accent);
}

/* ── IMAGES ── */
.img-frame {
  border: 1px solid var(--card-border);
  border-radius: var(--img-radius);
  overflow: hidden;
  display: block;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── HERO ── */
.home {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 792px;
  padding: 80px 0;
}

.hero-content h1 {
  font-size: 72px;
  color: var(--title);
  line-height: 120%;
  margin-bottom: 16px;
  padding-top: 40px;
}

.hero-tagline {
  font-family: "Teachers", sans-serif;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 180px;
}

.hero-desc {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 544px;
}

/* ── SECTIONS ── */
section {
  padding: 80px 160px;
}

.section-title {
  font-size: 48px;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 60px;
}

/* ── FEATURES ── */
.features-inner {
  display: grid;
  grid-template-columns: 1fr 352px;
  /* flex-direction: column; */
  gap: 48px;
  align-items: start;
  /* max-width: 1200px; */
  margin: 0 auto;
  /* justify-content: space-between; */
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-item h3 {
  font-family: "Teachers", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--title);
  flex-shrink: 0;
}

.feature-item p {
  font-size: 20px;
  color: var(--accent);
  padding-left: 16px;
  max-width: 736px;
  font-weight: 400;
}

.features-image {
  height: 500px;
  width: 100%;
  /* justify-self: end; */
}

/* ── HOW IT WORKS ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card h3 {
  font-family: "Teachers", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--title);
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 20px;
  padding-bottom: 0px;
}

.step-card p {
  font-size: 20px;
  color: var(--accent);
  opacity: 0.72;
  padding-top: 0;
  padding-left: 10px;
  padding-right: 20px;
  padding-bottom: 20px;
}

/* ── ABOUT ── */
.about .about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about p {
  font-size: 20px;
  color: var(--accent);
  line-height: 150%;
}

.about-image {
  height: 360px;
}

/* ── FAQ ── */
.faq .faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--faq-bg);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: "Teachers", sans-serif;
  font-size: 22px;
  font-weight: 500;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.faq-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1.5px;
  background-color: var(--text);
  border-radius: 2px;
}

.faq-icon::after {
  content: "";
  position: absolute;
  width: 1.5px;
  height: 100%;
  background-color: var(--text);
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

.faq-item.open .faq-icon::after {
  opacity: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s ease;
  padding: 0 20px;
  font-size: 20px;
  color: var(--accent);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* ── FOOTER ── */
footer {
  background-color: var(--footer-bg);
  padding: 32px 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 14px;
  color: var(--accent);
  text-align: right;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }

  section {
    padding: 60px 24px;
  }

  #features .features-inner,
  #about .about-inner {
    grid-template-columns: 1fr;
  }

  .features-image,
  .about-image {
    height: auto;
    order: 2;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #faq .faq-inner {
    grid-template-columns: 1fr;
  }
  .faq-image {
    display: none;
  }

  .hero-content {
    padding: 60px 24px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-tagline {
    font-size: 16px;
  }
}

/* ── Policy ── */

.policy-page {
  background-color: #e8edf2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.policy-page {
  padding: 80px 160px;
  color: #0a0e1a;
}

.policy-page h1 {
  font-family: "Audiowide", sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: #0a0e1a;
  margin-bottom: 40px;
  line-height: 1.2;
}

.policy-page p {
  font-family: "Teachers", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #0a0e1a;
  line-height: 1.7;
  margin-bottom: 24px;
}

.policy-page p:last-child {
  margin-bottom: 0;
}

.policy-page a {
  color: #0a0e1a;
  text-decoration: none;
  text-underline-offset: 3px;
}

.policy-page a:hover {
  opacity: 0.7;
}

.policy-h3 {
  font-size: 24px;
  font-weight: 500;
  font-family: "Teachers", sans-serif;
  line-height: 150%;
  padding-bottom: 24px;
}

@media (max-width: 900px) {
  .policy-page {
    padding: 48px 24px;
  }

  .policy-page h1 {
    font-size: 36px;
    margin-bottom: 28px;
  }

  .policy-page p {
    font-size: 18px;
  }
}
