/* ——— Hero: светлый, кинематографичный ——— */
.hero {
  background: var(--bg);
  color: var(--text);
  padding: 88px 22px 72px;
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }

.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.hero h1 em { font-style: normal; color: var(--text); }

.hero-sub {
  font-size: 21px;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border); }
.hero-stat .hs-num { font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -0.03em; }
.hero-stat .hs-label { font-size: 12px; color: var(--text-2); margin-top: 4px; max-width: 120px; line-height: 1.4; }

.hero-problems {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-problems-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.problem-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .2s;
  border: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  background: transparent;
}
.problem-chip:last-child { border-bottom: none; }
.problem-chip:hover, .problem-chip.active { background: transparent; opacity: 1; }
.problem-chip.active .pc-text strong { color: var(--accent); }
.problem-chip .pc-icon { font-size: 20px; opacity: .85; }
.problem-chip .pc-text strong { display: block; font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
.problem-chip .pc-text span { font-size: 13px; color: var(--text-2); }
.problem-chip .pc-arrow { margin-left: auto; color: var(--text-3); font-size: 18px; }

.quick-categories-section {
  padding: 32px 24px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.quick-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quick-category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  min-height: 116px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.28);
}
.qc-icon {
  font-size: 22px;
  line-height: 1;
}
.qc-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-us-section {
  padding: 64px 24px;
  background: var(--bg);
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.why-us-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.why-us-item strong {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.why-us-item span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
}

/* ——— Problem section ——— */
.problem-section { background: #fff; }
.expert-size-note {
  background: linear-gradient(135deg, #f5f9ff 0%, #fff 55%, #f5f5f7 100%);
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  max-width: 820px;
}
.expert-size-note__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.expert-size-note p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.47;
  margin: 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.problem-card {
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 32px 28px;
  cursor: pointer;
  transition: transform .25s ease, background .25s;
}
.problem-card:hover { transform: scale(1.01); }
.problem-card:hover, .problem-card.active { background: #EBEBED; }
.problem-card.active { box-shadow: inset 0 0 0 2px var(--accent); }
.problem-card .pcard-icon { font-size: 36px; margin-bottom: 16px; }
.problem-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.problem-card p { font-size: 15px; color: var(--text-2); line-height: 1.47; }

.problem-result {
  background: linear-gradient(135deg, #f5f9ff 0%, #fff 55%, #f5f5f7 100%);
  color: var(--text);
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 28px 32px;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 113, 227, 0.06);
}
.problem-result.has-thumb { grid-template-columns: auto 1fr auto; }
.problem-result.visible { display: grid; }
.pr-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease;
}
.pr-thumb:hover { transform: scale(1.03); }
.pr-thumb img {
  width: 120px;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.pr-thumb-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.pr-body { min-width: 0; }
.pr-title { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.pr-h { font-size: 28px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.03em; color: var(--text); }
.pr-text { font-size: 16px; color: var(--text-2); line-height: 1.5; max-width: 520px; }
.pr-actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
.pr-actions .btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: #fff;
}
.pr-actions .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ——— Product grid on home ——— */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sol-card {
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease;
  display: block;
  color: inherit;
  box-shadow: none;
}
.sol-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.sol-img {
  height: 320px;
  background: #EBEBED;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sol-img-pair {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 4px;
  padding: 16px 16px 8px;
  min-width: 0;
  width: 100%;
}
.sol-img-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.sol-img-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-img-single {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
}
.sol-door-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.sol-img-label {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  margin-top: 6px;
  flex-shrink: 0;
}
.sol-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.sol-tag.termo { color: #0F766E; }
.sol-body { padding: 20px 8px 8px; }
.sol-cat { font-size: 12px; color: var(--text-2); font-weight: 400; margin-bottom: 6px; letter-spacing: -0.01em; }
.sol-name { font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.02em; }
.sol-price { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.sol-price-old { font-size: 14px; color: var(--text-3); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.sol-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
}

/* ——— Montage ——— */
.montage-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.montage-steps { display: flex; flex-direction: column; gap: 28px; }
.mstep { display: flex; gap: 20px; align-items: flex-start; }
.mstep-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mstep-body h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.mstep-body p { font-size: 15px; color: var(--text-2); line-height: 1.47; }

.montage-price-box {
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  padding: 40px;
}
.mpb-title { font-size: 11px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.mpb-h { font-size: 40px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.04em; }
.mpb-sub { font-size: 15px; color: var(--text-2); margin-bottom: 28px; }
.mpb-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.mpb-item {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.mpb-item .mi-v { font-weight: 600; color: var(--text); }

.salon-section { background: #fff; }
.salon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 10px;
}
.salon-photo { border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.salon-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.salon-photo:hover img { transform: scale(1.03); }
.salon-photo:first-child { grid-row: 1 / 3; }
.salon-todo {
  width: 100%; height: 100%; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text-3); font-size: 13px; text-align: center; padding: 12px;
}

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: opacity .2s;
  display: block;
  color: inherit;
}
.article-card:hover { opacity: .85; transform: none; box-shadow: none; }
.article-img { height: 200px; overflow: hidden; background: var(--bg); border-radius: var(--radius); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 16px 4px 0; }
.article-tag { font-size: 12px; font-weight: 500; color: var(--accent); margin-bottom: 6px; }
.article-title { font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.02em; }
.article-excerpt { font-size: 15px; color: var(--text-2); line-height: 1.47; }

.promo-section { background: var(--bg); }
.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promo-card {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 36px;
}
.promo-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.03em; }
.promo-card p { font-size: 15px; color: var(--text-2); line-height: 1.47; }

.cta-banner {
  background: var(--text);
  color: #fff;
  padding: 88px 22px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; margin-bottom: 14px; letter-spacing: -0.04em; }
.cta-banner p { font-size: 19px; color: rgba(255,255,255,.72); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hardware-teaser-section {
  padding: 56px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.hardware-teaser {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hardware-teaser__sub {
  margin-bottom: 24px;
}
.hardware-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.hardware-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.hardware-teaser__cta {
  padding: 12px 28px;
  font-size: 15px;
}

@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-us-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero { padding: 42px 16px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; margin-bottom: 14px; }
  .hero-sub { font-size: 17px; margin-bottom: 20px; }
  .hero-cta { margin-bottom: 24px; }
  .hero-stats { gap: 14px; }
  .hero-stat .hs-num { font-size: 22px; }
  .hero-stat .hs-label { max-width: 96px; }
  .hero-problems { display: none; }
  .quick-categories-section {
    padding: 16px 16px 10px;
    border-bottom: none;
  }
  .quick-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .quick-category-card {
    min-height: 88px;
    padding: 12px;
  }
  .qc-icon { font-size: 20px; }
  .qc-title { font-size: 14px; }
  .popular-doors-section {
    padding: 32px 16px !important;
  }
  .why-us-section {
    padding: 36px 16px;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .why-us-item {
    padding: 14px 14px;
    gap: 6px;
  }
  .problem-grid, .solutions-grid, .articles-grid, .promo-grid { grid-template-columns: 1fr; }
  .sol-img { height: 280px; }
  .montage-inner { grid-template-columns: 1fr; gap: 40px; }
  .salon-grid { grid-template-columns: 1fr 1fr; }
  .salon-photo:first-child { grid-row: auto; }
  .problem-result,
  .problem-result.has-thumb { grid-template-columns: 1fr; padding: 28px; }
  .problem-result.has-thumb .pr-thumb { margin: 0 auto 4px; }
  .pr-actions { min-width: 0; }
}
