/* Перила — лендинг, версия 2.
   Отличия от v1: тёплая светлая палитра, крупные фотографии, красный цвет
   оставлен только для действий. Bootstrap 5.3 подключается в head. */

@font-face {
  font-family: "LP PT Sans";
  src: url("../fonts/pt-sans-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "LP PT Sans";
  src: url("../fonts/pt-sans-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body.lp2 {
  /* Тёплая светлая основа вместо холодного белого. */
  --lp2-ink: #201d1a;
  --lp2-graphite: #35312d;
  --lp2-warm: #faf7f2;
  --lp2-sand: #f1eae0;
  --lp2-red: #d81f2a;
  --lp2-red-dark: #b3161f;
  --lp2-muted: #6b6360;
  --lp2-line: #e6e0d7;
  --lp2-radius: 14px;
  --lp2-radius-lg: 20px;
  --lp2-heading-font: "LP PT Sans", Arial, sans-serif;
  --lp2-body-font: "LP PT Sans", Arial, sans-serif;
  margin: 0;
  color: var(--lp2-ink);
  background: var(--lp2-warm);
  font-family: var(--lp2-body-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lp2 *, body.lp2 *::before, body.lp2 *::after { box-sizing: border-box; }

body.lp2 h1, body.lp2 h2, body.lp2 h3, body.lp2 h4 {
  color: var(--lp2-ink);
  font-family: var(--lp2-heading-font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.028em;
  overflow-wrap: break-word;
}
body.lp2 h1 { font-size: clamp(36px, 4.8vw, 68px); }
body.lp2 h2 { font-size: clamp(28px, 3.2vw, 46px); }
body.lp2 h3 { font-size: clamp(21px, 1.9vw, 27px); }
body.lp2 p { margin-bottom: 1rem; }
body.lp2 img { max-width: 100%; height: auto; }
body.lp2 a { color: inherit; text-underline-offset: 4px; }
body.lp2 a:hover { color: var(--lp2-red-dark); }
body.lp2 :focus-visible { outline: 3px solid var(--lp2-red); outline-offset: 4px; }
body.lp2 ::selection { background: var(--lp2-sand); color: var(--lp2-ink); }

.lp2-anchor { scroll-margin-top: 104px; }
.lp2-skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 1100;
  padding: 12px 20px;
  color: #fff !important;
  background: var(--lp2-ink);
  border-radius: 4px;
  transform: translateY(-160%);
}
.lp2-skip-link:focus, .lp2-skip-link:focus-visible { transform: translateY(0); }

/* --- кнопки: красный только как призыв к действию --- */
.lp2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--lp2-body-font);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.lp2-btn-primary { color: #fff; background: var(--lp2-red); border-color: var(--lp2-red); }
/* Правило `body.lp2 a` специфичнее класса кнопки, поэтому цвет текста
   задаём тем же уровнем вложенности — иначе надпись на кнопке темнеет. */
body.lp2 .lp2-btn-primary { color: #fff; }
body.lp2 .lp2-btn-primary:hover { color: #fff; background: var(--lp2-red-dark); border-color: var(--lp2-red-dark); }
.lp2-btn-outline { color: var(--lp2-ink); background: transparent; border-color: #b9afa2; }
body.lp2 .lp2-btn-outline { color: var(--lp2-ink); }
body.lp2 .lp2-btn-outline:hover { color: var(--lp2-ink); background: var(--lp2-sand); border-color: var(--lp2-graphite); }
.lp2-btn-light { color: var(--lp2-ink); background: #fff; border-color: #fff; }
body.lp2 .lp2-btn-light { color: var(--lp2-ink); }
body.lp2 .lp2-btn-light:hover { color: var(--lp2-ink); background: var(--lp2-sand); border-color: var(--lp2-sand); }
.lp2-btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
body.lp2 .lp2-btn-ghost { color: #fff; }
body.lp2 .lp2-btn-ghost:hover { color: var(--lp2-ink); background: #fff; border-color: #fff; }

.lp2-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #8a7f74;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lp2-section { padding-block: clamp(64px, 8vw, 120px); }
.lp2-section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.lp2-section-head h2 { margin-bottom: 18px; }
.lp2-lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: #4d4741; }
.lp2-muted { color: var(--lp2-muted); }

/* --- шапка --- */
.lp2-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(250, 247, 242, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--lp2-line);
}
.lp2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding-block: 12px;
}
.lp2-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.lp2-logo img { display: block; width: 150px; height: auto; }
.lp2-nav { display: flex; align-items: center; gap: 24px; }
.lp2-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.lp2-header-contact { flex: 0 0 auto; text-align: right; }
.lp2-header-contact > span { display: block; font-size: 13px; color: var(--lp2-muted); }
.lp2-phone { display: inline-block; font-size: 21px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* --- первый экран --- */
.lp2-hero { padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.lp2-hero-copy { max-width: 620px; padding-block: 8px; }
.lp2-hero-copy h1 { margin-bottom: 22px; }
.lp2-hero-copy .lp2-lead { margin-bottom: 26px; }
.lp2-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.lp2-price { display: block; font-family: var(--lp2-heading-font); font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.2; }
.lp2-price > span { font: 400 16px var(--lp2-body-font); color: var(--lp2-muted); }
.lp2-price-note { max-width: 520px; margin-top: 8px; margin-bottom: 0; color: var(--lp2-muted); font-size: 15px; line-height: 1.5; }
.lp2-hero-media { position: relative; overflow: hidden; border-radius: var(--lp2-radius-lg); background: var(--lp2-sand); }
.lp2-hero-media > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lp2-hero-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px 20px;
  color: #fff;
  background: rgba(32, 29, 26, .92);
  border-left: 3px solid var(--lp2-red);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.45;
}
.lp2-hero-label span, .lp2-hero-label strong { display: block; }
.lp2-hero-label span { color: #c8c0b6; font-size: 13px; }

/* --- доверие: факты вместо обещаний --- */
.lp2-trust { padding-block: clamp(32px, 4vw, 52px); background: var(--lp2-sand); }
.lp2-trust-list { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.lp2-trust-item { padding-left: 18px; border-left: 2px solid rgba(32, 29, 26, .14); }
.lp2-trust-item strong { display: block; margin-bottom: 6px; font-size: 19px; }
.lp2-trust-item span { display: block; color: #5d564f; font-size: 16px; line-height: 1.5; }

/* --- три направления --- */
.lp2-choices { background: var(--lp2-warm); }
.lp2-choice { height: 100%; display: flex; flex-direction: column; }
.lp2-choice-media { position: relative; overflow: hidden; border-radius: var(--lp2-radius); background: var(--lp2-sand); }
.lp2-choice-media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.lp2-choice:hover .lp2-choice-media img { transform: scale(1.03); }
.lp2-choice-body { padding-top: 20px; }
.lp2-choice-body h3 { margin-bottom: 8px; }
.lp2-choice-body p { margin-bottom: 0; color: var(--lp2-muted); font-size: 16px; line-height: 1.55; }

/* --- работы: асимметричная сетка вместо одинаковых карточек --- */
.lp2-works { background: #fff; }
.lp2-work { margin: 0; }
.lp2-work-media { position: relative; overflow: hidden; border-radius: var(--lp2-radius); background: var(--lp2-sand); }
.lp2-work-media img {
  display: block;
  width: 100%;
  /* Исходники работ — квадраты 400×400. Кадр не обрезаем, чтобы не потерять
     верх ограждения; асимметрию даёт разная ширина колонок (7 / 5). */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--lp2-sand);
  transition: transform .5s ease;
}
.lp2-work:hover .lp2-work-media img { transform: scale(1.03); }
.lp2-work-caption { padding-top: 16px; }
.lp2-work-caption h3 { margin-bottom: 6px; font-size: 22px; }
.lp2-work-caption p { margin-bottom: 0; color: var(--lp2-muted); font-size: 16px; }
.lp2-work-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: #8a7f74;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- этапы --- */
.lp2-process { background: var(--lp2-warm); }
.lp2-step { height: 100%; padding-top: 22px; border-top: 2px solid var(--lp2-ink); }
.lp2-step-number { display: block; margin-bottom: 14px; color: #8a7f74; font-family: var(--lp2-heading-font); font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.lp2-step h3 { font-size: 22px; margin-bottom: 10px; }
.lp2-step p { font-size: 16px; color: var(--lp2-muted); margin-bottom: 0; }

/* --- цвет и стоимость --- */
.lp2-details { background: #fff; }
.lp2-swatches { display: flex; flex-wrap: wrap; gap: 20px; margin-block: 26px 8px; }
.lp2-swatch-item { display: flex; align-items: center; gap: 12px; }
.lp2-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  background: var(--swatch, #303030);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d5cdc2;
}
.lp2-swatch-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lp2-swatch-name small { display: block; color: var(--lp2-muted); font-weight: 400; }
.lp2-price-box { height: 100%; padding: clamp(26px, 3.6vw, 44px); background: var(--lp2-sand); border-radius: var(--lp2-radius-lg); }
.lp2-price-box h3 { margin-bottom: 14px; }
.lp2-price-box ul { padding-left: 20px; margin-bottom: 20px; }
.lp2-price-box li { margin-bottom: 8px; font-size: 16px; line-height: 1.5; }
.lp2-price-box .lp2-price { font-size: clamp(30px, 3.4vw, 44px); margin-block: 8px 4px; }

/* --- что входит в стоимость: условия считаем карточками --- */
.lp2-pricing { background: var(--lp2-sand); }
.lp2-notes {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp2-note {
  padding: clamp(22px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--lp2-line);
  border-top: 2px solid var(--lp2-ink);
  border-radius: var(--lp2-radius);
}
/* Последнее условие — про монтаж — занимает всю ширину: строка из семи
   пунктов иначе оставляет в сетке 2×N одиночную карточку. */
.lp2-note:last-child { grid-column: 1 / -1; }
.lp2-note h3 { margin-bottom: 10px; font-size: clamp(19px, 1.6vw, 22px); }
.lp2-note p { margin-bottom: 0; color: var(--lp2-muted); font-size: 16px; line-height: 1.55; }

/* --- вопросы --- */
.lp2-faq { background: var(--lp2-warm); }
.lp2-faq details { border-bottom: 1px solid var(--lp2-line); }
.lp2-faq details:first-of-type { border-top: 1px solid var(--lp2-line); }
.lp2-faq summary {
  position: relative;
  display: block;
  min-height: 64px;
  padding: 22px 52px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.lp2-faq summary::-webkit-details-marker { display: none; }
.lp2-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  width: 34px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: #8a7f74;
}
.lp2-faq details[open] summary::after { content: "−"; }
.lp2-faq details > p {
  max-width: 820px;
  margin: 0;
  padding: 0 44px 22px 0;
  color: var(--lp2-muted);
}

/* --- заявка --- */
.lp2-contact { color: #fff; background: var(--lp2-ink); }
.lp2-contact h2, .lp2-contact h3 { color: #fff; }
.lp2-contact .lp2-eyebrow { color: #a99c8f; }
.lp2-contact .lp2-lead { color: #cdc5bb; }
.lp2-contact a:hover { color: #fff; }
.lp2-contact .lp2-phone { margin-block: 10px; font-size: clamp(24px, 3vw, 34px); }
.lp2-contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 22px; }
.lp2-form-panel { padding: clamp(26px, 3.6vw, 42px); color: var(--lp2-ink); background: #fff; border-radius: var(--lp2-radius-lg); }
.lp2-form-panel h3 { margin-bottom: 10px; }
.lp2-form-panel .lp2-muted { color: var(--lp2-muted); }
.lp2-form-panel a:hover { color: var(--lp2-red-dark); }
.lp2-form { position: relative; }
.lp2-field { margin-bottom: 18px; }
.lp2-field > label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 16px; }
.lp2-form .form-control, .lp2-form .form-select {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c3b9ac;
  border-radius: 6px;
  color: var(--lp2-ink);
  background-color: #fff;
  font-family: var(--lp2-body-font);
  font-size: 17px;
  line-height: 1.4;
}
.lp2-form .form-select { padding-right: 40px; }
.lp2-form textarea.form-control { min-height: 108px; resize: vertical; }
.lp2-form .form-control::placeholder { color: #7c746c; opacity: 1; }
.lp2-form .form-control:focus, .lp2-form .form-select:focus {
  border-color: var(--lp2-ink);
  box-shadow: 0 0 0 3px rgba(32, 29, 26, .12);
}
.lp2-form .form-control[aria-invalid="true"], .lp2-form .form-control.is-invalid { border-color: var(--lp2-red); }
.lp2-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-block: 20px; font-size: 15px; line-height: 1.5; }
.lp2-checkbox input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lp2-red); cursor: pointer; }
.lp2-checkbox label { cursor: pointer; }
.lp2-checkbox a { text-decoration: underline; }
.lp2-form-note { display: block; margin-top: 12px; color: var(--lp2-muted); font-size: 14px; line-height: 1.5; }
.lp2-form .error { display: block; margin-top: 6px; color: var(--lp2-red-dark); font-size: 14px; line-height: 1.4; }
.lp2-form .error:empty { display: none; }
.lp2-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- подвал --- */
.lp2-footer { padding-block: 32px; color: #6b6360; background: var(--lp2-warm); border-top: 1px solid var(--lp2-line); font-size: 14px; line-height: 1.6; }
.lp2-footer p { margin-bottom: 8px; }
.lp2-footer a { display: inline-block; padding-block: 4px; }
.lp2-footer-logo img { width: 150px; }
.lp2-footer-links a { display: block; }
.lp2-footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--lp2-line); }
.lp2-mobile-bar { display: none; }

@media (max-width: 1199.98px) {
  .lp2-nav { gap: 16px; }
  .lp2-header-inner { gap: 18px; }
  .lp2-trust-list { gap: 22px; }
}
@media (max-width: 991.98px) {
  .lp2-nav { display: none; }
  .lp2-header-inner { min-height: 80px; }
  .lp2-anchor { scroll-margin-top: 92px; }
  .lp2-hero-copy { max-width: none; }
  .lp2-hero-media { margin-top: 8px; }
  .lp2-hero-media > img { aspect-ratio: 4 / 3; }
  .lp2-trust-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .lp2-notes { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 767.98px) {
  body.lp2 { font-size: 17px; padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .lp2-header-inner { gap: 12px; min-height: 76px; }
  .lp2-header-contact > span { font-size: 11px; }
  .lp2-header-contact .lp2-phone { font-size: 16px; }
  .lp2-header-cta { display: none; }
  .lp2-logo img { width: 126px; }
  .lp2-eyebrow { margin-bottom: 12px; font-size: 12px; }
  .lp2-hero-copy h1 { margin-bottom: 18px; }
  .lp2-hero-actions .lp2-btn { width: 100%; }
  .lp2-hero-label { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; font-size: 14px; }
  .lp2-trust-list { grid-template-columns: 1fr; gap: 20px; }
  .lp2-faq summary { font-size: 18px; }
  .lp2-contact-actions .lp2-btn { width: 100%; }
  .lp2-form .lp2-btn { width: 100%; }
  .lp2-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-top: 1px solid var(--lp2-line);
    box-shadow: 0 -4px 20px rgba(32, 29, 26, .08);
  }
  .lp2-mobile-bar .lp2-btn { flex: 1 1 auto; margin: 0; padding-inline: 14px; font-size: 16px; }
}
@media (max-width: 374.98px) {
  .lp2-header-contact .lp2-phone { font-size: 14px; }
  .lp2-hero-media > img { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.lp2 *, body.lp2 *::before, body.lp2 *::after { animation: none !important; transition: none !important; }
}