:root {
  --ink: #1c1a16;
  --muted: #6f6b62;
  --line: #ddd4c5;
  --paper: #f4efe6;
  --white: #fffdfa;
  --accent: #8a3f27;
  --accent-2: #c88a49;
  --olive: #53614a;
  --charcoal: #24211d;
  --radius: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
main { min-height: 70vh; }

.topbar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: minmax(160px, auto) 1fr; gap: clamp(16px, 3vw, 34px); align-items: center; padding: 14px clamp(18px, 4vw, 52px); background: rgba(244,239,230,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--white); border-radius: 50%; font-size: 13px; }
.brand-name { transition: color .18s ease; }
.header-contact { min-width: 0; justify-self: center; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; }
.header-contact > a { color: var(--ink); font-weight: 850; font-size: 18px; }
.header-contact span { white-space: nowrap; }
.header-address { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.header-socials, .footer-socials, .social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link { --social: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; min-width: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--social) 30%, transparent); background: color-mix(in srgb, var(--social) 10%, var(--white)); color: var(--social); font-size: 12px; font-weight: 850; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.social-link:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--social) 16%, var(--white)); border-color: color-mix(in srgb, var(--social) 42%, transparent); }
.social-link svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
.header-socials .social-link { padding: 0; width: 34px; }
.telegram { --social: #229ed9; }
.whatsapp { --social: #25d366; }
.max { --social: #7b5cff; }
.vk { --social: #0077ff; }
.nav { justify-self: end; display: flex; justify-content: flex-end; gap: 22px; align-items: center; color: var(--muted); font-size: 15px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 2px; font-weight: 650; transition: color .18s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 999px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--accent); }
.nav a.active::after { transform: scaleX(1); }
.icon-btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; min-width: 38px; height: 38px; cursor: pointer; }
.mobile-cart { display: none; }

.hero { position: relative; min-height: 82vh; display: grid; align-items: end; overflow: hidden; background: var(--charcoal); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,26,22,.9), rgba(28,26,22,.54) 48%, rgba(28,26,22,.2)); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(1.12) contrast(1.06) brightness(.74); }
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: 820px; min-width: 0; padding: 10vh clamp(20px, 6vw, 78px) 14vh; color: var(--white); }
.hero h1 { margin: 8px 0 18px; font-size: clamp(42px, 7vw, 88px); line-height: .98; letter-spacing: 0; }
.hero p { font-size: 19px; max-width: 620px; line-height: 1.6; }
.texture-stack { position: absolute; z-index: 2; right: clamp(18px, 5vw, 74px); bottom: 11vh; width: min(360px, 32vw); height: 410px; pointer-events: none; }
.texture-tile { position: absolute; width: 210px; aspect-ratio: 1 / 1; border: 8px solid rgba(255,253,250,.82); box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.tile-1 { left: 0; top: 10px; }
.tile-2 { right: 0; top: 76px; }
.tile-3 { left: 42px; bottom: 28px; }
.tile-4 { right: 34px; bottom: -18px; }
.hero-facts { position: absolute; z-index: 3; left: clamp(20px, 6vw, 78px); bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts span { padding: 10px 14px; background: rgba(255,253,250,.14); border: 1px solid rgba(255,253,250,.28); color: var(--white); border-radius: 999px; font-size: 13px; font-weight: 800; backdrop-filter: blur(10px); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--accent-2); font-weight: 800; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button, button.primary, a.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--ink); font-weight: 700; cursor: pointer; }
.button.primary, button.primary, a.primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.button.ghost { background: rgba(255,255,255,.14); color: inherit; border-color: currentColor; }
.button.small { min-height: 36px; padding: 0 12px; font-size: 14px; }

