/* Локальный шрифт. */
@font-face { font-family: Jost; src: url('../fonts/jost-variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }

/* Цвета и размеры. */
:root { color-scheme: dark; --background: #080808; --surface: #141414; --text: #efeeeb; --muted: #b1afa7; --gold: #c6a354; --gold-hover: #dfbf76; --line: #37362f; --page-width: 1440px; --control-size: 18px; --header-height: 88px; --marker: url('../../images/favicon.webp'); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); scrollbar-gutter: stable; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Jost, sans-serif; font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
button, input, textarea, select { font-family: inherit; font-size: var(--control-size); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
h2 { font-size: 48px; line-height: 1.14; letter-spacing: -.8px; }
h3 { font-size: 27px; line-height: 1.25; }
p { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 5px; }
::selection { color: var(--background); background: var(--gold); }
.container { width: 100%; max-width: var(--page-width); padding-inline: 64px; margin-inline: auto; }
.section { padding-block: 100px; }
.section-dark { background: var(--surface); }
.accent { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 400; top: -100px; left: 12px; padding: 12px 20px; color: var(--background); background: var(--gold); }
.skip-link:focus { top: 12px; }

/* Фирменные маркеры. */
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); text-transform: uppercase; font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: 1.4px; margin-bottom: 28px; }
.eyebrow::before, .marked-title::before, .brand-list > li::before, .industry-list a::before { content: ''; display: block; flex: 0 0 auto; width: 22px; height: 22px; background: var(--marker) center / contain no-repeat; }
.eyebrow::before { width: 14px; height: 14px; }
.marked-title { display: flex; align-items: flex-start; gap: 14px; }
.marked-title::before { margin-top: 6px; }
.brand-list > li { display: flex; align-items: center; gap: 14px; }

/* Единый стиль кнопок. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 24px; border: 1px solid var(--gold); border-radius: 0; font-family: Jost, sans-serif; font-size: var(--control-size); font-weight: 500; line-height: 1.25; letter-spacing: 0; text-align: center; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button-gold { color: var(--background); background: var(--gold); }
.button-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.button-outline { color: var(--text); background: var(--background); }
.button-outline:hover { color: var(--gold-hover); border-color: var(--gold-hover); background: #19170f; }

/* Липкая шапка. */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--background); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); padding-inline: 40px; }
.brand { display: block; flex: 0 0 auto; width: 260px; }
.brand img { width: 100%; }
.main-nav { flex: 0 1 auto; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a { padding-block: 14px; color: var(--muted); font-size: var(--control-size); font-weight: 500; line-height: 1.25; white-space: nowrap; }
.nav-links > a:hover, .footer-nav a:hover { color: var(--gold-hover); }
.header-actions { flex: 0 0 auto; }
.menu-control { position: relative; display: none; flex: 0 0 auto; width: 48px; height: 48px; padding: 12px; color: var(--gold); border: 1px solid var(--gold); background: transparent; }
.menu-control span { display: block; height: 2px; width: 22px; background: currentColor; }
.menu-toggle span + span { margin-top: 5px; }
.mobile-menu-header, .mobile-request { display: none; }

/* Поля формы без дополнительных рамок. */
.request-form { min-width: 0; padding: 32px; background: #1a1a18; }
.request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; min-width: 0; padding: 0; margin: 0; border: 0; }
.form-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.form-field > label { color: var(--text); font-size: 16px; line-height: 1.4; }
.form-field > label > span { color: var(--gold); }
.form-field-wide { grid-column: 1 / -1; }
.form-input { display: block; width: 100%; min-width: 0; min-height: 56px; padding: 13px 14px; border: 1px solid var(--gold); border-radius: 0; background: #10100f; color: var(--text); font: inherit; font-size: 18px; line-height: 1.4; scroll-margin-top: calc(var(--header-height) + 32px); transition: border-color .15s ease; }
.form-input::placeholder { color: #99988f; opacity: 1; }
.form-input:hover, .form-input:focus { border-color: #fff; }
.form-input:focus-visible { outline: none; border-color: #fff; background: #161614; }
textarea.form-input { min-height: 128px; resize: vertical; }
select.form-input { cursor: pointer; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; cursor: pointer; }
.form-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.form-consent a { color: #d8caa8; text-decoration: underline; text-underline-offset: 3px; }
.form-note { margin-top: 16px; font-size: 13px; }
.form-status { margin-top: 16px; color: var(--gold-hover); font-size: 16px; }
.form-status:empty { display: none; }

/* Первый экран. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 760px; padding-top: 60px; padding-bottom: 48px; }
.hero-copy { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 76px; font-weight: 400; line-height: 1.06; letter-spacing: -1.3px; }
.hero h1 .accent { display: block; }
.hero-description { max-width: 570px; margin-top: 28px; font-size: 19px; line-height: 1.5; }
.hero-location { margin-top: 16px; color: var(--text); font-size: 19px; }
.hero-caption { max-width: 500px; margin-top: 18px; font-size: 16px; }
.hero-buttons { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hero-buttons .button { min-width: 240px; }
.hero-art { position: absolute; z-index: -1; bottom: 0; right: max(0px, calc((100% - 1440px) / 2)); width: min(77.778vw, 1120px); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hero-art img { width: 100%; filter: brightness(.72); }
.hero-facts { position: relative; z-index: 1; display: flex; gap: 48px; padding-top: 28px; margin-top: 48px; border-top: 1px solid #47463e; color: var(--text); font-size: 19px; line-height: 1.4; }
.hero-facts > li::before { width: 28px; height: 28px; }

/* Продукция. */
.products-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; margin-bottom: 52px; }
.section-description { font-size: 17px; max-width: 390px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.product-image { width: 100%; height: 320px; object-fit: cover; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 30px; }
.product-content p { margin-block: 20px 24px; font-size: 17px; line-height: 1.55; }
.product-content .button { display: flex; width: 100%; margin-top: auto; }

/* Изготовление под заказ. */
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.custom-image { width: 100%; height: 610px; object-fit: cover; }
.custom-copy > p:not(.eyebrow) { margin-top: 24px; font-size: 17px; line-height: 1.55; }
.custom-list { display: grid; gap: 16px; margin-block: 28px 32px; font-size: 17px; }
.custom-list > li { align-items: flex-start; }
.custom-list > li::before { margin-top: 3px; }

/* Условия заказа. */
.advantages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.advantage { border-top: 1px solid #535047; padding-top: 28px; }
.advantage .marked-title { flex-direction: column; gap: 24px; }
.advantage .marked-title::before { width: 30px; height: 30px; margin-top: 0; }
.advantage h3 { font-size: 25px; }
.advantage p { margin-top: 22px; font-size: 17px; }

/* Задачи покупателей. */
.industries-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; }
.industries-intro { margin-top: 28px; font-size: 17px; }
.industry-list li { border-top: 1px solid var(--line); }
.industry-list a { position: relative; display: block; padding: 28px 0 28px 42px; }
.industry-list a::before { position: absolute; top: 33px; left: 0; }
.industry-list h3 { font-size: 25px; }
.industry-list p { margin-top: 12px; font-size: 16px; }
.industry-list a:hover h3 { color: var(--gold-hover); }

/* Порядок заказа. */
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.process-grid li { border-top: 1px solid var(--line); padding-top: 28px; }
.step-number { display: block; margin-bottom: 22px; color: var(--gold); font-size: 38px; font-weight: 400; line-height: 1; }
.process-grid h3 { font-size: 26px; }
.process-grid p { margin-top: 22px; font-size: 17px; }

/* Расчет партии и контакты. */
.contacts { border-top: 1px solid var(--gold); }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.contacts h2 { font-size: 50px; }
.contacts-copy > p:not(.eyebrow) { max-width: 520px; margin-top: 30px; font-size: 17px; }
.contact-details { display: grid; justify-items: start; gap: 12px; margin-top: 48px; }
.contact-label { font-size: 15px; }
.contact-phone { display: inline-block; padding: 12px 18px; border: 1px solid var(--gold); color: var(--gold); font-size: 30px; line-height: 1.3; transition: color .15s ease, border-color .15s ease; }
.contact-phone:hover, .contact-phone:focus-visible { color: #fff; border-color: #fff; outline: none; }

/* Подвал. */
.site-footer { padding-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr .7fr; gap: 64px; padding-bottom: 60px; }
.footer-brand { width: 270px; }
.footer-company p { margin-top: 26px; font-size: 16px; }
.footer-grid .eyebrow { margin-bottom: 20px; font-size: 14px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-nav h2 { margin-bottom: 10px; }
.footer-nav a { color: var(--muted); font-size: 16px; }
.footer-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 17px; }
.footer-contacts .eyebrow { margin-bottom: 8px; }
.footer-contacts p { font-size: 16px; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 20px 24px; align-items: start; border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); font-size: 14px; }
.footer-legal { grid-column: 1 / -1; max-width: 1080px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-bottom a:hover { color: var(--gold-hover); }
.legal-fallback { padding-bottom: 24px; font-size: 13px; }
.js .legal-fallback { display: none; }

/* Диалог документов. */
.legal-dialog { width: min(580px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--gold); color: var(--text); background: var(--surface); }
.legal-dialog::backdrop { background: rgb(0 0 0 / 78%); }
.legal-dialog-inner { padding: 40px; }
.legal-dialog h2 { font-size: 34px; overflow-wrap: anywhere; }
.legal-dialog p:not(.eyebrow) { margin-block: 24px 28px; }

/* Страница ошибки. */
.error-page main { min-height: 100svh; padding-block: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; }
.error-page .eyebrow { margin-top: 36px; margin-bottom: 0; }
.error-page h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.15; }
.error-page .button { margin-top: 12px; max-width: 300px; min-width: 220px; }

/* Планшеты и полноэкранная навигация. */
@media (max-width: 1279px) {
  :root { --header-height: 76px; }
  .container { padding-inline: 40px; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .site-header { position: relative; }
  .js .site-header { position: sticky; }
  .brand { width: 220px; }
  .header-actions { display: none; }
  .js .menu-toggle { display: block; }
  .main-nav { flex-basis: 100%; padding-block: 24px; }
  .nav-links { flex-wrap: wrap; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; width: 100%; height: 100dvh; padding: 0 40px 32px; background: var(--background); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 76px; border-bottom: 1px solid var(--line); }
  .mobile-menu-header .menu-close { display: block; }
  .menu-close span { position: absolute; top: 22px; left: 12px; transform: rotate(45deg); }
  .menu-close span + span { transform: rotate(-45deg); }
  .main-nav .nav-links { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding-block: 14px 28px; }
  .main-nav .nav-links > a { display: flex; align-items: center; gap: 16px; min-height: 58px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-links > a::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; background: var(--marker) center / contain no-repeat; }
  .mobile-request { display: block; margin-top: auto; padding-top: 16px; }
  .mobile-request .eyebrow { margin-bottom: 16px; }
  .mobile-request h2 { font-size: 32px; line-height: 1.2; }
  .mobile-request > .button { width: 100%; }
  .mobile-request-description { margin-block: 12px 20px; font-size: 16px; }
  .hero h1 { font-size: 68px; }
  .hero-copy { max-width: 700px; }
  .hero-art { width: 1024px; max-width: none; right: -280px; opacity: .75; }
  .hero-description { max-width: 480px; }
  .hero-facts { gap: 28px; font-size: 18px; }
  h2 { font-size: 42px; }
  .products-heading { gap: 40px; }
  .custom-grid { gap: 40px; }
  .custom-image { height: 600px; }
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .industries-grid { gap: 40px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .contacts-grid { gap: 40px; }
  .contacts h2 { font-size: 42px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
  .footer-brand { width: 220px; }
}

@media (max-width: 1023px) { .contacts-grid { grid-template-columns: minmax(0, 1fr); } }

/* Мобильная версия. */
@media (max-width: 767px) {
  .container { padding-inline: 24px; }
  .section { padding-block: 72px; }
  h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.5px; }
  h3 { font-size: 26px; }
  .eyebrow { font-size: 13px; letter-spacing: 1.1px; margin-bottom: 24px; }
  .header-inner { padding-inline: 24px; }
  .brand { width: 220px; }
  .js .main-nav.is-open { padding-inline: 24px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .hero-inner { min-height: 0; padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(40px, 10.8vw, 58px); line-height: 1.08; letter-spacing: -.8px; }
  .hero-description { font-size: 18px; margin-top: 24px; }
  .hero-location { font-size: 18px; margin-top: 18px; }
  .hero-caption { font-size: 16px; margin-top: 18px; }
  .hero-buttons { display: grid; gap: 12px; margin-top: 28px; }
  .hero-buttons .button { width: 100%; min-width: 0; }
  .hero-art { position: relative; right: auto; bottom: auto; flex: 0 0 auto; width: calc(100% + 48px); height: 360px; margin: 12px -24px -12px; overflow: hidden; opacity: 1; mask-image: linear-gradient(180deg, transparent, #000 16%, #000 90%, transparent); }
  .hero-art img { position: absolute; width: 589px; max-width: none; left: calc((100% - 589px) / 2); bottom: 0; }
  .hero-facts { display: grid; gap: 18px; padding-top: 24px; margin-top: 0; font-size: 19px; }
  .products-heading { display: block; margin-bottom: 40px; }
  .section-description { margin-top: 24px; font-size: 17px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-image { height: auto; aspect-ratio: 342 / 250; }
  .product-content { padding: 26px 22px; }
  .product-content h3 { font-size: 25px; }
  .product-content p { font-size: 17px; margin-block: 20px 24px; }
  .product-content .button { padding-inline: 12px; }
  .custom-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .custom-image { height: auto; aspect-ratio: 1; }
  .custom-copy > p:not(.eyebrow) { font-size: 17px; }
  .custom-list { font-size: 17px; }
  .custom-copy .button { width: 100%; padding-inline: 12px; }
  .advantages-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .advantage .marked-title { flex-direction: row; gap: 16px; align-items: center; }
  .advantage .marked-title::before { width: 24px; height: 24px; }
  .industries-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .industries-intro { margin-top: 24px; }
  .industry-list h3 { font-size: 24px; }
  .industry-list a { padding-left: 36px; }
  .industry-list a::before { width: 20px; height: 20px; }
  .process-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .process-grid p { margin-top: 20px; }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contacts h2 { font-size: 36px; }
  .request-form { padding: 26px 22px; }
  .request-fields { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contact-details { margin-top: 32px; }
  .contact-phone { font-size: 28px; }
  .site-footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
  .footer-brand { width: 250px; }
  .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 14px; }
  .legal-dialog-inner { padding: 28px 24px; }
}

/* Узкие экраны и уменьшение движения. */
@media (max-width: 359px) { .container { padding-inline: 20px; } .header-inner { padding-inline: 20px; } .brand { width: 190px; } h2, .contacts h2 { font-size: 33px; } .hero h1 { font-size: 38px; } .product-content { padding-inline: 18px; } .product-content h3 { font-size: 23px; } .marked-title { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
