/* Avangard Weld. Макет: тёмная узкая шапка с поиском, слева вертикальное меню-плашки, справа содержимое. Светлая тема по утверждённому дизайну. */
:root {
  --bg: #F6F7F8;
  --card: #FFFFFF;
  --ink: #1F2328;
  --muted: #5A6067;
  --soft: #6B7177;
  --line: #E6E8EB;
  --tint: #EEF2F6;
  --accent: #1F4E79;
  --accent-ink: #FFFFFF;
  --dark: #1C1F23;
  --dark-ink: #E9ECEF;
  --dark-muted: #A9B0B7;
  --tg: #2AABEE;
  --ok: #1D7A46;
  --shadow: 0 1px 2px rgba(20,23,26,.04), 0 6px 20px rgba(20,23,26,.05);
  --display: "Big Shoulders Display", "Arial Narrow", Arial, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--body); }
img, video { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }

/* шапка */
.top { background: var(--dark); color: var(--dark-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 10px; }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 236px; }
.logo b { font: 900 30px/0.9 var(--display); letter-spacing: 1px; background: linear-gradient(180deg,#fff 0%,#C9CED3 40%,#6B7177 52%,#E3E6E9 70%,#9DA3A9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo span { display: flex; align-items: center; gap: 6px; font: 800 10px/1 var(--display); letter-spacing: 5px; color: #C9CED3; }
.logo span::before, .logo span::after { content: ""; width: 26px; height: 1px; background: #6B7177; }
.search { flex: 1 1 340px; position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 4px 4px 4px 14px; color: var(--ink); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-weight: 500; font-size: 14px; padding: 8px 2px; }
.btn { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 99px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.12); }
.btn.light { background: var(--tint); color: var(--ink); }
.btn.light:hover { color: var(--accent); }
.btn.white { background: #fff; color: var(--ink); }
.search .btn { border-radius: 9px; min-height: 36px; padding: 0 18px; font-size: 13px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 6px; display: grid; gap: 2px; z-index: 30; }
.suggest[hidden] { display: none; }
.suggest a { text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.suggest a:hover, .suggest a.on { background: var(--tint); }
.suggest img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.suggest small { color: var(--soft); display: block; font-size: 12px; }
.suggest .all { justify-content: center; color: var(--accent); font-weight: 600; font-size: 13px; }
.phones { display: grid; gap: 2px; }
.ph { display: flex; align-items: center; gap: 8px; }
.ph a { color: var(--dark-ink); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tgi { width: 20px; height: 20px; border-radius: 50%; background: var(--tg); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tgi svg { width: 11px; height: 11px; fill: #fff; }
.cartlink { background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 99px; white-space: nowrap; }

/* каркас */
.shell { display: flex; gap: 20px; flex-wrap: wrap; align-items: stretch; padding-block: 20px 0; }
.menu { flex: 1 1 250px; max-width: 250px; min-width: 220px; display: flex; flex-direction: column; gap: 8px; align-self: flex-start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); padding-bottom: 24px; }
.menu a { text-decoration: none; min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.menu a[aria-current="page"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.menu .ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.menu .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.menu .tx b { font-size: 15px; }
.menu .tx small { font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .chev { color: #A0A6AD; flex: none; }
main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }

.crumbs { font-size: 13px; color: var(--soft); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--accent); text-decoration: none; }
.head { display: flex; flex-direction: column; gap: 6px; }
.head h1 { font-size: 30px; font-weight: 700; }
.head p { margin: 0; color: var(--muted); max-width: 70ch; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.chips a, .chips button { text-decoration: none; border: 0; background: var(--card); padding: 8px 14px; border-radius: 99px; cursor: pointer; box-shadow: var(--shadow); font-weight: 500; }
.chips .on { background: var(--ink); color: #fff; }

/* бегущая строка */
.marq { overflow: hidden; border-radius: 20px; }
.track { display: flex; gap: 14px; width: max-content; animation: awm 80s linear infinite; }
.marq:hover .track, .marq:focus-within .track { animation-play-state: paused; }
@keyframes awm { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .marq { overflow-x: auto; } }
.mcard { text-decoration: none; flex: none; width: 250px; background: var(--card); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mcard .ph-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.mcard img { max-height: 200px; object-fit: contain; }
.mcard small { font-size: 12px; color: var(--soft); padding-inline: 4px; }
.mcard b { font-size: 15px; padding-inline: 4px; }
.mcard em { font-style: normal; font-size: 13px; color: var(--accent); font-weight: 600; padding: 0 4px 4px; }

/* видео: лента, сдвигается справа налево после каждого ролика */
.reel { background: var(--dark); color: var(--dark-ink); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; --vis: 4; --gap: 12px; }
.reel-h { display: flex; align-items: center; gap: 14px; }
.reel-h h2 { font-size: 20px; font-weight: 700; }
@media (max-width: 640px) { .reel-h { flex-wrap: wrap; } .reel-h h2 { font-size: 17px; flex-basis: 100%; } }
.reel-n { color: var(--dark-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.reel-n b { color: #fff; }
.reel-b { margin-left: auto; display: flex; gap: 8px; }
.rb { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rb:hover { background: rgba(255,255,255,.2); }
.reel-v { overflow: hidden; border-radius: 14px; }
.reel-t { display: flex; gap: var(--gap); transition: transform .8s cubic-bezier(.4,0,.2,1); will-change: transform; }
.reel-t.jump { transition: none; }
.slide { margin: 0; flex: none; width: calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis)); position: relative; border-radius: 14px; overflow: hidden; background: #2A2E33; opacity: .55; transition: opacity .4s; }
.slide.on { opacity: 1; }
.slide video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 14px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.slide .bar { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.slide .bar i { display: block; height: 100%; width: 0; background: #fff; }
.slide.on .bar i { animation: rbar var(--d) linear forwards; }
.reel.hold .bar i { animation-play-state: paused; }
.reel.touch .bar { display: none; }
.reel.touch .slide { opacity: 1; }
.slide { cursor: pointer; }
.slide .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.slide.playing .play { opacity: 0; }
.slide.playing { opacity: 1; }
@keyframes rbar { to { width: 100%; } }
@media (max-width: 1100px) { .reel { --vis: 3; } }
@media (max-width: 640px) { .reel { --vis: 2; --gap: 8px; padding: 12px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stats a { padding: 16px; } .stats b { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .reel-t { transition: none; } .slide.on .bar i { animation: none; } }
/* каталог в цифрах */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stats a { text-decoration: none; background: var(--card); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.stats b { font: 900 44px/1 var(--display); color: var(--accent); }
.stats span { font-size: 13px; color: var(--muted); }
.sec-h a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* баннер, плитки */
.banner { background: #E9EEF3; border-radius: 24px; padding: 24px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner b { font-size: 18px; display: block; }
.banner p { margin: 0; color: #3D4652; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tile { text-decoration: none; background: var(--card); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); min-width: 0; }
.tile .pic { height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tile .pic img { max-height: 190px; object-fit: contain; }
.tile small { font-size: 12px; color: var(--soft); }
.tile b { font-size: 17px; line-height: 1.25; }
.tile p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .more { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: auto; padding-top: 8px; }
.sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec-h h2 { font-size: 22px; font-weight: 700; }
.sec-h span { color: var(--soft); font-size: 13px; }

/* материалы */
.mat { background: var(--card); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); min-width: 0; }
.mat .pic { height: 170px; display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; }
.mat .pic img { max-height: 170px; object-fit: contain; }
.mat h3 { font-size: 18px; }
.mat h3 a { text-decoration: none; }
.codes { display: flex; gap: 6px; flex-wrap: wrap; }
.code { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--tint); color: var(--accent); }
.std { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.mat p { margin: 0; font-size: 13px; color: var(--muted); }
.buy { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.buy select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.price { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: 12px; color: var(--soft); }
.ask { font-weight: 700; color: var(--accent); }
.placeholder { width: 100%; height: 100%; background: var(--tint); display: flex; align-items: center; justify-content: center; gap: 4px; }
.placeholder i { display: block; width: 6px; height: 120px; border-radius: 3px; background: linear-gradient(#8F969D 0 14%, #B08D6A 14% 100%); }
.placeholder.spool i { width: 110px; height: 110px; border-radius: 50%; border: 14px solid #4E545A; background: radial-gradient(circle, var(--tint) 0 22%, #b87333 23% 72%, #4E545A 73%); }
.placeholder.rod i { width: 4px; height: 140px; background: #A9AFB5; }
.placeholder.bag i { width: 96px; height: 120px; border-radius: 10px 10px 16px 16px; background: #D9C9A3; }

/* газы */
.cyl { width: 54px; height: 150px; border-radius: 27px 27px 8px 8px; position: relative; box-shadow: inset -9px 0 0 rgba(0,0,0,.12), inset 7px 0 0 rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.cyl::before { content: ""; position: absolute; top: -14px; left: 19px; width: 16px; height: 16px; background: #6d7882; border-radius: 3px 3px 0 0; }
.cyl span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: 13px; letter-spacing: .1em; }

/* карточка товара */
.prod { background: var(--card); border-radius: 24px; padding: 28px; display: flex; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow); }
.prod .gal { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.prod .main-pic { min-height: 360px; display: flex; align-items: center; justify-content: center; }
.prod .main-pic img { max-height: 420px; object-fit: contain; }
.prod .info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.prod h1 { font-size: 30px; font-weight: 700; }
.prod .lead { margin: 0; color: #3D4652; }
.prod ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #3D4652; }
.prod dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.prod dt { color: var(--soft); }
.prod dd { margin: 0; font-weight: 600; }
.prod .act { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.note { font-size: 12px; color: var(--soft); margin: 0; }
.added { color: var(--ok); font-weight: 600; font-size: 13px; }

/* заявка */
.panel { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.line img { width: 56px; height: 56px; object-fit: contain; }
.line small { display: block; color: var(--soft); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.qty button, .x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--tint); cursor: pointer; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); width: 100%; }
.msg { white-space: pre-wrap; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; border: 1px solid var(--line); }
.empty { color: var(--soft); }

/* контакты и подвал */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ccard { background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.ccard b { font-size: 16px; }
.ccard span { font-size: 13px; color: var(--muted); }
.ccard .ph a { color: var(--ink); font-size: 14px; }
.foot { background: var(--dark); color: #C9CED3; }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; font-size: 13px; padding-block: 40px 24px; }
.foot a { color: #C9CED3; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .col { display: flex; flex-direction: column; gap: 6px; }
.foot b { color: #fff; font-size: 15px; }
.foot .ph a { color: #C9CED3; font-weight: 500; }
.foot .copy { border-top: 1px solid #2E3338; font-size: 12px; color: #8A9198; padding-block: 16px 28px; display: block; }

@media (max-width: 900px) {
  .top { position: static; }
  .top .wrap { gap: 12px; }
  .logo { width: auto; order: 1; }
  .cartlink { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .menu { position: static; max-width: none; flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding-bottom: 0; }
  .menu a { min-height: 52px; padding: 10px; }
  .menu .tx small, .menu .chev { display: none; }
  .menu .ic { width: 30px; height: 30px; }
  .phones { display: none; }
  .prod { padding: 18px; }
  .prod .main-pic { min-height: 240px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .head h1, .prod h1 { font-size: 24px; }
  .line { grid-template-columns: 44px 1fr; }
  .line img { width: 44px; height: 44px; }
  .line .qty, .line .x { grid-column: 2; }
}
.foot .wrap:last-child { display: block; padding-block: 0; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats a { padding: 16px; }
  .stats b { font-size: 36px; }
}
