/* Колормикс-Брусчатка — site-specific overrides and additions */

/* ===== AOS fallback: если JS не загрузился — показываем контент ===== */
/* Защита от «пустого экрана» если AOS не успел инициализироваться */
html:not(.aos-loaded) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.aos-loaded [data-aos] {
  /* AOS сам управляет видимостью */
}

/* На мобилке отключаем все AOS-эффекты — там скролл важнее анимаций */
@media (max-width: 767px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Header: разное поведение на главной и внутренних ===== */
/* Главная: header прозрачный над hero (как у Strive по умолчанию),
            при скролле становится белым с тёмным текстом.
   Внутренние: header всегда белый — иначе сливался с тёмным page-hero. */

/* Внутренние страницы — всегда сплошной белый, и в т.ч. при scroll */
body:not(.index-page) .header,
body:not(.index-page).scrolled .header {
  --background-color: #ffffff !important;
  --default-color: #1c1612 !important;
  --heading-color: #1c1612 !important;
  --nav-color: #4a3f3a !important;
  --nav-hover-color: var(--accent-color) !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 14px -8px rgba(28, 22, 18, 0.18);
  border-bottom: 1px solid var(--border-soft);
}
/* Логотип и телефон тёмные на белом */
body:not(.index-page) .header .logo .sitename,
body:not(.index-page) .header .header-phone a {
  color: var(--heading-color) !important;
}

/* Главная при скролле — переопределяем серый дефолт Strive на белый */
body.index-page.scrolled .header {
  --background-color: #ffffff;
  --default-color: #1c1612;
  --heading-color: #1c1612;
  --nav-color: #4a3f3a;
  --nav-hover-color: var(--accent-color);
  background-color: #ffffff !important;
  box-shadow: 0 2px 14px -8px rgba(28, 22, 18, 0.18);
}
/* Главная при скролле — phone и логотип тоже тёмные */
body.index-page.scrolled .header .header-phone a,
body.index-page.scrolled .header .logo .sitename {
  color: var(--heading-color);
}

/* ===== Header logo ===== */
.header .logo {
  text-decoration: none;
}
.header .logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
  margin-right: 10px;
}
@media (max-width: 991px) {
  .header .logo .logo-img { height: 38px; }
}
@media (max-width: 575px) {
  .header .logo .logo-img { height: 34px; }
}

/* Текстовое лого справа от картинки */
.header .logo .sitename {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  line-height: 1;
}
.header .logo .sitename .accent {
  color: var(--accent-color);
}
@media (max-width: 575px) {
  .header .logo .sitename { font-size: 20px; }
}

/* ===== Footer logo ===== */
.footer .footer-content .logo {
  text-decoration: none;
}
.footer .footer-logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.header .logo .tagline {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-left: 8px;
  font-weight: 500;
}
.header .header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 18px;
  font-family: var(--heading-font);
  line-height: 1.2;
}
.header .header-phone a {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.header .header-phone a:hover { color: var(--accent-color); }
.header .header-phone small {
  font-size: 11px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 400;
}
@media (max-width: 991px) {
  .header .header-phone { margin-right: 8px; }
  .header .header-phone a { font-size: 15px; }
  .header .header-phone small { display: none; }
}

/* ===== Hero per-slide centered content ===== */
/* Контент каждого слайда (заголовок + лид + кнопки + бэйджи) лежит
   ВНУТРИ .carousel-item и позиционируется поверх картинки.
   Меняется и анимируется при смене слайда. */

.hero .carousel-item .slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;          /* выше затемнения (z:2) и картинки (z:1) */
  padding: 90px 0 100px;
  text-align: center;
  color: #fff;
  pointer-events: none; /* клики проходят сквозь — но включаем для кнопок */
}
.hero .carousel-item .slide-content > .container { pointer-events: auto; }

