/* ============================================================
   trisloenparket.bg — основен стил
   Funnel landing page: големи числа, силни CTA, светла дървесна визия
   Mobile-first, без външни шрифтове и библиотеки
   ============================================================ */

:root {
  --bg: #faf6ef;
  --surface: #fffdf8;
  --ink: #292016;
  --ink-soft: #5d5245;
  --wood: #a9713d;
  --wood-deep: #7c5227;
  --wood-dark: #3a2c1e;
  --cream: #f3ead9;
  --line: #e7dcc9;
  --ok: #3e6b3a;
  --viber: #7360f2;
  --whatsapp: #25d366;
  --cta: #c6281c;
  --cta-dark: #9e1d13;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(58, 44, 30, 0.08);
  --shadow-lift: 0 10px 30px rgba(58, 44, 30, 0.16);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* място за лепкавия CTA бар на мобилно */
  padding-bottom: 4.25rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.22;
  color: var(--wood-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }

p { margin: 0 0 1em; }

a { color: var(--wood-deep); }
a:hover { color: var(--wood); }

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.section { padding: 3.25rem 0; }

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-lead {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 0.7rem;
}

.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* Големи числа — акцентът на фунията */
.big-num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--wood-deep);
  letter-spacing: -0.02em;
}

.big-num small {
  font-size: 45%;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

/* ---------- Достъпност ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wood-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Хедър ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wood-dark);
  text-decoration: none;
  white-space: nowrap;
}

.logo svg { flex: 0 0 auto; }
.logo .tld { color: var(--wood); }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--wood-dark);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone svg { color: var(--cta); }
.header-phone:hover { color: var(--cta); }

/* по-висока специфичност от .btn, за да остане скрит на мобилно */
.site-header .header-cta { display: none; white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--wood-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--cta); }

/* ---------- Бутони ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 6px 16px rgba(198, 40, 28, 0.35);
}
.btn--primary:hover { background: var(--cta-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--wood-dark);
  border-color: var(--wood-deep);
}
.btn--ghost:hover { background: var(--cream); color: var(--wood-dark); }

.btn--big {
  font-size: 1.12rem;
  padding: 1rem 2.2rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 3.25rem 0 3rem;
  background:
    linear-gradient(160deg, rgba(250, 246, 239, 0.97) 40%, rgba(233, 216, 190, 0.85)),
    repeating-linear-gradient(
      90deg,
      #e9dcc6 0 140px,
      #e3d3ba 140px 141px,
      #ecdfca 141px 290px,
      #e0cfb4 290px 291px
    );
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  gap: 2rem;
}

.hero h1 { max-width: 17em; }

.hero-photo {
  margin: 0;
  align-self: center;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 65%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.hero-photo figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.2fr 0.8fr;
    column-gap: 3rem;
    align-items: center;
  }

  .hero .hero-facts { grid-column: 1 / -1; }

  .hero-photo img { aspect-ratio: 4 / 5; }
}

.hero-sub {
  max-width: 41rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.hero-sub strong { color: var(--wood-dark); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.25rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.85rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-facts .big-num { font-size: clamp(1.8rem, 6vw, 2.6rem); }

.hero-facts span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.3rem;
}

/* ---------- Лента с марки ---------- */

.brandbar {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
}

.brandbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.4rem;
}

.brandbar .lbl {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  flex-basis: 100%;
  text-align: center;
}

/* Униформен тъмен тон за всички лога, независимо от оригиналния им цвят */
.brandbar img {
  display: block;
  width: auto;
  filter: brightness(0);
  opacity: 0.55;
  transition: opacity 0.15s;
}

.brandbar a:hover img { opacity: 0.9; }

.brandbar .brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.15s;
}

.brandbar .brand-text:hover { opacity: 0.9; color: var(--ink); }

/* ---------- Структура (диаграма) ---------- */

.layers-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.layer-diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: layer;
}

