:root {
  --color-blue: #5f7f6a;
  --color-orange: #b58a57;
  --color-light-blue: #91aa94;
  --color-yellow: #d9bf78;
  --color-cream: #f6f1e7;
  --color-cream-dark: #e9dec9;
  --color-paper: #ffffff;
  --color-ink: #27251f;
  --color-muted: #6b665d;
  --color-line: #e3d8c5;
  --color-soft-blue: #eef5ef;
  --color-soft-orange: #f2e5d2;
  --color-shadow: rgba(42, 35, 22, 0.13);
  --font-body: Georgia, "Times New Roman", serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --line-height: 1.68;
  --content-width: 1120px;
  --narrow-width: 820px;
  --section-padding: 82px;
  --section-padding-mobile: 56px;
  --radius-large: 26px;
  --radius-medium: 16px;
  --header-height: 76px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: var(--line-height);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--color-blue);
  text-decoration: none;
  border-bottom: 1px dotted rgba(95, 127, 106, 0.7);
  padding-bottom: 0.16em;
  background-image: linear-gradient(var(--color-orange), var(--color-orange));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 180ms ease, background-size 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}
a:hover,
a:focus-visible {
  color: var(--color-orange);
  border-bottom-color: transparent;
  background-size: 100% 1px;
}
.external-text-link {
  border-bottom: 0;
  background-image: none;
  padding-bottom: 0;
}
.external-text-link span {
  border-bottom: 1px dotted rgba(95, 127, 106, 0.7);
  padding-bottom: 0.16em;
  background-image: linear-gradient(var(--color-orange), var(--color-orange));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 180ms ease, border-color 180ms ease;
}
.external-text-link:hover span,
.external-text-link:focus-visible span {
  border-bottom-color: transparent;
  background-size: 100% 1px;
}
.external-text-link sup {
  margin-left: 0.16em;
  font-size: 0.68em;
  line-height: 0;
  border: 0;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 400;
}
h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
}
h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.button,
.main-nav,
.brand,
.eyebrow,
.label,
.price,
.opening-title,
.opening-scroll,
.form-status {
  font-family: var(--font-ui);
}
p {
  margin: 0 0 1.05em;
}
.container {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}
.section {
  padding: var(--section-padding) 0;
}
.section-band--white {
  background: var(--color-paper);
}
.section-band--cream {
  background: var(--color-cream);
}
.section-band--cream-gradient {
  background: linear-gradient(180deg, var(--color-cream) 0%, #ffffff 100%);
}
.section-band--soft {
  background: linear-gradient(180deg, #f8fbf8 0%, var(--color-soft-blue) 100%);
}
.section-band--soft-orange {
  background: linear-gradient(180deg, #fffaf2 0%, var(--color-soft-orange) 100%);
}
.section-band--blue {
  background: linear-gradient(145deg, #516d5d 0%, #6d8b74 100%);
  color: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(227, 216, 197, 0.95);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(var(--content-width), calc(100% - 40px));
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  border: 0;
  background: none;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}
.brand:hover,
.brand:focus-visible {
  background-image: none;
  color: var(--color-blue);
}
.brand img {
  width: 42px;
  height: 46px;
  object-fit: contain;
}
.brand span {
  font-size: 1.08rem;
}
.main-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 600;
}
.main-nav a {
  color: var(--color-ink);
  border-bottom-color: transparent;
}
.opening-banner {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 520px;
  overflow: hidden;
  background: #111;
}
.opening-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.opening-title {
  position: absolute;
  left: 50%;
  bottom: clamp(62px, 10vh, 105px);
  transform: translateX(-50%);
  width: min(92vw, 980px);
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(2.4rem, 6.8vw, 5.8rem);
  font-weight: 850;
  letter-spacing: 0.045em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  line-height: 1.05;
  white-space: normal;
}
.opening-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.9rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 0;
  background-image: none;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.opening-scroll:hover,
.opening-scroll:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.hero {
  padding: 72px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.65fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--color-orange);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subtitle {
  max-width: 700px;
  color: var(--color-muted);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-image {
  justify-self: center;
}
.hero-image img {
  width: min(330px, 70vw);
  border-radius: 8px;
  box-shadow: 0 18px 40px var(--color-shadow);
}
.image-text {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}
.image-text--right {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
}
.image-panel img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius-large);
  box-shadow: 0 18px 40px var(--color-shadow);
}
.image-panel--mockup img {
  width: min(430px, 85vw);
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
.image-panel--logo img {
  width: min(420px, 80vw);
  margin: 0 auto;
  box-shadow: none;
  border-radius: 0;
}
.book-back-wrap {
  display: flex;
  justify-content: center;
}
.book-back-image {
  width: min(360px, 76vw);
  max-height: 560px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: 0 18px 40px var(--color-shadow);
}
.section-intro {
  width: min(var(--narrow-width), 100%);
  margin: 0 auto 34px;
  text-align: center;
}
.section-intro p {
  color: var(--color-muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.18rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  background-image: none;
  transition: transform 260ms ease, box-shadow 260ms ease, background-color 260ms ease, color 260ms ease, border-color 260ms ease;
}
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background-image: none;
}
.button-primary {
  color: #fff;
  background: var(--color-orange);
  box-shadow: 0 12px 24px rgba(181, 138, 87, 0.24);
}
.button-primary:hover,
.button-primary:focus-visible {
  color: #fff;
  background: #9e7648;
}
.button-secondary {
  color: var(--color-blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(95, 127, 106, 0.22);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  color: #80623b;
  background: #f4eadb;
  border-color: rgba(181, 138, 87, 0.38);
}
.button-light {
  color: #516d5d;
  background: #fff;
}
.button-light:hover,
.button-light:focus-visible {
  color: #80623b;
  background: #f6f1e7;
}
.button-outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.button-outline:hover,
.button-outline:focus-visible {
  color: #516d5d;
  background: #fff;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card,
.gift,
.product,
.contact-form {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px var(--color-shadow);
}
.card {
  padding: 30px;
}
.card h3 {
  color: var(--color-blue);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.quote {
  margin: 0;
  padding: 32px;
  border-left: 5px solid var(--color-orange);
  border-radius: var(--radius-medium);
  background: #fff;
  box-shadow: 0 18px 36px rgba(42, 35, 22, 0.08);
}
.quote footer {
  color: var(--color-muted);
  font-family: var(--font-ui);
  font-size: 0.94rem;
}
.gift {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 36px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.85fr;
  gap: 22px;
}
.product-grid--two {
  grid-template-columns: 1fr 1fr;
}
.product {
  padding: 30px;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.product-main {
  background: rgba(255, 255, 255, 0.2);
}
.label {
  display: inline-flex;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  color: #3d5f4c;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.price {
  margin: 0 0 0.55rem;
  font-size: 2rem;
  font-weight: 700;
}
.price-small {
  font-size: 1.5rem;
}
.author {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 42px;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.author-image img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: 0 18px 40px var(--color-shadow);
}

.contact-form {
  padding: 30px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 650;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  color: var(--color-ink);
  background: #fff;
  font: inherit;
  font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(145, 170, 148, 0.24);
  border-color: var(--color-blue);
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.form-status {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 650;
}
.form-status.is-success {
  color: #2f7652;
}
.form-status.is-error {
  color: #a33c24;
}
.site-footer {
  padding: 36px 0;
  color: var(--color-muted);
  background: #f0e8d8;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-ui);
  font-size: 0.94rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-inner img {
  max-width: 190px;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--color-blue);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(42, 35, 22, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, background-color 260ms ease;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover,
.to-top:focus-visible {
  background: var(--color-orange);
}
.mobile-buy {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  min-height: 40px;
  max-width: 190px;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.95rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--color-orange);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: 0 12px 25px rgba(42, 35, 22, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, background-color 260ms ease, color 260ms ease;
}
.mobile-buy:hover,
.mobile-buy:focus-visible {
  color: #fff;
  background: #9e7648;
}
.mobile-buy.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 680ms ease, transform 680ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .opening-banner {
    min-height: calc(100svh - var(--header-height));
  }
  .hero {
    padding: 56px 0 70px;
  }
  .hero-inner,
  .image-text,
  .image-text--right,
  .author,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .image-panel,
  .book-back-wrap,
  .hero-image {
    order: -1;
  }
  .grid-3,
  .quote-grid,
  .product-grid,
  .product-grid--two {
    grid-template-columns: 1fr;
  }
  .gift {
    grid-template-columns: 1fr;
  }
  .mobile-buy {
    display: inline-flex;
  }

    .author,
    .contact-grid {
    grid-template-columns: 1fr;
    }

    .author-image {
    display: flex;
    justify-content: center;
    }

    .author-image img {
    width: 50%;
    max-width: 220px;
    }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .container,
  .header-inner {
    width: min(100% - 28px, var(--content-width));
  }
  .section {
    padding: var(--section-padding-mobile) 0;
  }
  h1 {
    font-size: clamp(2.6rem, 15vw, 3.6rem);
  }
  h2 {
    font-size: 1.75rem;
  }
  .hero-actions .button {
    width: 100%;
  }
  .card,
  .quote,
  .gift,
  .product,
  .contact-form {
    padding: 24px;
    border-radius: 20px;
  }
  .opening-title {
    font-size: clamp(1.85rem, 9vw, 3.2rem);
    letter-spacing: 0.035em;
    white-space: normal;
    width: min(92vw, 620px);
    text-align: center;
  }

    .author-image img {
    width: 62%;
    max-width: 200px;
    }  
}