/* Заголовок (H1 на 1-м слайде, H2 на остальных) */
.hero .slide-h {
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 22px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;

  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1),
              transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.hero .carousel-item.active .slide-h {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* Лид-абзац */
.hero .slide-lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 880px;
  margin: 0 auto 28px;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero .carousel-item.active .slide-lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

/* CTA-кнопки */
.hero .slide-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero .carousel-item.active .slide-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* Бэйджи преимуществ */
.hero .slide-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero .carousel-item.active .slide-badges {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.75s;
}
.hero .slide-badges .badge-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.hero .slide-badges .badge-item i {
  margin-right: 6px;
  color: #ffce8e;
}

/* Усиливаем тёмное затемнение картинок для читаемости текста сверху */
.hero .carousel-item::before {
  background: linear-gradient(135deg,
    rgba(15, 9, 6, 0.65),
    rgba(15, 9, 6, 0.45)) !important;
  z-index: 2;
}

/* Адаптив */
@media (max-width: 992px) {
  .hero .slide-h { font-size: clamp(24px, 4vw, 36px); }
  .hero .slide-lead { font-size: 14px; }
}
@media (max-width: 768px) {
  .hero .carousel-item .slide-content { padding: 110px 0 90px; }
  .hero .slide-h { font-size: 22px; margin-bottom: 14px; }
  .hero .slide-lead { font-size: 13px; margin-bottom: 18px; }
  .hero .slide-cta { margin-bottom: 18px; }
  .hero .slide-badges .badge-item { font-size: 11px; padding: 6px 12px; }
}

/* prefers-reduced-motion — отключаем CSS-анимации, но JS-cycle продолжает работу */
@media (prefers-reduced-motion: reduce) {
  .hero .slide-h,
  .hero .slide-lead,
  .hero .slide-cta,
  .hero .slide-badges {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Carousel indicators (точки) ===== */
.hero .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
  z-index: 15;
  gap: 8px;
}
.hero .carousel-indicators [data-bs-target] {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: background 0.3s ease, width 0.3s ease;
  margin: 0;
}
.hero .carousel-indicators [data-bs-target]:hover {
  background: rgba(255, 255, 255, 0.6);
}
.hero .carousel-indicators .active {
  background: var(--accent-color);
  width: 52px;
}

/* ===== Carousel arrows (стрелки) =====
   Используем Bootstrap Icons (.bi-chevron-*) вместо дефолтных SVG —
   так у нас полный контроль над размером и цветом. */
.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 80px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 12;
}
.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next {
  opacity: 1;
}
/* Прячем дефолтные Bootstrap-иконки (если HTML их ещё содержит) */
.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  display: none !important;
}
/* Наши иконки на основе Bootstrap Icons */
.hero .carousel-control-prev .bi,
.hero .carousel-control-next .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 24px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero .carousel-control-prev:hover .bi,
.hero .carousel-control-next:hover .bi {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.08);
}
@media (max-width: 768px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 56px;
  }
  .hero .carousel-control-prev .bi,
  .hero .carousel-control-next .bi {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .hero .carousel-control-prev,
  .hero .carousel-control-next { display: none; }
}

/* ===== Hero overrides ===== */
.hero h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero .badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.hero .badges .badge-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.hero .badges .badge-item i {
  margin-right: 6px;
  color: #ffce8e;
}

/* ===== Section utilities ===== */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ===== Product cards (catalog grid) ===== */
.product-card {
  background: var(--surface-color);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(28, 22, 18, 0.28);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}
.product-card .product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f5efe6;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-color);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.product-card .product-info {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 6px;
  font-weight: 600;
}
.product-card .product-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--heading-color);
}
.product-card .product-title a { color: inherit; }
.product-card .product-title a:hover { color: var(--accent-color); }
.product-card .product-meta {
  display: flex;
  flex-direction: column;     /* стек — размер сверху, цвета снизу */
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 12px;
}
.product-card .product-meta span {
  display: inline-flex;
  align-items: flex-start;    /* иконка прижимается к началу, если текст переносится */
  gap: 6px;
  white-space: normal;        /* размер может переноситься по словам */
  word-break: break-word;
}
.product-card .product-meta span i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
}
/* «6 цв.» — короткая метка, держим в одну строку */
.product-card .product-meta .meta-colors {
  white-space: nowrap;
}
.product-card .product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card .product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--heading-color);
  font-family: var(--heading-font);
}
.product-card .product-price small {
  font-size: 12px;
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}
.product-card .btn-product {
  background: var(--heading-color);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}
