/* ============================================================
   Тихий Ранок — styles.css
   LAYOUT: editorial, container 1140px, 12-col mental grid.
   Оси: 3 карточки в ряд, выравнивание center, заголовки uppercase
   + letter-spacing, карточки flat-прозрачные, кнопки default,
   иконки в круге, радиусы 0 (острые углы), hero ~70vh, reveal =
   stagger по карточкам.
   Шрифты: Lora (заголовки) + Open Sans (текст).
   Палитра: bg #FBF6EF, текст #2B2723, акцент янтарь #E0A94A,
   второй персик/терракота #C98B6B. Макс 2 акцента, контраст ≥4.5:1.
   Шкала отступов: 8/16/24/40/64/96. Радиус: 0.
   Брейкпоинты: 480 / 768 / 1024 / 1200.
   ============================================================ */

:root {
  --bg: #FBF6EF;
  --bg-tint: #F3EADE;
  --bg-deep: #EFE3D3;
  --ink: #2B2723;
  --ink-soft: #5C544B;
  --line: rgba(43, 39, 35, 0.12);
  --accent: #E0A94A;      /* рассветний янтар */
  --accent-2: #C98B6B;    /* приглушена терракота */
  --accent-ink: #8a5a1e;  /* темний янтар для тексту-акценту, контраст ≥4.5 */
  --white: #FFFFFF;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;

  --radius: 0px;
  --maxw: 1140px;

  --f-head: 'Lora', Georgia, 'Times New Roman', serif;
  --f-body: 'Open Sans', system-ui, -apple-system, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 var(--s-2);
  color: var(--ink);
}

p { margin: 0 0 var(--s-2); }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-3); }
.section { padding: var(--s-6) 0; }
.section--tint { background: var(--bg-tint); }
.section--deep { background: var(--bg-deep); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 var(--s-2);
  display: block;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(24px, 3.4vw, 34px);
}

.section-head { max-width: 640px; margin: 0 auto var(--s-5); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- buttons (default) ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #2b2008; }
.btn--primary:hover { background: #d29c3c; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-deep); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- header: nav-two-tone-split ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 600; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); color: #2b2008; font-weight: 700; font-family: var(--f-head);
  border-radius: 50%;
}
.brand-name { letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-size: 15px; font-weight: 600;
  letter-spacing: 0.03em; padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--accent); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: var(--s-2); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 44px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform 0.2s; }

/* ---------- hero: diagonal split ---------- */
.hero {
  position: relative; min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(var(--s-3), 1fr) minmax(auto, 560px) minmax(auto, 560px);
  align-items: stretch;
  background: var(--bg);
  overflow: hidden;
}
.hero-copy {
  grid-column: 2;
  display: flex; flex-direction: column; justify-content: center;
  max-width: none; margin: 0;
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
}
.hero-media { grid-column: 3 / -1; }
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.01em; line-height: 1.08; margin-bottom: var(--s-3);
}
.hero-copy .lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin-bottom: var(--s-4); }
.hero-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media::before {
  /* диагональний зріз між текстом і фото */
  content: ""; position: absolute; inset: 0 auto 0 -12%; width: 24%;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 2;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-note {
  display: flex; gap: var(--s-3); margin-top: var(--s-4);
  font-size: 14px; color: var(--ink-soft);
}
.hero-note span { display: flex; align-items: center; gap: 8px; }
.hero-note b { color: var(--ink); }

/* ---------- icon in circle ---------- */
.ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto var(--s-2);
  background: var(--bg-deep); color: var(--accent-ink);
  border: 1px solid var(--line);
}
.ic svg { width: 24px; height: 24px; }

/* ---------- feature grid: accordion rows ---------- */
.acc-rows { border-top: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.acc-row { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-1);
  font-family: var(--f-head); font-size: 20px; color: var(--ink);
}
.acc-head .num { font-family: var(--f-body); font-weight: 700; color: var(--accent-ink); font-size: 14px; min-width: 34px; }
.acc-head .plus { margin-left: auto; font-size: 22px; color: var(--accent-ink); transition: transform 0.25s var(--ease); }
.acc-row.open .plus { transform: rotate(45deg); }
.acc-body {
  max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease);
  color: var(--ink-soft);
}
.acc-body-inner { padding: 0 var(--s-1) var(--s-3) 48px; }

/* ---------- grid of cards (flat, 3-up) ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: transparent; border-radius: var(--radius); text-align: center; }
.card h3 { font-size: 20px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-1); }
.card p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ---------- zigzag tone alternate ---------- */
.zz { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.zz + .zz { margin-top: var(--s-6); }
.zz--rev .zz-media { order: 2; }
.zz-media img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.zz-copy h2 { text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(22px, 3vw, 30px); }
.zz-copy p { color: var(--ink-soft); }
.zz-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.zz-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); }
.zz-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

/* ---------- gallery: stacked cards ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.gallery figure { margin: 0; position: relative; background: var(--bg-deep); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-2);
  background: linear-gradient(to top, rgba(43,39,35,0.72), transparent);
  color: var(--white); font-size: 14px; font-family: var(--f-head); text-align: left;
}

/* ---------- stats: vertical list ---------- */
.stats { max-width: 720px; margin: 0 auto; }
.stat-row {
  display: flex; align-items: baseline; gap: var(--s-3);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
}
.stat-num { font-family: var(--f-head); font-size: clamp(34px, 5vw, 52px); color: var(--accent-ink); min-width: 3.2em; }
.stat-txt { color: var(--ink-soft); }
.stat-txt b { color: var(--ink); display: block; font-family: var(--f-head); font-size: 18px; }

