/* Astery Group — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #F7F3EC;
  --bg-alt: #EFE8D9;
  --surface: #FFFFFF;
  --ink: #241F1A;
  --ink-2: #5B5248;
  --ink-3: #8B8175;
  --line: #E1D8C5;
  --line-strong: #CBBFA8;

  --accent: #1F5C52;
  --accent-dark: #163F38;
  --accent-soft: #DCEAE6;
  --on-accent: #F6FBF9;

  --gold: #8A5F2C;
  --gold-dark: #6E4B1D;
  --gold-soft: #F2E6D3;

  --ok: #2F7D4F;
  --ok-soft: #E5F3EA;

  --error: #A02821;
  --error-soft: #FBEAE9;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(36,31,26,0.06), 0 8px 24px rgba(36,31,26,0.06);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.32vw, 1.32rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.3vw, 3.6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: var(--step-0); }

.container { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding-inline: 24px; }

section { padding-block: 72px; }
@media (max-width: 640px) { section { padding-block: 48px; } }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: block;
}
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 { font-size: var(--step-3); font-weight: 600; margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo small { display: block; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; margin-top: 1px; }
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 8px 12px; border-radius: 100px; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-family: var(--f-mono); font-weight: 500; font-size: var(--step--1); white-space: nowrap; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: var(--step--1); letter-spacing: 0.01em;
  padding: 12px 22px; border-radius: 100px; border: none; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-block { width: 100%; }
.burger { display: none; background: none; border: none; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { padding-block: 64px 76px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 600; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: var(--step-1); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; line-height: 1.55; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.trust-row li {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--step--1); color: var(--ink-2); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px;
}
.trust-row svg { flex-shrink: 0; color: var(--accent); }

.hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(155deg, var(--accent-dark), var(--accent) 78%);
  display: flex; align-items: flex-end; padding: 26px;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.09) 0 1px, transparent 1px 40px);
  mix-blend-mode: overlay;
}
.hero-visual .tag {
  position: relative;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--f-mono); font-size: 0.78rem;
  padding: 10px 14px; border-radius: var(--radius-sm); line-height: 1.5;
  border: 1px solid rgba(255,255,255,0.22);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16/9; order: -1; }
}

/* ---------- categories ---------- */
.cat-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cat-row {
  display: flex; align-items: center; gap: 24px; padding: 26px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: padding-left 0.2s ease, background 0.15s ease;
}
.cat-row:hover { padding-left: 14px; background: var(--surface); }
.cat-row-icon { flex-shrink: 0; color: var(--accent); }
.cat-row-text { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cat-row-text h3 { font-size: var(--step-2); font-weight: 600; }
.cat-row-text p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.cat-row-go { flex-shrink: 0; font-size: var(--step--1); font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
@media (max-width: 640px) {
  .cat-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 4px; }
}

/* ---------- calculator ---------- */
.calc-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; box-shadow: var(--shadow);
}
.calc-field { margin-bottom: 20px; }
.calc-field label { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.calc-field select, .calc-field input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font-size: var(--step-0);
}
.calc-field select:focus, .calc-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-field input[aria-invalid="true"] { border-color: var(--error); }
.calc-error {
  display: block; margin-top: 8px; font-size: var(--step--1); color: var(--error); font-weight: 600;
}
.calc-result {
  background: var(--accent-soft); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 8px;
}
.calc-result .label { font-size: var(--step--1); color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.calc-result .price { font-family: var(--f-mono); font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); font-weight: 500; color: var(--accent-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-result .note { font-size: var(--step--1); color: var(--ink-2); max-width: 34ch; margin: 0 auto; }
@media (max-width: 800px) { .calc-panel { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: step; }
.step { background: var(--surface); padding: 26px 22px; position: relative; }
.step .num { font-family: var(--f-mono); font-size: var(--step-2); color: var(--gold); font-weight: 500; display: block; margin-bottom: 12px; }
.step h3 { font-size: var(--step-0); font-weight: 700; font-family: var(--f-body); margin-bottom: 8px; }
.step p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.why-item { display: flex; gap: 16px; }
.why-item .mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-family: var(--f-mono); font-size: 0.85rem;
}
.why-item h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-body); margin-bottom: 6px; }
.why-item p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

.section-alt { background: var(--bg-alt); }

