/**
 * МОДИФАКТ — чистая тема: древесный коричневый + газонный зелёный
 * Не зависит от angar-классов (build-card, mini-faq, purposes…)
 */

:root {
  --mf-wood: #3d2b1f;
  --mf-wood-mid: #5c4033;
  --mf-graphite: #2e2e2e;
  --mf-text: #3a3a3a;
  --mf-muted: #5f5f5f;
  --mf-grass: #2e7d32;
  --mf-grass-bright: #43a047;
  --mf-grass-soft: #e8f5e9;
  --mf-cream: #f8faf6;
  --mf-white: #ffffff;
  --mf-line: #e2e8df;
  --mf-radius: 12px;
  --mf-font: "DM Sans", system-ui, sans-serif;
  --mf-display: "Cormorant Garamond", Georgia, serif;
}

/* ——— Header ——— */
.premium-cms-home .site-header,
.premium-cms-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--mf-line) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) !important;
}

.premium-cms-home .site-header::after {
  display: none !important;
}

.premium-cms-home .site-header .brand__lockup span,
.premium-cms-home .site-header .nav a {
  color: var(--mf-graphite) !important;
}

.premium-cms-home .site-header .nav a:hover {
  color: var(--mf-grass) !important;
}

.premium-cms-home .site-header .brand__icon {
  color: var(--mf-grass) !important;
}

.premium-cms-home .site-header .header-phone a {
  color: var(--mf-wood) !important;
}

/* ——— Hero (premium-home hero, только оверлей) ——— */
.premium-cms-home .hero__overlay {
  background: linear-gradient(
    100deg,
    rgba(42, 31, 20, 0.88) 0%,
    rgba(46, 125, 50, 0.55) 55%,
    rgba(42, 31, 20, 0.3) 100%
  ) !important;
}

.premium-cms-home .hero__title-main,
.premium-cms-home .hero__title-sub {
  color: #fff !important;
}

.premium-cms-home .hero__title-sub {
  color: #a5d6a7 !important;
}

.premium-cms-home .hero__lead,
.premium-cms-home .hero__points li,
.premium-cms-home .hero__micro {
  color: rgba(255, 255, 255, 0.92) !important;
}

.premium-cms-home .hero__check {
  color: var(--mf-grass-bright) !important;
}

.premium-cms-home .hero__badge {
  background: var(--mf-grass) !important;
  border: none !important;
  color: #fff !important;
  border-radius: var(--mf-radius) !important;
  padding: 1rem 1.25rem !important;
}

.premium-cms-home .hero__badge-value,
.premium-cms-home .hero__badge-kicker,
.premium-cms-home .hero__badge-foot {
  color: #fff !important;
}

.premium-cms-home .btn-hero--primary {
  background: var(--mf-grass) !important;
  border-color: var(--mf-grass) !important;
  color: #fff !important;
}

.premium-cms-home .btn-hero--primary:hover {
  background: var(--mf-wood) !important;
  border-color: var(--mf-wood) !important;
}

.premium-cms-home .btn-hero--ghost {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
}

/* ——— Бегущая строка ——— */
.mf-ticker {
  background: var(--mf-wood);
  overflow: hidden;
  padding: 0.75rem 0;
}

.mf-ticker__viewport {
  overflow: hidden;
  width: 100%;
}

.mf-ticker__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: mf-ticker-scroll 40s linear infinite;
  will-change: transform;
}

@keyframes mf-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mf-ticker__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.mf-ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mf-grass-bright);
}

/* ——— Секции общие ——— */
.mf-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.mf-section--cream {
  background: var(--mf-cream);
}

.mf-section--white {
  background: var(--mf-white);
}

.mf-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mf-grass);
  margin-bottom: 0.5rem;
}

.mf-h2 {
  margin: 0;
  font-family: var(--mf-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--mf-wood);
}

.mf-h2 span {
  color: var(--mf-grass);
}

.mf-lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mf-muted);
}

/* ——— Преимущества ——— */
.mf-trust__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .mf-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .mf-trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.mf-trust__card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--mf-white);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
}

.mf-trust__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mf-grass-soft);
  color: var(--mf-grass);
}

.mf-trust__card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--mf-text);
}

