/* ============================================================
   Корпорация Дирижаблей — стили ГЛАВНОЙ страницы (front-page)
   Подключать ПОСЛЕ tokens.css и site.css.
   В теме WordPress: wp_enqueue_style только на front-page.
   Общие шапка/футер/навигация/кнопки/карточки — в site.css.
   ============================================================ */

/* — HERO — */
.hero{ position: relative;
  overflow: hidden;          /* фолбэк для старых браузеров */
  overflow: clip visible;    /* по горизонтали режем (облака/широкая картинка), по вертикали — нет, чтобы тень дирижабля не обрезалась */
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 100%);
}
/* облака клипуем отдельно, чтобы они не вылезали при overflow-y: visible у .hero */
.hero .clouds{ position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cloud{ position: absolute; background: var(--cloud); border-radius: 50%; filter: blur(30px); opacity: .85; }
.c1{ width: 460px; height: 200px; top: 12%; left: -120px; animation: drift 38s linear infinite; }
.c2{ width: 360px; height: 160px; top: 38%; right: -100px; opacity:.7; animation: drift2 46s linear infinite; }
.c3{ width: 300px; height: 130px; bottom: 10%; left: 18%; opacity:.6; animation: drift 52s linear infinite; }
@keyframes drift{ 0%{ transform: translateX(0); } 50%{ transform: translateX(60px); } 100%{ transform: translateX(0); } }
@keyframes drift2{ 0%{ transform: translateX(0); } 50%{ transform: translateX(-50px); } 100%{ transform: translateX(0); } }

.hero-inner{ position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 96px; min-height: 620px; }
.hero-copy{ max-width: 580px; }
.hero h1{ font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 0; color: var(--brand-ink); }
.hero h1 .grad{ background: linear-gradient(100deg, var(--brand) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead{ font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 24px 0 0; max-width: 520px; }
.hero .cta{ display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-vis{ position: relative; height: 480px; }
.airship-float{ position: absolute; inset: 0; display: grid; place-items: center; animation: bob 7s ease-in-out infinite; z-index: 2; }
.airship-float img{ width: 122%; max-width: none; transform: translateX(-3%); filter: drop-shadow(0 34px 40px rgba(18,42,78,.22)); }
@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-18px); } }
.orbit-ring{ position: absolute; inset: -4% 1% -4% -11%; border: 1.5px dashed rgba(47,123,255,.4); border-radius: 50%; transform: rotate(-16deg); animation: spin 64s linear infinite; z-index: 1; }
@keyframes spin{ to{ transform: rotate(344deg); } }

/* плавающая нижняя полоса со статистикой */
.hero-stats{ position: relative; z-index: 2; margin-top: -46px; }
.stats-card{ background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr); }
.stat{ padding: 28px 30px; border-right: 1px solid var(--line-soft); }
.stat:last-child{ border-right: 0; }
.stat .num{ font-weight: 800; font-size: clamp(28px, 3vw, 40px); color: var(--brand); letter-spacing: -.02em; }
.stat .num small{ font-size: .5em; color: var(--accent); font-weight: 800; vertical-align: super; }
.stat .lbl{ color: var(--muted); font-size: 14px; margin-top: 4px; }

/* — секции главной — */
section.block{ padding: clamp(56px, 7vw, 96px) 0; }
.sec-head{ max-width: 760px; }
.sec-head h2{ font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.06; letter-spacing: -.02em; margin: 14px 0 0; }
.sec-head p{ color: var(--muted); font-size: 18px; margin: 18px 0 0; }

/* О технопарке */
.about{ background: var(--paper); }
.about-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.feature{ background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; transition: transform .22s ease, box-shadow .22s ease; }
.feature:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature .ic{ width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eaf2ff, #d6e7ff); color: var(--brand); margin-bottom: 22px; }
.feature h3{ font-size: 22px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.feature p{ color: var(--muted); margin: 0; font-size: 15.5px; }
.feature .more{ display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 15px; }
.feature .more svg{ transition: transform .2s ease; }
.feature:hover .more svg{ transform: translateX(4px); }

/* Новости на главной */
.news-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.news-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
/* миниатюры новостей на главной — фирменная заглушка с силуэтом */
.news-card .thumb{ position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--sky-top), var(--sky-low)); display: grid; place-items: center; }
.news-card .thumb .ghost{ width: 62%; opacity: .5; }

/* — адаптив главной — */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; padding-bottom: 70px; min-height: 0; }
  .hero-vis{ height: 300px; order: -1; overflow: visible; }
  .airship-float img{ width: 100%; max-width: 520px; transform: translateX(-3%) translateY(-10%); }
  .stats-card{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2){ border-right: 0; }
  .stat:nth-child(1),.stat:nth-child(2){ border-bottom: 1px solid var(--line-soft); }
  .about-grid, .news-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .hero-vis{ height: 230px; }
}
