/* Только главная: герой, «почему панели», два пути, этапы, бизнес, вопросы */

/* ============ ГЕРОЙ ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(800px, calc(100svh - 110px));
  border-radius: var(--r-xl);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  gap: 24px; padding: clamp(24px, 5vw, 72px);
  color: var(--white);
}
.hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(40, 32, 28, .62) 0%, rgba(40, 32, 28, .28) 45%, rgba(40, 32, 28, 0) 70%),
              linear-gradient(0deg, rgba(40, 32, 28, .35), rgba(40, 32, 28, 0) 45%);
}
.hero__content { max-width: min(680px, 54%); }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -.03em; line-height: 1.02; }
.hero__lead { margin: 22px 0 34px; font-size: var(--fs-md); max-width: 44ch; color: rgba(255, 255, 255, .92); }

/* Кадр: прозрачная рамка над рейками справа от телевизора. Внутри фон чуть светлее, как в видоискателе */
.hero__frame {
  position: absolute; top: 11%; bottom: 11%; left: 59.5%; width: 17.5%; min-width: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: brightness(1.18) contrast(1.04); -webkit-backdrop-filter: brightness(1.18) contrast(1.04);
  color: var(--white); text-decoration: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.hero__frame:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.hero__frame-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; font-size: var(--fs-md); line-height: 1.3; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero__frame-arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--wood); }
.hero__frame-foot { font-size: var(--fs-sm); color: rgba(255, 255, 255, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
/* Подписи на тёмной стеклянной плашке: читаются и на светлом мраморе */
.hero__frame-head > span:first-child, .hero__frame-foot {
  padding: 8px 12px; border-radius: var(--r-md); background: var(--glass-dark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Рамки панелей на фото: прозрачный квадрат как видоискатель, стрелка в углу, подпись по наведению */
.frames { position: absolute; inset: 0; pointer-events: none; }
.frame {
  position: absolute; pointer-events: auto; border-radius: 14px; text-decoration: none; color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .05);
  backdrop-filter: brightness(1.12); -webkit-backdrop-filter: brightness(1.12);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.frame[hidden] { display: none; }
.frame:hover, .frame:focus-visible { border-color: var(--white); background: rgba(255, 255, 255, .12); }
.frame__arrow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--wood);
}
.frame__label {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -4px);
  padding: 9px 14px; border-radius: var(--r-pill); background: var(--white); white-space: nowrap;
  font-size: var(--fs-sm); box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.frame:hover .frame__label, .frame:focus-visible .frame__label { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: no-preference) {
  .hero__content, .hero__frame { animation: rise .9s var(--ease) both; }
  .hero__frame { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 640px; align-content: end; }
  .hero__content { max-width: none; }
  .hero::before { background: linear-gradient(0deg, rgba(40, 32, 28, .78) 15%, rgba(40, 32, 28, .1) 70%); }
  .hero__frame { position: relative; inset: auto; order: -1; width: 100%; min-width: 0; flex-direction: row; align-items: center; padding: 14px 16px; }
  .hero__frame-foot { display: none; }
  .hero__frame-head { flex: 1; align-items: center; font-size: var(--fs-base); }
}

/* ============ ПОЧЕМУ ПАНЕЛИ: одна карточка, фото остаётся видно ============ */
.why {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: 620px; padding: clamp(20px, 4vw, 48px);
  display: flex; align-items: flex-end;
}
.why__photo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.why__card {
  width: min(100%, 460px);
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px;
}
.why__card h2 { font-size: var(--fs-xl); }
.why__card > p { color: var(--ink-soft); }
.why__list { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(48, 48, 48, .15); display: grid; gap: 8px; }
.why__list li { display: flex; gap: 10px; }
.why__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--wood); }
@media (max-width: 760px) { .why { min-height: 0; padding-top: 260px; } }

/* ============ ДВА ПУТИ ============ */
.choose__title { font-size: var(--fs-xl); margin-bottom: 24px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choose__item {
  display: grid; grid-template-rows: auto 1fr; gap: 24px;
  padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white);
}
.choose__item img { border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.choose__text { display: grid; gap: 12px; justify-items: start; align-content: start; padding: 0 8px 8px; }
.choose__text p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 8px; }
.choose__text .btn { min-width: min(100%, 300px); }
@media (max-width: 860px) { .choose { grid-template-columns: 1fr; } }

/* ============ ЭТАПЫ ============ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { padding: 4px 24px 24px; border-left: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--wood); color: var(--white); font-family: var(--font-display); }
.steps p { font-size: var(--fs-md); line-height: 1.4; }
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; grid-template-columns: 48px 1fr; align-items: center; gap: 18px; }
}

/* ============ ДЛЯ БИЗНЕСА ============ */
.biz {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line);
}
.biz h2 { font-size: var(--fs-xl); }
.biz__lead { margin-top: 14px; color: var(--ink-soft); max-width: 48ch; }
.biz__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.biz__list li { display: flex; gap: 10px; }
.biz__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--wood); }
@media (max-width: 960px) { .biz { grid-template-columns: 1fr; } .biz .btn { justify-self: start; } }

/* ============ ВОПРОСЫ ============ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--font-display); font-size: var(--fs-md); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list details p { padding: 0 48px 22px 0; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ============ БАННЕР ЭЛЕКТРОПРИВОДА: текст справа на фото ============ */
.promo {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: 640px; padding: clamp(24px, 5vw, 72px);
  display: flex; justify-content: flex-end; align-items: center; color: var(--white);
}
.promo__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
.promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(40, 32, 28, .78) 0%, rgba(40, 32, 28, .5) 38%, rgba(40, 32, 28, 0) 65%); }
.promo__text { width: min(100%, 500px); display: grid; gap: 18px; justify-items: start; }
.promo__text h2 { font-size: var(--fs-2xl); }
.promo__text p { color: rgba(255, 255, 255, .9); font-size: var(--fs-md); }
.promo__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.promo__list li { display: flex; gap: 10px; }
.promo__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--white); }
@media (max-width: 760px) {
  .promo { min-height: 0; padding-top: 280px; align-items: flex-end; }
  .promo::before { background: linear-gradient(0deg, rgba(40, 32, 28, .85) 35%, rgba(40, 32, 28, 0) 80%); }
}

/* Подборки мебели */
.section-tight { padding-top: 28px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.rail-head h2 { font-size: var(--fs-xl); }
.rail-head a { color: var(--ink-soft); white-space: nowrap; }
.rail-head a:hover { color: var(--ink); }
