/* Доступность скрытых панелей и блокировка прокрутки. */
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.demo-offer-note { font-size: 13px; line-height: 1.5; color: #b9ad8d; margin-block: 20px; }

/* Мегаменю производства. */
.nav-links { gap: 18px; }
.header-inner { gap: 18px; padding-inline: 32px; }
.nav-mega { position: static; }
.mega-toggle { border: 0; padding: 14px 0; background: transparent; color: var(--muted); font-size: var(--control-size); font-weight: 500; line-height: 1.25; text-align: left; }
.mega-toggle:hover, .mega-toggle[aria-expanded="true"] { color: var(--gold-hover); }
.mega-menu { position: absolute; top: 100%; left: 32px; right: 32px; padding: 28px; border: 1px solid #655535; background: #10100ff5; box-shadow: 0 32px 72px #000b; backdrop-filter: blur(24px); visibility: hidden; opacity: 0; pointer-events: none; }
.nav-mega.is-open .mega-menu { visibility: visible; opacity: 1; pointer-events: auto; }
.mega-menu-heading { display: flex; justify-content: space-between; gap: 24px; color: var(--gold); font-size: 14px; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 20px; }
.mega-menu-heading span:last-child { color: var(--muted); }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mega-card { display: flex; min-height: 144px; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid #4c4431; background: #1b1a17; transition: background-color .18s, color .18s; }
.mega-card > span { color: #b4aa91; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.mega-card h3 { font-size: 23px; line-height: 1.15; transition: transform .18s; transform-origin: left center; }
.mega-card:hover, .mega-card:focus-visible { background: var(--gold); color: #10100e; }
.mega-card:hover > span, .mega-card:focus-visible > span { color: #463917; }
.mega-card:hover h3, .mega-card:focus-visible h3 { transform: scale(1.035); }

/* Акционные ленты, марки материала и дата отгрузки. */
.product-visual { display: block; position: relative; overflow: hidden; }
.product-visual .product-image { transition: transform .4s; }
.product-visual:hover .product-image { transform: scale(1.025); }
.sale-ribbon { position: absolute; top: 38px; left: -66px; width: 292px; padding: 12px 8px; transform: rotate(-45deg); background: #17643e; color: #fff; box-shadow: 0 3px 14px #0006; font-size: 14px; line-height: 1.35; font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: .4px; }
.image-badge { position: absolute; top: 22px; right: 22px; padding: 17px 22px; color: #fff; font-size: 22px; line-height: 1.25; font-weight: 500; box-shadow: 0 4px 18px #0005; }
.image-badge small { display: block; margin-top: 6px; font-size: 13px; }
.badge-red { background: #a73134; }
.product-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.product-chips:empty { display: none; }
.image-chips { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.image-chips .product-chip { background: #171714ec; backdrop-filter: blur(10px); }
.product-chip { padding: 6px 10px; border: 1px solid currentColor; font-size: 14px; font-weight: 500; line-height: 1.25; }
.chip-amber { color: #efcf86; background: #503f2038; }
.chip-blue { color: #a1c9ea; background: #2c435b50; }
.chip-violet { color: #cdb5f1; background: #4d365650; }
.chip-green { color: #a0dbba; background: #255d4050; }
.chip-red { color: #f0ada8; background: #672d2c50; }
.product-content p.price-explanation { margin-top: -8px; font-size: 13px; color: #b6ab95; }
.product-content p.dispatch-note { margin-top: auto; padding-block: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.dispatch-note strong { color: var(--gold); font-weight: 500; white-space: nowrap; }
.dispatch-note small { display: block; margin-top: 5px; color: #a39e91; font-size: 14px; }
.product-content .button { margin-top: 0; }

/* Золотой блок подбора продукции. */
.gold-capture { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 56px; padding: 48px; margin-top: 48px; color: #17130b; border: 1px solid #f5dfab; background: linear-gradient(120deg, #f1db9b, #cfaa59 60%, #e5c77e); }
.gold-capture .eyebrow, .gold-capture > div > p { color: #4d3e20; }
.gold-capture h2 { font-size: 40px; }
.gold-capture > div > p:last-child { font-size: 17px; max-width: 440px; margin-top: 24px; }
.gold-capture .request-form { padding: 30px; border: 1px solid #f8e4b0; background: #17150f; box-shadow: 0 8px 26px #6e501b44; }
.form-quick .request-fields, .form-interest .request-fields { grid-template-columns: minmax(0, 1fr); }
.quick-note { margin-top: 20px; font-size: 14px; }

/* Условия заказа и отрасли из исходного макета. */
.condition-step { display: flex; gap: 14px; align-items: flex-start; }
.condition-number, .condition-step h3 { color: var(--gold); font-size: 14px; line-height: 1.5; font-weight: 400; text-transform: uppercase; letter-spacing: 1.4px; }
.condition-number { flex: 0 0 auto; }
.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.sector-grid li { position: relative; min-height: 104px; padding: 20px 14px 20px 38px; border: 1px solid #484335; color: #e7e2d7; font-size: 15px; line-height: 1.4; }
.sector-grid li::before { content: '✓'; position: absolute; left: 14px; top: 20px; color: var(--gold); }

/* Стеклянная карточка заявки и вложенное пояснение. */
.lead-dialog, .information-dialog { position: fixed; width: min(560px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #a68d52; color: var(--text); background: #13130fea; box-shadow: 0 28px 100px #000b; backdrop-filter: blur(28px); overflow: auto; }
.lead-dialog::backdrop, .information-dialog::backdrop { background: #0009; backdrop-filter: blur(10px); }
.lead-panel { padding: 44px 38px 26px; }
.lead-panel > .eyebrow { margin-bottom: 22px; }
.lead-panel h2 { font-size: 37px; line-height: 1.12; padding-right: 20px; }
.selected-product { margin-top: 18px; color: var(--gold); font-size: 18px; }
.selected-product:empty { display: none; }
.lead-intro { margin-top: 18px; font-size: 17px; }
.service-summary { position: relative; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 18px 28px 18px 0; margin-block: 18px; border-block: 1px solid #756c4f66; color: #bbb2a0; font-size: 14px; }
.info-button { position: absolute; right: 0; top: 16px; width: 23px; height: 23px; padding: 0; border: 1px solid currentColor; border-radius: 50%; color: var(--gold); background: transparent; font-size: 14px; font-weight: 500; }
.lead-panel .request-form { padding: 0; background: transparent; }
.dialog-close { position: sticky; float: right; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; padding: 0; margin: 10px 12px -44px 0; color: var(--gold); border: 1px solid transparent; background: #15140fe8; font-size: 29px; line-height: 1; }
.dialog-close:hover { border-color: currentColor; }
.dialog-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 24px; margin-top: 24px; border-top: 1px solid #756c4f66; font-size: 14px; color: #b7ae9b; }
.dialog-footer a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; font-size: 15px; }
.information-inner { padding: 44px 34px; }
.information-inner h2 { font-size: 32px; }
.information-inner p:not(.eyebrow) { margin-top: 22px; font-size: 17px; }

/* Светлый бланк расширенной заявки. */
.lead-dialog.is-paper { width: min(860px, calc(100% - 40px)); background: #f6f3eb; color: #222018; color-scheme: light; }
.is-paper .dialog-close { color: #776037; background: #f6f3ebee; }
.is-paper .lead-panel { padding-inline: 42px; }
.is-paper .eyebrow { color: #786033; }
.is-paper .lead-intro, .is-paper .service-summary, .is-paper .dialog-footer { color: #605b50; }
.is-paper .selected-product, .is-paper .info-button, .is-paper .dialog-footer a { color: #76551f; }
.paper-form { color-scheme: light; background: #f6f3eb; color: #222018; }
.paper-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 2px solid #9f895a; color: #62573d; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; }
.paper-form .form-field > label { color: #39362d; }
.paper-form .form-input { color: #242219; background: #fffefb; border-color: #9e8b61; }
.paper-form .form-input::placeholder { color: #8d877b; }
.paper-form .form-input:hover, .paper-form .form-input:focus { border-color: #29241a; background: #fff; }
.paper-form .form-consent, .paper-form .form-status { color: #625b4d; }
.paper-form .form-consent a { color: #715322; }
.client-kind { display: flex; flex-wrap: wrap; gap: 10px 22px; grid-column: 1 / -1; border: 0; padding: 0; margin: 0; font-size: 15px; }
.client-kind legend { color: #39362d; margin-bottom: 12px; font-size: 16px; }
.client-kind label { display: inline-flex; align-items: center; gap: 5px; }
.client-kind input { accent-color: #9c7736; width: 16px; height: 16px; }
.legal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.request-form button:disabled { opacity: .5; cursor: wait; }

/* Самостоятельные страницы каталога и заявок. */
.detail-main { padding-block: 0 100px; }
.detail-hero { padding-block: 36px 60px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 40px; color: #aaa18d; font-size: 13px; }
.breadcrumbs a { color: var(--gold); }
.detail-hero h1, .standalone-request h1 { max-width: 1000px; font-size: clamp(38px, 5vw, 66px); line-height: 1.1; }
.detail-intro { max-width: 800px; margin-top: 28px; font-size: 21px; }
.detail-grid { display: grid; grid-template-columns: .8fr 1fr; align-items: start; gap: 64px; }
.detail-copy h2, .detail-request > h2 { font-size: 32px; }
.detail-copy p { margin-top: 24px; font-size: 17px; }
.specifications { margin: 36px 0 48px; border-top: 1px solid var(--line); }
.specifications > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.specifications dt { color: var(--gold); font-size: 13px; }
.specifications dd { margin: 8px 0 0; font-size: 17px; }
.related-pages { display: grid; gap: 12px; margin-top: 24px; }
.related-pages a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; font-size: 17px; }
.standalone-request { max-width: 920px; padding-top: 36px; }
.standalone-request > p:not(.eyebrow) { margin-top: 24px; }
.standalone-request > .lead-form { margin-top: 32px; }
.standalone-request > .form-quick, .standalone-request > .form-interest { max-width: 600px; }

/* Адаптация меню, карточек и форм. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .header-inner { padding-inline: 24px; gap: 14px; }
  .brand { width: 220px; }
  .nav-links { gap: 14px; }
  .header-actions .button { padding-inline: 16px; }
}
@media (max-width: 1279px) {
  .header-inner { padding-inline: 40px; gap: 0; }
  .nav-mega { width: 100%; border-bottom: 1px solid var(--line); }
  .mega-toggle { width: 100%; min-height: 58px; padding-block: 14px; }
  .mega-menu { position: static; display: none; width: 100%; padding: 16px 0 24px; border: 0; box-shadow: none; background: transparent; backdrop-filter: none; }
  .nav-mega:hover .mega-menu, .nav-mega:focus-within .mega-menu { display: none; }
  .nav-mega.is-open .mega-menu { display: block; visibility: visible; opacity: 1; pointer-events: auto; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-card { min-height: 120px; }
  .mega-menu-heading span:last-child { display: none; }
  .gold-capture { padding: 36px; gap: 32px; grid-template-columns: 1fr 1fr; }
  .gold-capture h2 { font-size: 34px; }
  .detail-grid { gap: 36px; }
}
@media (max-width: 1023px) { .gold-capture, .detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .header-inner { padding-inline: 24px; }
  .mega-card { padding: 16px 12px; min-height: 128px; }
  .mega-card h3 { font-size: 18px; overflow-wrap: anywhere; }
  .mega-card > span { font-size: 12px; }
  .gold-capture { padding: 28px 20px; margin-top: 32px; gap: 28px; }
  .gold-capture h2 { font-size: 32px; }
  .gold-capture .request-form { padding: 24px 16px; }
  .sector-grid { gap: 10px; }
  .sector-grid li { font-size: 13px; padding: 16px 10px 16px 29px; min-height: 98px; }
  .sector-grid li::before { top: 16px; left: 10px; }
  .lead-dialog, .information-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .lead-dialog.is-paper { width: calc(100% - 24px); }
  .lead-panel, .is-paper .lead-panel { padding: 42px 22px 24px; }
  .lead-panel h2 { font-size: 31px; padding-right: 0; }
  .lead-panel .request-fields { gap: 18px; }
  .service-summary { gap: 5px 12px; font-size: 13px; }
  .dialog-footer { font-size: 13px; gap: 12px; }
  .information-inner { padding: 44px 24px 28px; }
  .legal-fields { grid-template-columns: minmax(0, 1fr); }
  .detail-main { padding-bottom: 64px; }
  .detail-hero { padding-block: 28px 40px; }
  .detail-intro { font-size: 18px; }
  .detail-request > .paper-form { padding: 26px 20px; }
  .standalone-request { padding-top: 28px; }
  .breadcrumbs { padding-bottom: 28px; }
}
@media (max-width: 359px) { .header-inner { padding-inline: 20px; } .gold-capture { padding-inline: 14px; } .gold-capture .request-form { padding-inline: 12px; } .lead-panel, .is-paper .lead-panel { padding-inline: 18px; } .image-badge { right: 14px; top: 14px; padding: 14px 16px; } }
