/* Seven homepage banner variants */

/* Compact homepage slider */

.stage-slot {
  position: relative;
  padding-inline: 0;
  box-sizing: border-box;
  width: var(--wrap);
  margin: 12px auto 0;
}
.stage {
  margin: 0;
  background: #f7fbfc;
  color: var(--elmet-ink, #1c5d68);
  border: 0;
  border-radius: 16px;
  height: 168px;
  min-height: 168px;
  position: relative;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.slide.on { opacity: 1; pointer-events: auto; z-index: 1; }
.banner-copy {
  padding: 14px 24px 18px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.banner-copy .kicker {
  color: var(--elmet-aqua-deep, #3ea0b0);
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 4px;
  border-bottom: 0;
  padding-bottom: 0;
  letter-spacing: 0.1em;
}
.banner-copy h1,
.banner-copy h2 {
  color: var(--elmet-ink, #1c5d68);
  font-family: var(--serif, "Source Serif 4", serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.banner-copy .lead {
  color: var(--muted, #4a7d86);
  margin: 6px 0 10px;
  font-size: 13px;
  font-weight: 500;
  max-width: 48ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-copy .hero-acts { gap: 16px; }
.banner-copy .btn { padding: 2px 0; font-size: 15px; border: 0; background: none; }
.banner-copy .btn.ghost { color: inherit; border: 0; }
.banner-facts { display: none; }
.banner-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background-color: #d7eef3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.banner-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 251, 252, .35), rgba(28, 93, 104, .12));
}
.s-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  background: #fff;
  color: var(--elmet-ink, #1c5d68);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(28, 93, 104, .12);
}
.s-nav.prev { left: 10px; }
.s-nav.next { right: 10px; }
.s-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.s-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5e6ed;
  cursor: pointer;
}
.s-dot.on {
  background: var(--elmet-aqua-deep, #3ea0b0);
  box-shadow: none;
}

@media (max-width: 900px) {
  .stage { height: 168px; min-height: 168px; }
  .slide { grid-template-columns: 1.15fr .7fr; }
  .banner-visual { display: block; }
}

.banner-picks {
  width: var(--wrap);
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.banner-picks .lab {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.banner-picks button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.banner-picks button:hover {
  border-color: #111;
  color: #111;
}
.banner-picks button.on {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: inset 0 -2px 0 var(--elmet-red);
}
.banner-picks button small {
  display: block;
  font-size: 10px;
  opacity: .7;
  font-weight: 400;
}

/* 1 Кромка */
.bn-kromka { background: transparent; }
.bn-kromka svg { width: 100%; height: 100%; }
.bn-kromka .edge {
  fill: none;
  stroke: #c8102e;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 2.8s ease forwards infinite;
}
.bn-kromka .ghost-edge {
  fill: none;
  stroke: rgba(255,255,255,.45);
  stroke-width: .6;
  opacity: .35;
}
.bn-kromka .spark {
  fill: #fff;
  offset-path: path("M48 340 L560 72");
  animation: spark 2.8s ease-in-out infinite;
}
.bn-kromka .tick {
  stroke: rgba(255,255,255,.45);
  stroke-width: .5;
  opacity: .4;
}

/* 2 Калипер */
.bn-caliper { background: transparent; }
.bn-caliper svg { width: 100%; height: 100%; }
.bn-caliper .arm {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  transform-box: view-box;
  transform-origin: 160px 280px;
  animation: jaws 3.6s ease-in-out infinite;
}
.bn-caliper .arm.r { animation-name: jaws-r; }
.bn-caliper .bar { stroke: #fff; stroke-width: 1.6; }
.bn-caliper .ticks line {
  stroke: rgba(255,255,255,.45);
  stroke-width: .8;
  animation: tick-fade 3.6s ease-in-out infinite;
}

/* 3 Свет */
.bn-light { background: transparent; }
.bn-light .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: lamp 8s linear infinite;
}
.bn-light .ring:nth-child(1) { width: 90px; height: 90px; border-color: rgba(255, 255, 255, .85); animation-duration: 5s; }
.bn-light .ring:nth-child(2) { width: 160px; height: 160px; }
.bn-light .ring:nth-child(3) { width: 240px; height: 240px; animation-direction: reverse; }
.bn-light .ring:nth-child(4) { width: 330px; height: 330px; border-style: dashed; }
.bn-light .core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 40px 12px rgba(255, 255, 255, .28), 0 0 80px 24px rgba(255, 255, 255, .12);
  animation: pulse 2.4s ease-in-out infinite;
}
.bn-light .beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 46%;
  background: linear-gradient(to top, transparent, rgba(241, 235, 226, .22));
  transform-origin: bottom center;
  animation: spin 12s linear infinite;
}

/* 4 Чертёж */
.bn-draft {
  background:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 28px 28px,
    transparent;
}
.bn-draft svg { width: 100%; height: 100%; }
.bn-draft path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 4.2s ease-in-out infinite;
}
.bn-draft path.accent { stroke: #c8102e; stroke-width: 1.8; animation-delay: .4s; }
.bn-draft .dim {
  fill: rgba(255,255,255,.45);
  font-size: 11px;
  font-family: Manrope, sans-serif;
  letter-spacing: .08em;
  opacity: 0;
  animation: fade-in 4.2s ease-in-out infinite;
}

/* 5 Сталь */
.bn-steel {
  background: transparent;
}
.bn-steel .glint {
  position: absolute;
  inset: -20%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%);
  animation: sheen-slow 5.5s ease-in-out infinite;
}
.bn-steel .plate {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 58%;
  height: 64%;
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .2);
  animation: pulse-border 3.2s ease-in-out infinite;
}
.bn-steel .mark {
  position: absolute;
  right: 22%;
  top: 38%;
  font-family: "Source Serif 4", serif;
  font-size: 13px;
  letter-spacing: .2em;
  color: #fff;
}

/* 6 Тираж */
.bn-issue { background: transparent; overflow: hidden; }
.bn-issue .year {
  position: absolute;
  right: -4%;
  top: -8%;
  font-family: "Source Serif 4", serif;
  font-size: 220px;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  animation: drift 10s ease-in-out infinite;
}
.bn-issue .spine {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: #fff;
}
.bn-issue .meta {
  position: absolute;
  left: 48px;
  bottom: 28px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.bn-issue .rule {
  position: absolute;
  left: 48px;
  right: 40px;
  top: 42%;
  height: 2px;
  background: #c8102e;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-x 2.4s ease forwards infinite;
}
.bn-issue .word {
  position: absolute;
  left: 48px;
  top: 28%;
  font-family: "Source Serif 4", serif;
  font-size: clamp(28px, 4vw, 48px);
  animation: rise .8s ease both;
}

/* 7 Укладка */
.bn-tray { background: transparent; }
.bn-tray svg { width: 100%; height: 100%; }
.bn-tray .tray {
  fill: none;
  stroke: rgba(255,255,255,.45);
  stroke-width: 1.2;
}
.bn-tray .tool {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  animation: drop-in 4.8s ease-in-out infinite;
}
.bn-tray .tool.t2 { stroke: #fff; animation-delay: .35s; }
.bn-tray .tool.t3 { animation-delay: .7s; }
.bn-tray .tool.t4 { animation-delay: 1.05s; }
.bn-tray .lid {
  fill: none;
  stroke: rgba(255,255,255,.45);
  stroke-dasharray: 4 6;
  stroke-width: .8;
  animation: lid 4.8s ease-in-out infinite;
}

@keyframes draw {
  0% { stroke-dashoffset: 640; }
  45%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -640; }
}
@keyframes spark {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes jaws {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-9deg); }
}
@keyframes jaws-r {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(9deg); }
}
@keyframes tick-fade {
  0%, 100% { opacity: .25; }
  50% { opacity: .8; }
}
@keyframes lamp { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin {
  from { transform: translate(-50%, -100%) rotate(0deg); }
  to { transform: translate(-50%, -100%) rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .7; }
}
@keyframes fade-in {
  0%, 18% { opacity: 0; }
  35%, 75% { opacity: .8; }
  100% { opacity: 0; }
}
@keyframes grain { to { background-position: 180px 80px, 180px 80px, 0 0; } }
@keyframes sheen-slow {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(255, 255, 255, .4); }
  50% { border-color: rgba(255, 255, 255, .95); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}
@keyframes draw-x {
  0% { transform: scaleX(0); }
  30%, 80% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-18px); }
  18%, 72% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes lid {
  0%, 20% { opacity: .15; }
  40%, 70% { opacity: .7; }
  100% { opacity: .15; }
}

@media (max-width: 640px) {
  .s-nav { display: none; }
  .stage-slot { width: var(--wrap); padding-inline: 0; }
  .banner-copy { padding: 12px 14px; }
}
