/* ================================================================
   EXPOSHOP — production block
   Online furniture & doors store. Service-driven, no showroom.
   All styles scoped under .exo to avoid collisions in WordPress.

   DESIGN v1.6 — "precision" redesign of the homepage body.
   Direction: hairline dividers instead of card shadows, numbered
   section labels, one strong hero thesis (hidden doors) instead of
   a multi-claim carousel, accent color kept sparse.

   v1.6.2: this design uses ONE typeface family — sans only
   (--sans: Manrope / Noto Sans Georgian). The --serif token
   (Newsreader) was removed entirely per the approved mockup —
   it is not used anywhere on this page, including headings,
   product names/prices and the reviews quote.
   ================================================================ */

/* --- Tokens ----------------------------------------------------- */
.exo {
  --bg:        #fafaf8;
  --paper:     #ffffff;
  --warm:      #f5efe6;
  --warm-2:    #ebe1d2;
  --ink:       #0d0f15;
  --ink-2:     #3a3e4c;
  --ink-3:     #5a5d68;
  --muted:     #7a7d8c;
  --line:      #e6e3dd;
  --line-2:    #efece6;
  --line-dark: #25283a;
  --dark:      #0d0f15;
  --dark-2:    #161821;
  --dark-3:    #1a1d28;
  --accent:    #d00072;
  --accent-2:  #ff3d96;
  --accent-soft:#fbe6f0;
  --sage:      #6f7a6a;
  --good:      #5eb87a;

--sans:  'Manrope','Noto Sans Georgian', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
--mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --pad-x:        clamp(20px, 4vw, 56px);
  /* Single source of truth for inter-section rhythm — every top-level
     section uses this for its own top+bottom padding, nothing else
     adds vertical spacing between sections. Matches the handoff HTML
     reference's 64–96px range: two adjacent sections stack to at most
     2×72px=144px, not the ~176px this produced before v1.6.3. */
  --section-y:    clamp(48px, 6vw, 72px);
  --radius:       4px;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.exo *, .exo *::before, .exo *::after { box-sizing: border-box; }
.exo h1, .exo h2, .exo h3, .exo h4, .exo h5 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.exo p { margin: 0; }
.exo a { color: inherit; text-decoration: none; }
.exo button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.exo input, .exo select, .exo textarea { font: inherit; color: inherit; }
.exo img, .exo svg { display: block; max-width: 100%; }
.exo > section { margin: 0; }

/* --- Defensive: neutralize wrapper spacing around the shortcode -----
   WordPress's wpautop() and Astra's entry-content/container padding
   are outside this plugin's control, but both are common sources of
   large gaps ABOVE/BELOW the whole block (not between our sections —
   our own sections use one --section-y value with no extra margins).
   If wpautop wraps the shortcode output in a stray <p>, or inserts a
   <br> next to it, these rules zero that out without needing theme
   file access. Safe no-ops if neither condition applies. */
.entry-content .exo,
.entry-content > .exo { margin-block: 0; }
.entry-content p:empty,
.entry-content p:has(> .exo) { margin: 0; padding: 0; }

/* Georgian script — slightly larger because letters are visually shorter */
.exo[lang="ka"] { font-size: 15.5px; }
.exo[lang="ka"] h1, .exo[lang="ka"] h2, .exo[lang="ka"] h3, .exo[lang="ka"] h4 {
  letter-spacing: -0.005em;
}

/* --- Utility classes ------------------------------------------- */
.exo .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.exo .eyebrow { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exo .section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.exo .section-head h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  max-width: 16ch;
}
.exo .section-head .h-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.exo em { font-style: italic; }
.exo .accent { color: var(--accent); }

.exo .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: #f0eee8; color: var(--ink-3); border: 1px solid var(--line);
  white-space: nowrap;
}
.exo .tag--accent { background: var(--accent-soft); color: var(--accent); border-color: #f5cee0; }
.exo .tag--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.exo .tag--sale { background: #fff; color: var(--accent); border-color: var(--accent); }
.exo .tag--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }

.exo .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 0;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
  text-align: center;
}
.exo .btn:hover { transform: translateY(-1px); }
.exo .btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.exo .btn--primary:hover { background: #c40e69; border-color: #c40e69; }
.exo .btn--ghost { background: #fff; color: var(--ink); }
.exo .btn--ghost:hover { background: var(--ink); color: #fff; }
.exo .btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.exo .btn--ghost-light:hover { background: #fff; color: var(--ink); }
.exo .btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.exo .btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.exo .btn--sm { padding: 8px 14px; font-size: 13px; }
.exo .btn--lg { padding: 16px 28px; font-size: 15px; }
.exo .btn .ico { width: 16px; height: 16px; flex-shrink: 0; }

.exo .icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.exo .icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.exo .icon-btn .ico { width: 14px; height: 14px; }
.exo .icon-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.exo .icon-btn--dark:hover { background: var(--accent); border-color: var(--accent); }

/* --- Photo placeholders (diagonal stripes) --------------------- */
.exo .photo {
  position: relative;
  overflow: hidden;
  background-color: var(--ph-bg, #ede4d4);
  background-image: repeating-linear-gradient(
    55deg,
    var(--ph-stripe, #e2d6c0) 0,
    var(--ph-stripe, #e2d6c0) 11px,
    var(--ph-bg, #ede4d4) 11px,
    var(--ph-bg, #ede4d4) 22px
  );
}
.exo .photo--warm  { --ph-bg:#ede4d4; --ph-stripe:#e2d6c0; }
.exo .photo--sand  { --ph-bg:#e8dfd0; --ph-stripe:#dccfba; }
.exo .photo--cool  { --ph-bg:#dfe2e6; --ph-stripe:#cfd4d9; }
.exo .photo--dark  { --ph-bg:#2b2e36; --ph-stripe:#363a44; }
.exo .photo--sage  { --ph-bg:#d9ddd2; --ph-stripe:#c9cfbe; }
.exo .photo--blush { --ph-bg:#f1dfe6; --ph-stripe:#e7d0d9; }
.exo .photo--mag   { --ph-bg:#fbe6f0; --ph-stripe:#f5d3e3; }
.exo .photo--paper { --ph-bg:#f4f1ec; --ph-stripe:#ebe7df; }

/* ================================================================
   1) Quick category chips
   ================================================================ */
.exo .quickchips {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--pad-x);
  font-size: 13px;
  display: flex; align-items: center; gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.exo .quickchips::-webkit-scrollbar { display: none; }
.exo .quickchips__label {
  color: var(--ink-3); font-weight: 600; margin-right: 6px; white-space: nowrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.exo .quickchips__chip {
  padding: 4px 2px; background: none; border-radius: 0;
  color: var(--ink-2); white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.exo .quickchips__chip:hover { color: var(--ink); border-color: var(--ink); }
.exo .quickchips__chip--accent { color: var(--accent); border-color: var(--accent-soft); }
.exo .quickchips__chip--accent:hover { color: var(--accent); border-color: var(--accent); }

/* ================================================================
   2) Hero
   ================================================================ */
.exo .hero {
  padding: clamp(40px, 6vw, 64px) var(--pad-x) clamp(48px, 7vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* Mobile-first: 3 grid items in DOM order copy → photo → cta, single
   column, so they naturally stack in the required order with zero
   extra markup. Desktop (≥1025px) below re-maps them into a 2-column
   layout via grid-template-areas: text+cta stacked in the left
   column, photo spanning both rows on the right. */
.exo .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 32px);
}
.exo .hero__copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.exo .hero__eyebrow { margin-bottom: 22px; }
.exo .hero__h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-style: normal;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  overflow-wrap: break-word; word-break: normal; hyphens: none;
}
.exo .hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 48ch;
  overflow-wrap: break-word; word-break: normal; hyphens: none;
}
.exo .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.exo .hero__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  border-radius: var(--radius);
}

@media (min-width: 1025px) {
  .exo .hero__grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 40%, 560px);
    column-gap: clamp(28px, 4vw, 48px);
    row-gap: 20px;
    grid-template-areas: "text photo" "cta photo";
  }
  .exo .hero__copy {
    grid-area: text;
    border-right: 1px solid var(--line);
    padding: 16px clamp(24px, 3vw, 40px) 0 0;
  }
  .exo .hero__cta { grid-area: cta; padding: 0 clamp(24px, 3vw, 40px) 24px 0; border-right: 1px solid var(--line); }
  .exo .hero__photo { grid-area: photo; aspect-ratio: auto; min-height: 480px; width: 100%; }
}

/* ---- Из «Разбора солянки №131/№132» (docs/tasks/task-soljanka-131-132.md):
   №131 форсит display:block на .hero__grid при ≤1024px. Проверено —
   это НЕ дубль базового правила выше (которое даёт display:grid;
   grid-template-columns:1fr): №131 реально меняет computed display на
   block, эталон это подтверждает. Визуально, вероятно, неотличимо
   (у детей нет grid-специфичных свойств вне блока ≥1025px выше), но
   по методу «заморозки факта» перенесено как есть, не отброшено как
   заведомый дубль. ---- */
@media (max-width: 1024px) {
  .exo .hero__grid {
    display: block !important;
  }
  .exo .hero__grid > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ================================================================
   3) Trust strip — light hairline grid, typographic only
   ================================================================ */
.exo .truststrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exo .truststrip__item {
  background: var(--paper);
  padding: 22px clamp(16px, 3vw, 32px);
  min-width: 0;
}
.exo .truststrip__item .t  { color: var(--ink); font-size: 14px; font-weight: 600; }
.exo .truststrip__item .m  { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ================================================================
   4) Catalog — sidebar navigator + product grid
   ================================================================ */
.exo .catalog {
  padding: var(--section-y) var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.exo .catalog__layout {
  display: grid;
  grid-template-columns: minmax(200px, 25%) 1fr;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.exo .catalog__sidebar {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.exo .catnav__label {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.exo .catnav { display: flex; flex-direction: column; }
.exo .catnav__item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 2px; font-size: 14px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
  transition: color .15s ease, padding-left .15s ease;
}
.exo .catnav__item:last-child { border-bottom: 0; }
.exo .catnav__item .c { color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.exo .catnav__item:hover { color: var(--ink); padding-left: 6px; }
.exo .catnav__item.is-active { color: var(--accent); font-weight: 700; }
.exo .catnav__item.is-active .c { color: var(--accent); }

.exo .catalog__content { padding: 28px 0 28px 40px; min-width: 0; }
.exo .catalog__resulthead {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px;
  margin-bottom: 24px;
}
.exo .catalog__resultname { font-family: var(--sans); font-size: 20px; font-weight: 800; color: var(--ink); }
.exo .catalog__links { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.exo .catalog__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  white-space: nowrap;
}
.exo .catalog__link:hover { color: var(--accent); border-color: var(--accent); }
.exo .catalog__link--muted { color: var(--muted); font-weight: 600; border-color: var(--line); }
.exo .catalog__empty { font-size: 14px; color: var(--muted); padding: 24px 0; }
.exo .catalog__empty-state {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px 0; font-size: 14px; color: var(--muted);
}
.exo .catalog__empty-state[hidden] { display: none; }

/* Mobile (wp_is_mobile()) catalog view — plain category list, no
   product grid/images at all. Solid hairline dividers, same language
   as .truststrip (dashed is reserved for product-grid dividers). */
.exo .catlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 24px; }
.exo .catlist__item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 2px; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.exo .catlist__name { font-family: var(--sans); font-weight: 600; }
.exo .catlist__meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.exo .catlist__count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.exo .catlist__arrow { color: var(--ink-3); transition: color .15s ease, transform .15s ease; }
.exo .catlist__item:hover .catlist__arrow,
.exo .catlist__item:active .catlist__arrow { color: var(--accent); transform: translateX(2px); }
.exo .catlist__alllink { display: inline-block; margin-top: 20px; }

/* Shared dashed product grid — used by catalog (3-col) and "Популярное" (4-col) */
.exo .pgrid { display: grid; grid-template-columns: repeat(3, 1fr); transition: opacity .12s ease; }
.exo .pgrid.is-empty { display: none; }
.exo .pgrid--4 { grid-template-columns: repeat(4, 1fr); }
.exo .pcell {
  display: block; position: relative;
  padding: 0 20px 20px 0;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.exo .pgrid .pcell:nth-child(3n) { border-right: 0; }
.exo .pgrid--4 .pcell:nth-child(4n) { border-right: 0; }
.exo .pcell__photo { aspect-ratio: 1/1; margin-bottom: 12px; overflow: hidden; transition: transform .4s ease; }
.exo .pcell:hover .pcell__photo { transform: scale(1.02); }
.exo .pcell:hover .pcell__name { color: var(--accent); }
.exo .pcell__name { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.exo .pcell__price { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink); }

/* ================================================================
   5) Популярное — merges the former "bestsellers" design with the
   SKU-driven sale data/logic. One section, no countdown timer, no
   separate "Распродажа" section below.
   ================================================================ */
.exo .popular { padding: var(--section-y) var(--pad-x); background: var(--paper); border-bottom: 1px solid var(--line); }
.exo .section-head--split {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.exo .section-head--split h2 { font-size: clamp(26px, 3.4vw, 38px); }

.exo .popular__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.exo .card {
  background: none; border: 0; border-radius: 0;
  overflow: visible; position: relative;
  padding: 0 20px 20px 0;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.exo .popular__grid .card:nth-child(4n) { border-right: 0; }
.exo .card__photo {
  position: relative; aspect-ratio: 1/1; margin-bottom: 12px;
  overflow: hidden; transition: transform .4s ease;
}
.exo .card:hover .card__photo { transform: scale(1.02); }
.exo .card:hover .card__name { color: var(--accent); }
.exo .card__badge {
  position: absolute; top: 10px; left: 0; z-index: 2;
  background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; padding: 4px 10px; font-weight: 600;
}
.exo .card__glyph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.exo .card__body { padding: 0; }
.exo .card__cat { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.exo .card__name { font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
.exo .card__prices { display: flex; align-items: baseline; gap: 10px; }
.exo .card__prices .group { display: flex; align-items: baseline; gap: 8px; }
.exo .card__price-now { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); }
.exo .card__price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.exo .card__price { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); }

/* ================================================================
   7) How we work — process strip
   ================================================================ */
.exo .process { padding: var(--section-y) var(--pad-x); background: var(--paper); border-bottom: 1px solid var(--line); }
.exo .process__intro {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px; max-width: 56ch;
}
.exo .process__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55; color: var(--ink-2);
}
.exo .process__cta { flex-shrink: 0; }
/* Inline mini-FAB inside step 01's copy: nudge it to sit on the text
   baseline instead of the plugin default (vertical-align:middle),
   which reads high next to 14px body text. */
.exo .process__step p .ailo-fab-mini { margin: 0 1px; vertical-align: -8px; }
.exo .process__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exo .process__step {
  background: var(--paper); border: 0; border-radius: 0;
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.exo .process__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.exo .process__num {
  font-family: var(--sans); font-size: 34px; font-weight: 800; line-height: 1;
  color: var(--accent);
}
.exo .process__iconwrap {
  width: 40px; height: 40px; background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.exo .process__step:hover .process__iconwrap { border-color: var(--accent); color: var(--accent); }
.exo .process__step h4 {
  font-family: var(--sans); font-weight: 700; font-size: 20px;
  line-height: 1.15; margin: 0 0 8px;
}
.exo .process__step p {
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
}

/* ================================================================
   8) Reviews
   ================================================================ */
.exo .reviews { padding: var(--section-y) var(--pad-x); background: var(--paper); }
.exo .reviews__rating {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-weight: 800; font-size: 18px; color: var(--ink);
}
.exo .reviews__rating .sep { color: var(--ink-3); font-weight: 700; }
.exo .reviews__rating .src { font-weight: 800; color: var(--ink); }
.exo .reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.exo .review {
  background: var(--paper); border: 0; border-radius: 0;
  padding: 32px clamp(16px, 3vw, 28px) 28px;
  display: flex; flex-direction: column;
}
.exo .review__stars { color: var(--gold, #bd8742); font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; }
.exo .review__text {
  font-family: var(--sans); font-size: clamp(16px, 1.5vw, 18px); font-weight: 500; line-height: 1.6;
  flex: 1;
  margin-bottom: 22px;
}
.exo .review__author {
  display: flex; align-items: center; gap: 12px;
}
.exo .review__avatar { display: none; }
.exo .review__meta .n {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
}
.exo .review__meta .m { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ================================================================
   9) Contact — help block
   ================================================================ */
.exo .contact { background: var(--dark); color: #fff; padding: var(--section-y) var(--pad-x); }
.exo .contact__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.exo .contact__copy h2 { color: #fff; font-size: clamp(34px, 4.5vw, 56px); line-height: 1; margin-bottom: 18px; }
.exo .contact__copy .lead { font-size: 16px; line-height: 1.55; color: #bdbdb4; max-width: 46ch; }
.exo .contact__channels { display: flex; flex-direction: column; margin-top: 30px; border-top: 1px solid var(--line-dark); }
.exo .contact__ch {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px; border-radius: 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left .15s ease;
}
.exo .contact__ch:hover { padding-left: 10px; }
.exo .contact__ch .ico { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.exo .contact__ch .l { flex: 1; }
.exo .contact__ch .name { font-size: 13px; color: #bdbdb4; }
.exo .contact__ch .val { font-family: var(--sans); font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; margin-top: 2px; }
.exo .contact__ch .go { color: #7a7d8c; }

.exo .contact__form {
  background: var(--dark-2); border: 1px solid var(--line-dark);
  border-radius: 0; padding: 28px;
}
.exo .contact__form .formlabel {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: #7a7d8c;
  display: block; margin-bottom: 8px;
}
.exo .contact__form .field {
  background: none; border: 0; border-bottom: 1px solid var(--line-dark);
  border-radius: 0; padding: 10px 2px;
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 8px;
  transition: border-color .15s ease;
}
.exo .contact__form .field:focus-within { border-color: var(--accent); }
.exo .contact__form .field input,
.exo .contact__form .field textarea,
.exo .contact__form .field select {
  background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 15px; width: 100%; resize: vertical;
  font-family: inherit;
}
.exo .contact__form .field textarea { min-height: 90px; }
.exo .contact__form .field input::placeholder,
.exo .contact__form .field textarea::placeholder { color: #5a5d68; }
.exo .contact__form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exo .contact__form .row2 .field { margin-bottom: 0; }
.exo .contact__form .row2 + .field { margin-top: 14px; }
.exo .contact__form .btn { width: 100%; margin-top: 8px; }
.exo .contact__form .legal { font-size: 12px; color: #7a7d8c; margin-top: 12px; text-align: center; line-height: 1.5; }

/* ================================================================
   CART SIDEBAR
   ================================================================ */
.exo .cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 999px; border: 1px solid var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.35);
  cursor: pointer; font-weight: 500;
  transition: transform .15s ease, background .15s ease;
}
.exo .cart-fab:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.exo .cart-fab .ico { width: 18px; height: 18px; }
.exo .cart-fab .count {
  background: var(--accent); color: #fff; min-width: 22px; height: 22px;
  border-radius: 999px; padding: 0 7px;
  font-size: 12px; font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center;
}
.exo .cart-fab[hidden] { display: none !important; }

.exo .cart-overlay {
  position: fixed; inset: 0; background: rgba(13,15,21,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  z-index: 70;
}
.exo .cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.exo .cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: #fff; z-index: 80;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,.0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -16px 0 40px -10px rgba(0,0,0,.25);
}
.exo .cart.is-open { transform: translateX(0); }
.exo .cart__head { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.exo .cart__head h3 { font-size: 20px; margin: 0; }
.exo .cart__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.exo .cart__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.exo .cart__item:last-child { border-bottom: 0; }
.exo .cart__item .ph { width: 70px; height: 70px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--warm); }
.exo .cart__item .info { flex: 1; min-width: 0; }
.exo .cart__item .n { font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2; margin-bottom: 4px; }
.exo .cart__item .d { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.exo .cart__item .row { display: flex; justify-content: space-between; align-items: center; }
.exo .cart__qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); }
.exo .cart__qty button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.exo .cart__qty button:hover { background: var(--warm); }
.exo .cart__qty .q { min-width: 24px; text-align: center; font-size: 13px; font-weight: 500; }
.exo .cart__item .price { font-size: 14px; font-weight: 600; }
.exo .cart__item .remove { font-size: 12px; color: var(--muted); margin-top: 6px; text-decoration: underline; cursor: pointer; }
.exo .cart__empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.exo .cart__empty .ico { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--line); }
.exo .cart__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.exo .cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.exo .cart__total .l { font-size: 13px; color: var(--muted); }
.exo .cart__total .v { font-family: var(--sans); font-size: 22px; font-weight: 700; }
.exo .cart__foot .btn { width: 100%; }

/* ================================================================
   Demo-only floating language switcher
   In production this is handled by Polylang language switcher widget.
   ================================================================ */
.exo .langswitch-demo {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; display: flex; gap: 4px;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,.18);
}
.exo .langswitch-demo button {
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
}
.exo .langswitch-demo button.is-active { background: var(--ink); color: #fff; }
.exo .langswitch-demo button:hover:not(.is-active) { background: var(--warm); color: var(--ink); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .exo .truststrip { grid-template-columns: repeat(2, 1fr); }
  .exo .catalog__layout { grid-template-columns: 1fr; border-top: 0; }
  .exo .catalog__sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
  .exo .catalog__content { padding: 24px 0 0; }
  /* Category nav becomes a horizontal-scroll pill row on tablet/mobile
     — same pattern as .quickchips — instead of a tall vertical list. */
  .exo .catnav {
    flex-direction: row; gap: 10px; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .exo .catnav::-webkit-scrollbar { display: none; }
  .exo .catnav__item {
    flex: 0 0 auto; border-bottom: 0; padding: 8px 14px;
    background: var(--bg); border-radius: 999px;
  }
  .exo .catnav__item .c { color: inherit; opacity: .6; }
  .exo .catnav__item.is-active { background: var(--accent-soft); }
  .exo .catnav__item.is-active .c { color: var(--accent); opacity: 1; }
  .exo .process__grid { grid-template-columns: repeat(2, 1fr); }
  .exo .reviews__grid { grid-template-columns: 1fr; }
  .exo .contact__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .exo {
    --pad-x: 16px;
    --section-y: 48px;
    font-size: 14px;
  }
  .exo .hero { padding: 28px 16px 36px; }
  .exo .hero__h1 { font-size: 40px; }
  .exo .hero__sub { font-size: 15px; }
  /* Stacked, equal-width, equal-height buttons — flex-wrap with equal
     flex-grow on unequal text lengths ("Смотреть скрытые двери" vs
     "Консультация") produced mismatched widths and, at narrow
     widths, wrapped/overflowed into the row below. A column stack
     with width:100% sidesteps that arithmetic entirely. */
  .exo .hero__cta { flex-direction: column; gap: 14px; }
  .exo .hero__cta .btn { width: 100%; }
  .exo .hero__photo { aspect-ratio: 16 / 11; }
  .exo .truststrip { grid-template-columns: repeat(2, 1fr); }
  .exo .truststrip__item { padding: 16px; }
  .exo .section-head h2 { font-size: 32px; }
  .exo .catalog__resulthead { flex-direction: column; align-items: flex-start; gap: 6px; }
  .exo .pgrid, .exo .pgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .exo .pgrid .pcell:nth-child(3n) { border-right: 1px dashed var(--line); }
  .exo .pgrid .pcell:nth-child(2n),
  .exo .pgrid--4 .pcell:nth-child(2n) { border-right: 0; }
  .exo .popular__grid { grid-template-columns: repeat(2, 1fr); }
  .exo .popular__grid .card:nth-child(4n) { border-right: 1px dashed var(--line); }
  .exo .popular__grid .card:nth-child(2n) { border-right: 0; }
  .exo .process__grid { grid-template-columns: 1fr; }
  .exo .process__intro { width: 100%; }
  .exo .process__cta { width: 100%; }
  .exo .reviews__grid { grid-template-columns: 1fr; }
  .exo .contact__form .row2 { grid-template-columns: 1fr; }
  .exo .cart { width: 100vw; }
  .exo .quickchips { padding: 10px 16px; }
  .exo .langswitch-demo { left: 12px; bottom: 12px; }
}

/* ================================================================
   DESIGN REFINEMENT v1.3 / v1.6.1
   v1.3: calmer accent usage — pulled magenta off italic words,
   ratings, etc. v1.6.1 correction: section eyebrows are magenta on
   every section per the approved mockup (numbered 01…06, see item 2
   of the redesign correction) — the old "neutral eyebrow" override
   from v1.3 is gone.
   ================================================================ */
.exo { --gold: #bd8742; }

/* Lower-section italic accent words → ink (hero has no italic anymore) */
.exo .process h2 .accent,
.exo .process h2 .italic { color: var(--ink) !important; -webkit-text-fill-color: var(--ink); }

/* Contact block is dark → its italic accent becomes white, not pink */
.exo .contact h2 .italic { color: #fff !important; -webkit-text-fill-color: #fff; }

/* Per-review 5-star row: warm gold reads as "stars", calmer than magenta */
.exo .review__stars { color: var(--gold); }

/* Review quote marks adapt to language; admin stores clean text */
.exo .review__text::before { content: '\00AB'; }
.exo .review__text::after  { content: '\00BB'; }
.exo[lang="en"] .review__text::before { content: '\201C'; }
.exo[lang="en"] .review__text::after  { content: '\201D'; }

/* Georgian: shorter cap + steeper shrink so long words fit the track.
   (min-width:0 + overflow-wrap protection now lives directly on
   .hero__copy/.hero__h1/.hero__sub/.hero__photo — see § 2 Hero.) */
.exo[lang="ka"] .hero__h1 {
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.exo[lang="ka"] .hero__sub {
  font-size: clamp(14px, 1.4vw, 17px);
}

/* English/Russian keep a slightly tighter cap than before to stay safe */
.exo[lang="en"] .hero__h1,
.exo[lang="ru"] .hero__h1 {
  font-size: clamp(40px, 5.6vw, 78px);
}

/* pcell / card names: long Georgian names must wrap, never overflow */
.exo .pcell__name,
.exo .card__name { text-wrap: balance; overflow-wrap: anywhere; }

/* ================================================================
   Motion preference — the catalog's category/filter switch fades the
   product grid (~120ms); every hover micro-interaction elsewhere is
   a transform/color transition. Kill all of it if the visitor asked.
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .exo *, .exo *::before, .exo *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
  .exo .pgrid { transition: none; }
}