.mf-trust__card strong {
  color: var(--mf-wood);
}

/* ——— Каталог ——— */
.mf-catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 540px) {
  .mf-catalog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .mf-catalog__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.mf-catalog__card {
  display: block;
  border-radius: var(--mf-radius);
  overflow: hidden;
  border: 1px solid var(--mf-line);
  background: var(--mf-white);
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}

.mf-catalog__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.12);
}

.mf-catalog__card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.mf-catalog__card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.mf-catalog__card-body h3 {
  margin: 0;
  font-family: var(--mf-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mf-wood);
}

.mf-catalog__card-body p {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--mf-grass);
  font-weight: 600;
}

/* ——— Калькулятор ——— */
.mf-calc {
  background: var(--mf-white);
  border: 1px solid var(--mf-line);
  border-radius: calc(var(--mf-radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
}

.mf-calc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mf-calc__tab {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  background: var(--mf-cream);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mf-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mf-calc__tab.is-active,
.mf-calc__tab:hover {
  background: var(--mf-grass-soft);
  border-color: var(--mf-grass);
  color: var(--mf-wood);
}

.mf-calc__body {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .mf-calc__body {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.mf-calc__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.mf-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mf-calc__field--full {
  grid-column: 1 / -1;
}

.mf-calc__field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mf-wood);
}

.mf-calc__field input,
.mf-calc__field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--mf-text);
  background: var(--mf-cream);
}

.mf-calc__field input:focus,
.mf-calc__field select:focus {
  outline: 2px solid var(--mf-grass-soft);
  border-color: var(--mf-grass);
}

.mf-calc__checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 0.25rem;
}

.mf-calc__check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mf-text);
  cursor: pointer;
}

.mf-calc__check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--mf-grass);
}

.mf-calc__result {
  padding: 1.5rem;
  background: var(--mf-grass-soft);
  border: 2px solid var(--mf-grass);
  border-radius: var(--mf-radius);
}

.mf-calc__result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mf-muted);
}

.mf-calc__result-total {
  margin: 0.5rem 0 0;
  font-family: var(--mf-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--mf-grass);
  line-height: 1.1;
}

.mf-calc__result-note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--mf-muted);
  line-height: 1.45;
}

.mf-calc__result .btn-hero {
  margin-top: 1.25rem;
  width: 100%;
  justify-content: center;
}

/* ——— Завод ——— */
.mf-factory {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mf-factory {
    grid-template-columns: 1fr 1fr;
  }
}

.mf-factory__img {
  border-radius: var(--mf-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.mf-factory__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-factory__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.mf-factory__stat {
  padding: 1rem;
  background: var(--mf-grass-soft);
  border-radius: 8px;
  border: 1px solid var(--mf-line);
}

.mf-factory__stat strong {
  display: block;
  font-family: var(--mf-display);
  font-size: 1.75rem;
  color: var(--mf-grass);
  line-height: 1.1;
}

.mf-factory__stat span {
  font-size: 0.8125rem;
  color: var(--mf-muted);
}

/* ——— Галерея ——— */
.mf-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .mf-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.mf-gallery__item {
  border-radius: var(--mf-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.mf-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.mf-gallery__item:hover img {
  transform: scale(1.04);
}

/* ——— Этапы ——— */
.mf-steps__grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .mf-steps__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .mf-steps__grid { grid-template-columns: repeat(5, 1fr); }
}

.mf-step {
  padding: 1.25rem;
  background: var(--mf-white);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  border-top: 3px solid var(--mf-grass);
}

.mf-step__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mf-grass);
  letter-spacing: 0.1em;
}

.mf-step__title {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mf-wood);
}

.mf-step__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mf-muted);
}

/* ——— FAQ ——— */
.mf-faq__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mf-faq__item {
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  background: var(--mf-white);
  overflow: hidden;
}

.mf-faq__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--mf-wood);
  font-size: 0.9375rem;
}

.mf-faq__summary::-webkit-details-marker {
  display: none;
}

.mf-faq__num {
  flex-shrink: 0;
  width: 2rem;
  font-family: var(--mf-display);
  font-size: 1.25rem;
  color: var(--mf-grass);
}

