/* elektriplaan.ee — esileht. Värvid, fondid, nupud ja päis tulevad ep.css-ist. */
.e-body { background: var(--paper); }
.e-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--m); }

.e-nav { display: flex; gap: 4px; margin-left: 10px; }
.e-nav a { text-decoration: none; color: #B9C0C8; font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.e-nav a:hover { color: #fff; background: var(--hdr2); }
.hdr__act .btn .ic { width: 16px; height: 16px; }

/* avavaade */
.e-hero { position: relative; overflow: hidden; background: #0E1216; color: #E9ECEF; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.e-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); pointer-events: none; }
.e-hero::after { content: ''; position: absolute; width: 760px; height: 760px; right: -160px; top: -120px; background: radial-gradient(closest-side, rgba(255, 194, 26, .2), transparent); pointer-events: none; }
.e-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.e-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font-family: var(--m); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--volt); }
.e-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 4px rgba(255, 194, 26, .2); }
.e-hero h1 { margin: 0; font-size: clamp(34px, 4.1vw, 56px); line-height: 1.04; font-weight: 850; font-stretch: 108%; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.e-hero h1 em { font-style: normal; color: var(--volt); }
.e-lead { margin: 22px 0 0; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.55; color: #C4CBD3; max-width: 560px; }
.e-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.e-cta .ic { width: 18px; height: 18px; }
.e-facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: #9AA3AD; }
.e-facts li { display: flex; align-items: center; gap: 8px; }
.e-facts li::before { content: ''; width: 14px; height: 8px; border-left: 2px solid var(--volt); border-bottom: 2px solid var(--volt); transform: rotate(-45deg) translateY(-2px); }

.e-win { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); position: relative; }
.e-win__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #F3F4F1; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.e-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D8D2; }
.e-win__bar span { margin-left: 8px; }
.e-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--m); font-size: 11px; font-weight: 500; color: var(--volt-d); }
.e-live span { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); animation: e-puls 1.6s ease-in-out infinite; }
@keyframes e-puls { 50% { opacity: .3; } }
.e-win__svg { display: block; width: 100%; height: auto; aspect-ratio: 13 / 9.4; background: #fff; touch-action: manipulation; }
.e-win__svg .k-juht { cursor: pointer; }
.e-win__svg .k-juht:hover .hit { fill: rgba(255, 194, 26, .25); }
.e-win__hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; background: rgba(17, 21, 26, .9); color: #fff; font-size: 13px; padding: 7px 12px; border-radius: 9px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.e-win__hint b { color: var(--volt); font-weight: 700; }

/* sektsioonid */
.e-sec { padding: clamp(56px, 8vw, 104px) 0; }
.e-sec--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.e-sec--dark { background: var(--hdr); color: #E9ECEF; }
.e-kicker { margin: 0 0 10px; font-family: var(--m); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--volt-d); }
.e-sec--dark .e-kicker { color: var(--volt); }
.e-sec h2, .e-final h2 { margin: 0; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.06; font-weight: 820; font-stretch: 108%; letter-spacing: -.015em; text-wrap: balance; max-width: 760px; }
.e-sec--dark h2 { color: #fff; }

.e-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: e; }
.e-steps li { counter-increment: e; position: relative; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px 22px; }
.e-steps li::before { content: '0' counter(e); position: absolute; right: 16px; top: 16px; font-family: var(--m); font-size: 12px; color: var(--muted); }
.e-steps .ic { width: 26px; height: 26px; color: var(--ink); padding: 8px; box-sizing: content-box; background: var(--volt); border-radius: 10px; }
.e-steps h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 750; }
.e-steps p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.5; }

