/*
Theme Name: Evk24
Theme URI: https://evk24.ru/
Author: Evk24
Description: Тёмная тема лендинга эвакуатора: герой, тарифы, работы, зоны выезда, FAQ. Цены и телефон меняются в Настройки → Evk24.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: evk24
Tags: landing, dark, business
*/


/* ===== RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #161616;
  --bg2:      #1e1e1e;
  --bg3:      #262626;
  --surface:  rgba(30,30,30,0.85);
  --border:   rgba(255,255,255,0.08);
  --orange:   #FF7300;
  --orange2:  #e66200;
  --white:    #ffffff;
  --muted:    #9ca3af;
  --green:    #22c55e;
  --radius:   14px;
  --radius-lg:20px;
  --shadow:   0 20px 60px rgba(0,0,0,0.5);
  font-size: 16px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* ===== UTILITY ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(16,16,16,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 0; font-size: 28px; font-weight: 900; letter-spacing: -1px; white-space: nowrap; }
.logo span { color: var(--orange); }
.logo-tagline {
  display: none; flex-direction: column; gap: 2px; text-align: center;
  color: var(--muted); font-size: 11px; line-height: 1.3;
}
.logo-tagline strong { color: var(--white); font-size: 13px; }
nav { display: flex; gap: 32px; }
nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s; white-space: nowrap; }
nav a:hover { color: var(--white); }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { text-align: right; }
.header__phone a { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.header__phone .live {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  font-size: 11px; color: var(--green); margin-top: 1px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.4)} }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: var(--radius); transition: all 0.2s; white-space: nowrap; }
.btn-primary {
  background: var(--orange); color: #fff; padding: 12px 28px; font-size: 15px;
  box-shadow: 0 4px 20px rgba(255,115,0,0.3);
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,115,0,0.4); }
.btn-primary:active { transform: translateY(0); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, rgba(255,115,0,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 60% 50%, rgba(30,20,10,0.9) 0%, var(--bg) 100%);
}
.hero__glow {
  position: absolute; top: 20%; right: 10%; z-index: 1;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,115,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; width: 100%;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,115,0,0.1); border: 1px solid rgba(255,115,0,0.25);
  color: var(--orange); border-radius: 100px; padding: 8px 18px;
  font-size: 14px; font-weight: 700; margin-bottom: 24px;
}
.badge-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--orange); display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
h1 {
  font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; line-height: 1.08;
  letter-spacing: -2px; margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--orange); }
.hero__sub { font-size: 18px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }
.hero__checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.hero__checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,115,0,0.15);
  border: 1.5px solid var(--orange); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--orange); font-size: 11px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-call { background: var(--orange); color: #fff; padding: 16px 36px; font-size: 17px; border-radius: var(--radius); font-weight: 800; box-shadow: 0 6px 24px rgba(255,115,0,0.35); transition: all 0.2s; display:inline-flex; align-items:center; gap:10px; }
.btn-call:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,115,0,0.45); }

/* ===== HERO VISUAL ===== */
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__visual img {
  width: 100%; max-width: 620px; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}
.hero__visual::before {
  content: ''; position: absolute; z-index: -1;
  width: 78%; height: 62%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,115,0,0.16) 0%, transparent 70%);
  filter: blur(24px);
}

/* ===== STATS STRIP ===== */
.stats {
  background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat { text-align: center; padding: 0 24px; position: relative; }
.stat + .stat::before { content:''; position:absolute; left:0; top:10%; height:80%; width:1px; background: var(--border); }
.stat__num { font-size: 40px; font-weight: 900; letter-spacing: -2px; color: var(--orange); line-height: 1; }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ===== PRICES ===== */
.section { padding: 80px 0; }
.section-label { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.section__sub { font-size: 17px; color: var(--muted); margin-top: 12px; max-width: 540px; }

.prices__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.price-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transition: transform 0.25s;
  transform-origin: left;
}
.price-card:hover { border-color: rgba(255,115,0,0.4); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.price-card:hover::after { transform: scaleX(1); }
.price-card.featured { border-color: rgba(255,115,0,0.5); background: linear-gradient(135deg, rgba(255,115,0,0.08) 0%, var(--bg2) 100%); }
.price-card__icon { margin-bottom: 20px; color: var(--muted); }
.price-card.featured .price-card__icon { color: var(--orange); }
.price-card__from { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.price-card__price { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.price-card__name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.price-card__desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.price-card__cta {
  display: block; width: 100%; text-align: center;
  padding: 11px; border-radius: var(--radius); font-weight: 700; font-size: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); transition: all 0.2s;
}
.price-card__cta:hover { background: var(--orange); border-color: var(--orange); }
.price-card.featured .price-card__cta { background: var(--orange); border-color: var(--orange); }

/* ===== HOW IT WORKS ===== */
.how__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; position: relative; }
.how__grid::before {
  content:''; position:absolute; top:28px; left:12.5%; right:12.5%; height:2px;
  background: linear-gradient(90deg, var(--orange), rgba(255,115,0,0.2));
  pointer-events: none;
}
.how-step { text-align: center; padding: 0 8px; }
.how-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 20px; font-weight: 900; color: var(--orange);
  position: relative; z-index: 1;
}
.how-step__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step__desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ===== ZONES ===== */
.zones { background: var(--bg2); border-radius: 24px; padding: 48px; margin-top: 48px; }
.zones__title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.zones__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.zone__area { font-size: 13px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.zone__list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.zone__list li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.zone__list li::before { content: '\2192'; color: var(--orange); font-weight: 700; }

/* ===== FAQ ===== */
.faq__list { margin-top: 48px; display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(255,115,0,0.3); }
.faq-item__q {
  width: 100%; text-align: left; padding: 20px 24px; font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.2s; color: var(--white);
}
.faq-item__q:hover { color: var(--orange); }
.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,115,0,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-size: 16px; transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 24px; font-size: 15px; color: var(--muted); line-height: 1.7;
}
.faq-item.open .faq-item__a { max-height: 300px; padding: 0 24px 20px; }

/* ===== FOOTER ===== */
footer {
  background: #0f0f0f; border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer__col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.footer__bottom a { color: var(--muted); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--white); }

/* ===== MOBILE BAR ===== */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,14,14,0.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); padding: 12px 16px;
  flex-direction: row; gap: 10px;
}
.mobile-bar a { flex: 1; text-align: center; padding: 14px 10px; border-radius: var(--radius); font-weight: 700; font-size: 15px; }
.mobile-bar .mb-call { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(255,115,0,0.3); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; transform: translateY(calc(100% + 120px)); transition: transform 0.4s;
  pointer-events: none;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}