.mf-faq__panel {
  padding: 0 1.25rem 1.15rem 3.25rem;
}

.mf-faq__a {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mf-text);
}

/* ——— CTA заявка ——— */
.mf-cta {
  background: linear-gradient(135deg, var(--mf-wood) 0%, var(--mf-grass) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.mf-cta .mf-h2,
.mf-cta .mf-lead {
  color: #fff;
}

.mf-cta .mf-lead {
  opacity: 0.9;
}

.mf-cta__box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--mf-radius);
  max-width: 36rem;
}

.mf-cta__box p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #fff;
}

.mf-cta__box a {
  color: #a5d6a7;
  font-weight: 600;
}

.mf-cta .btn-hero--primary {
  margin-top: 1.25rem;
  background: #fff !important;
  color: var(--mf-grass) !important;
  border-color: #fff !important;
}

.mf-cta .btn-hero--primary:hover {
  background: var(--mf-grass-soft) !important;
  color: var(--mf-wood) !important;
}

/* ——— Логотип «Модульные дома» ——— */
.brand__lockup--site span {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-size: clamp(0.7rem, 1.9vw, 0.82rem) !important;
}

.premium-cms-home .brand,
.premium-cms-inner .brand {
  max-width: 9.5rem !important;
}

@media (min-width: 640px) {
  .premium-cms-home .brand,
  .premium-cms-inner .brand {
    max-width: 10.5rem !important;
  }
}

/* ——— Внутренние страницы (каталог, товар, контакты…) ——— */
.premium-cms-inner {
  --bg-deep: var(--mf-cream);
  --bg-panel: var(--mf-white);
  --ink: var(--mf-wood);
  --ink-muted: var(--mf-muted);
  --ink-dim: var(--mf-muted);
  --gold: var(--mf-grass);
  --gold-bright: var(--mf-grass-bright);
  --line: var(--mf-line);
  background: var(--mf-cream) !important;
  color: var(--mf-text) !important;
}

.premium-cms-inner::before {
  display: none !important;
}

.premium-cms-inner .site-header,
.premium-cms-inner .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--mf-line) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) !important;
}

.premium-cms-inner .site-header::after {
  display: none !important;
}

.premium-cms-inner .site-header .brand__lockup span,
.premium-cms-inner .site-header .nav a {
  color: var(--mf-graphite) !important;
}

.premium-cms-inner .site-header .nav a:hover {
  color: var(--mf-grass) !important;
}

.premium-cms-inner .site-header .brand__icon {
  color: var(--mf-grass) !important;
}

.premium-cms-inner .site-header .btn-hero--primary {
  background: var(--mf-grass) !important;
  border-color: var(--mf-grass) !important;
  color: #fff !important;
}

/* Каталог и внутренние страницы */
.mf-inner {
  background: var(--mf-cream);
  color: var(--mf-text);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.mf-inner__hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--mf-line);
  background: var(--mf-white);
}

.mf-inner__title {
  margin: 0.5rem 0 0;
  font-family: var(--mf-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--mf-wood);
}

.mf-inner__lead {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mf-muted);
}

.mf-inner__body {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.mf-inner__empty {
  color: var(--mf-muted);
}

.mf-inner__empty a {
  color: var(--mf-grass);
  font-weight: 600;
}

.mf-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--mf-muted);
}

.mf-breadcrumbs a {
  color: var(--mf-wood);
  text-decoration: none;
}

.mf-breadcrumbs a:hover {
  color: var(--mf-grass);
}

.mf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.mf-filters__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--mf-line);
  background: var(--mf-cream);
  color: var(--mf-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.mf-filters__pill:hover,
.mf-filters__pill.is-active {
  border-color: var(--mf-grass);
  background: var(--mf-grass-soft);
  color: var(--mf-wood);
}

/* Карточки товаров в каталоге */
.mf-catalog__card--product {
  display: flex;
  flex-direction: column;
}

.mf-catalog__card-media {
  display: block;
  aspect-ratio: 4/3;
  background: var(--mf-grass-soft);
  overflow: hidden;
}

.mf-catalog__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-catalog__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  color: var(--mf-muted);
  font-size: 0.875rem;
}

.mf-catalog__card-cat {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mf-grass);
}

