/* ============================================================
   DIVOMIR · СТИЛІ КОМПОНЕНТІВ
   Кольори/шрифти беруться з tokens.css (var(--...)).
   Структура: база → шапка → герой → секції → форма → футер.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--latte);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Типографіка --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--walnut);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cork); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); }

/* --- Контейнер та секції --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 14px 0 16px; }

/* --- Рейка (fluted) — фірмовий мотив --- */
.flute {
  background-image: repeating-linear-gradient(90deg,
    var(--slat) 0, var(--slat) 7px,
    var(--slat-line) 7px, var(--slat-line) 9px);
  background-color: var(--slat);
}
.flute-soft { /* тонка рейка-роздільник */
  height: 18px;
  background-image: repeating-linear-gradient(90deg,
    var(--cork) 0, var(--cork) 2px, transparent 2px, transparent 9px);
  opacity: 0.5;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap; line-height: 1;
}
.btn i { font-size: 1.15em; }
.btn-primary { background: var(--cork); color: #2A1A0A; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cork-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-oak); }
.btn-ghost:hover { background: var(--oak-soft); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding-block: 18px;
}
.header.scrolled {
  background: rgba(244, 243, 239, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 11px;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.logo .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cork); box-shadow: 0 0 0 3px rgba(201,154,99,0.25); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 0.96rem; color: var(--ink-soft); transition: color 0.2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--cork); border-radius: 2px; transition: width 0.25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--ink); padding: 4px; }

/* мобільне меню */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--latte);
  display: flex; flex-direction: column; padding: 26px var(--gutter);
  transform: translateX(100%); transition: transform 0.4s var(--ease); gap: 6px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav a { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; }

/* ============================================================
   ГЕРОЙ
   ============================================================ */