.layer-list li {
  position: relative;
  padding-left: 3.1rem;
  counter-increment: layer;
}

.layer-list li::before {
  content: counter(layer);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--wood-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.layer-list strong { color: var(--wood-dark); }

/* ---------- Карти (предимства, ъпсели) ---------- */

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
}

.card svg { flex: 0 0 auto; color: var(--wood); }

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* ---------- Ценови карти ---------- */

.price-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.price-card--hot {
  border: 2px solid var(--cta);
  box-shadow: var(--shadow-lift);
}

.badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.price-card .from {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.price-card .big-num { margin: 0.15rem 0 0.9rem; }

.check-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.price-card .btn { margin-top: auto; }

.price-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1.1rem;
}

/* ---------- Продуктови карти (избрани модели) ---------- */

.product-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  margin: 0;
}

.product-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-class,
.product-promo {
  position: absolute;
  top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.product-class {
  left: 0.75rem;
  background: rgba(41, 32, 22, 0.82);
  color: #f3ead9;
}

.product-promo {
  right: 0.75rem;
  background: var(--cta);
  color: #fff;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
}

.product-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.product-brand {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.product-specs {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.product-specs li {
  position: relative;
  padding-left: 1.1rem;
}

.product-specs li::before {
  content: "·";
  position: absolute;
  left: 0.2rem;
  color: var(--wood);
  font-weight: 700;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--wood-deep);
  margin: 0 0 1rem;
}

.product-price del {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-right: 0.35rem;
}

.product-card .btn {
  margin-top: auto;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a:hover { color: var(--cta); }

.product-media { display: block; }

/* ---------- Каталог: филтри ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters select {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.filters .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

.filter-count {
  margin-left: auto;
  font-weight: 700;
  color: var(--wood-deep);
  font-size: 0.95rem;
  white-space: nowrap;
}

.product-grid--catalog { margin-top: 1.5rem; }

.filter-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cta);
  white-space: nowrap;
  cursor: pointer;
}

/* ---------- Консултационна лента (под hero) ---------- */

.consult-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.consult-inner {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.consult-strip h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.consult-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.consult-points li {
  position: relative;
  padding-left: 1.5rem;
}

.consult-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

@media (min-width: 760px) {
  .consult-inner { grid-template-columns: 1fr auto; }
}

/* ---------- Падащо меню в навигацията ---------- */

.site-nav .caret { font-size: 0.7em; opacity: 0.6; }

/* На мобилно подточките се показват като вложен списък */
.site-nav .sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
}

.site-nav .sub a { font-size: 0.95em; }

/* ---------- Промо секция и спестявания ---------- */

.section--promo {
  background: linear-gradient(180deg, rgba(198, 40, 28, 0.06), rgba(198, 40, 28, 0.02));
  border-block: 1px solid var(--line);
}

.savings-note {
  color: var(--ok);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

/* ---------- Рейтинг линия и карта ---------- */

.rating-line {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.rating-line a {
  color: var(--ink-soft);
  text-decoration: none;
}

.rating-line a:hover { color: var(--cta); }

.rating-line .review-stars { margin-right: 0.3rem; }

.map-wrap {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Отзиви ---------- */

.review-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.review-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.review-stars {
  color: #d9930d;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
}

.review-card p {
  margin: 0.6rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.review-card footer {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--wood-dark);
}

/* ---------- Калкулатор (ceni.html) ---------- */

.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.calc-fields {
  display: grid;
  gap: 1rem;
}

.calc .field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--wood-dark);
}

.calc .field input,
.calc .field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.calc .field--check label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 600;
}

.calc .field--check input { width: auto; }

.calc-result {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
}

.calc-result ul {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
}

.calc-total {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wood-deep);
  margin: 0.4rem 0 0.8rem;
}

@media (min-width: 760px) {
  .calc-fields { grid-template-columns: 1fr 1.3fr 1.3fr; }
  .calc .field--check { grid-column: 1 / -1; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Мини-калкулатор (продуктова страница) ---------- */

.mini-calc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.2rem;
}

.mini-calc label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood-dark);
  margin-bottom: 0.4rem;
}

.mini-calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.mini-calc input {
  width: 7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
}

.mini-calc-result {
  font-size: 1.05rem;
  color: var(--ink);
}

.mini-calc-result strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--wood-deep);
}

