﻿/* ============================================================
   СТАРТОВЫЙ ЭКРАН ВЫБОРА НАПРАВЛЕНИЯ
   ============================================================ */

:root {
  --armor: #b7c49f;
  --armor-strong: #7f9663;
  --fire: #ef8b64;
  --fire-strong: #b64b33;
  --gold: #d9a441;
  --ink: #0b0f0a;
  --paper: #efe9da;
  --muted: #a5ad9c;
  --font: "Segoe UI", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--paper);
  background: linear-gradient(90deg, #0e140e 0%, #0e140e 50%, #1a0e0a 50%, #1a0e0a 100%);
  min-height: 100svh;
  touch-action: pan-y;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 8px);
  background-size: 56px 56px, 56px 56px, auto;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 80%);
  z-index: 0;
}

.sel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.sel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sel-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  flex: none;
}

.sel-logo svg { width: 42px; height: 42px; }
.sel-logo span { display: flex; flex-direction: column; line-height: 1.05; }

.sel-logo b {
  font-family: "Arial Narrow", var(--font);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sel-logo small {
  color: #8f9b86;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sel-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #4b3a25;
  border-radius: 3px;
  background: rgba(20, 14, 9, 0.55);
  color: #efb65a;
  text-decoration: none;
}

.sel-phone svg { width: 16px; height: 16px; }
.sel-phone span { display: flex; flex-direction: column; line-height: 1.12; }
.sel-phone b { font-size: 0.9rem; }
.sel-phone small { color: #9f8c72; font-size: 0.58rem; }

.sel-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) 20px clamp(24px, 4vw, 44px);
  text-align: center;
}

.sel-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sel-title h1 {
  margin: 0 0 10px;
  font-family: "Arial Narrow", var(--font);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.sel-title p {
  margin: 0 auto;
  max-width: 560px;
  color: #aeb8a5;
  font-size: 0.92rem;
  line-height: 1.5;
}

.sel-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  justify-items: center;
  margin: clamp(24px, 4vw, 40px) 0 20px;
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(250px, 27vw, 350px);
  aspect-ratio: 1;
  padding: 34px 26px;
  border: 1px solid var(--armor-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(183, 196, 159, 0.12), transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.55), transparent 68%),
    #121a10;
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 0 8px rgba(183, 196, 159, 0.04), 0 0 0 9px rgba(183, 196, 159, 0.12), 0 24px 50px rgba(0, 0, 0, 0.42);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
  isolation: isolate;
}

.choice::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(183, 196, 159, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.choice::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px);
  pointer-events: none;
  z-index: -1;
}

.choice:hover {
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 0 0 8px rgba(183, 196, 159, 0.07), 0 0 0 9px rgba(183, 196, 159, 0.25), 0 30px 64px rgba(0, 0, 0, 0.5);
}

.choice--fire {
  border-color: var(--fire-strong);
  background:
    radial-gradient(circle at 50% 28%, rgba(239, 139, 100, 0.14), transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.58), transparent 68%),
    #1b100d;
  box-shadow: 0 0 0 8px rgba(239, 139, 100, 0.04), 0 0 0 9px rgba(239, 139, 100, 0.14), 0 24px 50px rgba(0, 0, 0, 0.42);
}

.choice--fire::before { border-color: rgba(239, 139, 100, 0.18); }

.choice--fire:hover {
  box-shadow: 0 0 0 8px rgba(239, 139, 100, 0.07), 0 0 0 9px rgba(239, 139, 100, 0.28), 0 30px 64px rgba(0, 0, 0, 0.5);
}

.choice__halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 196, 159, 0.16), transparent 65%);
  opacity: 0.5;
  z-index: -1;
}

.choice--fire .choice__halo { background: radial-gradient(circle, rgba(239, 139, 100, 0.16), transparent 65%); }

.choice__ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  border: 1px solid rgba(183, 196, 159, 0.4);
  border-radius: 50%;
  background: rgba(183, 196, 159, 0.08);
  color: var(--armor);
}

.choice--fire .choice__ring { border-color: rgba(239, 139, 100, 0.45); background: rgba(239, 139, 100, 0.08); color: var(--fire); }
.choice__ring svg { width: 42px; height: 42px; }