.e-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.e-intro { margin: 16px 0 0; color: #B9C0C8; font-size: 16.5px; max-width: 520px; }
.e-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; }
.e-rules li { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #262D35; font-size: 15px; color: #C4CBD3; }
.e-rules li:last-child { border-bottom: 1px solid #262D35; }
.e-rules .mono { font-size: 12px; color: var(--volt); padding-top: 3px; }
.e-rules b { color: #fff; font-weight: 700; }
.e-koost { background: #0B0E12; border: 1px solid #262D35; border-radius: 16px; padding: 18px; position: sticky; top: calc(var(--hdr-h) + 20px); }
.e-logi { color: #C4CBD3; min-height: 1px; }
.e-logi li.ootel { color: #5B6470; }
.e-logi li::before { border-color: #3A434D; }
.e-board { margin-top: 16px; background: repeating-linear-gradient(45deg, #161B21 0 12px, #13181D 12px 24px); border-radius: 12px; padding: 16px; display: grid; place-items: center; min-height: 220px; }
.e-board:not(.anim) .kmod, .e-board:not(.anim) .kres { opacity: 0; }
.e-board svg { width: 100%; max-width: 440px; height: auto; display: block; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.e-board__cap { margin: 12px 0 0; font-size: 12px; color: #8A939D; text-align: center; min-height: 1.2em; }

.e-pages { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.e-pages figure { margin: 0; }
.e-page { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(20, 24, 30, .1); aspect-ratio: 420 / 297; transition: transform .25s; }
.e-pages figure:hover .e-page { transform: translateY(-4px); }
.e-page img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.e-page img.ok { opacity: 1; }
.e-pages figcaption { margin-top: 12px; font-size: 14px; color: var(--ink2); }
.e-pages figcaption b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.e-files { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.e-files li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.e-files b { font-family: var(--m); font-size: 15px; font-weight: 600; }
.e-files span { font-size: 13.5px; color: var(--ink2); }

.e-who { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.e-who article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.e-who .ic { width: 24px; height: 24px; color: var(--volt-d); }
.e-who h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 750; }
.e-who p { margin: 0; color: var(--ink2); font-size: 15px; }
.e-note { margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; background: var(--volt-s); border: 1px solid #F0D27A; border-radius: 14px; padding: 18px 20px; }
.e-note .ic { color: var(--volt-d); width: 22px; height: 22px; margin-top: 1px; }
.e-note p { margin: 0; font-size: 15px; }

.e-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.e-faq__list details { border-bottom: 1px solid var(--line); }
.e-faq__list details:first-child { border-top: 1px solid var(--line); }
.e-faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; font-weight: 700; font-size: 16.5px; }
.e-faq__list summary::-webkit-details-marker { display: none; }
.e-faq__list summary .ic { transition: transform .2s; color: var(--muted); }
.e-faq__list details[open] summary .ic { transform: rotate(180deg); }
.e-faq__list p { margin: 0 0 18px; color: var(--ink2); max-width: 640px; }

.e-final { background: var(--volt); padding: clamp(40px, 6vw, 72px) 0; }
.e-final__in { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.e-final p { margin: 10px 0 0; font-size: 17px; max-width: 560px; }
.e-final .btn--volt { background: var(--ink); border-color: var(--ink); color: #fff; }
.e-final .btn--volt:hover { background: #262C33; }

.e-ftr { background: var(--hdr); color: #9AA3AD; padding: 28px 0; font-size: 13.5px; }
.e-ftr__in { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; }
.e-ftr nav { display: flex; gap: 18px; flex-wrap: wrap; }
.e-ftr nav a { color: #DDE1E5; text-decoration: none; font-weight: 600; }
.e-ftr nav a:hover { color: var(--volt); }
.e-ftr p { margin: 0 0 0 auto; }

@media (max-width: 1100px) {
  .e-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-files { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .e-nav { display: none; }
  .e-hero__in, .e-split, .e-faq { grid-template-columns: minmax(0, 1fr); }
  .e-koost { position: static; }
  .e-pages, .e-who { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 640px) {
  .e-steps, .e-files { grid-template-columns: minmax(0, 1fr); }
  .e-rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .e-cta .btn { flex: 1 1 100%; }
  .e-win__hint { white-space: normal; text-align: center; width: max-content; }
  .e-ftr p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .e-live span { animation: none; }
}
