/* ============================================================
   ПЛАСТИК — страница «Изготовление оснастки»
   ============================================================ */
.tool-hero { padding-bottom: 40px; }
.tool-hero .section-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.tool-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--glass-inset);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.tool-chip b { color: var(--orange); font-family: var(--f-head); font-size: 17px; font-weight: 800; }

.tool-stage-wrap { padding: 0 28px 72px; background: var(--bg-tint); }
.tool-stage-wrap .section-inner { position: relative; }
.seal-stage.no-webgl { display: none; }

/* --- Что мы изготавливаем --- */
.make-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.make-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.make-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.make-anim {
  height: 120px; border-radius: 18px;
  background: linear-gradient(180deg, #FBFAF8, #F1ECE5);
  margin-bottom: 18px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.make-anim svg { width: 100%; height: 100%; }
.make-card h3 { font-family: var(--f-head); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.05; margin-bottom: 8px; }
.make-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.make-card a.more { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--orange); }

/* анимации иконок (SVG) */
.an-close-top { animation: anClose 3s var(--ease) infinite; }
.an-close-bot { animation: anCloseB 3s var(--ease) infinite; }
@keyframes anClose  { 0%,15% { transform: translateY(-18px); } 40%,60% { transform: translateY(0); } 85%,100% { transform: translateY(-18px); } }
@keyframes anCloseB { 0%,15% { transform: translateY(8px); } 40%,60% { transform: translateY(0); } 85%,100% { transform: translateY(8px); } }
.an-film { animation: anFilm 3s var(--ease) infinite; }
@keyframes anFilm { 0%,30% { opacity: 0; } 45%,60% { opacity: 1; } 85%,100% { opacity: 0; } }
.an-heat { animation: anHeat 2.4s ease-in-out infinite; }
@keyframes anHeat { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.an-press { animation: anPress 2.4s var(--ease) infinite; }
@keyframes anPress { 0%,20% { transform: translateY(-14px); } 45%,70% { transform: translateY(0); } 95%,100% { transform: translateY(-14px); } }
.an-swap-a { animation: anSwapA 4s var(--ease) infinite; }
.an-swap-b { animation: anSwapB 4s var(--ease) infinite; }
@keyframes anSwapA { 0%,35% { transform: translateX(0); opacity: 1; } 50%,100% { transform: translateX(-60px); opacity: 0; } }
@keyframes anSwapB { 0%,40% { transform: translateX(60px); opacity: 0; } 60%,100% { transform: translateX(0); opacity: 1; } }
.an-tool { animation: anTool 4s linear infinite; }
@keyframes anTool { 0% { transform: translate(0,0); } 25% { transform: translate(70px,0); } 50% { transform: translate(70px,24px); } 75% { transform: translate(0,24px); } 100% { transform: translate(0,0); } }
.an-cut { stroke-dasharray: 260; stroke-dashoffset: 260; animation: anCut 4s linear infinite; }
@keyframes anCut { to { stroke-dashoffset: 0; } }

/* --- Инженерная база (тёмный блок) --- */
.eng-section { padding: 96px 28px; background: #121214; color: #F4F2EE; position: relative; overflow: hidden; }
.eng-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.eng-section .section-title { color: #FFFFFF; }
.eng-section .section-label { background: rgba(255,90,31,.14); color: #FF8A5C; }
.eng-lead { color: rgba(244,242,238,.72); font-size: 17px; line-height: 1.7; max-width: 640px; margin-top: 14px; }
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: rgba(255,255,255,.08); border-radius: var(--r-card); overflow: hidden; position: relative; }
.eng-item { background: #17171A; padding: 30px 28px 32px; position: relative; }
.eng-item .k { font-family: var(--f-head); font-weight: 900; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; color: #FFFFFF; }
.eng-item .k em { font-style: normal; color: var(--orange); }
.eng-item h3 { font-size: 15px; font-weight: 700; margin: 14px 0 8px; color: #FFFFFF; }
.eng-item p { font-size: 14px; color: rgba(244,242,238,.62); line-height: 1.6; }
.eng-item::after { content: ''; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.eng-item:hover::after { transform: scaleX(1); }

/* --- Макро --- */
.macro-section { padding: 96px 28px; background: var(--bg); }
.macro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.macro-list { display: grid; gap: 14px; margin-top: 24px; }
.macro-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.macro-list i { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--orange-tint); color: var(--orange); font-style: normal; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* --- Смена поставщика --- */
.switch-section { padding: 96px 28px; background: var(--bg-tint); position: relative; overflow: hidden; }
.switch-card {
  background: var(--white); border-radius: var(--r-lg); padding: 56px;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.switch-card::before { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.16), rgba(255,90,31,0) 70%); }
.switch-title { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; text-transform: uppercase; max-width: 820px; }
.switch-title span { color: var(--orange); }
.switch-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 32px; counter-reset: sw; }
.switch-step { background: var(--bg-warm); border-radius: 20px; padding: 20px; position: relative; }
.switch-step::before { counter-increment: sw; content: '0' counter(sw); font-family: var(--f-head); font-weight: 800; font-size: 15px; color: var(--orange); letter-spacing: .12em; }
.switch-step h3 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.switch-step p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* --- Тизер атласа запайки --- */
.atlas-teaser { padding: 80px 28px; background: var(--bg); }
.atlas-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #FFF4EE 0%, #FFFFFF 60%); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 48px;
}
.atlas-temp { display: grid; gap: 10px; }
.atlas-temp-row { display: grid; grid-template-columns: 90px 1fr 70px; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; }
.atlas-temp-bar { height: 10px; border-radius: 10px; background: rgba(13,13,15,.06); position: relative; overflow: hidden; }
.atlas-temp-bar i { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, #FFB08A, var(--orange)); transform-origin: left; animation: atlasBar 1.4s var(--ease) both; }
@keyframes atlasBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.atlas-temp-row span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* --- FAQ --- */
.faq-section { padding: 88px 28px; background: var(--bg-warm); }
.faq-list { max-width: 860px; margin: 36px auto 0; display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--orange); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }

@media (max-width: 1024px) {
  .make-grid { grid-template-columns: repeat(2, 1fr); }
  .eng-grid { grid-template-columns: repeat(2, 1fr); }
  .switch-steps { grid-template-columns: repeat(2, 1fr); }
  .macro-grid { grid-template-columns: 1fr; gap: 32px; }
  .atlas-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tool-stage-wrap { padding: 0 16px 56px; }
  .make-grid, .eng-grid, .switch-steps { grid-template-columns: 1fr; }
  .switch-card, .atlas-card { padding: 28px 22px; border-radius: 28px; }
  .eng-section, .macro-section, .switch-section { padding: 64px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .an-close-top, .an-close-bot, .an-film, .an-heat, .an-press, .an-swap-a, .an-swap-b, .an-tool, .an-cut, .atlas-temp-bar i { animation: none; }
}
