:root {
  --green: #017F3F;
  --green-dark: #015c2e;
  --green-light: #e8f5ee;
  --ink: #1a1f1c;
  --muted: #5a655f;
  --bg: #ffffff;
  --card: #f7f9f7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 127, 63, 0.12);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Georgia", "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #eef1ee;
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: bold;
  font-size: 18px;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: .2px;
}
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 14px 30px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-small { padding: 9px 20px; font-size: 14px; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  transition: background .15s ease, color .15s ease, transform .15s ease;
  flex: none;
}
.social-icon:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--green-light) 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #cfe9db;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  color: var(--ink);
}
.hero .subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
}
.hero-author {
  font-family: system-ui, sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-author strong { color: var(--ink); }
.hero-price-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.price {
  font-size: 32px;
  font-weight: bold;
  color: var(--green-dark);
  font-family: system-ui, sans-serif;
}
.hero-cover {
  position: relative;
}
.hero-cover img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(1,127,63,.22);
  margin: 0 auto;
  max-width: 340px;
}
.trust-strip {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-strip span { white-space: nowrap; }
.trust-strip b { color: var(--green-dark); }

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(26px, 3.2vw, 34px);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 40px;
  font-family: system-ui, sans-serif;
  font-size: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { font-size: 17px; }
.for-whom {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.for-whom li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: system-ui, sans-serif;
  font-size: 15.5px;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
}
.for-whom li .dot {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

/* Author */
.author-section { background: var(--card); }
.author-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.author-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.author-name {
  font-size: 22px;
  margin-bottom: 6px;
}
.author-role {
  font-family: system-ui, sans-serif;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid img {
  border-radius: 12px;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Buy */
.buy-section {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  text-align: center;
  border-radius: 28px;
  margin: 0 24px;
  padding: 56px 24px;
}
.buy-section .section-title, .buy-section .section-sub { color: #fff; }
.buy-section .section-sub { color: rgba(255,255,255,.85); }
.buy-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  margin: 0 auto;
}
.buy-price {
  font-size: 44px;
  font-weight: bold;
  font-family: system-ui, sans-serif;
  margin-bottom: 4px;
}
.buy-note {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-top: 14px;
}
.buy-section .btn-primary {
  background: #fff;
  color: var(--green-dark);
  width: 100%;
  font-size: 18px;
  padding: 16px 20px;
}
.buy-section .btn-primary:hover { background: #eafaf1; }
.payment-pending {
  display: none;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  margin-top: 14px;
}

/* Reviews carousel */
.reviews-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reviews-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  flex: 1;
}
.review-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
}
.review-card .review-name {
  font-weight: bold;
  font-family: system-ui, sans-serif;
  margin-bottom: 8px;
  color: var(--green-dark);
}
.review-card .review-text {
  font-size: 15px;
  color: var(--ink);
  white-space: pre-wrap;
}
.reviews-empty {
  text-align: center;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  padding: 30px 0;
  width: 100%;
}
.carousel-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: #fff;
  color: var(--green-dark);
  font-size: 20px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.carousel-btn:hover { background: var(--green); color: #fff; }
@media (max-width: 600px) {
  .review-card { flex-basis: 240px; }
}

/* Consultation modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, .55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  font-family: system-ui, sans-serif;
}
.modal-card h3 { font-family: Georgia, serif; font-size: 22px; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
#consultForm { display: flex; flex-direction: column; gap: 14px; }
#consultForm label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
#consultForm input, #consultForm textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d8dfda;
  color: var(--ink);
  resize: vertical;
}
#consultForm .btn { margin-top: 4px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #eef1ee;
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: bold;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--green);
  margin-left: 12px;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  font-family: system-ui, sans-serif;
  color: var(--muted);
  margin-top: 10px;
  font-size: 15px;
}

/* Footer */
footer {
  padding: 36px 0 50px;
  text-align: center;
  font-family: system-ui, sans-serif;
  color: var(--muted);
  font-size: 13.5px;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  section { padding: 44px 0; }
  .buy-section { margin: 0 12px; padding: 40px 18px; }
}