.mini-calc-result small {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 0;
}

/* ---------- Продуктова страница ---------- */

.product-detail {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.product-detail-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: start;
}

.product-detail-media img {
  display: block;
  width: 100%;
  height: auto;
}

.product-price--big {
  font-size: 2.1rem;
  margin: 0.4rem 0 0.3rem;
}

.product-price--big del {
  font-size: 1.15rem;
}

.product-promo--inline {
  position: static;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-size: 0.72rem;
}

.product-desc {
  max-width: 46rem;
  margin-top: 1.6rem;
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .product-detail { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* ---------- Галерия: реални снимки от монтажи ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  display: block;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.25s ease;
}

a.gallery-item:hover img,
a.gallery-item:focus-visible img { transform: scale(1.04); }

@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  .gallery-grid--three { grid-template-columns: repeat(3, 1fr); }
}

/* Вертикално видео от монтаж */
.video-figure {
  margin: 2rem auto 0;
  max-width: 24rem;
}

.video-figure video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--wood-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.video-figure figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Статии (блог) ---------- */

.wrap--narrow {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.breadcrumbs a {
  color: var(--wood-deep);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

.breadcrumbs--dark,
.breadcrumbs--dark a { color: #c9b896; }

.article-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: -0.2rem 0 2rem;
}

.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.6rem; }

.article ul li,
.article ol li { margin-bottom: 0.4rem; }

/* Кратък отговор — блокът за featured snippet в началото на статия */
.quick-answer {
  background: var(--cream);
  border-left: 4px solid var(--cta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.8rem;
}

.quick-answer p { margin: 0; font-size: 1.05rem; }
.quick-answer strong { color: var(--wood-dark); }

.sources {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.sources ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.sources li { margin-bottom: 0.2rem; }

.article .table-scroll { margin: 1.4rem 0; }

.article .layer-diagram { margin: 1.6rem 0; }

.cta-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  margin: 2.4rem 0;
  text-align: center;
}

.cta-box p {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-weight: 600;
}

.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-top: 2.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.author-box svg {
  flex: 0 0 auto;
  color: var(--wood);
  margin-top: 0.2rem;
}

.author-box strong {
  display: block;
  color: var(--wood-dark);
  margin-bottom: 0.25rem;
}

/* Карти-връзки към статии (начална страница и „още по темата“) */

.card--link h3 { font-size: 1.08rem; }

.card--link h3 a {
  color: inherit;
  text-decoration: none;
}

.card--link h3 a:hover { color: var(--cta); }

.card--link .read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cta);
}

/* ---------- Таблици ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 36rem;
}

caption {
  text-align: left;
  padding: 1rem 1.1rem 0.4rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--wood-dark);
}

th, td {
  padding: 0.75rem 1.1rem;
  text-align: left;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--cream);
  color: var(--wood-dark);
  border-top: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody th {
  font-weight: 600;
  color: var(--wood-dark);
}

td.hl { background: rgba(198, 40, 28, 0.05); }

.t-good { color: var(--ok); font-weight: 600; }
.t-bad { color: #9c4a2f; }

/* ---------- Стъпки (монтаж) ---------- */

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.step h3 { margin-bottom: 0.4rem; }

.step .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wood-deep);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.6rem;
}

.step .price-line {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cta);
  margin: 0.4rem 0 0.2rem;
}

.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wood-dark);
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-family: var(--font-sans);
  color: var(--cta);
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details > div {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
}

.faq-list details > div p:last-child { margin-bottom: 0; }