.section { padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 52px); max-width: 1280px; margin: 0 auto; }
.intro-grid, .lead-section, .product-detail { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(28px, 6vw, 74px); align-items: start; }
.section h2, .band h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; }
.section-copy { color: var(--muted); line-height: 1.65; font-size: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: rgba(255,253,250,.9); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 16px 40px rgba(45,35,25,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 58px rgba(45,35,25,.12); border-color: rgba(138,63,39,.35); }
.image-card img, .product-card img { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 22px; }
.card p { color: var(--muted); line-height: 1.55; }
.sku { margin: 0 0 10px; color: var(--accent-2) !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px !important; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.product-row strong, .price { font-size: 24px; }
.category-product-note { margin: 14px 0 0; padding: 12px 13px; border: 1px solid rgba(83,97,74,.24); border-radius: var(--radius); background: #eef1ea; color: #46543f !important; font-size: 14px !important; line-height: 1.45 !important; font-weight: 700; }
.detail-category-note { max-width: 620px; margin-bottom: 18px; font-size: 16px !important; }
.price-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent-2); background: #fbf4e9; color: #735641 !important; border-radius: 0 6px 6px 0; font-size: 13px !important; line-height: 1.45 !important; }
.detail-note { max-width: 620px; margin-top: 18px; font-size: 15px !important; }

.center-head { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.center-head h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1; }
.center-head h2 span { color: #f25a13; }
.composition-section { background: radial-gradient(circle at top, #fff 0, var(--paper) 70%); max-width: none; }
.composition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 32px); max-width: 1380px; margin: 0 auto; }
.composition-grid article { overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 54px rgba(45,35,25,.12); }
.composition-grid img { width: 100%; aspect-ratio: 4 / 3; }
.composition-grid div { padding: 24px 18px 26px; text-align: center; border-top: 1px solid var(--line); }
.composition-grid h3 { margin: 0 0 8px; font-size: 25px; }
.composition-grid p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.composition-grid span { color: #f25a13; font-weight: 800; }

.split-showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 6vw, 78px); padding: clamp(54px, 7vw, 94px) clamp(18px, 4vw, 52px); background: #2b2924; color: var(--white); align-items: center; }
.showcase-copy { max-width: 620px; }
.showcase-copy h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 62px); line-height: 1; }
.showcase-copy p { color: rgba(255,253,250,.72); line-height: 1.7; font-size: 18px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.mini-stats div { border-top: 1px solid rgba(255,253,250,.24); padding-top: 14px; }
.mini-stats strong { display: block; font-size: 36px; color: var(--accent-2); }
.mini-stats span { color: rgba(255,253,250,.7); }
.material-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.material-board a { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 180px; background: #111; }
.material-board img { width: 100%; height: 100%; aspect-ratio: 1 / 1; transition: transform .28s ease; }
.material-board a:hover img { transform: scale(1.06); }
.material-board span { position: absolute; left: 10px; bottom: 10px; background: rgba(28,26,22,.72); color: var(--white); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 800; }
.band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 52px); background: #e4d9c7; }
.dark-band { background: linear-gradient(135deg, #3c2a20, #53614a); color: var(--white); }
.dark-band .features p { background: rgba(255,253,250,.12); border: 1px solid rgba(255,253,250,.18); color: rgba(255,253,250,.84); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features p { margin: 0; padding: 22px; background: rgba(255,255,255,.55); border-radius: var(--radius); line-height: 1.55; }
.application-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.application-grid article { min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: var(--radius); color: var(--white); background: linear-gradient(160deg, rgba(28,26,22,.18), rgba(28,26,22,.9)), var(--accent); }
.application-grid article:nth-child(2) { background: linear-gradient(160deg, rgba(28,26,22,.12), rgba(28,26,22,.88)), #8a3f27; }
.application-grid article:nth-child(3) { background: linear-gradient(160deg, rgba(28,26,22,.12), rgba(28,26,22,.88)), #53614a; }
.application-grid article:nth-child(4) { background: linear-gradient(160deg, rgba(28,26,22,.12), rgba(28,26,22,.88)), #ad7a40; }
.application-grid span { color: rgba(255,253,250,.62); font-weight: 900; }
.application-grid h3 { margin: 14px 0 8px; font-size: 23px; }
.application-grid p { margin: 0; color: rgba(255,253,250,.78); line-height: 1.5; }
.page-title { padding: clamp(52px, 8vw, 110px) clamp(18px, 4vw, 52px) 34px; max-width: 980px; }
.page-title h1 { margin: 0 0 18px; font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.page-title p { color: var(--muted); line-height: 1.65; font-size: 18px; }
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.filters { display: grid; gap: 8px; align-content: start; }
.filters a { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.filters a.active { background: var(--ink); color: var(--white); }
.category-description { display: grid; grid-template-columns: .55fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 34px clamp(18px, 4vw, 52px); margin: 0 clamp(18px, 4vw, 52px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.category-description h2 { margin: 0; font-size: clamp(26px, 4vw, 44px); line-height: 1.05; }
.category-description p:last-child { margin: 0; color: var(--muted); line-height: 1.75; font-size: 18px; }
.product-detail { padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 52px); max-width: 1180px; margin: 0 auto; }
.product-detail-with-options { max-width: 1480px; grid-template-columns: minmax(300px, 500px) minmax(320px, 1fr) minmax(300px, 390px); gap: clamp(20px, 3vw, 34px); }
.product-media img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius); }
.product-summary { min-width: 0; }
.product-detail h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1; margin: 0 0 18px; }
.product-detail p { color: var(--muted); line-height: 1.65; font-size: 18px; }
.manufacturing-panel { position: sticky; top: 94px; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 18px 54px rgba(45,35,25,.12); }
.manufacturing-head { padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 19px; font-weight: 800; }
.manufacturing-select-label { display: grid; gap: 8px; padding: 18px 20px 14px; color: var(--muted); font-size: 14px; }
.manufacturing-select { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); padding: 0 14px; font: inherit; font-weight: 750; }
.manufacturing-selected { padding: 4px 20px 20px; }
.manufacturing-selected h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; }
.manufacturing-selected p { margin: 7px 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.manufacturing-selected p span { color: var(--ink); font-weight: 800; }
.manufacturing-selected p strong { color: var(--muted); font-weight: 650; }
.manufacturing-price { margin-top: 18px; }
.manufacturing-price strong { color: #d84d2a; font-size: 28px; white-space: nowrap; }
.manufacturing-cart { width: calc(100% - 40px); margin: 0 20px 20px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 0; }
.specs div { padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.specs dt { color: var(--muted); font-size: 13px; }
.specs dd { margin: 4px 0 0; font-weight: 800; }
.article-card img { aspect-ratio: 16 / 10; }
.article-view { max-width: 860px; margin: 0 auto; padding: 48px 18px 90px; }
.article-view > img { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); margin-bottom: 28px; }
.article-view h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.lead, .content { color: var(--muted); font-size: 19px; line-height: 1.75; }
.content p { margin: 0 0 18px; }

.form { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; min-height: 42px; padding: 10px; font: inherit; background: #fff; }
.cart-panel { position: fixed; top: 0; right: 0; width: min(420px, 100vw); height: 100vh; z-index: 20; padding: 20px; background: var(--white); border-left: 1px solid var(--line); transform: translateX(100%); transition: .22s ease; overflow: auto; }
.cart-panel.open { transform: translateX(0); }
.cart-head, .cart-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-line { border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-line span { display: grid; }
.cart-line small, .muted { color: var(--muted); }
.contacts-page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.contact-card.wide, .social-contact { grid-column: 1 / -1; }
.contact-card span { display: block; margin-bottom: 10px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 850; }
.contact-card a { font-size: 24px; font-weight: 850; }
.contact-card p { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 30px; padding: 38px clamp(18px, 4vw, 52px); border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr; gap: 10px; }
  .brand { padding-right: 54px; }
  .nav { justify-self: stretch; width: 100%; justify-content: flex-end; overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .icon-btn { flex: 0 0 auto; }
  .desktop-cart { display: none; }
  .mobile-cart { position: fixed; top: 12px; right: 16px; z-index: 100; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; width: 38px; height: 38px; box-shadow: 0 8px 22px rgba(28,26,22,.12); }
}

@media (max-width: 860px) {
  .footer, .section-head { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 72vh; }
  .texture-stack { display: none; }
  .hero-copy { padding-bottom: 120px; }
  .intro-grid, .lead-section, .product-detail, .product-detail-with-options, .band, .catalog-layout, .split-showcase, .category-description { grid-template-columns: 1fr; }
  .manufacturing-panel { position: static; }
  .cards.three, .cards.two, .features, .mini-stats, .material-board, .application-grid, .composition-grid, .contacts-page { grid-template-columns: 1fr; }
  .contact-card.wide, .social-contact { grid-column: auto; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-socials .social-link { min-height: 30px; width: 30px; min-width: 30px; }
  .header-socials .social-link svg { width: 15px; height: 15px; }
  .nav { gap: 10px; font-size: 13px; }
  .nav a { min-height: 34px; }
  .hero-copy { padding: 72px 24px 132px; }
  .hero h1 { max-width: 100%; font-size: 32px; line-height: 1.08; overflow-wrap: normal; }
  .hero p { max-width: 320px; font-size: 15px; line-height: 1.55; overflow-wrap: break-word; }
  .actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .button, button.primary, a.primary { width: 100%; }
  .hero-facts { left: 18px; right: 18px; bottom: 18px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .hero-facts::-webkit-scrollbar { display: none; }
  .hero-facts span { flex: 0 0 auto; }
}