.choice__title {
  display: block;
  max-width: 230px;
  font-family: "Arial Narrow", var(--font);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.choice__text {
  display: block;
  max-width: 220px;
  margin-top: 8px;
  color: #9eaa95;
  font-size: 0.76rem;
  line-height: 1.4;
}

.choice--fire .choice__text { color: #b59b8e; }

.choice__go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: var(--armor);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.choice--fire .choice__go { color: var(--fire); }
.choice__go svg { width: 15px; height: 15px; }

.sel-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  color: #7f8b78;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #778471;
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .choice { width: clamp(210px, 34vw, 280px); }
  .choice__ring { width: 72px; height: 72px; margin-bottom: 12px; }
  .choice__ring svg { width: 34px; height: 34px; }
  .choice__title { font-size: 1rem; }
  .choice__text { font-size: 0.7rem; }
}

@media (max-width: 760px) {
  body { background: linear-gradient(180deg, #0e140e 0%, #0e140e 54%, #1a0e0a 54%, #1a0e0a 100%); }
  .sel-head { padding: 16px 18px; }
  .sel-phone { display: none; }
  .sel-main { justify-content: flex-start; padding-top: 26px; }
  .sel-choices { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
  .choice { width: min(64vw, 230px); padding: 18px 16px; }
  .choice__ring { width: 58px; height: 58px; margin-bottom: 8px; }
  .choice__ring svg { width: 28px; height: 28px; }
  .choice__title { font-size: 0.9rem; }
  .choice__text { font-size: 0.66rem; }
  .choice__go { margin-top: 10px; font-size: 0.62rem; }
  .choice__halo { inset: -8%; }
  .sel-title h1 { font-size: clamp(1.65rem, 8vw, 2.3rem); }
  .sel-title p { max-width: 330px; font-size: 0.84rem; }
  .sel-hint { margin-top: 18px; }
  .sel-foot { justify-content: center; text-align: center; font-size: 0.64rem; }
}

.sel-foot a { color: #9aa692; text-decoration: none; }
.sel-foot a:hover { color: var(--gold); }


@media (max-width: 380px) {
  .sel-logo b { font-size: 0.92rem; }
  .sel-logo svg { width: 36px; height: 36px; }
  .choice { width: min(70vw, 205px); }
  .choice__title { font-size: 0.84rem; }
  .choice__text { font-size: 0.63rem; }
}


/* ---------- Анимация внутри кругов ---------- */

.choice__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.choice__ring,
.choice__title,
.choice__text,
.choice__go { position: relative; z-index: 1; }

.choice__fx--drone svg {
  position: absolute;
  top: 9%;
  right: 9%;
  width: clamp(38px, 15%, 58px);
  color: #c6d4ae;
  opacity: 0.55;
  animation: choice-drone 4.8s ease-in-out infinite;
}

@keyframes choice-drone {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); opacity: 0.45; }
  35% { transform: translate(-10px, 7px) rotate(4deg); opacity: 0.75; }
  70% { transform: translate(4px, 13px) rotate(-2deg); opacity: 0.55; }
}

.choice__fx--fire {
  overflow: hidden;
  border-radius: 50%;
}

.choice__ember {
  position: absolute;
  bottom: 16%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ef9a6f;
  box-shadow: 0 0 10px rgba(239, 139, 100, 0.9);
  animation: choice-ember 2.6s ease-out infinite;
}

.choice__ember--1 { left: 26%; animation-delay: 0s; }
.choice__ember--2 { left: 41%; animation-delay: 0.6s; }
.choice__ember--3 { left: 58%; animation-delay: 1.1s; }
.choice__ember--4 { left: 71%; animation-delay: 1.7s; }
.choice__ember--5 { left: 34%; animation-delay: 2.1s; }

@keyframes choice-ember {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-14px, -130px); opacity: 0; }
}

.choice--fire .choice__ring svg {
  animation: choice-flame 1.05s ease-in-out infinite alternate;
  transform-origin: 50% 85%;
}

.choice--armor .choice__ring svg {
  animation: choice-shield 2.8s ease-in-out infinite;
}

@keyframes choice-flame {
  from { transform: scale(1) rotate(-1deg); opacity: 0.82; }
  to { transform: scale(1.06) rotate(1.5deg); opacity: 1; }
}

@keyframes choice-shield {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ---------- Мобильная грань между направлениями ---------- */

@media (max-width: 760px) {
  .sel-choices { position: relative; gap: 24px; }

  .sel-choices::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 1px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, transparent 0%, #7f9663 22%, #d9a441 50%, #b64b33 78%, transparent 100%);
    box-shadow: 0 0 16px rgba(217, 164, 65, 0.4);
    pointer-events: none;
    z-index: 4;
  }

  .sel-choices::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: linear-gradient(135deg, #d9a441, #b64b33);
    box-shadow: 0 0 14px rgba(217, 164, 65, 0.55);
    pointer-events: none;
    z-index: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice__fx--drone svg,
  .choice__ember,
  .choice--fire .choice__ring svg,
  .choice--armor .choice__ring svg { animation: none; }
}

@media (max-width: 380px) {
  .choice__fx--drone svg { width: 42px; }
}


/* ---------- Дрон атакует, броня отражает ---------- */

.choice__muzzle,
.choice__shot,
.choice__impact,
.choice__spark { position: absolute; pointer-events: none; }

.choice__muzzle {
  top: 17%;
  left: 75%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4cf 0%, #f0b15a 24%, rgba(239, 139, 100, 0.75) 46%, transparent 70%);
  opacity: 0;
  transform: scale(0.3);
  animation: armor-muzzle 5.6s ease-out infinite;
  z-index: 3;
}

@keyframes armor-muzzle {
  0%, 10% { opacity: 0; transform: scale(0.3); }
  12% { opacity: 1; transform: scale(1); }
  17% { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; }
}

.choice__shot {
  top: 17%;
  left: 78%;
  width: 16px;
  height: 4px;
  border-radius: 3px;
  background: #fff0c9;
  box-shadow: 0 0 10px #ffb15e, 0 0 22px rgba(239, 139, 100, 0.95);
  opacity: 0;
  animation: armor-shot 5.6s linear infinite;
  z-index: 4;
}

@keyframes armor-shot {
  0%, 10% { opacity: 0; left: 78%; top: 17%; }
  12% { opacity: 1; left: 77%; top: 17.5%; }
  21% { opacity: 1; left: calc(50% - 7px); top: calc(31% - 2px); }
  23%, 100% { opacity: 0; left: calc(50% - 7px); top: calc(31% - 2px); }
}

.choice__impact {
  top: 31%;
  left: 50%;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 214, 140, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 190, 105, 0.75), inset 0 0 24px rgba(255, 210, 135, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: armor-impact 5.6s ease-out infinite;
  z-index: 2;
}

.choice__impact::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 28%, rgba(255, 244, 205, 0.82) 42%, transparent 72%);
  filter: blur(2px);
}