.hero { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: var(--section-y); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: var(--cream); border: 1px solid var(--line);
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--success); position: relative; }
.hero-badge .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); opacity: 0.5; animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(2.1); opacity: 0; } }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--walnut); position: relative; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; background: var(--cork); opacity: 0.28; border-radius: 4px; z-index: -1; }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mini { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-mini .item .num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.hero-mini .item .lbl { font-size: 0.82rem; color: var(--muted); max-width: 130px; }

/* демка бота на рейці */
.hero-visual { position: relative; }
.hero-visual .wall {
  border-radius: var(--r-xl); padding: 30px 24px 0; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual .wall::before { /* блік світла на рейці */
  content: ""; position: absolute; top: 0; left: -30%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.06), transparent); pointer-events: none;
}
.bot-window {
  background: #1F2329; border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); position: relative;
}
.bot-head { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line-dark); margin-bottom: 14px; }
.bot-head .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--cork); display: grid; place-items: center; color: #2A1A0A; font-weight: 800; font-family: var(--font-display); }
.bot-head .meta strong { color: var(--on-dark); font-size: 0.95rem; font-weight: 700; display: block; }
.bot-head .meta span { color: var(--success); font-size: 0.78rem; }
.bot-log { display: flex; flex-direction: column; gap: 10px; height: 300px; overflow: hidden; }
.bubble { max-width: 84%; padding: 10px 13px; border-radius: 15px; font-size: 0.92rem; line-height: 1.45; }
.bubble.bot { background: #2A2F36; color: var(--on-dark); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.user { background: var(--cork); color: #2A1A0A; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 600; }
.bubble.opt { background: transparent; border: 1px solid var(--cork); color: var(--wood-glow); align-self: flex-start; cursor: default; padding: 8px 13px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-mute); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.hero-visual .shelf { height: 16px; background: var(--walnut); border-radius: 8px 8px 0 0; margin-top: 22px; box-shadow: 0 -6px 18px rgba(0,0,0,0.18); }

/* ============================================================
   СМУГА ДОВІРИ
   ============================================================ */
.trust { background: var(--oak-soft); border-block: 1px solid var(--line-oak); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 30px; }
.trust .t-item { display: flex; gap: 13px; align-items: flex-start; }
.trust .t-item i { font-size: 1.5rem; color: var(--walnut); flex-shrink: 0; margin-top: 2px; }
.trust .t-item strong { display: block; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.trust .t-item span { font-size: 0.86rem; color: var(--ink-soft); }

/* ============================================================
   ПОСЛУГИ
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.scard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cork); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-oak); }
.scard:hover::after { transform: scaleX(1); }
.scard .ic { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--oak-soft); display: grid; place-items: center; color: var(--walnut); font-size: 1.5rem; }
.scard h3 { margin-bottom: 2px; }
.scard p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }
.scard .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.scard .price { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.scard .price small { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; color: var(--muted); display: block; }
.scard .term { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.scard .go { font-weight: 700; color: var(--walnut); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s; margin-top: 6px; }
.scard:hover .go { gap: 11px; }
.scard.badge-soft .tag { position: absolute; top: 18px; right: 18px; font-size: 0.7rem; font-weight: 700; background: var(--walnut); color: var(--on-dark); padding: 4px 10px; border-radius: var(--r-pill); }

/* ============================================================
   ЧОМУ DIVOMIR
   ============================================================ */
.why { background: var(--oak); border-block: 1px solid var(--line-oak); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-item .n { font-family: var(--font-display); font-weight: 700; color: var(--cork-deep); font-size: 1.1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.why-item .n i { font-size: 1.4rem; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }
.why-item p { font-size: 0.92rem; color: var(--ink-soft); }
.why-quote { background: var(--cream); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.why-quote .big { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.3; margin-bottom: 18px; }
.why-quote .sig { display: flex; align-items: center; gap: 13px; }
.why-quote .sig .av { width: 46px; height: 46px; border-radius: 50%; background: var(--walnut); color: var(--on-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.why-quote .sig strong { display: block; }
.why-quote .sig span { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   ПРОЦЕС (3 кроки)
   ============================================================ */
.process-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.process-track::before { content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 2px; background: var(--line-oak); }
.process-track .line-fill { position: absolute; top: 30px; left: 8%; height: 2px; background: var(--cork); width: 0; transition: width 1.4s var(--ease); }
.pstep { text-align: center; position: relative; }
.pstep .circle { width: 60px; height: 60px; border-radius: 50%; background: var(--latte); border: 2px solid var(--cork); display: grid; place-items: center; margin: 0 auto 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--walnut); position: relative; z-index: 2; transition: background 0.4s, color 0.4s, transform 0.4s; }
.pstep.active .circle { background: var(--cork); color: #2A1A0A; transform: scale(1.06); }
.pstep h3 { margin-bottom: 8px; }
.pstep p { font-size: 0.92rem; color: var(--ink-soft); max-width: 280px; margin-inline: auto; }

/* ============================================================
   ПОРТФОЛІО / КЕЙСИ
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--cream); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case .cover { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; }
.case .cover.flute { padding: 0; }
.case .cover .label { position: relative; z-index: 2; text-align: center; padding: 20px; }
.case .cover .label .k { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--on-dark); }
.case .cover .chip { position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--cork); color: #2A1A0A; font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }
.case .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.case .body h3 { font-size: 1.2rem; }
.case .body p { font-size: 0.92rem; color: var(--ink-soft); flex-grow: 1; }
.case .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case .tags span { font-size: 0.74rem; background: var(--oak-soft); color: var(--walnut); padding: 4px 10px; border-radius: var(--r-pill); font-weight: 600; }
.case .body .go { font-weight: 700; color: var(--walnut); display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.calc { background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); overflow: hidden; position: relative; }
.calc-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.calc-left { padding: clamp(30px, 4vw, 50px); }
.calc-left h2 { color: var(--on-dark); }
.calc-left .lead { color: var(--on-dark-mute); margin-top: 12px; margin-bottom: 30px; }
.calc-field { margin-bottom: 24px; }
.calc-field > label { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 9px; }
.seg button { background: transparent; border: 1.5px solid var(--line-dark); color: var(--on-dark-mute); padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; transition: all 0.2s; }
.seg button:hover { border-color: var(--cork); color: var(--on-dark); }
.seg button.on { background: var(--cork); border-color: var(--cork); color: #2A1A0A; }
.opts { display: grid; gap: 11px; }
.opt-row { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.opt-row .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-dark); display: grid; place-items: center; flex-shrink: 0; transition: all 0.2s; color: transparent; }
.opt-row.on .box { background: var(--cork); border-color: var(--cork); color: #2A1A0A; }
.opt-row span.txt { font-size: 0.95rem; }
.opt-row span.add { margin-left: auto; font-size: 0.8rem; color: var(--on-dark-mute); }
.calc-right { background: var(--slat); padding: clamp(30px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-right .flute-bg { position: absolute; inset: 0; opacity: 0.5; }
.calc-result { position: relative; z-index: 2; }
.calc-result .cap { color: var(--on-dark-mute); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.calc-result .sum { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--wood-glow); margin: 8px 0 4px; line-height: 1; }
.calc-result .sum .cur { font-size: 0.45em; color: var(--on-dark-mute); }
.calc-result .note { color: var(--on-dark-mute); font-size: 0.85rem; margin-bottom: 26px; }
.calc-result .btn { width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: var(--line-oak); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q i { transition: transform 0.3s var(--ease); color: var(--cork-deep); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 22px 22px; color: var(--ink-soft); font-size: 0.97rem; }

/* ============================================================
   CTA + ФОРМА
   ============================================================ */
.cta-wrap { position: relative; }
.cta { background: var(--slat); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 66px); position: relative; overflow: hidden; }
.cta .flute-bg { position: absolute; inset: 0; opacity: 0.45; }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }
.cta-copy h2 { color: var(--on-dark); margin-bottom: 16px; }
.cta-copy .lead { color: var(--on-dark-mute); margin-bottom: 26px; }
.cta-direct { display: flex; flex-direction: column; gap: 12px; }
.cta-direct a { display: flex; align-items: center; gap: 13px; color: var(--on-dark); font-weight: 600; padding: 12px 16px; border: 1px solid var(--line-dark); border-radius: var(--r-md); transition: all 0.25s; }
.cta-direct a:hover { background: rgba(255,255,255,0.04); border-color: var(--cork); transform: translateX(4px); }
.cta-direct a i { font-size: 1.4rem; color: var(--cork); width: 26px; text-align: center; }
.form { background: var(--cream); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 6px; }
.form .sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--latte); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cork); box-shadow: 0 0 0 3px rgba(201,154,99,0.18); }
.field textarea { resize: vertical; min-height: 92px; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px; }
.hp { position: absolute; left: -9999px; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { background: var(--ink); color: var(--on-dark-mute); padding-block: 56px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer .logo { color: var(--on-dark); margin-bottom: 14px; }
.footer p { font-size: 0.9rem; line-height: 1.6; }
.footer h4 { color: var(--on-dark); font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: var(--cork); }
.footer .fcontact a { display: flex; align-items: center; gap: 9px; }
.footer .fcontact i { color: var(--cork); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }

/* ============================================================
   ПЛАВАЮЧІ КНОПКИ МЕСЕНДЖЕРІВ
   ============================================================ */
.float-msg { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 11px; }
.float-msg a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; box-shadow: var(--shadow-md); transition: transform 0.25s var(--ease); transform: translateY(8px) scale(0.9); opacity: 0; }
.float-msg.ready a { transform: translateY(0) scale(1); opacity: 1; }
.float-msg.ready a:hover { transform: scale(1.1); }
.float-msg a.tg { background: #29A9EB; }
.float-msg a.vb { background: #7360F2; }
.float-msg a.wa { background: #25D366; }
.float-msg a.ph { background: var(--walnut); }
.float-msg a:nth-child(2) { transition-delay: 0.05s; }
.float-msg a:nth-child(3) { transition-delay: 0.1s; }
.float-msg a:nth-child(4) { transition-delay: 0.15s; }

/* ============================================================
   АНІМАЦІЯ ПОЯВИ ПРИ СКРОЛІ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: 2; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .calc-grid, .cta-inner { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services-grid, .trust .container, .why-list, .process-track, .footer-grid { grid-template-columns: 1fr; }
  .process-track::before, .process-track .line-fill { display: none; }
  .hero-actions .btn { flex: 1; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   СТОРІНКИ ПОСЛУГ / НІШ / БЛОГ / ПОЛІТИКА
   ============================================================ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); padding-top: 22px; }
.breadcrumb a { color: var(--walnut); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero { padding-block: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 36px); }
.page-hero .lead { max-width: 640px; margin-top: 16px; }
.price-badge { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.price-badge .p { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); background: var(--oak-soft); border: 1px solid var(--line-oak); padding: 10px 18px; border-radius: var(--r-md); }
.price-badge .t { font-size: 0.9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.page-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 26px; }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bcard { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcard .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--oak-soft); display: grid; place-items: center; color: var(--walnut); font-size: 1.4rem; margin-bottom: 14px; }
.bcard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.bcard p { font-size: 0.94rem; color: var(--ink-soft); }

.forwhom { display: flex; flex-wrap: wrap; gap: 12px; }
.forwhom span { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; }
.forwhom span i { color: var(--cork-deep); }

.checklist { list-style: none; display: grid; gap: 13px; max-width: 720px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.checklist li i { color: var(--success); font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }

.cta-band { background: var(--slat); border-radius: var(--r-xl); padding: clamp(32px, 4vw, 54px); position: relative; overflow: hidden; text-align: center; }
.cta-band .flute-bg { position: absolute; inset: 0; opacity: 0.4; }
.cta-band .inner { position: relative; z-index: 2; max-width: 620px; margin-inline: auto; }
.cta-band h2 { color: var(--on-dark); margin-bottom: 14px; }
.cta-band p { color: var(--on-dark-mute); margin-bottom: 26px; }
.cta-band .page-actions { justify-content: center; margin-top: 0; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: all 0.25s var(--ease); }
.related a:hover { border-color: var(--line-oak); transform: translateX(3px); color: var(--walnut); }

/* стаття */
.article { max-width: 760px; margin-inline: auto; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.article-meta .cat { background: var(--oak-soft); color: var(--walnut); padding: 4px 12px; border-radius: var(--r-pill); font-weight: 600; }
.article h1 { margin-bottom: 22px; }
.article h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 36px 0 14px; }
.article p { margin-bottom: 16px; color: var(--ink); }
.article ul { margin: 0 0 18px 22px; display: grid; gap: 8px; color: var(--ink); }
.article .tip { background: var(--oak-soft); border-left: 3px solid var(--cork); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px; margin: 22px 0; }
.article .tip p { margin: 0; }

/* блог */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card .top { height: 8px; background: var(--cork); }
.post-card .pc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card .cat { font-size: 0.76rem; color: var(--walnut); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.post-card h3 { font-size: 1.18rem; }
.post-card p { font-size: 0.92rem; color: var(--ink-soft); flex-grow: 1; }
.post-card .go { font-weight: 700; color: var(--walnut); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 980px) {
  .benefits { grid-template-columns: 1fr; }
  .related, .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   КАЛЬКУЛЯТОР · ПІДСИЛЕННЯ (вау-ефекти)
   ============================================================ */
.calc { box-shadow: 0 30px 80px rgba(40, 30, 16, 0.38); }

/* тонка світна лінія зверху, що пливе */
.calc::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 5;
  background: linear-gradient(90deg, transparent, var(--cork), var(--wood-glow), var(--cork), transparent);
  background-size: 200% 100%; animation: calc-sheen 6s linear infinite;
}
@keyframes calc-sheen { to { background-position: 200% 0; } }

/* атмосферне сяйво в панелі результату */
.calc-right::after {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(201,154,99,0.45), rgba(201,154,99,0) 70%);
  top: -90px; right: -70px; filter: blur(8px);
  animation: calc-orb 9s var(--ease) infinite;
}
@keyframes calc-orb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(-26px, 44px) scale(1.18); opacity: 1; }
}

/* кнопки типів — світяться при наведенні й виборі */
.seg button { position: relative; }
.seg button:hover { box-shadow: 0 0 0 3px rgba(201,154,99,0.16); }
.seg button.on { box-shadow: 0 6px 20px rgba(201,154,99,0.5), 0 0 0 1px var(--cork); transform: translateY(-1px); }

/* опції — підсвітка рядка + «пружинка» чекбокса */
.opt-row { padding: 8px 10px; border-radius: 12px; transition: background 0.2s; }
.opt-row:hover { background: rgba(255,255,255,0.04); }
.opt-row.on { background: rgba(201,154,99,0.12); }
.opt-row.on .box { box-shadow: 0 0 0 4px rgba(201,154,99,0.18); animation: box-pop 0.32s var(--ease); }
@keyframes box-pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.16); } 100% { transform: scale(1); } }
.opt-row.on span.add { color: var(--wood-glow); font-weight: 700; }

/* сума — сяйво й «підскок» при зміні */
.calc-result .sum { transition: transform 0.25s var(--ease); will-change: transform; }
.calc-result .sum.bump { animation: sum-bump 0.5s var(--ease); }
@keyframes sum-bump {
  0% { transform: scale(1); text-shadow: none; }
  35% { transform: scale(1.07); text-shadow: 0 0 28px rgba(217,179,106,0.85); }
  100% { transform: scale(1); text-shadow: none; }
}
.calc-result .btn { box-shadow: 0 10px 30px rgba(201,154,99,0.32); }
.calc-result .btn:hover { box-shadow: 0 14px 40px rgba(201,154,99,0.55); }

@media (prefers-reduced-motion: reduce) {
  .calc::before, .calc-right::after, .opt-row.on .box, .calc-result .sum.bump { animation: none; }
}

/* ============================================================
   СТРУКТУРА СВІТЛОЇ ШТУКАТУРКИ НА ФОНІ (колір фону не змінюється)
   Безшовна текстура поверх нашого --latte: легкі нерівності,
   без жодних ліній/стиків.
   ============================================================ */
body {
  background-color: var(--latte);
  background-image: url("../images/plaster.jpg");
  background-size: 760px;
  background-repeat: repeat;
}

/* ============================================================
   СОЦМЕРЕЖІ: на мобільному ховаємо плаваючі (не перекривають
   контент), натомість показуємо в бургер-меню. На компі — без змін.
   ============================================================ */
@media (max-width: 720px) {
  .float-msg { display: none !important; }
}
.mn-social { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.mn-social-cap { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.mn-social-row { display: flex; gap: 14px; }
.mn-social .ms { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.45rem; box-shadow: var(--shadow-md); transition: transform 0.2s var(--ease); }
.mn-social .ms:active, .mn-social .ms:hover { transform: scale(1.08); }
.mn-social .ms.tg { background: #29A9EB; }
.mn-social .ms.vb { background: #7360F2; }
.mn-social .ms.wa { background: #25D366; }
.mn-social .ms.ph { background: var(--walnut); }
.mn-social .ms .ico-viber { width: 1.45rem; height: 1.45rem; vertical-align: 0; }