.product-card .btn-product:hover {
  background: var(--accent-color);
  color: #fff;
}

/* ===== Catalog category nav ===== */
.catalog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.catalog-categories button,
.catalog-categories a {
  background: var(--surface-color);
  border: 1px solid var(--border-soft);
  color: var(--default-color);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}
.catalog-categories button:hover,
.catalog-categories a:hover,
.catalog-categories button.active,
.catalog-categories a.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* ===== Product detail page ===== */
.product-detail {
  padding-top: 120px;
  padding-bottom: 60px;
}
.product-gallery .main-image {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery .thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}
.product-gallery .thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: #ffffff;
}
.product-gallery .thumb.active { border-color: var(--accent-color); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-block h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--heading-color);
}
.product-info-block .price-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0;
  padding: 18px 22px;
  background: var(--background-color);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.product-info-block .price-block .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-color);
  font-family: var(--heading-font);
  line-height: 1;
}
.product-info-block .price-block .unit {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 15px;
}

.product-spec-table {
  width: 100%;
  margin: 18px 0;
}
.product-spec-table tr td {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14px;
}
.product-spec-table tr td:first-child {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  width: 45%;
}
.product-spec-table tr td:last-child {
  font-weight: 600;
  color: var(--heading-color);
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.product-colors .color-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-soft);
  cursor: pointer;
  position: relative;
}
.product-colors .color-chip:hover { transform: scale(1.08); }
.product-colors .color-chip[data-active="true"] {
  box-shadow: 0 0 0 2px var(--accent-color);
}

/* ===== Калькулятор стоимости ===== */
.calc-card {
  background: var(--surface-color);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}