/* ---------- Оферта (тъмна CTA секция) ---------- */

.offer {
  background:
    linear-gradient(160deg, rgba(41, 32, 22, 0.96), rgba(58, 44, 30, 0.94)),
    repeating-linear-gradient(90deg, #4a3826 0 120px, #3f2f1f 120px 240px);
  color: #f3ead9;
}

.offer h2, .offer h3 { color: #fff; }
.offer .section-lead { color: #d9cbb5; }
.offer a { color: #ecd9ba; }

.offer-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.offer-contacts {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.offer-contacts .item {
  border-left: 3px solid var(--wood);
  padding-left: 1rem;
}

.offer-contacts .item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9b896;
  margin-bottom: 0.15rem;
}

.offer-contacts .item a {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.offer-contacts .item a:hover { color: #fff; }

.chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  color: #fff !important;
}

.chat-btn svg { flex: 0 0 auto; }
.chat-btn--viber { background: var(--viber); }
.chat-btn--viber:hover { background: #5d4bd8; }
.chat-btn--whatsapp { background: var(--whatsapp); }
.chat-btn--whatsapp:hover { background: #1eb055; }

.offer-form {
  display: grid;
  gap: 1rem;
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(243, 234, 217, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #ecdfc8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(243, 234, 217, 0.35);
  background: rgba(250, 246, 239, 0.97);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--cta);
  outline-offset: 1px;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.offer-form .btn { justify-self: start; }

.form-note {
  font-size: 0.85rem;
  color: #c9b896;
  margin: 0;
}

/* ---------- Плаващи чат бутони ---------- */

.chat-float {
  position: fixed;
  right: 1rem;
  bottom: 5.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 95;
}

.chat-float a {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s;
}

.chat-float a:hover { transform: scale(1.08); color: #fff; }
.chat-float .viber { background: var(--viber); }
.chat-float .whatsapp { background: var(--whatsapp); }

/* ---------- Лепкав CTA бар (мобилно) ---------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

.mobile-cta .call {
  background: var(--surface);
  color: var(--wood-dark);
}

.mobile-cta .quote {
  background: var(--cta);
  color: #fff;
}

/* ---------- Футър ---------- */

.site-footer {
  background: var(--wood-dark);
  color: #cbbda6;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a { color: #ecd9ba; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid nav ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(236, 217, 186, 0.2);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

/* ============================================================
   По-големи екрани
   ============================================================ */

@media (min-width: 640px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .price-cards { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .brandbar .lbl { flex-basis: auto; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }

  .section { padding: 4.75rem 0; }

  .mobile-cta { display: none; }

  .chat-float { bottom: 1.25rem; right: 1.25rem; }

  .site-header .header-cta { display: inline-block; padding: 0.55rem 1.2rem; font-size: 0.9rem; }

  .hero { padding: 5rem 0 4.25rem; }

  .layers-grid { grid-template-columns: 1.1fr 1fr; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .offer-grid { grid-template-columns: 1.1fr 1.6fr; }
}

/* Пълната навигация се събира с 8-те линка едва от ~1060px нагоре;
   под това остава хамбургер менюто (CTA бутонът е видим от 900px). */
@media (min-width: 1060px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav > ul {
    display: flex;
    gap: 1.1rem;
    padding: 0;
  }

  .site-nav a {
    border: 0;
    padding: 0.25rem 0;
    font-size: 0.95rem;
  }

  .site-nav li { position: relative; }

  .site-nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -0.9rem;
    min-width: 14rem;
    padding: 0.45rem 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lift);
    z-index: 120;
  }

  .site-nav li:hover > .sub,
  .site-nav li:focus-within > .sub { display: block; }

  .site-nav .sub li { position: static; }

  .site-nav .sub a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .site-nav .sub a:hover { background: var(--cream); }
}

/* Телефонът в хедъра — само когато има място покрай пълната навигация */
@media (min-width: 1240px) {
  .header-phone { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
