:root {
  --bg: #fffdfa;
  --bg-soft: #f7f1e8;
  --bg-warm: #fbeee0;
  --text: #2b2118;
  --text-muted: #6b5c4c;
  --border: #e8dcc9;
  --accent: #b3541e;
  --accent-dark: #8f4116;
  --accent-soft: #fbe8d7;
  --pine: #3d5c45;
  --tech: #b3541e;
  --format: #3d5c45;
  --ready: #8a5a13;
  --max-width: 1100px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo::before { content: "🪵 "; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg) 60%);
  padding: 68px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: 2.5rem; line-height: 1.16; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero-sub { font-size: 1.12rem; color: var(--text-muted); max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-muted); }
.hero-trust span::before { content: "✓ "; color: var(--pine); font-weight: 800; }

.hero-visual {
  aspect-ratio: 4/3; border-radius: var(--radius);
  position: relative; box-shadow: 0 20px 46px rgba(90, 55, 18, 0.22);
  overflow: hidden;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual-tag {
  position: absolute; bottom: 16px; left: 16px; background: rgba(43,33,24,0.72); color: #fff;
  font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}

/* CTA button */
.cta-button {
  display: inline-flex; align-items: center; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 999px;
  font-size: 1rem; transition: background 0.15s ease, transform 0.15s ease; border: none; cursor: pointer;
}
.cta-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cta-button.ghost {
  background: transparent; color: var(--text); border: 1.5px solid var(--border);
}
.cta-button.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Advantages */
.advantages { padding: 56px 0; border-bottom: 1px solid var(--border); }
.advantages h2, .section-head h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-head { margin-bottom: 30px; max-width: 640px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; margin: 0; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.adv-card { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 20px; }
.adv-card .adv-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.adv-card h3 { font-size: 1rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.adv-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Catalog */
.catalog { padding: 56px 0; border-bottom: 1px solid var(--border); }
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-tab {
  font-size: 0.85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px;
}
.card {
  display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(179,84,30,0.1); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.price-tag { font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* Badges */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px;
}
.badge-tech { background: #fbe8d7; color: var(--tech); }
.badge-format { background: #e3ece5; color: var(--format); }
.badge-ready { background: #f6ecd4; color: var(--ready); }

/* Steps */
.how { padding: 56px 0; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; margin-top: 30px; }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 0.95rem; margin-bottom: 12px;
}
.step h3 { font-size: 0.98rem; margin: 0 0 6px; }
.step p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* Prices */
.prices { padding: 56px 0; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.price-note { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* FAQ */
.faq { padding: 56px 0; border-bottom: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; background: var(--bg); }
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--text-muted); margin: 0 0 16px; font-size: 0.95rem; }

/* Lead form */
.lead { padding: 60px 0 70px; background: var(--bg-warm); }
.lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lead h2 { font-size: 1.7rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead p { color: var(--text-muted); font-size: 1rem; margin: 0 0 8px; }
.lead-form { background: var(--bg); border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.lead-form label { display: block; font-size: 0.86rem; font-weight: 700; margin: 14px 0 6px; }
.lead-form label:first-child { margin-top: 0; }
.lead-form input, .lead-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; background: var(--bg);
}
.lead-form .cta-button { width: 100%; justify-content: center; margin-top: 18px; }
.lead-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.form-ok { display: none; text-align: center; padding: 30px 0; }
.form-ok.show { display: block; }
.form-ok.show + form { display: none; }

/* Articles section */
.articles-section { padding: 56px 0; }
.card p.excerpt { -webkit-line-clamp: 3; }

/* Article page layout */
.article-wrap {
  padding: 40px 0 80px; display: grid; grid-template-columns: minmax(0, 700px) 260px;
  gap: 48px; align-items: start;
}
.back-link { grid-column: 1 / -1; color: var(--text-muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 4px; display: inline-block; }
.back-link:hover { color: var(--accent); }
.article h1 { font-size: 2rem; line-height: 1.25; letter-spacing: -0.02em; margin: 14px 0 22px; }
.article h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 38px 0 14px; }
.article h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.article p { font-size: 1.03rem; color: #362a1e; margin: 0 0 18px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { font-size: 1.03rem; color: #362a1e; margin-bottom: 8px; }
.article a { color: var(--accent); }
.article-figure {
  margin: 28px 0; padding: 0;
}
.article-figure img {
  width: 100%; height: auto; border-radius: var(--radius); display: block;
  box-shadow: 0 12px 28px rgba(90, 55, 18, 0.14);
}
.article-figure figcaption {
  font-size: 0.86rem; color: var(--text-muted); margin-top: 10px; text-align: center;
}

.cta-box {
  position: sticky; top: 88px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.cta-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 8px; }
.cta-text { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 16px; }
.cta-box .cta-button { width: 100%; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; }
.site-footer p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 4px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .lead-wrap { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .cta-box { position: static; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