@keyframes armor-impact {
  0%, 19% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  21% { opacity: 1; transform: translate(-50%, -50%) scale(0.35); }
  29% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  40%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.choice__spark {
  top: 31%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe1a2;
  box-shadow: 0 0 10px rgba(255, 200, 110, 0.95);
  opacity: 0;
  animation: armor-spark 5.6s ease-out infinite;
  z-index: 3;
}

.choice__spark--1 { --tx: -34px; --ty: -30px; }
.choice__spark--2 { --tx: 30px; --ty: -34px; }
.choice__spark--3 { --tx: -42px; --ty: 8px; }
.choice__spark--4 { --tx: 38px; --ty: 10px; }
.choice__spark--5 { --tx: 4px; --ty: -44px; }

@keyframes armor-spark {
  0%, 19% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
  22% { opacity: 1; }
  38% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
}

.choice--armor .choice__ring {
  animation: armor-ring-flash 5.6s ease-out infinite;
}

@keyframes armor-ring-flash {
  0%, 19% {
    border-color: rgba(183, 196, 159, 0.4);
    box-shadow: 0 0 0 0 rgba(255, 210, 135, 0);
  }
  21% {
    border-color: #f3d08a;
    box-shadow: 0 0 0 3px rgba(243, 208, 138, 0.28), 0 0 38px rgba(243, 208, 138, 0.55);
  }
  36%, 100% {
    border-color: rgba(183, 196, 159, 0.4);
    box-shadow: 0 0 0 0 rgba(255, 210, 135, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice__muzzle,
  .choice__shot,
  .choice__impact,
  .choice__spark {
    animation: none;
    opacity: 0;
  }
  .choice--armor .choice__ring { animation: none; }
}



/* ---------- Ворота внутри кругов ---------- */

.choice__gate {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 58%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.62;
}

.choice__gate svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.choice__gate--armor { color: #b7c49f; }
.choice__gate--fire { color: #e08b6c; }

.gate__housing,
.gate__rail,
.gate__bar {
  fill: currentColor;
  fill-opacity: 0.14;
  stroke: currentColor;
  stroke-width: 1.2;
}

.gate__curtain {
  stroke: currentColor;
  stroke-width: 1.2;
}

.choice__gate--armor .gate__curtain { fill: rgba(183, 196, 159, 0.08); }
.choice__gate--fire .gate__curtain { fill: rgba(239, 139, 100, 0.1); }

.gate__slats {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  opacity: 0.5;
}

.gate__floor,
.gate__side {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  opacity: 0.4;
}

.gate__flames {
  fill: #e8754c;
  filter: drop-shadow(0 0 8px rgba(239, 139, 100, 0.8));
}

.gate__flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: gate-flame 1.05s ease-in-out infinite alternate;
}

.gate__flame--2 { animation-delay: 0.22s; }
.gate__flame--3 { animation-delay: 0.46s; }

@keyframes gate-flame {
  from { transform: scale(0.86, 0.82) rotate(-1deg); opacity: 0.7; }
  to { transform: scale(1.08, 1.06) rotate(1.5deg); opacity: 1; }
}

.choice--armor .choice__gate .gate__curtain {
  animation: gate-hit 5.6s ease-out infinite;
}

@keyframes gate-hit {
  0%, 19% {
    fill: rgba(183, 196, 159, 0.08);
    stroke: #b7c49f;
  }
  21% {
    fill: rgba(255, 218, 150, 0.24);
    stroke: #f3d08a;
  }
  36%, 100% {
    fill: rgba(183, 196, 159, 0.08);
    stroke: #b7c49f;
  }
}

.choice--fire .choice__gate .gate__curtain {
  animation: gate-heat 3.4s ease-in-out infinite;
}

@keyframes gate-heat {
  0%, 100% { fill: rgba(239, 139, 100, 0.1); }
  50% { fill: rgba(239, 139, 100, 0.19); }
}

@media (prefers-reduced-motion: reduce) {
  .gate__flame,
  .choice--armor .choice__gate .gate__curtain,
  .choice--fire .choice__gate .gate__curtain { animation: none; }
}
