/* ============================================================
   КНИГА НЕ ПРО ГЕРОЯ — Landing Page Styles
   Font: Libre Franklin
   ============================================================ */

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

:root {
  --black:          #000000;
  --dark:           #0d0d0d;
  --card-bg:        #141414;
  --card-border:    #242424;
  --text-primary:   #e8e4dc;
  --text-secondary: #8a8a80;
  --text-muted:     #484844;
  --accent:         #e05a2b;
  --accent-hover:   #c44a1e;
  --font: 'Libre Franklin', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 18px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn--outline {
  border: 1.5px solid rgba(232, 228, 220, 0.5);
  color: var(--text-primary);
  background: transparent;
}
.btn--outline:hover { background: rgba(255,255,255,0.06); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn--primary:hover { background: var(--accent-hover); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 40%,
    rgba(0, 0, 0, 0.0) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
}

.hero__text {
  width: 60%;
}

.hero__title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #f2ede4;
}

.hero__subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(232, 228, 220, 0.72);
  max-width: 380px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* ============================================================
   DESCRIPTION + CAROUSEL
   ============================================================ */
.description {
  background: var(--black);
  padding: 64px 0;
}

.description__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.description__text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.description__text p:last-child { margin-bottom: 0; }

/* ---- CAROUSEL ---- */
.carousel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carousel__track {
  /* display, gap, transition set in JS */
}

.review-card__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #222;
  display: block;
}

.review-card__placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.review-card__placeholder-icon {
  font-size: 28px;
  opacity: 0.4;
}

.review-card__placeholder-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.review-card__placeholder-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel__btn {
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: var(--text-secondary);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font);
}
.carousel__btn:hover {
  background: #282828;
  color: var(--text-primary);
}

.carousel__dots {
  display: flex;
  gap: 6px;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carousel__dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   AUTHOR
   ============================================================ */
.author {
  background: var(--black);
  padding: 64px 0;
}

.author__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.author__photo-wrap {
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: #141414;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.author__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.author__name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.author__text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.author__text p:last-child { margin-bottom: 0; }

.author__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   PREORDER NOTICE
   ============================================================ */
.preorder-notice {
  background: var(--black);
  padding: 4px 0 28px;
  text-align: center;
}

.preorder-notice p {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ============================================================
   ORDERS
   ============================================================ */
.orders {
  background: var(--black);
  padding: 0 0 64px;
}

.orders .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 28px;
  transition: border-color 0.2s;
}
.order-card:hover { border-color: #333; }

.order-card__info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.order-card__info p {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
}

.order-card .accent { color: var(--accent); }
.order-card .btn { flex-shrink: 0; }

/* ============================================================
   MOBILE — max-width: 600px
   ============================================================ */
@media (max-width: 600px) {

  .container {
    padding: 0 20px;
  }

  /* Hero: градієнт знизу, щоб текст читався поверх фото */
  .hero {
    align-items: flex-end;
    min-height: 100svh;
  }

  .hero__bg::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0.0) 100%
    );
  }

  .hero__content {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .hero__text {
    width: 100%;
  }

  .hero__title {
    font-size: 32px;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
  }

  .hero__subtitle {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .btn {
    font-size: 14px;
    padding: 12px 24px;
  }

  /* Description: одна колонка, менші відступи */
  .description {
    padding: 48px 0;
  }

  .description__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .description__text p {
    font-size: 14px;
    line-height: 1.72;
    margin-bottom: 16px;
  }

  /* Carousel: на мобільному показуємо 1 картку, ширина ~80% екрану */
  .carousel {
    gap: 14px;
  }

  /* Author */
  .author {
    padding: 48px 0;
  }

  .author__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .author__photo-wrap {
    aspect-ratio: 1/1;
    max-width: 200px;
  }

  .author__name {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .author__text p {
    font-size: 14px;
  }

  /* Order cards: вертикально */
  .preorder-notice {
    padding: 0 0 24px;
  }

  .orders {
    padding: 0 0 48px;
  }

  .order-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
  }

  .order-card__info h3 {
    font-size: 15px;
  }

  .order-card .btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
