/*
Theme Name: EvgeniyWulf
Theme URI: https://usss-flightsimulator.ru
Author: Evgeniy Wulf
Author URI: https://usss-flightsimulator.ru
Description: Custom WordPress theme for EvgeniyWulf Flight Simulator Scenery
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: evgeniywulf
*/

/* ====== BASE ====== */
:root{
  --blue-900:#0e2a52;
  --blue-800:#12386b;
  --blue-600:#1e5aa8;
  --blue-500:#2f7ac8;
  --blue-100:#e8f0fa;
  --grey:#5b6b7d;
  --text:#152234;
  --radius:14px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font:16px/1.55 "Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
h2,h3,h4{margin:0}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* ====== HEADER ====== */
.header{
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g fill='none' stroke='%23dfe8f4' stroke-width='1'><circle cx='60' cy='60' r='40'/><path d='M0 30h120M0 90h120M30 0v120M90 0v120'/></g></svg>");
  border-bottom:1px solid #e6edf6;
}
.header__inner{display:flex;align-items:center;gap:28px;padding:18px 20px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px}
.logo__icon{width:52px;height:22px;fill:#1a2b3d;stroke:#1a2b3d;stroke-width:.8}
.logo__text{font-size:30px;font-weight:800;letter-spacing:.5px}
.logo--light .logo__text,.logo--light .logo__icon{color:#fff;fill:#fff;stroke:#fff}

.header__airport{display:flex;flex-direction:column;line-height:1.05;color:var(--blue-500)}
.header__airport-top{font-size:12px;letter-spacing:2px}
.header__airport-mid{font-size:22px;font-weight:800;color:var(--blue-600)}
.header__airport-bot{font-size:10px;letter-spacing:2px}

.header__brands{margin-left:auto;display:flex;align-items:center;gap:16px}
.brand--vk{background:#0077ff;color:#fff;font-weight:700;padding:8px 12px;border-radius:8px}
.brand--simmarket{font-size:22px;font-weight:600;color:#1c4f8f;letter-spacing:1px}
.brand--simmarket span{color:#6c8db5}
.brand--simmarket sup{font-size:10px}

/* ====== HERO SLIDER ====== */
.hero{padding:38px 0 46px;background:#fff;overflow:hidden}
.slider{position:relative;max-width:820px;margin:0 auto}
.slider__viewport{overflow:visible}
.slider__track{display:flex;transition:transform .6s cubic-bezier(.25,.8,.25,1)}
.slider__slide{position:relative;min-width:100%;transition:transform .6s ease,filter .6s ease,opacity .6s ease;opacity:.35;transform:scale(.85);filter:blur(4px) grayscale(20%);pointer-events:none}
.slider__slide.is-active{opacity:1;transform:scale(1);filter:none;pointer-events:auto}
.slider__slide img{width:100%;height:440px;object-fit:cover;border-radius:var(--radius);box-shadow:0 10px 30px rgba(14,42,82,.15);transition:box-shadow .6s ease}
.slider__slide.is-active img{box-shadow:0 18px 45px rgba(14,42,82,.35)}
.slider__caption{
  position:absolute;top:26px;left:26px;padding:14px 22px;
  background:linear-gradient(180deg,rgba(20,60,110,.92),rgba(20,60,110,.6));
  border-radius:8px;color:#fff;display:flex;flex-direction:column;
}
.slider__icao{font-size:46px;font-weight:800;line-height:1}
.slider__name{font-size:26px;font-weight:700}
.slider__sub{font-size:17px;opacity:.9}

.slider__arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border:0;border-radius:50%;
  background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.2);
  font-size:26px;line-height:1;color:var(--blue-800);cursor:pointer;
}
.slider__arrow:hover{background:var(--blue-100)}
.slider__arrow--prev{left:-22px}
.slider__arrow--next{right:-22px}

.slider__dots{display:flex;justify-content:center;gap:9px;margin-top:16px}
.slider__dots li{width:10px;height:10px;border-radius:50%;background:#c6d5e8;cursor:pointer}
.slider__dots li.is-active{background:var(--blue-600);width:26px;border-radius:6px}

/* ====== BUY ====== */
.buy{display:flex;align-items:center;justify-content:center;gap:26px;margin-top:34px;flex-wrap:wrap}
.buy__label{font-size:24px;font-weight:700}
.buy__box{
  background:linear-gradient(180deg,var(--blue-600),var(--blue-800));
  color:#fff;border-radius:12px;padding:14px 26px;text-align:center;
  box-shadow:0 10px 26px rgba(19,56,107,.35);
}
.buy__title{display:block;font-size:32px;font-weight:800;letter-spacing:1px}
.buy__sims{display:flex;align-items:center;justify-content:center;gap:10px;
  background:#e9f1fb;color:var(--blue-800);border-radius:8px;padding:8px 14px;margin:10px 0}
.buy__sim{font-size:13px;font-weight:700}
.buy__price{font-size:20px}
.buy__icons{display:flex;gap:14px}
.ico{width:34px;height:34px;display:block;background:no-repeat center/contain}
.ico--plane{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23152234'><path d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/></svg>")}
.ico--compass{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152234' stroke-width='1.6'><circle cx='12' cy='12' r='9'/><path d='M15.5 8.5 13 13l-4.5 2.5L11 11z'/></svg>")}

/* ====== PROMO 2.0 ====== */
.promo{background:var(--blue-900);padding:44px 0}
.promo__card{
  display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center;
  border:2px solid rgba(120,180,255,.5);border-radius:16px;padding:26px;
}
.promo__video{width:100%;border-radius:8px;background:#000;aspect-ratio:16/9}
.promo__body{color:#fff}
.promo__title{font-size:34px;font-weight:700;margin-bottom:14px}
.promo__body p{margin:0 0 14px;color:#cfe0f5}

.plate{
  display:inline-flex;flex-direction:column;align-items:center;
  background:linear-gradient(180deg,#f2f4f6,#c9ced4);
  border:2px solid #9aa4ae;border-radius:10px;padding:14px 34px;color:#1b2836;
  box-shadow:inset 0 1px 0 #fff;
}
.plate__brand{font-size:30px;font-weight:600}
.plate__sub{font-size:14px;color:#4a5766}

/* ====== SECTIONS ====== */
.section{padding:56px 0}
.section--map{background:#f5f8fd}
.section__title{
  text-align:center;font-size:34px;font-weight:700;margin:10px 0 34px;position:relative;padding-bottom:14px;
}
.section__title::after{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:74px;height:3px;background:#c8443c;border-radius:2px}

/* ====== FEATURES ====== */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-bottom:60px}
.feature img{border-radius:10px;height:170px;width:100%;object-fit:cover;margin-bottom:14px}
.feature__head{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px}
.feature__head h3{font-size:19px;line-height:1.25}
.feature__ico{width:26px;height:26px;flex:0 0 26px;background:no-repeat center/contain}
.feature__ico--tower{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e5aa8'><path d='M10 2h4l1 5-1 13h-4L9 7z'/><path d='M4 8h4v2H4zm12 0h4v2h-4z'/></svg>")}
.feature__ico--car{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e5aa8'><path d='M5 11l1.5-4h11L19 11h1a1 1 0 0 1 1 1v4h-3a2 2 0 1 1-4 0h-4a2 2 0 1 1-4 0H3v-4a1 1 0 0 1 1-1z'/></svg>")}
.feature__ico--mark{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e5aa8'><path d='M12 4l6 16h-3l-1-4h-4l-1 4H6z'/></svg>")}
.feature p{margin:0;color:var(--grey);font-size:15px}

/* ====== ROADMAP ====== */
.roadmap{position:relative;max-width:900px;margin:0 auto 46px;padding:70px 0}
.roadmap__line{position:relative;height:6px;background:#cfe0f2;border-radius:4px}
.roadmap__progress{position:absolute;left:0;top:0;height:100%;width:55%;
  background:linear-gradient(90deg,var(--blue-800),var(--blue-500));border-radius:4px}
.roadmap__point{position:absolute;top:50%;transform:translate(-50%,-50%);
  width:14px;height:14px;border-radius:50%;background:#a9c6e6}
.roadmap__point--done{background:var(--blue-800)}
.roadmap__labels div{position:absolute;transform:translateX(-50%);width:180px;text-align:center}
.roadmap__labels--top div{top:20px}
.roadmap__labels--bottom div{bottom:14px}
.roadmap__labels b{display:block;font-size:15px}
.roadmap__labels span{font-size:14px;color:var(--grey)}

.news{display:flex;gap:26px;align-items:center;max-width:900px;margin:0 auto 60px}
.news img{width:290px;border-radius:10px}
.news__body h3{font-size:22px;margin-bottom:8px}
.news__body p{margin:0;color:var(--grey)}

/* ====== PORTFOLIO ====== */
.portfolio{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.card{text-align:center}
.card img{border-radius:8px;height:110px;width:100%;object-fit:cover;margin-bottom:10px;
  transition:transform .3s}
.card:hover img{transform:translateY(-4px)}
.card b{display:block;font-size:19px}
.card span{display:block;font-size:13px;color:var(--grey);margin-bottom:6px}
.tag{display:block;font-style:normal;font-size:12px;font-weight:600;color:#fff;
  background:var(--blue-600);border-radius:4px;padding:4px 0}
.tag--green{background:#3fa34d}
.tag--grey{background:#dfe4ea;color:#4a5766}

/* ====== AUTHOR ====== */
.author{background:var(--blue-900);padding:46px 0}
.plate--wide{flex-direction:row;align-items:center;gap:24px;width:100%;max-width:860px;
  margin:0 auto;padding:20px 30px;justify-content:flex-start}
.author__photo{width:110px;height:110px;border-radius:50%;border:4px solid #8d99a5;object-fit:cover}
.author__text h3{font-size:28px;margin-bottom:6px}
.author__text p{margin:0;color:#3d4b5b}
.author__sign{margin-left:auto;font-size:26px;font-style:italic;color:#7d8896}

/* ====== FOOTER ====== */
.footer{background:#0a2140;color:#cfdcec;padding:40px 0 20px}
.footer__inner{display:flex;gap:60px;align-items:flex-start;flex-wrap:wrap}
.footer__col h4{font-size:15px;color:#fff;margin-bottom:8px}
.footer__col a{color:#7db4f0}
.footer__col:last-child{margin-left:auto}
.socials{display:flex;gap:10px}
.social{width:38px;height:38px;border-radius:8px;background:#1b4b86;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.social:hover{background:var(--blue-500)}
.footer__bottom{margin-top:26px;padding-top:16px;border-top:1px solid #17365f;font-size:12px;color:#7e93ad}

/* ====== RESPONSIVE ====== */
@media (max-width:900px){
  .promo__card{grid-template-columns:1fr}
  .features{grid-template-columns:1fr}
  .portfolio{grid-template-columns:repeat(3,1fr)}
  .news{flex-direction:column;text-align:center}
  .roadmap__labels div{width:120px;font-size:13px}
}
@media (max-width:600px){
  .slider__slide img{height:260px}
  .slider__icao{font-size:32px}
  .slider__name{font-size:18px}
  .slider__arrow--prev{left:6px}
  .slider__arrow--next{right:6px}
  .portfolio{grid-template-columns:repeat(2,1fr)}
  .header__brands{margin-left:0}
  .plate--wide{flex-direction:column;text-align:center}
  .author__sign{margin:0}
}

/* ====== NEWS GRID CUSTOM STYLES ====== */
.news-grid .news {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  margin: 0;
  background: rgba(20, 38, 62, 0.9);
  border: 1px solid rgba(58, 143, 212, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.news-grid .news:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 143, 212, 0.45);
}
.news-grid .news img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}
.news-grid .news__body {
  padding: 24px;
}
.news-grid .news__body h3 {
  font-size: 19px;
  margin-top: 0;
  margin-bottom: 12px;
}
.news-grid .news__body p {
  color: #a4b3c6;
  font-size: 14px;
  line-height: 1.5;
}

/* ====== LIGHTBOX STYLES ====== */
.ew-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 35, 0.96);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
}
.ew-lightbox.is-visible {
  opacity: 1;
}
.ew-lightbox img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ew-lightbox.is-visible img {
  transform: scale(1);
}
.ew-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}
.ew-lightbox-close:hover {
  opacity: 0.8;
}

/* ====== CUSTOM LOGO STYLES ====== */
.logo--custom-uploaded a {
  display: flex;
  align-items: center;
}
.logo--custom-uploaded img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ====== VERTICAL NEWS COLUMN LIST STYLES ====== */
.news-list-vertical .news--vertical-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 26px !important;
  max-width: 900px !important;
  margin: 0 auto 30px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
@media (max-width: 768px) {
  .news-list-vertical .news--vertical-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .news-list-vertical .news__img-wrap {
    width: 100% !important;
  }
}

/* ====== FOOTER CUSTOM LOGO STYLES ====== */
.footer .logo--custom-uploaded img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* Forces logo to be white/light in footer */
}

/* ====== SWIPER CAROUSEL OVERRIDES ====== */
.slider.swiper {
  overflow: visible !important;
}
.slider__viewport.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  height: auto !important;
}
.slider__slide.swiper-slide {
  display: block !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}
.slider__dots .slider__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c6d5e8;
  cursor: pointer;
  margin: 0 4px;
  transition: all 0.3s ease;
}
.slider__dots .slider__dot.is-active {
  background: var(--blue-600);
  width: 26px;
  border-radius: 6px;
}

/* ====== BREADCRUMB STYLES ====== */
.breadcrumb {
  background: #f8fafc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><g fill='none' stroke='%23f1f5f9' stroke-width='1'><circle cx='60' cy='60' r='40'/><path d='M0 30h120M0 90h120M30 0v120M90 0v120'/></g></svg>");
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.01);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.breadcrumb a {
  color: #1e5aa8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: #febd11;
}
.breadcrumb__sep {
  color: #cbd5e1;
  font-size: 12px;
}
.breadcrumb__current {
  color: #64748b;
}

/* ====== SWIPER OVERLAP & SCALE EFFECT ====== */
.slider.swiper {
  overflow: visible !important;
  padding: 20px 0 !important;
}
.slider__viewport.swiper-wrapper {
  align-items: center !important;
}
.slider__slide.swiper-slide {
  transform: scale(0.9);
  opacity: 0.6;
  filter: blur(2px) grayscale(15%);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  z-index: 1;
  position: relative;
}
.slider__slide.swiper-slide-active,
.slider__slide.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
  z-index: 10;
}

/* ====== ARROWS OVER THE SLIDES ====== */
.slider__arrow {
  z-index: 15 !important;
}
