/* ============================================
   Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   Base / Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #faf7f2;
  color: #2f2f33;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: #1a1a1d;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
::selection { background: #f0e2d3; color: #1a1a1d; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  background: #c98a5b;
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s;
  text-align: center;
}
.btn:hover { background: #b3774b; box-shadow: 0 6px 18px rgba(201,138,91,0.25); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ============================================
   Header
   ============================================ */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #ece7de;
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo span { color: #c98a5b; }
.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  font-size: 0.93rem;
  color: #55555c;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: #c98a5b; }

/* ============================================
   Article shell (Hero + content + sidebar)
   ============================================ */
.article-shell { padding: 50px 0 60px; }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}

/* ============================================
   Hero (editorial style)
   ============================================ */
.breadcrumb {
  font-size: 0.83rem;
  color: #8a8478;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: #8a8478; transition: color 0.2s; }
.breadcrumb a:hover { color: #c98a5b; }
.breadcrumb span { margin: 0 8px; opacity: 0.6; }

.article-hero .hero-title {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  margin-bottom: 20px;
}
.article-hero .hero-lead {
  font-size: 1.15rem;
  color: #55555c;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 640px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #ece7de;
  border-bottom: 1px solid #ece7de;
  font-size: 0.9rem;
  color: #55555c;
  margin-bottom: 40px;
  align-items: center;
}
.article-meta .meta-item { display: flex; align-items: center; gap: 8px; }
.article-meta .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #c98a5b; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.article-meta .dot { width: 3px; height: 3px; background: #c8c2b6; border-radius: 50%; }
.hero-cover { margin-bottom: 40px; }

/* ============================================
   Table of contents
   ============================================ */
.toc {
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 50px;
}
.toc-tag {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #c98a5b;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.toc h2 { font-size: 1.15rem; margin-bottom: 18px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 8px 0; border-top: 1px solid #f2ede4; }
.toc li:first-child { border-top: none; }
.toc a {
  display: flex; align-items: baseline; gap: 14px;
  color: #2f2f33; font-weight: 500; transition: color 0.2s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #c98a5b; font-weight: 700; font-size: 0.82rem; min-width: 26px;
}
.toc a:hover { color: #c98a5b; }

/* ============================================
   Image placeholders
   ============================================ */
.image-placeholder {
  background: linear-gradient(135deg, #efe9dd 0%, #e6dfd0 100%);
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9a9080;
  text-align: center;
  padding: 24px;
  border: 1px solid #e6dfd0;
}
.image-placeholder .ph-label {
  font-size: 0.78rem; letter-spacing: 0.2em; font-weight: 700;
}
.image-placeholder .ph-size {
  font-size: 0.72rem; color: #b0a692; margin-top: 6px; letter-spacing: 0.05em;
}
.image-placeholder.tall { aspect-ratio: 3 / 4; }
.image-placeholder.wide { aspect-ratio: 21 / 9; }

/* Real images — same visual treatment as placeholders */
.article-img,
.section-img,
.hero-img,
.book-img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}
.hero-img { aspect-ratio: 21 / 9; }
.section-img { aspect-ratio: 16 / 9; }
.book-img { aspect-ratio: 3 / 4; border: 1px solid #ece7de; }

/* ============================================
   Article body
   ============================================ */
.article-body { font-size: 1.05rem; line-height: 1.85; }
.article-body h2 {
  margin-top: 60px;
  margin-bottom: 22px;
  scroll-margin-top: 100px;
}
.article-body h2 .section-num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: #c98a5b;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.article-body p { color: #3d3d44; }
.article-body .section-image { margin: 34px 0 40px; }

/* Pull-quote / info callout */
.pull-quote {
  margin: 38px 0;
  padding: 28px 34px;
  border-left: 4px solid #c98a5b;
  background: #fff;
  border-radius: 6px 16px 16px 6px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #1a1a1d;
  font-weight: 500;
  font-style: italic;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  line-height: 0.3;
  margin-bottom: 18px;
  color: #c98a5b;
  font-family: Georgia, serif;
}
.info-box {
  margin: 38px 0;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 14px;
  font-size: 1rem;
}
.info-box strong { color: #1a1a1d; }
.info-box p:last-child { margin-bottom: 0; }

/* ============================================
   Sidebar (guide widget)
   ============================================ */
.sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.sidebar-card .image-placeholder {
  aspect-ratio: 3 / 4;
  margin-bottom: 20px;
}
.sidebar-card .tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #c98a5b;
  font-weight: 700;
  text-transform: uppercase;
}
.sidebar-card h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.sidebar-card .stars {
  color: #d4a355;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.sidebar-card .price {
  font-size: 1.5rem; font-weight: 700; color: #1a1a1d; margin-bottom: 4px;
}
.sidebar-card .price-old {
  text-decoration: line-through;
  color: #a09a90;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: block;
}
.sidebar-card .btn { margin-top: 6px; }

/* ============================================
   Guide card (mobile / after article)
   ============================================ */
.guide-mobile { display: none; padding: 40px 0 60px; }
.guide-mobile .guide-card {
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.guide-mobile .image-placeholder {
  aspect-ratio: 3 / 4;
  max-width: 220px;
  margin: 0 auto 20px;
}
.guide-mobile .stars {
  color: #d4a355;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.guide-mobile .price {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 18px;
}

/* ============================================
   FAQ (accordion)
   ============================================ */
.faq {
  padding: 70px 0;
  background: #fff;
  border-top: 1px solid #ece7de;
  border-bottom: 1px solid #ece7de;
}
.faq h2 { text-align: center; margin-bottom: 8px; }
.faq .section-sub {
  text-align: center;
  color: #55555c;
  margin-bottom: 40px;
}
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ece7de; }
.faq-item:first-child { border-top: 1px solid #ece7de; }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  color: #1a1a1d;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.2s;
}
.faq-question:hover { color: #c98a5b; }
.faq-icon {
  width: 22px; height: 22px; flex-shrink: 0; position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #c98a5b;
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: transform 0.25s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #55555c;
}
.faq-item.open .faq-answer { padding: 0 0 22px; }

/* ============================================
   Related articles
   ============================================ */
.related { padding: 70px 0; }
.related h2 { margin-bottom: 8px; }
.related .section-sub { color: #55555c; margin-bottom: 34px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.related-card .image-placeholder {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #ece7de;
  aspect-ratio: 16 / 10;
}
.related-body { padding: 22px; }
.related-cat {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #c98a5b;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.related-card h3 { font-size: 1.08rem; margin-bottom: 6px; line-height: 1.35; }
.related-card p { color: #77767c; font-size: 0.9rem; margin: 0; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #1a1a1d;
  color: #b8b6bd;
  padding: 50px 0 30px;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2f2f33;
  margin-bottom: 20px;
}
.footer-logo { font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer-logo span { color: #c98a5b; }
.footer-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-nav a { color: #b8b6bd; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: #77767c; font-size: 0.85rem; text-align: center; }

/* ============================================
   Checkout
   ============================================ */
.checkout-page { padding: 60px 0 80px; min-height: 70vh; }
.checkout-page .page-title { text-align: center; margin-bottom: 8px; }
.checkout-page .page-sub {
  text-align: center; color: #55555c; margin-bottom: 40px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.checkout-form,
.order-summary {
  background: #fff;
  border: 1px solid #ece7de;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.checkout-form h2,
.order-summary h2 { font-size: 1.2rem; margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #464650;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2ddd3;
  border-radius: 10px;
  background: #faf7f2;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #c98a5b;
  background: #fff;
}
.summary-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ece7de;
  margin-bottom: 18px;
}
.summary-thumb {
  width: 70px; height: 90px;
  border-radius: 8px;
  background: linear-gradient(135deg, #efe9dd 0%, #e6dfd0 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0a692;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-align: center;
  padding: 6px;
}
.summary-info h3 { font-size: 1rem; margin-bottom: 4px; }
.summary-info p { font-size: 0.88rem; color: #77767c; margin: 0; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: #55555c;
  font-size: 0.95rem;
}
.summary-row.total {
  padding-top: 14px;
  border-top: 1px solid #ece7de;
  margin-top: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a1d;
}

/* ============================================
   Thank you
   ============================================ */
.thank-you-container {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.thank-you-card {
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 6px 30px rgba(0,0,0,0.05);
}
.thank-you-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e6f4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.thank-you-icon svg { width: 44px; height: 44px; color: #2f9e5b; }
.thank-you-card h1 { font-size: 2rem; margin-bottom: 10px; }
.thank-you-card p { color: #55555c; margin-bottom: 8px; }
.order-number {
  display: inline-block;
  background: #faf7f2;
  border: 1px solid #ece7de;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #55555c;
  margin: 12px 0 28px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.order-number strong { color: #1a1a1d; }

/* ============================================
   Info pages (privacy / terms / contacts)
   ============================================ */
.info-page {
  padding: 70px 0 90px;
  min-height: 70vh;
}
.info-page .page-header {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.info-page .page-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.info-page .page-header .lead {
  color: #55555c;
  font-size: 1.05rem;
  margin: 0;
}
.info-content {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ece7de;
  border-radius: 20px;
  padding: 50px 55px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  font-size: 1.02rem;
  line-height: 1.8;
}
.info-content h2 {
  font-size: 1.3rem;
  margin-top: 34px;
  margin-bottom: 14px;
}
.info-content h2:first-child { margin-top: 0; }
.info-content p { color: #3d3d44; }
.info-content ul {
  padding-left: 22px;
  margin: 0 0 1.2em;
  color: #3d3d44;
}
.info-content ul li { margin-bottom: 8px; }
.info-content .updated {
  display: inline-block;
  font-size: 0.85rem;
  color: #8a8478;
  background: #faf7f2;
  border: 1px solid #ece7de;
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* Contacts grid */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 10px 0 30px;
}
.contact-card {
  background: #faf7f2;
  border: 1px solid #ece7de;
  border-radius: 14px;
  padding: 22px 24px;
}
.contact-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #c98a5b;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.contact-card .value {
  font-size: 1.05rem;
  color: #1a1a1d;
  font-weight: 600;
  line-height: 1.5;
}
.contact-card a { color: #1a1a1d; transition: color 0.2s; }
.contact-card a:hover { color: #c98a5b; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { display: none; }
  .guide-mobile { display: block; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .article-shell { padding: 30px 0 40px; }
  .article-body { font-size: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
  .toc { padding: 22px; }
  .info-content { padding: 30px 22px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .pull-quote { padding: 22px 24px; font-size: 1.05rem; }
  .checkout-form, .order-summary { padding: 24px 20px; }
  .thank-you-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { padding: 14px 0; }
  .main-nav ul { gap: 18px; }
  .article-meta { gap: 12px; }
  .article-meta .dot { display: none; }
}