.calc-card .calc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}
.calc-card input,
.calc-card select,
.calc-card input[type="number"],
.calc-card input[type="text"] {
  width: 100% !important;
  height: auto !important;
  padding: 14px 18px !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1f2937 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  box-sizing: border-box;
}
.calc-card select {
  padding-right: 44px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 8px !important;
}
.calc-card input:focus,
.calc-card select:focus {
  outline: none !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%) !important;
}
.calc-card .form-row { margin-bottom: 20px; }
.calc-card .calc-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin: 28px 0 14px;
}
/* Карточка-чекбокс для допуслуг */
.addon-card {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface-color);
  border: 2px solid var(--border-soft);
  border-left: 4px solid var(--border-soft);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all .2s;
  user-select: none;
}
.addon-card:hover {
  border-color: color-mix(in srgb, var(--accent-color), #fff 55%);
  border-left-color: color-mix(in srgb, var(--accent-color), #fff 55%);
}
.addon-card.checked {
  background: color-mix(in srgb, var(--accent-color), #fff 93%);
  border-color: var(--accent-color);
  border-left-color: var(--accent-color);
}
.addon-card .check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  flex-shrink: 0;
  margin-right: 14px;
  position: relative;
  transition: all .15s;
}
.addon-card.checked .check-box {
  background: var(--accent-color);
  border-color: var(--accent-color);
}
.addon-card.checked .check-box::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.addon-card .addon-info { flex: 1; }
.addon-card .addon-info .addon-title {
  font-weight: 600;
  color: var(--heading-color);
  font-size: 15px;
  line-height: 1.3;
}
.addon-card .addon-info .addon-meta {
  color: #6b7280;
  font-size: 13px;
  margin-top: 2px;
}
.addon-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.conditional-fields {
  padding: 14px 16px 0 36px;
  margin-top: -6px;
  margin-bottom: 12px;
}
.conditional-fields[hidden] { display: none; }
/* Правый блок результата */
.calc-result {
  background: var(--heading-color);
  color: #fff;
  border-radius: 14px;
  padding: 30px;
}
.calc-result .calc-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.calc-result .calc-result-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-color), transparent 78%);
  color: var(--accent-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.calc-result .calc-result-head h3 {
  margin: 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.calc-result .row-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  gap: 12px;
}
.calc-result .row-line span:first-child { color: rgba(255,255,255,.7); flex: 1; }
.calc-result .row-line span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.calc-result .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0 4px;
  margin-top: 6px;
  gap: 12px;
  flex-wrap: nowrap;
}
.calc-result .total span:first-child {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 1;
  min-width: 0;
}
.calc-result .total span:last-child {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-color);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .calc-result .total { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 16px; }
  .calc-result .total span:first-child { font-size: 15px; }
  .calc-result .total span:last-child { font-size: 28px; text-align: right; }
}
.calc-result .calc-disclaimer {
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: rgba(255,255,255,.75);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0 22px;
  border-left: 3px solid var(--accent-color);
}
.calc-result .calc-empty { text-align: center; padding: 22px 18px 28px; margin-bottom: 6px; }
.calc-result .calc-empty-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.calc-result .calc-empty h4 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.calc-result .calc-empty p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 320px;
}
.calc-lead-form { margin-top: 8px; }
.calc-lead-form .lead-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.calc-lead-form input {
  width: 100% !important;
  padding: 13px 14px 13px 42px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 9px !important;
  color: #fff !important;
  font-size: 14px !important;
  margin-bottom: 10px;
}
.calc-lead-form input::placeholder { color: rgba(255,255,255,.4); }
.calc-lead-form input:focus {
  border-color: var(--accent-color) !important;
  background: rgba(255,255,255,.10) !important;
}
.calc-lead-input-wrap { position: relative; }
.calc-lead-input-wrap i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-65%);
  color: rgba(255,255,255,.4);
  font-size: 14px;
  pointer-events: none;
}
.calc-lead-form .calc-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.calc-lead-form .calc-submit-btn:hover { background: color-mix(in srgb, var(--accent-color), #000 14%); }
.calc-lead-form .calc-submit-btn:disabled { opacity: .6; cursor: default; }
.calc-lead-form .form-message { text-align: center; font-weight: 600; margin-top: 12px; }

/* ===== Quote form ===== */
.quote-form {
  background: var(--surface-color);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px;
}
.quote-form h3 {
  margin-bottom: 8px;
  font-weight: 800;
}

/* ===== Trust strip ===== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  justify-content: center;
  align-items: center;
  padding: 22px 0;
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}
.trust-strip .trust-item i { color: var(--accent-color); font-size: 18px; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--heading-color);
  color: #fff;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent-color), transparent 75%), transparent 50%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  position: relative;
}
.page-hero .breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  position: relative;
}
.page-hero .breadcrumbs a { color: var(--accent-color); }
.page-hero .lead {
  margin-top: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  position: relative;
}

/* ===== City list ===== */
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.city-list a {
  display: block;
  background: var(--surface-color);
  border: 1px solid var(--border-soft);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--heading-color);
  transition: 0.2s;
}
.city-list a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateX(4px);
}

/* ===== Article (blog post) ===== */
.article-body { font-size: 17px; line-height: 1.75; color: var(--default-color); }
.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 36px 0 14px;
  color: var(--heading-color);
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--heading-color);
}
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 14px 22px;
  background: var(--background-color);
  margin: 22px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

