/* TazaBiz landing - дизайн-система из design.md шаблона:
   warm paper + forest green + steppe gold, Golos Text / Manrope / JetBrains Mono */

:root {
  --ink: #0e211b;
  --paper: #f4f1e9;
  --paper-2: #ede8db;
  --forest: #0c6a4e;
  --forest-deep: #073d2e;
  --mint: #ddebe1;
  --gold: #e0a82e;
  --gold-soft: #f5e3b8;
  --rust: #b4451f;
  --line: rgba(14, 33, 27, 0.12);
  --font-display: "Golos Text", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold); color: var(--forest-deep); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ------------------------------- icons ---------------------------------- */
.ic { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }
.ic-gold { color: var(--gold); }
.ic-forest { color: var(--forest); }

/* ------------------------------ header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(14, 33, 27, 0.09);
  background: rgba(244, 241, 233, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; padding-bottom: 13px; }

.wordmark { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark-badge {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--forest); color: #fff;
  font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1;
}
.wordmark-text { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.wordmark-text em { font-style: normal; color: var(--gold); }
.wordmark-dark .wordmark-badge { background: var(--gold); color: var(--forest-deep); }
.wordmark-dark .wordmark-text { color: #fff; }

.site-nav { display: none; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 500; color: rgba(14, 33, 27, 0.7); text-decoration: none; transition: color 0.2s; }
.site-nav a:hover { color: var(--forest); }
@media (min-width: 768px) { .site-nav { display: flex; } }

/* ------------------------------ buttons ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--forest); color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 10px; border: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--forest-deep); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; margin-top: 28px; }
.btn-lg:hover { transform: translateY(-2px); }
.btn .ic { width: 16px; height: 16px; }

/* -------------------------------- pills ----------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(12, 106, 78, 0.2); background: var(--mint); color: var(--forest);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600;
}
.pill .ic { width: 14px; height: 14px; }
.pill-dark { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05); color: var(--mint); }

/* -------------------------------- hero ------------------------------------ */
.hero { position: relative; overflow: hidden; }
.grain {
  position: absolute; inset: 0; opacity: 0.7; pointer-events: none;
  background-image: radial-gradient(rgba(14, 33, 27, 0.045) 1px, transparent 1px);
  background-size: 4px 4px;
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.blob-hero { right: -160px; top: -160px; width: 384px; height: 384px; background: var(--mint); }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding-top: 56px; padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 80px; }
}

.hero h1 { margin-top: 20px; font-size: clamp(34px, 5.5vw, 50px); line-height: 1.06; }
.hero-sub { margin-top: 20px; max-width: 36em; font-size: 17px; line-height: 1.6; color: rgba(14, 33, 27, 0.7); }

.hand-underline {
  background-image: linear-gradient(transparent 62%, var(--gold-soft) 62%);
  padding: 0 0.05em;
}

.hero-stats { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.stat {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.6); padding: 12px;
}
.stat b { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--forest); }
.stat span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; color: rgba(14, 33, 27, 0.6); }

.hero-trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13.5px; color: rgba(14, 33, 27, 0.55); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { width: 16px; height: 16px; }

/* hero form */
.hero-form { position: relative; scroll-margin-top: 90px; }
.stamp-badge {
  position: absolute; right: -10px; top: -12px; z-index: 10; transform: rotate(6deg);
  display: flex; align-items: center; gap: 6px;
  border: 2px solid var(--gold); background: var(--gold-soft); color: var(--forest-deep);
  border-radius: 10px; padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.stamp-badge .ic { width: 14px; height: 14px; }

.card {
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, 0.7); padding: 26px;
  box-shadow: 0 30px 60px -30px rgba(7, 61, 46, 0.35);
}
.form-card h2 { font-size: 22px; }
.form-lead { margin: 4px 0 20px; font-size: 14px; color: rgba(14, 33, 27, 0.6); }

.okbox {
  border: 1px solid rgba(12, 106, 78, 0.35); border-radius: 12px;
  background: var(--mint); padding: 14px 16px; margin-bottom: 20px;
  font-size: 14.5px; line-height: 1.5;
}
.okbox b { display: flex; align-items: center; gap: 6px; color: var(--forest); margin-bottom: 2px; }
.okbox .ic { width: 16px; height: 16px; }

/* ------------------------------ lead form --------------------------------- */
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(14, 33, 27, 0.7);
}
.lead-form input, .lead-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 15px;
  outline: none; resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form ::placeholder { color: rgba(14, 33, 27, 0.35); }
.lead-form input:focus, .lead-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(12, 106, 78, 0.2);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.hp { position: absolute; left: -9999px; opacity: 0; }

.lead-form button {
  margin-top: 4px; width: 100%; padding: 15px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest); color: #fff;
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(12, 106, 78, 0.7);
  transition: background 0.2s, transform 0.2s;
}
.lead-form button:hover { background: var(--forest-deep); transform: translateY(-2px); }
.lead-form button:active { transform: translateY(0); }
.lead-form button .ic { width: 19px; height: 19px; transition: transform 0.2s; }
.lead-form button:hover .ic { transform: translateX(4px); }

.form-note { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.45; color: rgba(14, 33, 27, 0.55); }
.form-note .ic { width: 16px; height: 16px; margin-top: 2px; }

/* dark variant */
.form-dark label { color: rgba(221, 235, 225, 0.8); }
.form-dark input, .form-dark textarea {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); color: #fff;
}
.form-dark ::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-dark input:focus, .form-dark textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 168, 46, 0.3);
}
.form-dark .form-note { color: rgba(221, 235, 225, 0.6); }