/* ---------- faq ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); color: var(--ink);
}
.faq-q .plus { font-family: var(--f-mono); font-size: 1.3rem; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 0 22px; color: var(--ink-2); max-width: 58ch; line-height: 1.6; }

/* ---------- lead form ---------- */
.lead-section { background: var(--accent-dark); color: var(--on-accent); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead-section .eyebrow { color: var(--gold-soft); }
.lead-section h2 { color: #fff; font-size: var(--step-3); font-weight: 600; margin-bottom: 16px; }
.lead-section .hero-lead { color: rgba(246,251,249,0.75); }
.lead-benefits { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lead-benefits li { display: flex; gap: 10px; align-items: baseline; font-size: var(--step--1); color: rgba(246,251,249,0.85); }
.lead-benefits li::before { content: "—"; color: var(--gold-soft); flex-shrink: 0; }

.lead-form { background: var(--surface); border-radius: var(--radius); padding: 34px; color: var(--ink); box-shadow: var(--shadow); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.form-field input, .form-field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); font-size: var(--step-0); color: var(--ink);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 20px; }
.form-consent input { margin-top: 3px; flex-shrink: 0; }
.form-consent label { font-size: 0.78rem; color: var(--ink-2); line-height: 1.5; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.form-success h3 { font-family: var(--f-body); font-size: var(--step-1); margin-bottom: 8px; }
.form-success p { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding-block: 48px 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--ink-2); font-size: var(--step--1); }
.footer-col a:hover { color: var(--accent-dark); }
.footer-col p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-2); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .burger { display: block; }
}
.mobile-nav {
  display: none; flex-direction: column; gap: 2px; background: var(--surface);
  border-bottom: 1px solid var(--line); padding: 10px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 24px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--step-0);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-phone { padding: 16px 24px 4px; font-family: var(--f-mono); color: var(--accent-dark); font-weight: 600; }
.mobile-nav .mobile-cta { padding: 4px 24px 6px; }

@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .header-inner { gap: 12px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- breadcrumb ---------- */
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); text-decoration: none; margin-bottom: 28px; }
.crumb:hover { color: var(--accent-dark); }

/* ---------- blog hub ---------- */
.blog-hero { padding-block: 56px 0; }
.blog-hero h1 { font-size: var(--step-4); font-weight: 600; margin-bottom: 16px; max-width: 20ch; }
.blog-hero p { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }

.article-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.article-row {
  display: flex; flex-direction: column; gap: 8px; padding: 30px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: padding-left 0.2s ease, background 0.15s ease;
}
.article-row:hover { padding-left: 14px; background: var(--surface); }
.article-row-meta { font-family: var(--f-mono); font-size: var(--step--1); color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.article-row h2 { font-size: var(--step-2); font-weight: 600; }
.article-row p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; max-width: 62ch; }
.article-row .go { font-size: var(--step--1); font-weight: 700; color: var(--accent-dark); }

/* ---------- article page ---------- */
.article-hero { padding-block: 48px 0; }
.article-hero .eyebrow { margin-bottom: 18px; }
.article-hero h1 { font-size: var(--step-4); font-weight: 600; max-width: 22ch; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink-3); margin-bottom: 8px; }
.article-lead { font-size: var(--step-1); color: var(--ink-2); max-width: 68ch; line-height: 1.55; margin-bottom: 8px; }

.article-body { max-width: 70ch; }
.article-body h2 { font-size: var(--step-2); font-weight: 600; margin: 48px 0 16px; }
.article-body h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--f-body); margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; line-height: 1.7; color: var(--ink); }
.article-body p.lead-text { font-size: var(--step-1); color: var(--ink-2); }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.7; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--accent); }
.article-body strong { font-weight: 700; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0 28px; font-size: var(--step--1); }
.article-body th, .article-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.article-body th { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-2); font-weight: 700; font-size: 0.78rem; }
.article-body table { display: block; overflow-x: auto; }

.article-cta {
  background: var(--accent-soft); border-radius: var(--radius); padding: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin: 40px 0;
}
.article-cta p { margin: 0; font-weight: 600; color: var(--accent-dark); font-size: var(--step-0); max-width: 42ch; }
.article-cta .btn { flex-shrink: 0; }

.article-footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; max-width: 70ch; }
@media (max-width: 640px) { .article-cta { flex-direction: column; align-items: flex-start; } }