/* ===== Brand button overrides (Bootstrap btn-primary → наш брик) ===== */
.btn-primary,
.btn-get-started,
.btn-pricing,
button[type="submit"]:not(.btn-outline):not(.btn-outline-dark):not(.btn-outline-light) {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-get-started:hover,
.btn-pricing:hover,
button[type="submit"]:not(.btn-outline):not(.btn-outline-dark):not(.btn-outline-light):hover {
  background-color: var(--accent-color-darker) !important;
  border-color: var(--accent-color-darker) !important;
  color: #fff !important;
}
.btn-outline-dark { border-color: var(--heading-color); color: var(--heading-color); }
.btn-outline-dark:hover { background: var(--heading-color); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.65); color: #fff; border-radius: 50px; padding: 10px 30px; }
.btn-outline-light:hover { background: #fff; color: var(--heading-color); border-color: #fff; }

/* ===== Hero CTA buttons: одинаковый размер + текст по центру =====
   Применяется и к старому .info-блоку, и к новым .slide-cta внутри слайдов. */
.hero .info .btn-get-started,
.hero .info .btn-outline-light,
.hero .slide-cta .btn-get-started,
.hero .slide-cta .btn-outline-light,
.hero .slide-cta .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--heading-font) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  margin: 0 !important;
  transition: 0.3s !important;
  min-height: 48px !important;
  text-align: center !important;
  vertical-align: middle !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Главная брик-кнопка */
.hero .slide-cta .btn-get-started {
  background: var(--accent-color) !important;
  color: #fff !important;
  border: 2px solid var(--accent-color) !important;
}
.hero .slide-cta .btn-get-started:hover {
  background: var(--accent-color-darker) !important;
  border-color: var(--accent-color-darker) !important;
}

/* Контурная кнопка на тёмном hero */
.hero .info .btn-outline-light,
.hero .slide-cta .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  color: #fff !important;
  background: transparent !important;
}
.hero .info .btn-outline-light:hover,
.hero .slide-cta .btn-outline-light:hover {
  background: #fff !important;
  color: var(--accent-color) !important;
  border-color: #fff !important;
}

/* ===== Services cards: показываем иконки ВСЕГДА ===== */
/* Strive по умолчанию делает icon-box с brick-фоном, а иконку — white.
   Из-за одинакового цвета на нашей теме иконка терялась. Делаем явный контраст. */
#services .service-card .icon-box {
  background-color: var(--accent-color) !important;
  height: 70px;
  width: 70px;
}
#services .service-card .icon-box i {
  color: #fff !important;
  font-size: 30px !important;
}
#services .service-card:hover .icon-box {
  background-color: var(--heading-color) !important;
}
#services .service-card:hover .icon-box i {
  color: #fff !important;
}

/* ===== Product card: всегда белый фон у фото ===== */
.product-card {
  background: #ffffff;
}
.product-card .product-img {
  background: #ffffff;
}
.light-background .product-card,
.light-background .product-card .product-img {
  background: #ffffff;
}