/* ------------------------------ sections ---------------------------------- */
.section { padding: 80px 0; }
.section-tint { background: var(--paper-2); }
.section h2 { margin-top: 20px; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; }
.section-sub { margin-top: 16px; max-width: 34em; font-size: 16px; line-height: 1.6; color: rgba(14, 33, 27, 0.65); }

.section-dark { position: relative; overflow: hidden; background: var(--forest-deep); color: #fff; padding: 80px 0; }
.h2-dark { margin-top: 20px; max-width: 21em; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; }
.h2-dark em { font-style: normal; color: var(--gold); }
.section-sub-dark { margin-top: 16px; max-width: 34em; font-size: 16px; line-height: 1.6; color: rgba(221, 235, 225, 0.7); }

.tag { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }

/* ------------------------------ changes ----------------------------------- */
.changes-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .changes-grid { grid-template-columns: 1fr 1fr; } }

.change-card {
  height: 100%; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  background: rgba(255, 255, 255, 0.04); padding: 24px;
  transition: border-color 0.25s, background 0.25s;
}
.change-card:hover { border-color: rgba(224, 168, 46, 0.4); background: rgba(255, 255, 255, 0.07); }
.change-head { display: flex; align-items: center; gap: 12px; }
.change-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(224, 168, 46, 0.15); color: var(--gold);
}
.change-ic .ic { width: 20px; height: 20px; }
.change-head .tag { color: rgba(221, 235, 225, 0.6); }
.change-card h3 { margin-top: 16px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.change-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: rgba(221, 235, 225, 0.7); }

/* ----------------------------- checklist ---------------------------------- */
.checklist-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) {
  .checklist-grid { grid-template-columns: 0.8fr 1.2fr; }
  .sticky-box { position: sticky; top: 110px; }
}
.checklist-intro h2 { max-width: 12em; }

.checklist-items { display: flex; flex-direction: column; gap: 14px; }
.check-card {
  display: flex; gap: 16px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, 0.6); padding: 20px;
  transition: border-color 0.25s, background 0.25s;
}
.check-card:hover { border-color: rgba(12, 106, 78, 0.3); background: #fff; }
.check-ic {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--mint); color: var(--forest);
  transition: background 0.25s, color 0.25s;
}
.check-card:hover .check-ic { background: var(--forest); color: #fff; }
.check-ic .ic { width: 20px; height: 20px; }
.check-card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.check-card p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: rgba(14, 33, 27, 0.65); }
.check-ref { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: rgba(12, 106, 78, 0.8); }

/* -------------------------------- rates ----------------------------------- */
.rates-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .rates-grid { grid-template-columns: 1fr 1fr; } }
.rates-grid .section-sub { max-width: 28em; }
.rates-note { margin-top: 16px; max-width: 30em; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: rgba(14, 33, 27, 0.45); }

.rates-table {
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; box-shadow: 0 30px 60px -35px rgba(7, 61, 46, 0.3);
}
.rates-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--forest-deep); color: rgba(221, 235, 225, 0.7);
  padding: 14px 20px;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
}
.rate-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.rate-row:last-child { border-bottom: 0; }
.rate-row > div > b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.rate-row > div > span { display: block; font-size: 13px; color: rgba(14, 33, 27, 0.55); }
.rate-val { text-align: right; }
.rate-val b { font-family: var(--font-mono) !important; font-size: 22px !important; font-weight: 700; color: var(--forest); }
.rate-val span { font-family: var(--font-mono); font-size: 11.5px !important; color: rgba(14, 33, 27, 0.45) !important; }

/* -------------------------------- steps ----------------------------------- */
.steps-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  height: 100%; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, 0.6); padding: 24px;
}
.step-n { font-family: var(--font-mono); font-size: 40px; font-weight: 700; color: rgba(224, 168, 46, 0.6); }
.step-card h3 { margin-top: 8px; font-size: 20px; font-weight: 700; }
.step-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: rgba(14, 33, 27, 0.65); }

/* --------------------------------- faq ------------------------------------ */
.faq-title { text-align: center; font-size: clamp(28px, 4vw, 38px); }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, 0.7); padding: 20px;
}
.faq-list details[open] { background: #fff; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint); color: var(--forest);
  font-family: var(--font-sans); font-size: 18px; font-weight: 500; line-height: 1;
  transition: transform 0.25s;
}
details[open] .plus { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: rgba(14, 33, 27, 0.7); }

/* ------------------------------ final cta --------------------------------- */
.blob-cta { left: -130px; top: 50%; transform: translateY(-50%); width: 320px; height: 320px; background: rgba(12, 106, 78, 0.4); }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.final-cta .h2-dark { font-size: clamp(30px, 4.5vw, 44px); }
.card-dark {
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  background: rgba(255, 255, 255, 0.04); padding: 26px;
}

/* ------------------------------- footer ----------------------------------- */
.site-footer { background: var(--forest-deep); color: rgba(221, 235, 225, 0.6); padding-bottom: 40px; }
.footer-in { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 32px; }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; }
@media (min-width: 640px) { .footer-top { flex-direction: row; align-items: center; } }
.footer-top p { max-width: 34em; font-size: 12.5px; line-height: 1.55; }
.footer-copy { margin-top: 24px; font-size: 12.5px; color: rgba(221, 235, 225, 0.4); }

/* ------------------------------ animation --------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .load-up {
    opacity: 0;
    animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
}