/* ---------- timeline: simple list (ранковий ритуал) ---------- */
.timeline { max-width: 720px; margin: 0 auto; list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 var(--s-4) 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--accent-ink); font-weight: 700; font-family: var(--f-head);
}
.timeline h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline p { color: var(--ink-soft); margin: 0; }
.timeline .time { font-size: 13px; color: var(--accent-ink); font-weight: 700; letter-spacing: 0.05em; }

/* ---------- testimonials: grid cards ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.tcard { background: var(--white); border: 1px solid var(--line); padding: var(--s-4); text-align: left; }
.tcard .quote { font-family: var(--f-head); font-size: 18px; color: var(--ink); margin-bottom: var(--s-3); line-height: 1.5; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #2b2008; display: grid; place-items: center; font-weight: 700; font-family: var(--f-head); }
.tcard .who b { display: block; font-size: 15px; }
.tcard .who span { font-size: 13px; color: var(--ink-soft); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; margin-bottom: var(--s-2); }

/* ---------- pricing: table compare ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); padding: var(--s-4); display: flex; flex-direction: column; text-align: left; }
.plan--featured { border-color: var(--accent); box-shadow: 0 12px 40px rgba(224,169,74,0.14); }
.plan .tag { align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: #2b2008; background: var(--accent); padding: 4px 10px; margin-bottom: var(--s-2); }
.plan h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.plan .desc { color: var(--ink-soft); font-size: 15px; min-height: 3em; }
.plan .price { font-family: var(--f-head); font-size: 40px; color: var(--ink); margin: var(--s-2) 0 2px; }
.plan .price small { font-size: 15px; color: var(--ink-soft); font-family: var(--f-body); }
.plan ul { list-style: none; padding: 0; margin: var(--s-3) 0; flex: 1; }
.plan ul li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

/* ---------- faq: chat style ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { margin-bottom: var(--s-2); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line);
  background: var(--white); padding: var(--s-3); font-family: var(--f-body);
  font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.faq-q::before { content: "?"; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); color: #2b2008; display: grid; place-items: center; font-family: var(--f-head); font-size: 14px; }
.faq-q .chev { margin-left: auto; color: var(--accent-ink); transition: transform 0.25s var(--ease); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner {
  padding: var(--s-3) var(--s-3) var(--s-3) 50px; color: var(--ink-soft);
  background: var(--bg-tint); border: 1px solid var(--line); border-top: 0;
}

/* ---------- cta form inline bar ---------- */
.cta-bar {
  background: var(--ink); color: var(--bg);
  display: grid; grid-template-columns: 1.3fr auto; gap: var(--s-4); align-items: center;
  padding: var(--s-5); border-radius: var(--radius);
}
.cta-bar h2 { color: var(--bg); text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-bar p { color: rgba(251,246,239,0.72); margin: 0; }
.cta-bar .btn--primary { white-space: nowrap; }

/* ---------- lead form section ---------- */
.form-wrap { max-width: 620px; margin: 0 auto; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: var(--s-5); }
.field { margin-bottom: var(--s-3); }
.field label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--f-body); font-size: 16px; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 96px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#formStatus { margin: var(--s-2) 0 0; font-size: 15px; }
#formStatus.error { color: #a5372b; }
.form-fine { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: var(--s-2); }

/* ---------- footer: stacked cta links ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-4); }
.footer-cta { text-align: center; max-width: 620px; margin: 0 auto var(--s-5); }
.footer-cta h2 { text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(22px, 3vw, 30px); }
.footer-cta p { color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.footer-grid h4 { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-family: var(--f-body); color: var(--ink-soft); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink); font-size: 15px; }
.footer-about p { color: var(--ink-soft); font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: var(--s-4); padding-top: var(--s-3);
  font-size: 14px; color: var(--ink-soft);
}
.footer-bottom a { color: var(--ink-soft); }

/* ---------- divider hairline center ---------- */
.divider { display: flex; align-items: center; gap: var(--s-2); max-width: 200px; margin: 0 auto; color: var(--accent); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- reveal (stagger) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: var(--s-6) var(--s-3); }
.legal h1 { text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(28px, 4vw, 40px); }
.legal h2 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 20px; margin-top: var(--s-4); }
.legal p, .legal li { color: var(--ink-soft); }
.legal-meta { color: var(--ink-soft); font-size: 14px; margin-bottom: var(--s-4); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3, .gallery, .tgrid, .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: var(--s-5) 0; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: var(--s-5) 0 var(--s-4); order: 2; }
  .hero-media { order: 1; min-height: 320px; }
  .hero-media::before { display: none; }
  .zz, .zz--rev .zz-media { grid-template-columns: 1fr; order: 0; }
  .zz-media { order: -1 !important; }
  .cta-bar { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .grid-3, .gallery, .tgrid, .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 var(--s-2); }
  .form-card, .cta-bar { padding: var(--s-4) var(--s-3); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