/* ===== Contact widget (replaces single whatsapp-fab) ===== */
.contact-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  /* Контейнер прозрачен для кликов — кликабельны только конкретные дети ниже.
     Без этого закрытый виджет занимал место и блокировал клики поверх контента. */
  pointer-events: none;
}
/* Кнопка-тоггл всегда кликабельна */
.contact-widget .cw-toggle {
  pointer-events: auto;
}
.contact-widget .cw-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;  /* закрыт — клики проходят сквозь */
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.contact-widget.open .cw-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;  /* открыт — действия кликабельны */
}
.contact-widget .cw-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--heading-color);
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.contact-widget .cw-action:hover { transform: translateX(-4px); }
.contact-widget .cw-action .cw-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-widget .cw-action[data-kind="call"]    .cw-ico { background: var(--accent-color); }
.contact-widget .cw-action[data-kind="callback"] .cw-ico { background: var(--heading-color); }
.contact-widget .cw-action[data-kind="whatsapp"] .cw-ico { background: #25D366; }
.contact-widget .cw-action[data-kind="telegram"] .cw-ico { background: #229ED9; }

.contact-widget .cw-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 14px 30px -10px rgba(181, 74, 42, 0.65);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.contact-widget .cw-toggle:hover { transform: scale(1.06); }
.contact-widget.open .cw-toggle { transform: rotate(45deg); background: var(--heading-color); }

/* Scroll-top перенесён на левую сторону, чтобы не пересекался с виджетом */
.scroll-top {
  right: auto !important;
  left: 22px !important;
  bottom: 22px;
}

@media (max-width: 768px) {
  .contact-widget { right: 16px; bottom: 16px; }
  .contact-widget .cw-toggle { width: 54px; height: 54px; font-size: 22px; }
  .contact-widget .cw-action { padding: 8px 14px 8px 12px; font-size: 13px; }
  .scroll-top { left: 16px !important; bottom: 16px; }
}

/* ===== Portfolio teaser: одинаковая высота карточек на главной ===== */
.portfolio-teaser-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #f0e8db;
}
.portfolio-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-teaser-img:hover img { transform: scale(1.04); }

/* ===== Blog teaser: 4 колонки, чистый минималистичный дизайн ===== */
.recent-posts .recent-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.25s ease;
}
.recent-posts .recent-post:hover { transform: translateY(-4px); }
.recent-posts .recent-post .recent-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 16px;
}
.recent-posts .recent-post .recent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.6s ease;
}
.recent-posts .recent-post:hover .recent-img img { transform: scale(1.06); }
.recent-posts .recent-post .recent-img::after {
  /* Нижний градиент для красивого «вписывания» картинки */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(28, 22, 18, 0.3), transparent);
  pointer-events: none;
  border-radius: 0 0 14px 14px;
}
.recent-posts .recent-post .recent-content {
  padding: 0 4px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recent-posts .recent-post .category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}
.recent-posts .recent-post .category::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent-color);
}
.recent-posts .recent-post .recent-title {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 700;
}
.recent-posts .recent-post .recent-title a { color: var(--heading-color); }
.recent-posts .recent-post .recent-title a:hover { color: var(--accent-color); }
.recent-posts .recent-post .recent-meta {
  margin-top: auto;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.recent-posts .recent-post .recent-meta .author {
  font-weight: 600;
  color: var(--heading-color);
}
.recent-posts .recent-post .recent-meta .author::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-color);
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== Mobile: уменьшаем padding header'а ===== */
@media (max-width: 991px) {
  .header .container { padding-left: 14px; padding-right: 14px; }
  .header .cta-btn { padding: 8px 18px; font-size: 14px; margin-left: 8px; }
  .header .logo .sitename { font-size: 22px; }
}
@media (max-width: 575px) {
  .header .container { padding-left: 10px; padding-right: 10px; }
  .header .cta-btn { padding: 7px 14px; font-size: 13px; }
  .header .logo .sitename { font-size: 20px; }
  .header .header-phone { display: none !important; }
}

/* ===== About badges: убираем на мобильных, чтобы не наезжали на текст ===== */
@media (max-width: 991px) {
  .about .experience-badge,
  .about .projects-badge {
    display: none !important;
  }
  .about .about-img { margin-bottom: 24px; }
}

/* ===== Section title: чтобы заголовки не пересекались на мобильном ===== */
@media (max-width: 767px) {
  .section-title h2,
  section h2 {
    font-size: 26px !important;
    line-height: 1.25 !important;
    word-wrap: break-word;
  }
  .page-hero h1 { font-size: 26px !important; line-height: 1.25 !important; }
  .display-4, .display-5 { font-size: 26px !important; line-height: 1.25 !important; }
}

/* ===== Mobile fixes ===== */
@media (max-width: 768px) {
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 30px; }
  .product-info-block h1 { font-size: 24px; }
  .product-info-block .price-block .price { font-size: 28px; }
}

/* ===== Модальная форма «Заказать звонок» ===== */
#callbackModal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
}
#callbackModal .modal-header {
  background: var(--heading-color);
  border-bottom: none;
  padding: 18px 24px;
}
#callbackModal .modal-title {
  color: #fff;
  font-weight: 700;
}
#callbackModal .modal-header .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.85;
}
#callbackModal .modal-header .btn-close:hover { opacity: 1; }
#callbackModal .modal-body { padding: 24px; }
#callbackModal .form-message { text-align: center; font-weight: 600; }

