:root {
  --sand: #fbf3e4;
  --sand-deep: #f2e3c7;
  --ink: #1f3346;
  --ink-soft: #4a5d6e;
  --sea: #0e7f8f;
  --sea-deep: #0a5f6b;
  --coral: #e2683c;
  --coral-deep: #c4552c;
  --white: #ffffff;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--sea-deep); }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  padding: 18px 0;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-family: var(--round); font-weight: 800; font-size: 22px;
  color: var(--ink); text-decoration: none; letter-spacing: .2px;
}
.nav { display: flex; gap: 18px; }
.nav a {
  font-family: var(--round); font-weight: 700; font-size: 16px;
  color: var(--ink); text-decoration: none;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 -2px 0 transparent;
}
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--coral); }

/* Hero */
.hero {
  position: relative; min-height: 590px;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  background: #1d5f93 url("img/hero.jpg") center 72% / cover no-repeat;
  padding: 110px 16px 48px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.45) 0, rgba(255,255,255,0) 120px),
    linear-gradient(to top, rgba(10,40,70,.45) 0, rgba(10,40,70,0) 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-family: var(--round); font-weight: 900;
  font-size: clamp(48px, 9vw, 96px); line-height: 1.02; margin: 0 0 12px;
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0,0,0,.35);
}
.hero p {
  font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 20px; color: var(--white); font-weight: 700;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}

.pill {
  display: inline-block; font-family: var(--round); font-weight: 800;
  font-size: 15px; letter-spacing: .6px; text-transform: uppercase;
  background: var(--coral); color: var(--white);
  padding: 8px 16px; border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--round); font-weight: 800; font-size: 18px;
  background: var(--coral); color: var(--white); text-decoration: none;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 6px 0 var(--coral-deep);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--coral-deep); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--coral-deep); }
.btn.sea { background: var(--sea); box-shadow: 0 6px 0 var(--sea-deep); }
.btn.sea:hover { box-shadow: 0 4px 0 var(--sea-deep); }

/* Sections */
section { padding: 72px 0; }
h2 {
  font-family: var(--round); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; margin: 0 0 16px;
}

.about .wrap {
  display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 48px; align-items: center;
}
.portrait {
  background: var(--white); border-radius: 28px; padding: 18px;
  box-shadow: 0 14px 40px rgba(31, 51, 70, .14);
  transform: rotate(-2deg);
}
.portrait img { border-radius: 18px; width: 100%; height: auto; }
.about p { margin: 0 0 14px; font-size: 20px; color: var(--ink-soft); }
.about p.lead { color: var(--ink); font-weight: 700; font-size: 22px; }

.soon {
  position: relative; color: var(--white); text-align: center;
  background: #e9a47c url("img/sunset.jpg") center / cover no-repeat;
  padding: 110px 0;
}
.soon::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,30,50,.3), rgba(20,30,50,.6));
}
.soon .wrap { position: relative; max-width: 760px; }
.soon h2 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.soon p { font-size: 20px; margin: 0 auto 28px; max-width: 600px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.soon .by { font-weight: 700; margin-bottom: 18px; }

/* Buy page */
.band {
  position: relative; text-align: center;
  background: #7fd0d8 url("img/lagoon.jpg") center 60% / cover no-repeat;
  padding: 130px 16px 90px;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.65), rgba(255,255,255,.2) 55%, rgba(255,255,255,0));
}
.band .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.band h1 {
  font-family: var(--round); font-weight: 900;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0 0 12px;
}
.band p { font-size: 20px; font-weight: 600; margin: 0; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: -40px; position: relative; z-index: 1; }
.card {
  background: var(--white); border-radius: 26px; padding: 30px 28px 32px;
  box-shadow: 0 14px 40px rgba(31, 51, 70, .12);
  display: flex; flex-direction: column;
}
.card.best { outline: 4px solid var(--coral); }
.tag {
  align-self: flex-start; font-family: var(--round); font-weight: 800; font-size: 13px;
  letter-spacing: .6px; text-transform: uppercase;
  background: var(--sand-deep); color: var(--ink); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.card.best .tag { background: var(--coral); color: var(--white); }
.card h3 { font-family: var(--round); font-weight: 900; font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.card p { margin: 0 0 18px; color: var(--ink-soft); }
.price { font-family: var(--round); font-weight: 900; font-size: 40px; margin: auto 0 18px; color: var(--ink); }
.card .btn { align-self: flex-start; }

.how { padding-top: 56px; }
.how ol { margin: 0; padding-left: 24px; font-size: 19px; color: var(--ink-soft); }
.how li { margin-bottom: 8px; }

/* Series */
.series { padding-top: 64px; }
.books { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.book {
  background: var(--white); border-radius: 22px; padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(31, 51, 70, .10);
  display: flex; flex-direction: column; gap: 8px;
}
.book .num { font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--sea-deep); }
.book h3 { font-family: var(--round); font-weight: 900; font-size: 21px; line-height: 1.2; margin: 0; }
.book .when { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.book.now { outline: 3px solid var(--coral); }
.book.now .when { color: var(--coral-deep); }

/* Footer */
.site-foot { background: var(--ink); color: #d7e0e8; padding: 28px 0; font-size: 14px; line-height: 1.5; }
.site-foot span:first-child { max-width: 780px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-foot a { color: #ffffff; }

/* Phone */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-head { padding: 12px 0; }
  .brand { font-size: 19px; }
  .nav { gap: 8px; }
  .nav a { font-size: 14px; padding: 5px 10px; }
  .hero { min-height: 530px; padding-top: 96px; }
  section { padding: 52px 0; }
  .about .wrap { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 300px; margin: 0 auto; }
  .about p { font-size: 18px; }
  .about p.lead { font-size: 20px; }
  .soon { padding: 80px 0; }
  .band { padding: 104px 16px 76px; }
  .options { grid-template-columns: 1fr; gap: 20px; }
  .books { grid-template-columns: 1fr; gap: 14px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .books { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