.mf-catalog__card-title {
  margin: 0.35rem 0 0;
  font-family: var(--mf-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.mf-catalog__card-title a {
  color: var(--mf-wood);
  text-decoration: none;
}

.mf-catalog__card-title a:hover {
  color: var(--mf-grass);
}

.mf-catalog__card-price {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mf-grass);
}

.mf-catalog__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mf-muted);
  text-decoration: none;
}

.mf-catalog__card-link:hover {
  color: var(--mf-grass);
}

/* ——— Страница товара ——— */
.mf-inner__hero--compact {
  padding-bottom: 1rem;
}

.mf-product__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .mf-product__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.mf-product__media {
  border-radius: var(--mf-radius);
  border: 1px solid var(--mf-line);
  background: var(--mf-white);
  overflow: hidden;
}

.mf-product__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.mf-product__placeholder {
  min-height: 18rem;
}

.mf-product__price {
  margin: 0.75rem 0 0;
  font-family: var(--mf-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--mf-grass);
}

.mf-product__note {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--mf-muted);
}

.mf-product__cta {
  margin-top: 1.25rem;
}

.mf-product__article,
.mf-product__section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mf-line);
}

.mf-product__section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mf-product__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mf-text);
}

.mf-product__desc h2,
.mf-product__desc h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--mf-display);
  color: var(--mf-wood);
}

.mf-product__desc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.mf-product__desc li {
  margin-bottom: 0.35rem;
}

.mf-product__gallery {
  display: grid;
  gap: 1rem;
}

.mf-product__gallery img,
.mf-product__schemes img {
  width: 100%;
  border-radius: var(--mf-radius);
  border: 1px solid var(--mf-line);
}

.mf-product__schemes {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mf-product__schemes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mf-product__examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .mf-product__examples {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mf-product__examples img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--mf-radius);
  border: 1px solid var(--mf-line);
}

.mf-product__specs {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-radius);
  overflow: hidden;
  background: var(--mf-white);
}

.mf-product__specs th,
.mf-product__specs td {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--mf-line);
}

.mf-product__specs tr:last-child th,
.mf-product__specs tr:last-child td {
  border-bottom: none;
}

.mf-product__specs th {
  width: 40%;
  background: var(--mf-grass-soft);
  color: var(--mf-wood);
  font-weight: 600;
}

.mf-product__specs td {
  color: var(--mf-text);
}

.mf-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mf-line);
}

.mf-product__back {
  border-color: var(--mf-line) !important;
  color: var(--mf-wood) !important;
}

.mf-product__back:hover {
  border-color: var(--mf-grass) !important;
  color: var(--mf-grass) !important;
}

.premium-cms-inner .btn-hero--primary {
  background: var(--mf-grass) !important;
  border-color: var(--mf-grass) !important;
  color: #fff !important;
}

/* Внутренние страницы на старых классах (контакты, geo, статьи) */
.premium-cms-inner .premium-inner {
  background: var(--mf-cream) !important;
  color: var(--mf-text) !important;
}