/* ===== MAX messenger (белый PNG-логотип, подгоняется под контекст) ===== */
.contact-widget .cw-action[data-kind="max"] .cw-ico {
  background: linear-gradient(135deg, #2d8cff 0%, #6a5ae0 100%);
}
.contact-widget .cw-action .cw-ico .max-ico { width: 20px; height: 20px; }
/* Футер: соседние иконки-шрифты полупрозрачные-светлые на тёмном фоне */
.footer .social-links a .max-ico {
  width: 17px; height: 17px;
  opacity: .7;
  transition: opacity .3s;
}
.footer .social-links a:hover .max-ico { opacity: 1; }
/* Форма контактов: соседние иконки тёмные на светлом кружке → белый PNG красим в тёмный */
.contact .contact-form-container .php-email-form .social-links a .max-ico {
  width: 17px; height: 17px;
  filter: brightness(0);
  opacity: .82;
  transition: filter .3s, opacity .3s;
}
.contact .contact-form-container .php-email-form .social-links a:hover .max-ico {
  filter: none;
  opacity: 1;
}
/* MAX внутри обычной кнопки .btn (страница доставки) */
.btn .max-ico { width: 18px; height: 18px; vertical-align: -3px; }

/* ===== Таблица зон доставки — карточки на мобильном ===== */
@media (max-width: 575px) {
  .delivery-zones thead { display: none; }
  .delivery-zones,
  .delivery-zones tbody,
  .delivery-zones tr,
  .delivery-zones td { display: block; width: 100%; }
  .delivery-zones { background: transparent !important; }
  .delivery-zones tr {
    background: var(--surface-color);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  .delivery-zones td {
    border: none !important;
    padding: 4px 0 !important;
    text-align: left !important;
    font-size: 14px;
  }
  .delivery-zones td:first-child {
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 8px !important;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-soft) !important;
  }
  .delivery-zones td:not(:first-child)::before {
    color: var(--default-color);
    opacity: .6;
    font-weight: 400;
    margin-right: 4px;
  }
  .delivery-zones td:nth-child(2)::before { content: "Расстояние: "; }
  .delivery-zones td:nth-child(3)::before { content: "В пути: "; }
  .delivery-zones td:nth-child(4)::before { content: "Доставка: "; }
}

/* ===== Прайс-таблицы (страница цен) — карточки на мобильном ===== */
@media (max-width: 575px) {
  .price-table thead { display: none; }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; }
  .price-table { background: transparent !important; border: 0 !important; }
  .price-table tr {
    background: var(--surface-color);
    border: 1px solid var(--border-soft) !important;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  .price-table td {
    border: none !important;
    padding: 3px 0 !important;
    text-align: left !important;
  }
  .price-table td:first-child {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color);
  }
  .price-table td:not(:first-child):not(:last-child) {
    font-size: 13px;
    color: var(--default-color);
    opacity: .75;
    padding-top: 2px !important;
  }
  .price-table td:last-child {
    font-size: 15px;
    padding-top: 8px !important;
    margin-top: 4px;
    border-top: 1px solid var(--border-soft) !important;
  }
}

/* ===== Приглушённый текст на тёмных секциях ===== */
/* Bootstrap .text-muted — тёмно-серый, на dark-background сливается с фоном */
.dark-background .text-muted { color: rgba(255, 255, 255, .6) !important; }

/* ===== Каталог: тулбар (счётчик «Найдено» + сортировка по цене) ===== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.catalog-toolbar .catalog-count {
  font-size: 14px;
  color: var(--default-color);
  opacity: .8;
}
.catalog-toolbar .form-select {
  max-width: 250px;
  font-size: 14px;
  border-color: var(--border-soft);
  background-color: var(--surface-color);
  color: var(--default-color);
}

/* ===== Карточка товара: блок «Похожие товары» ===== */
.related-products .product-title a {
  font-size: 14px;
  line-height: 1.35;
}
