:root {
  color-scheme: light;
  --ink: #151818;
  --dark: #141819;
  --muted: #505857;
  --paper: #f1f2ef;
  --line: #dce0dc;
  --accent: #ffc437;
  --accent-hover: #ffda73;
  --radius: 16px;
  --body: Manrope, system-ui, sans-serif;
  --display: Oswald, "Arial Narrow", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.6 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.85rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.25rem, 4.3vw, 4.2rem); }
h3 { font-size: 1.225rem; line-height: 1.27; font-weight: 800; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #ce8616; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.container { width: min(1320px, calc(100% - clamp(32px, 8vw, 112px))); margin-inline: auto; }
.section { padding-block: clamp(56px, 7.5vw, 112px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.section-head > p { max-width: 38ch; color: var(--muted); }
.eyebrow, .request-contact__label, .contact-band__eyebrow {
  display: block; margin-bottom: 14px; color: #6b4b0b;
  font-size: .875rem; font-weight: 800; letter-spacing: .1em;
}
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 15; padding: 12px; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topline { background: #0c1010; color: #cbd0ca; font-size: .875rem; }
.topline__inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; }
.header { position: sticky; top: 0; z-index: 10; background: #151919f7; color: white; border-bottom: 1px solid #ffffff1a; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 1.48rem; line-height: 1; font-weight: 800; letter-spacing: -.085em; font-style: italic; }
.brand__mark, .brand__dot { color: var(--accent); }
.nav, .header__actions { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); }
.nav a, .contact-short div { color: #d1d6d2; font-size: .875rem; }
.nav a:hover, .contact-short a:hover, .footer a:hover { color: var(--accent); }
.contact-short { white-space: nowrap; }
.header-phone { font-weight: 800; }
.contact-short div { font-size: .75rem; }
.menu-toggle { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 10px 17px; border-radius: 9px;
  border: 1px solid transparent; font-size: .9375rem; font-weight: 800;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.button--yellow { color: var(--ink); background: var(--accent); }
.button--yellow:hover { background: var(--accent-hover); box-shadow: 0 4px 18px #ffb93740; }
.button--glass { color: #fff; border-color: #ffffff48; background: #ffffff08; }
.button--glass:hover { background: #ffffff17; }
.button--outline { border-color: #b6bcb7; color: var(--ink); background: #fff; }
.button--outline:hover { border-color: var(--ink); }
.button--dark { color: #fff; background: #171b1b; }
.button--dark:hover { background: #343a39; }
.button--small { min-height: 42px; white-space: nowrap; }

.hero { color: #fff; overflow: clip; background: radial-gradient(ellipse at 85% 27%, #3c2e20 0%, #191d1d 50%, #121616 85%); }
.hero-showroom {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center;
  gap: clamp(28px, 4.5vw, 72px); padding-block: clamp(36px, 6.2vw, 96px);
}
.hero .eyebrow, .hero h1 span { color: var(--accent); }
.hero h1 { margin-bottom: 24px; letter-spacing: -.035em; }
.hero__lead { max-width: 38ch; color: #d7dcd8; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-machine { position: relative; overflow: hidden; border: 1px solid #ffffff26; border-radius: var(--radius); background: #211b17; box-shadow: 0 30px 70px #0006; }
.hero-machine img { width: 100%; height: auto; }
.hero-machine figcaption { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #191c1c; color: #d4d9d5; font-size: .875rem; }
.hero-machine figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }

.catalog-section { padding-top: clamp(46px, 6vw, 84px); }
.catalog-tools { margin-bottom: 24px; display: grid; gap: 14px; }
.catalog-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-categories button {
  min-height: 44px; padding: 8px 14px; border-radius: 8px; color: var(--ink);
  border: 1px solid #cdd2cd; background: #fff; font-size: .875rem; font-weight: 800;
  transition: border-color .18s, background-color .18s;
}
.catalog-categories button:hover { border-color: #807f71; }
.catalog-categories button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.catalog-search-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.catalog-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#catalog-search { width: min(100%, 460px); min-width: 0; min-height: 48px; border-radius: 8px; padding: 10px 14px; background: #fff; border: 1px solid #cdd2cd; }
#catalog-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 24px); }
.catalog-product { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; box-shadow: 0 7px 22px #121a1710; transition: box-shadow .24s, border-color .24s; }
.catalog-product:target { border-color: #ac740d; box-shadow: 0 0 0 3px #ffc43780; }
.product-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; background: #fff; border-bottom: 1px solid #e9ebe8; }
.product-photo:focus-visible { outline-offset: -4px; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.photo-action {
  position: absolute; bottom: 12px; right: 12px; border-radius: 7px; background: #fff;
  color: var(--ink); border: 1px solid #d6dad4; padding: 4px 10px; font-size: .875rem; font-weight: 800;
}
@media (hover: hover) {
  .catalog-product:hover { border-color: #b9af92; box-shadow: 0 14px 32px #23261d1c; }
  .product-photo:hover img { transform: scale(1.04); }
  .product-photo:hover .photo-action { background: var(--accent); }
}
.product-body { display: flex; flex: 1; flex-direction: column; padding: clamp(14px, 1.6vw, 24px); }
.product-category { color: #704a05; font-size: .875rem; font-weight: 800; margin-bottom: 7px; }
.product-body h3 { font-size: clamp(1.2rem, 1.75vw, 1.52rem); }
.product-description { color: var(--muted); margin-block: 9px 18px; }
.product-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: auto; padding: 12px 10px; background: #f2f3ef; border-radius: 8px;
}
.product-metrics div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 3px; }
.product-metrics div + div { border-left: 1px solid #dfe2dc; padding-left: 8px; }
.product-metrics dt { font-size: .875rem; line-height: 1.35; color: #505652; overflow-wrap: anywhere; }
.product-metrics dd { font-size: .98rem; font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; }
.product-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.product-details { min-width: 0; }
.product-details summary {
  list-style: none; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; border: 1px solid #cdd2cd; border-radius: 9px; padding: 8px 7px; font-size: .875rem; font-weight: 800;
}
.product-details summary::-webkit-details-marker { display: none; }
.product-details summary:hover { border-color: #777e76; background: #f9faf7; }
.product-details[open] { grid-column: 1 / -1; }
.product-details[open] + .catalog-request { grid-column: 1 / -1; }
.product-actions .button { padding-inline: 6px; font-size: .875rem; }
.catalog-empty { padding: 36px 0; display: grid; justify-items: start; gap: 12px; }
.catalog-source-note { margin-top: 20px; color: var(--muted); font-size: .875rem; }

.product-dialog {
  width: min(980px, calc(100% - 28px)); max-height: min(90dvh, 900px); padding: 0;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink);
  box-shadow: 0 24px 90px #0007; overscroll-behavior: contain;
}
.product-dialog::backdrop { background: #0c1114b8; backdrop-filter: blur(5px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 16px clamp(14px, 3vw, 28px); border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head .product-category { margin-bottom: 4px; }
.dialog-close { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; border: 1px solid #cdd2cd; color: #141818; background: #f3f4f0; font-size: 1.5rem; line-height: 1; }
.dialog-close:hover { background: var(--accent); }
.dialog-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; padding: clamp(14px, 3vw, 28px); }
.dialog-photo { background: #f6f7f4; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dialog-photo img { width: 100%; max-height: 390px; object-fit: contain; }
.dialog-photo figcaption { padding: 8px 12px; color: var(--muted); font-size: .875rem; }
.dialog-description { color: var(--muted); margin-top: 14px; }
.product-specs { font-size: .9rem; overflow-wrap: anywhere; }
.product-specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 7px 0; }
.product-specs dd { font-weight: 800; text-align: right; }
.dialog-content h3 { margin: 0 0 8px; }
.dialog-footer { position: sticky; bottom: 0; padding: 12px clamp(14px, 3vw, 28px); background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: end; }
.dialog-footer .button { width: min(100%, 230px); }
.dialog-content--photo { display: block; }
.dialog-content--photo .dialog-photo img { max-height: 62dvh; }

.advantages-section, .about-section { background: #fff; border-top: 1px solid var(--line); }
.advantages-layout, .about-grid, .faq-layout, .request-layout, .contact-band__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); }
.advantages-lead { align-self: start; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); color: #fff; background: var(--dark); }
.advantages-lead .text-link { display: inline-flex; margin-top: 14px; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.advantage-list article { border-bottom: 1px solid var(--line); padding-block: 14px; }
.advantage-list article:first-child { padding-top: 0; }
.advantage-list p, .about-copy p { color: var(--muted); margin-top: 8px; }
.process-section, .faq-section, .request-section { background: var(--dark); color: #fff; }
:is(.process-section, .faq-section, .request-section) :is(.eyebrow, h2 span, .request-contact__label) { color: var(--accent); }
:is(.process-section, .faq-section, .request-section) p { color: #d0d7d2; }
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.process-grid article { padding: 18px; border-radius: 12px; border: 1px solid #ffffff24; background: #202625; }
.process-num { display: block; color: var(--accent); margin-bottom: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.process-grid p { margin-top: 8px; font-size: .9375rem; }
.about-grid { align-items: center; }
.about-visual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8%; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy .button, .faq-layout .button { margin-top: 22px; }
.faq-layout h2, .request-copy h2 { margin-bottom: 18px; }
.faq-list details { background: #202625; border: 1px solid #ffffff24; border-radius: 9px; padding: 14px 16px; }
.faq-list details + details { margin-top: 8px; }
.faq-list summary { font-weight: 800; }
.faq-list details p { margin-top: 8px; }
.request-section { background: radial-gradient(ellipse at 8% 0%, #3a2c1d, transparent 66%), var(--dark); }
.request-contact { margin-top: 24px; }
.request-contact a { font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.request-form { align-self: start; min-width: 0; padding: clamp(16px, 3vw, 30px); background: #202625; border: 1px solid #ffffff2a; border-radius: var(--radius); }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 16px; }
.form-field { display: grid; align-content: end; gap: 5px; min-width: 0; }
.form-field:first-child, .form-field:last-child { grid-column: 1 / -1; }
.form-field label, .form-privacy, .consent, .form-footnote { font-size: .875rem; }
.request-form :is(input:not([type="checkbox"]), textarea) { min-height: 45px; width: 100%; padding: 9px 10px; color: #fff; background: #131817; border: 1px solid #ffffff46; border-radius: 7px; }
.request-form textarea { resize: vertical; }
.form-privacy { margin-top: 12px; }
.form-privacy .privacy-note { margin-top: 8px; }
.consent { margin-block: 16px; display: flex; align-items: start; gap: 9px; color: #e3e8e4; }
.consent input { margin-top: 4px; accent-color: var(--accent); flex-shrink: 0; width: 18px; height: 18px; }
.button--submit { width: 100%; }
.form-footnote, .form-status { margin-top: 8px; }
.form-status:empty { display: none; }
#copy-message, #copy-fallback { margin-top: 10px; }

.contact-band { padding-block: clamp(32px, 5vw, 64px); background: var(--accent); color: #171a19; }
.contact-band__inner { align-items: center; }
.contact-band h2, .contact-band h1 { margin-bottom: 12px; }
.contact-band .button { margin-top: 17px; }
.contact-band__actions { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.contact-phone { font-size: clamp(1.55rem, 3vw, 2.45rem); font-weight: 800; line-height: 1.2; }
.contact-extra, .messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-extra a, .messenger { display: grid; padding: 8px 12px; border: 1px solid #3a2c0b55; border-radius: 8px; font-size: .875rem; }
.contact-extra a:hover, .messenger:hover { background: #ffdf8a; }
.messenger { font-weight: 800; }
.contacts-page .contact-band { min-height: 56vh; display: grid; }
.footer { padding-block: 30px; background: #101414; color: #d4dbd6; font-size: .875rem; }
.footer__top, .footer__bottom, .footer-messengers { display: flex; flex-wrap: wrap; align-items: start; gap: 14px 22px; }
.footer__top { align-items: center; justify-content: space-between; }
.footer-up { border: 1px solid #ffffff35; border-radius: 8px; padding: 4px 12px; }
.footer-messengers { margin-block: 20px; }
.footer__bottom { border-top: 1px solid #ffffff20; padding-top: 14px; }
.footer-privacy p { max-width: 55ch; margin-top: 8px; }
.mobile-quick { display: none; }

@media (max-width: 1240px) {
  .header__actions .button { display: none; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .header__inner { position: relative; min-height: 61px; }
  .header__actions { margin-left: auto; }
  .contact-short div { display: none; }
  .menu-toggle { display: grid; align-content: center; justify-content: center; gap: 5px; order: 3; width: 44px; height: 44px; border: 1px solid #ffffff45; border-radius: 8px; background: transparent; }
  .menu-toggle span { width: 18px; height: 2px; background: white; }
  .nav { display: none; }
  .nav.is-open { display: grid; position: absolute; top: calc(100% + 1px); right: 0; width: min(340px, 100%); border: 1px solid #ffffff24; padding: 8px; gap: 0; border-radius: 0 0 10px 10px; background: var(--dark); box-shadow: 0 22px 55px #0006; }
  .nav a { padding: 9px 12px; font-size: 1rem; }
}
@media (max-width: 720px) {
  .topline__right { display: none; }
  .hero-showroom, .advantages-layout, .about-grid, .faq-layout, .request-layout, .contact-band__inner { grid-template-columns: 1fr; }
  .hero-showroom { padding-block: 34px; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.8rem); margin-bottom: 16px; }
  .hero__buttons { margin-top: 20px; }
  .section-head { display: grid; gap: 12px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-content { grid-template-columns: 1fr; }
  .dialog-photo img { max-height: 33dvh; }
  .mobile-quick { position: fixed; z-index: 8; bottom: 0; left: 0; right: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #151919fa; color: #fff; border-top: 1px solid #ffffff28; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .mobile-quick a { display: grid; place-items: center; min-height: 40px; border-radius: 7px; background: #292e2d; font-weight: 800; font-size: .875rem; }
  .mobile-quick a:last-child { background: var(--accent); color: var(--ink); }
  .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .form-fields { grid-template-columns: 1fr; }
  .form-field { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .hero__buttons { display: grid; grid-template-columns: 1fr; }
  .catalog-categories { gap: 6px; }
  .catalog-categories button { padding-inline: 9px; }
  .header__inner { gap: 10px; }
  .header-phone { font-size: .875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-story, .hero-machine, .product-dialog[open] { animation: enter .38s ease-out both; }
  .hero-machine { animation-delay: .06s; }
  @keyframes enter { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
