/* ─── RESET & BASE ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Abhaya Libre", serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ─── CSS VARIABLES ────────────────────────────────────── */
:root {
  --nav-bg: #f2f2f2;
  --nav-color: #003e86;
  --section-card-bg: rgba(230, 246, 255, 0.851);
  --footer-bg: #050710;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────── */
.font-heading-nav {
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  color: var(--nav-color);
}
.font-hero-title {
  font-family: "Uncial Antiqua", cursive;
  font-weight: 400;
  font-size: 72px;
  line-height: 120%;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0px 0px 16px rgba(1, 1, 1, 0.8);
  max-width: 673px;
}
.font-hero-body {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0px 0px 16px rgba(0, 0, 0, 1);
}
.font-section-title {
  font-family: "Uncial Antiqua", cursive;
  font-weight: 400;
  font-size: 48px;
  line-height: 120%;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0px 0px 16px rgba(8, 14, 87, 0.8);
}
.font-card-heading {
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
  color: #003e86;
}
.font-card-body {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  color: #1a1a2e;
}
.font-footer {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: center;
  color: #fff;
}

/* ─── HEADER / NAV ─────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 160px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  /* REPLACE: logo image file */
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  color: var(--nav-color);
  transition: opacity 0.2s;
}
.nav-links a:hover {
  opacity: 0.65;
}

/* Mobile burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--nav-color);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 20px;
  right: 20px;
  background: #e6f6ffd9;
  z-index: 999;
  padding: 24px 0;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  color: var(--nav-color);
  text-decoration: none;
}

/* ─── GENERIC SECTION WRAPPER ──────────────────────────── */
section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
section > * {
  position: relative;
  z-index: 1;
}

/* ─── HERO SECTION ─────────────────────────────────────── */
#hero {
  min-height: 100vh;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 120px 160px 80px;
}
#hero .section-bg {
  background-image: url("img/ss_e01f38584d373c89fe49a170a025bcc0a38ed3bd.1920x1080\ 1.jpg");
}
#hero .hero-logo {
  position: absolute;
  top: 100px;
  left: 160px;
  width: 256px;
}
#hero .hero-logo img {
  width: 100%;
  height: auto;
}
.font-hero-body {
  max-width: 560px;
}
.hero-content h1 {
  margin-bottom: 20px;
  width: 700px;
}
.hero-content p {
  margin-bottom: 28px;
  max-width: 420px;
}
.btn-google-play {
  display: inline-block;
}
.btn-google-play img {
  height: 57px;
  width: 180px;
}

/* ─── SECTION INNER CONTAINER ──────────────────────────── */
.section-inner {
  width: 100%;
  max-width: 1400px;
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.section-inner.centered {
  align-items: center;
}

/* ─── FEATURES ──────────────────────────────────────────── */
#features .section-bg {
  background-image: url("img/ss_bff3cd523d8e730d57ccfdae4ac8462208a6c06f.1920x1080\ 3.jpg");
}
.features-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}
.features-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  max-width: 544px;
  background: var(--section-card-bg);
  padding: 20px 24px;
}

.features-cards h3 {
  margin-bottom: 6px;
}

/* ─── HOW IT WORKS ──────────────────────────────────────── */
#how-it-works .section-bg {
  background-image: url("img/ss_2c65e49484dd41dde26976e4fc56f86440c8ef49.1920x1080\ 1.jpg");
}
#how-it-works .section-inner {
  align-items: flex-end;
}
.steps-title {
  max-width: 544px;
}
.steps-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  max-width: 544px;
  background: var(--section-card-bg);
  padding: 20px 24px;
}
.step-number {
  font-family: "Abhaya Libre", serif;
  font-size: 28px;
  color: #003e86;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

/* ─── TESTIMONIALS ──────────────────────────────────────── */
#testimonials .section-bg {
  background-image: url("img/ss_8c761edee75522aaff8e6bc61240fbb9f102e61e.1920x1080\ 1.jpg");
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.testimonial-card {
  background: var(--section-card-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.testimonial-card p {
  flex-grow: 1;
  margin: 0;
}
.stars {
  color: #879900;
  font-size: 20px;
}
.testimonial-author {
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-size: 20px;
  padding-top: 10px;
  color: #003e86;
  text-align: right;
}

.testimonials-slider {
  display: none;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.testimonials-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.testimonials-track .testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
}

/* ─── FAQ ───────────────────────────────────────────────── */
#faq .section-bg {
  background-image: url("img/ss_471ad895821e2f24006f7b90113fe937ff9652b4.1920x1080\ 1.jpg");
}
.faq-list {
  width: 100%;
  max-width: 544px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--section-card-bg);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.faq-item {
  max-width: 496px;
  border-bottom: 2px solid #003e86;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  text-align: left;
  font-family: "Abhaya Libre", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 150%;
  color: #003e86;
  gap: 12px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  color: #003e86;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0 24px;
}
.faq-answer p {
  padding-bottom: 16px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  padding: 32px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer a {
  color: #fff;
  text-decoration: none;
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
}
footer a:hover {
  text-decoration: underline;
}
.footer-copy {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-size: 12px;
  color: #f2f2f2;
  padding-top: 30px;
}

@media (max-width: 768px) {
  .font-card-heading {
    font-size: 18px;
  }
  .font-card-body {
    font-size: 16px;
  }
  /* Header */
  header {
    padding: 10px 20px;
  }
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }

  /* Hero */
  #hero {
    padding: 100px 24px 60px;

    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    text-align: left;
  }
  #hero .hero-logo {
    top: 80px;
    left: 20px;
  }
  .font-hero-title {
    font-size: 48px;
    line-height: 1.1;
    max-width: 343px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 150px;
  }
  .font-hero-body {
    font-size: 16px;
    max-width: 100%; /* Дозволяємо тексту займати всю ширину */
    margin-bottom: 24px;
    line-height: 1.4;
    padding-top: 20px;
  }
  .btn-google-play {
    padding-top: 70px;
  }

  /* Features */
  #features .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("img/ss_bff3cd523d8e730d57ccfdae4ac8462208a6c06f.1920x1080\ 4.jpg");
    background-size: cover;
    background-position: center bottom; /* Пріоритет на нижню частину (де робот) */
    z-index: 0;
  }
  .features-layout {
    flex-direction: column;
  }
  .features-cards {
    max-width: 100%;
    margin-bottom: 350px;
  }

  /* How it works */
  #how-it-works .section-bg {
    background-image: url("img/ss_2c65e49484dd41dde26976e4fc56f86440c8ef49.1920x1080\ 2.jpg");
  }
  #how-it-works .section-inner {
    align-items: flex-start;
  }
  .steps-cards {
    max-width: 100%;
    margin-bottom: 350px;
  }
  .step-number {
    font-size: 24px;
  }

  /* Testimonials */
  .testimonials-grid {
    display: none;
  }
  .testimonials-slider {
    display: block;
  }

  /* FAQ */
  #faq .section-bg {
    background-image: url("img/ss_471ad895821e2f24006f7b90113fe937ff9652b4.1920x1080\ 2.jpg");
  }
  .faq-question {
    font-size: 18px;
  }
  .faq-list {
    margin-bottom: 360px;
  }

  /* Common section padding */
  .section-inner {
    padding: 60px 20px;
  }
  .font-section-title {
    font-size: 36px;
  }
  footer {
    padding: 28px 20px;
  }
}
