/* ============================================================
   ПЛАСТИК — страница «Запайка лотков»: схема запайщика + атлас
   ============================================================ */
.seal-hero { padding-bottom: 32px; }
.seal-hero .section-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }

/* --- Схема автоматического запайщика --- */
.sealer-wrap { padding: 0 28px 80px; background: var(--bg-tint); }
.sealer-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 28px 28px 20px; overflow: hidden; }
.sealer-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sealer-svg { display: block; width: 100%; min-width: 760px; height: auto; }
.sealer-svg text { font-family: var(--f-body); font-size: 13px; fill: var(--ink-2); }
.sealer-svg .lbl { font-weight: 700; fill: var(--ink); font-size: 14px; }
.sealer-svg .num { font-family: var(--f-head); font-weight: 800; fill: var(--orange); font-size: 15px; }
.sealer-hint { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.sl-feed  { animation: slFeed 3s cubic-bezier(.6,0,.3,1) infinite; }
.sl-out   { animation: slFeed 3s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes slFeed { 0% { transform: translateX(0); } 35%,100% { transform: translateX(110px); } }
.sl-head  { animation: slHead 3s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes slHead { 0%,40% { transform: translateY(0); } 55%,78% { transform: translateY(34px); } 92%,100% { transform: translateY(0); } }
.sl-glow  { animation: slGlow 3s ease-in-out infinite; }
@keyframes slGlow { 0%,45% { opacity: .15; } 60%,75% { opacity: 1; } 90%,100% { opacity: .15; } }
.sl-gas   { animation: slGas 3s ease-in-out infinite; }
@keyframes slGas { 0%,40% { opacity: 0; } 50%,60% { opacity: 1; } 70%,100% { opacity: 0; } }
.sl-roll  { animation: slRoll 3s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes slRoll { to { transform: rotate(360deg); } }
.sl-belt  { stroke-dasharray: 6 8; animation: slBelt 3s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes slBelt { 0% { stroke-dashoffset: 0; } 35%,100% { stroke-dashoffset: -112; } }
.sealer-svg.is-hl-semi .hl-semi, .sealer-svg.is-hl-rotary .hl-rotary, .sealer-svg.is-hl-inline .hl-inline { opacity: 1; }
.sealer-svg [class^="hl-"] { opacity: 0; transition: opacity .4s; }

/* --- Типы запайщиков --- */
.stypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stype { background: var(--white); border: 1.5px solid var(--hairline); border-radius: var(--r-card); padding: 24px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.stype.is-on { border-color: var(--orange); box-shadow: 0 10px 30px rgba(255,90,31,.15); transform: translateY(-3px); }
.stype .rate { font-family: var(--f-head); font-weight: 800; font-size: 28px; color: var(--orange); }
.stype h3 { font-size: 17px; font-weight: 700; margin: 6px 0 8px; }
.stype p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.smodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.smodes span { padding: 7px 12px; border-radius: var(--r-pill); background: var(--bg-warm); font-size: 13px; font-weight: 600; }

/* --- Атлас --- */
.atlas-section { padding: 88px 28px; background: var(--bg); }
.atlas-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.atlas-form { background: var(--bg-warm); border-radius: var(--r-card); padding: 26px; display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 16px); }
.atlas-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.atlas-form select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 13px 40px 13px 14px; border-radius: 14px; border: 1.5px solid var(--hairline);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23FF5A1F' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  font: 500 15px var(--f-body); color: var(--ink); cursor: pointer;
}
.atlas-form select:focus, .atlas-form input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.atlas-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.atlas-rate { display: flex; justify-content: space-between; font-weight: 700; }
.atlas-rate b { color: var(--orange); font-family: var(--f-head); font-size: 20px; }
.atlas-form input[type=range] { width: 100%; accent-color: var(--orange); }
.atlas-result { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-sm); min-height: 420px; }
.ar-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ar-ok { padding: 6px 12px; border-radius: var(--r-pill); background: var(--green-tint); color: var(--green); font-weight: 700; font-size: 13px; }
.ar-pair { font-family: var(--f-head); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.ar-block { padding: 16px 0; border-top: 1px solid var(--hairline); }
.ar-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 6px; }
.ar-v { font-size: 18px; font-weight: 700; }
.ar-small { font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.55; margin-top: 4px; }
.ar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ar-tags span { padding: 5px 10px; border-radius: var(--r-pill); background: var(--orange-tint); color: var(--orange-600); font-size: 12px; font-weight: 700; }
.ar-scale { position: relative; height: 14px; border-radius: 14px; background: linear-gradient(90deg, #E8EEF3, #FFE3D6 60%, #FFCDB6); margin-top: 6px; }
.ar-scale i { position: absolute; top: -3px; bottom: -3px; border-radius: 14px; background: var(--orange); box-shadow: 0 4px 14px rgba(255,90,31,.35); transition: left .5s var(--ease), width .5s var(--ease); }
.ar-scale-l { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.ar-scale-l b { font-family: var(--f-head); font-size: 26px; color: var(--ink); }
.ar-params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ar-params div { background: var(--bg-warm); border-radius: 14px; padding: 10px 12px; }
.ar-params b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 20px; }
.ar-params span { font-size: 12px; color: var(--ink-2); }
.ar-note { font-size: 14px; color: var(--ink-2); background: var(--bg-warm); border-radius: 14px; padding: 12px 14px; margin-top: 8px; line-height: 1.55; }
.ar-warn { font-size: 14px; color: #9A3A0C; background: #FFF1E8; border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.ar-foot { font-size: 12px; color: var(--ink-2); margin-top: 14px; line-height: 1.5; }

/* --- Таблица совместимости --- */
.matrix-wrap { overflow-x: auto; margin-top: 28px; border-radius: 20px; border: 1px solid var(--hairline); background: #fff; }
.matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
.matrix th, .matrix td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--hairline); }
.matrix thead th { font-weight: 700; color: var(--ink-2); font-size: 12px; background: var(--bg-warm); }
.matrix tbody th { text-align: left; font-weight: 800; font-family: var(--f-head); font-size: 16px; white-space: nowrap; }
.m-best { color: var(--orange); font-size: 18px; }
.m-ok { color: var(--green); font-size: 18px; }
.m-no { color: var(--ink-2); opacity: .4; }
.matrix-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* --- Плёнки --- */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.film { border-radius: var(--r-card); padding: 24px; background: var(--white); border: 1px solid var(--hairline); }
.film-layers { display: grid; gap: 3px; margin-bottom: 16px; }
.film-layers i { display: block; height: 9px; border-radius: 3px; }
.film h3 { font-family: var(--f-head); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.film p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 6px; }

/* --- Полный пакет --- */
.pack-section { padding: 88px 28px; background: #121214; color: #F4F2EE; }
.pack-section .section-title { color: #fff; }
.pack-section .section-label { background: rgba(255,90,31,.14); color: #FF8A5C; }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--r-card); overflow: hidden; margin-top: 40px; }
.pack-grid div { background: #17171A; padding: 26px; }
.pack-grid b { display: block; font-family: var(--f-head); font-weight: 900; font-size: 34px; color: var(--orange); }
.pack-grid h3 { font-size: 16px; margin: 8px 0 6px; color: #fff; }
.pack-grid p { font-size: 14px; color: rgba(244,242,238,.62); line-height: 1.6; }

@media (max-width: 1024px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .atlas-form { position: static; }
  .stypes, .films { grid-template-columns: 1fr 1fr; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sealer-wrap { padding: 0 16px 56px; }
  .sealer-card { padding: 16px 12px 12px; border-radius: 26px; }
  .stypes, .films, .pack-grid { grid-template-columns: 1fr; }
  .atlas-section, .pack-section { padding: 64px 20px; }
  .atlas-result { padding: 20px; }
  .ar-params { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .ar-params b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-feed, .sl-out, .sl-head, .sl-glow, .sl-gas, .sl-roll, .sl-belt { animation: none; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mob-only { display: none; }
@media (max-width: 760px) { .mob-only { display: block; margin: 0 0 8px; } }