.premium-cms-inner .premium-inner__title,
.premium-cms-inner .premium-inner__subtitle {
  color: var(--mf-wood) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.premium-cms-inner .premium-inner__lead,
.premium-cms-inner .premium-inner__empty {
  color: var(--mf-muted) !important;
}

.premium-cms-inner .premium-breadcrumbs a {
  color: var(--mf-wood) !important;
}

.premium-cms-inner .premium-breadcrumbs a:hover {
  color: var(--mf-grass) !important;
}

.premium-cms-inner .section__label {
  color: var(--mf-grass) !important;
}

.premium-cms-inner .premium-article {
  background: var(--mf-white) !important;
  border-color: var(--mf-line) !important;
  color: var(--mf-text) !important;
}

.premium-cms-inner .premium-filters__pill {
  background: var(--mf-cream) !important;
  border-color: var(--mf-line) !important;
  color: var(--mf-muted) !important;
}

.premium-cms-inner .premium-filters__pill.is-active,
.premium-cms-inner .premium-filters__pill:hover {
  background: var(--mf-grass-soft) !important;
  border-color: var(--mf-grass) !important;
  color: var(--mf-wood) !important;
}

/* Скрыть старый тёмный каталог angar, если где-то остался */
.premium-cms-inner .premium-catalog-card {
  display: none !important;
}

.premium-cms-home .site-header .btn-hero--primary {
  background: var(--mf-grass) !important;
  border-color: var(--mf-grass) !important;
  color: #fff !important;
}

.premium-cms-home .site-header .btn-hero--primary:hover {
  background: var(--mf-wood) !important;
  border-color: var(--mf-wood) !important;
}

.premium-cms-home .site-footer p,
.premium-cms-home .site-footer li,
.premium-cms-home .site-footer .footer__copy {
  color: rgba(255, 255, 255, 0.88) !important;
}

.premium-cms-home .hero .section__label {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Скрыть angar-секции если остались в DOM */
.premium-cms-home .purposes,
.premium-cms-home .regions,
.premium-cms-home .build-steps,
.premium-cms-home .mini-faq,
.premium-cms-home .estimate {
  display: none !important;
}

.premium-cms-home .site-footer {
  background: var(--mf-wood) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.premium-cms-home .site-footer a {
  color: rgba(255, 255, 255, 0.9) !important;
}

.premium-cms-home .site-footer a:hover {
  color: #a5d6a7 !important;
}

/* ——— Cookie & виджеты ——— */
.mf-btn-green {
  background: var(--mf-grass) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0.65rem 1.25rem !important;
  font-weight: 600 !important;
  border: none !important;
}

.mf-btn-green:hover {
  background: var(--mf-wood) !important;
}

/* ——— Модалка калькулятора ——— */
.hangar-estimate__dialog {
  background: var(--mf-white) !important;
  color: var(--mf-text) !important;
  border: 1px solid var(--mf-line) !important;
  box-shadow: 0 24px 64px rgba(61, 43, 31, 0.18) !important;
}

.hangar-estimate__close {
  border-color: var(--mf-line) !important;
  background: var(--mf-cream) !important;
  color: var(--mf-wood) !important;
}

.hangar-estimate__close:hover {
  border-color: var(--mf-grass) !important;
  color: var(--mf-grass) !important;
}

.hangar-estimate__title {
  font-family: var(--mf-display) !important;
  color: var(--mf-wood) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.hangar-estimate__eyebrow,
.hangar-estimate__group-title {
  color: var(--mf-grass) !important;
}

.hangar-estimate__lead,
.hangar-estimate__note {
  color: var(--mf-muted) !important;
}

.hangar-estimate__label {
  color: var(--mf-wood) !important;
}

.hangar-estimate input,
.hangar-estimate select {
  background: var(--mf-cream) !important;
  border: 1px solid var(--mf-line) !important;
  color: var(--mf-text) !important;
}

.hangar-estimate__tab {
  border-color: var(--mf-line) !important;
  color: var(--mf-muted) !important;
  background: var(--mf-cream) !important;
}

.hangar-estimate__tab.is-active {
  background: var(--mf-grass) !important;
  color: #fff !important;
  border-color: var(--mf-grass) !important;
}

.hangar-estimate__btn--primary {
  background: var(--mf-grass) !important;
  color: #fff !important;
  border-color: var(--mf-grass) !important;
}

.hangar-estimate__btn--primary:hover {
  background: var(--mf-wood) !important;
}

.hangar-estimate__btn--ghost {
  color: var(--mf-wood) !important;
  border-color: var(--mf-line) !important;
}

.hangar-estimate__total {
  color: var(--mf-grass) !important;
}

.hangar-estimate .mf-calc__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .mf-calc__fields,
  .hangar-estimate .mf-calc__fields {
    grid-template-columns: 1fr;
  }
}

/* Портфолио (mosaic из БД) */
.premium-cms-home .works-mosaic__grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
}

@media (min-width: 768px) {
  .premium-cms-home .works-mosaic__grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem !important;
  }
}

.premium-cms-home .works-mosaic__cell {
  border-radius: var(--mf-radius) !important;
  overflow: hidden !important;
  aspect-ratio: 4/3 !important;
}

.premium-cms-home .works-mosaic__cell img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (prefers-reduced-motion: reduce) {
  .mf-ticker__track {
    animation: none;
    padding-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}