.cookie-banner.show { transform: translateY(0); pointer-events: auto; }
.cookie-banner p { font-size: 13px; color: var(--muted); flex: 1; min-width: 200px; line-height: 1.6; }
.cookie-banner a { color: var(--orange); text-decoration: underline; }
.cookie-accept {
  background: var(--orange); color: #fff; padding: 10px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: 14px; white-space: nowrap;
}
.cookie-accept:hover { background: var(--orange2); }
.cookie-decline {
  background: transparent; color: var(--muted); padding: 10px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer;
}
.cookie-decline:hover { color: var(--white); border-color: var(--muted); }

/* ===== SCROLL REVEAL ===== */
/* Анимация появления включается только классом .js-reveal на <html>:
   его ставит инлайн-скрипт в <head>. Нет JS / скрипт упал / блокировщик —
   класса нет, контент виден сразу (никакой пустой страницы). */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ===== WORKS (Наши работы) ===== */
.works__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }
.work-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg3); cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.25,1); }
.work-card:hover img { transform: scale(1.07); }
.work-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .3s; pointer-events: none;
}
.work-card:hover::after { box-shadow: inset 0 0 0 2px rgba(255,115,0,.75); }
.work-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.15) 70%, transparent);
  font-size: 15px; font-weight: 700;
}
.work-card figcaption span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.work-zoom {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.work-card:hover .work-zoom { opacity: 1; transform: none; }
@media (max-width: 1024px) { .works__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .works__grid { grid-template-columns: 1fr; } }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0,0,0,.92); cursor: zoom-out; opacity: 0; transition: opacity .2s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .logo-tagline { display: none; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
  .header__right { gap: 12px; }
  .header__phone a { font-size: 17px; }
  .btn-primary { padding: 11px 20px; font-size: 14px; }
}
@media (max-width: 1024px) {
  nav { display: none; }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .prices__grid { grid-template-columns: repeat(2,1fr); }
  .how__grid { grid-template-columns: repeat(2,1fr); }
  .how__grid::before { display: none; }
}
@media (max-width: 768px) {
  .header__inner { height: 64px; }
  nav, .header-cta { display: none; }
  .logo-tagline { display: none; }
  .header__right { margin-left: auto; gap: 0; }
  .header__phone a { font-size: 16px; letter-spacing: -0.4px; }
  .header__phone .live { font-size: 10px; margin-top: 0; }
  .hero { padding: 80px 0 100px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 38px; }
  .stats__grid { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .stat + .stat::before { display: none; }
  .prices__grid { grid-template-columns: 1fr 1fr; }
  .how__grid { grid-template-columns: 1fr; gap: 32px; }
  .zones__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
  .cookie-banner { bottom: 76px; }
  .zones { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .prices__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; }
  .btn-call { justify-content: center; }
}
@media (max-width: 380px) {
  .header__phone a { font-size: 14px; }
  .header__phone .live { font-size: 9px; }
  .stat { padding: 0 8px; }
  .stat__num { font-size: 32px; }
  .stats__grid { gap: 20px 8px; }
}

/* ===== СТРАНИЦА «НАШИ РАБОТЫ» ===== */
.works-page__grid { grid-template-columns: repeat(3,1fr); }
.work-card__empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--muted); font-size: 14px;
  background: repeating-linear-gradient(45deg, #1d1d1d, #1d1d1d 10px, #222 10px, #222 20px);
}
.works-empty { margin-top: 44px; padding: 40px; border: 1px dashed var(--border); border-radius: var(--radius-lg); text-align: center; }
.works-cta {
  margin-top: 48px; padding: 28px 32px; border-radius: var(--radius-lg);
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.works-cta p { font-size: 19px; font-weight: 700; }
.works-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.works-pagination a, .works-pagination span {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--white);
}
.works-pagination a:hover { border-color: var(--orange); color: var(--orange); }
.works-pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }
.works-pagination .dots { border: none; }
@media (max-width: 1024px) { .works-page__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .works-page__grid { grid-template-columns: 1fr; } }

/* кнопка «Все работы» в секции на главной */
.works__more { display: flex; justify-content: center; margin-top: 36px; }
