.container{max-width:1200px;margin:0 auto;padding:0 24px}

section{
  padding:100px 0;
  border-bottom:1px solid var(--line-2);
}

/* ============ HEADER ============ */
header{
  position:sticky;top:0;z-index:100;
  background:var(--header-bg);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 0;gap:24px;
}
.logo{
  font-weight:800;font-size:20px;letter-spacing:-.03em;
  white-space:nowrap;flex-shrink:0;color:var(--text);
}
.logo span{color:var(--accent)}
.menu{display:flex;gap:28px;list-style:none;flex-shrink:1;min-width:0}
.menu a{
  color:var(--muted);text-decoration:none;font-size:15px;
  transition:.2s;white-space:nowrap;font-weight:500;
}
.menu a:hover{color:var(--text)}
.nav-right{display:flex;align-items:center;gap:16px;flex-shrink:0}
.phone{
  color:var(--text);text-decoration:none;font-weight:600;
  font-size:15px;white-space:nowrap;
}
.phone:hover{color:var(--accent)}
.burger{
  display:none;background:none;border:none;color:var(--text);
  font-size:24px;cursor:pointer;padding:4px 8px;
}

/* ──────────── SCROLL OFFSET ДЛЯ ЯКОРНЫХ ССЫЛОК ──────────── */
/* Учитываем фиксированную шапку — иначе контент прячется под ней */
#awards,
#faq,
#techs,
#reviews,
#promos,
#objects-map {
  scroll-margin-top: 100px;
}

/* ──────────── ВЫПАДАЮЩЕЕ МЕНЮ ──────────── */
.menu-dropdown{
  position: relative;
}

.menu-dropdown-toggle{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-arrow{
  font-size: 10px;
  opacity: .7;
  transition: transform .2s;
  display: inline-block;
}

.menu-dropdown:hover .menu-arrow{
  transform: rotate(180deg);
}

.menu-dropdown-list{
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
  margin-top: 8px;
}

.menu-dropdown:hover .menu-dropdown-list{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-dropdown-list li{
  margin: 0;
}

.menu-dropdown-list a{
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.menu-dropdown-list a:hover{
  background: var(--accent-soft);
  color: var(--accent);
}

/* Кнопка переключения темы */
.theme-toggle{
  width:40px;height:40px;border-radius:50%;
  background:var(--card);border:1px solid var(--line);
  color:var(--text);cursor:pointer;font-size:16px;
  display:flex;align-items:center;justify-content:center;
  transition:.2s;flex-shrink:0;
}
.theme-toggle:hover{
  border-color:var(--accent);color:var(--accent);
  background:var(--accent-soft);
}

/* ============ HERO ============ */
.hero{
  padding:120px 0 100px;
  background:var(--hero-grad), var(--bg);
  border-bottom:1px solid var(--line-2);
}
.hero-grid{
  display:grid;grid-template-columns:1.2fr 1fr;
  gap:60px;align-items:center;
}
.hero h1{font-size:clamp(36px,5.5vw,64px);margin-bottom:32px}
.hero h1 span{color:var(--accent)}
.hero-btns{display:flex;gap:16px;flex-wrap:wrap}
.hero-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
  margin-top:56px;padding-top:40px;border-top:1px solid var(--line);
}
.stat-num{font-size:36px;font-weight:800;color:var(--accent);line-height:1}
.stat-label{color:var(--muted);font-size:14px;margin-top:6px}
.hero-card{
  background:var(--card);border:1px solid var(--line);
  border-radius:var(--radius);padding:32px;
  position:relative;overflow:hidden;box-shadow:var(--shadow-lg);
}

/* ──────────── КАРТОЧКИ В HERO: «ПОЧЕМУ ВЫБИРАЮТ НАС» ──────────── */
.hero-card-why{
  padding: 28px;
}

.hero-card-title{
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  letter-spacing: -.01em;
}

.hero-why-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-why-card{
  position: relative;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: default;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.hero-why-card:hover{
  border-color: var(--accent);
}

.hero-why-icon{
  font-size: 20px;
  line-height: 1;
}

.hero-why-title{
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  transition: color .2s;
}

/* Overlay с описанием при наведении */
.hero-why-hint{
  position: absolute;
  inset: 0;
  padding: 14px 12px;
  background: rgba(14, 17, 22, .92);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  border-radius: 12px;
}
.hero-why-card:hover .hero-why-hint{
  opacity: 1;
  transform: translateY(0);
}

@media(max-width: 960px){
  .hero-why-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px){
  .hero-why-grid{
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-why-card{
    min-height: 76px;
    padding: 12px 10px;
  }
  .hero-why-title{
    font-size: 12.5px;
  }
  .hero-why-hint{
    font-size: 11.5px;
    padding: 10px;
  }
}

.hero-card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--accent),transparent);
}
.hero-card h3{font-size:20px;margin-bottom:20px}
.hero-card ul{list-style:none;display:flex;flex-direction:column;gap:14px}
.hero-card li{display:flex;gap:12px;font-size:15px;color:var(--muted)}
.hero-card li::before{
  content:"✓";color:var(--accent);
  font-weight:700;flex-shrink:0;
}

/* ============ FOOTER ============ */
footer{
  padding:56px 0 32px;color:var(--muted);
  font-size:14px;background:var(--bg-2);
  border-top:1px solid var(--line);
}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;margin-bottom:40px;
}
.footer-grid h4{color:var(--text);font-size:15px;margin-bottom:16px}
.footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-grid a{color:var(--muted);text-decoration:none;transition:.2s}
.footer-grid a:hover{color:var(--accent)}
.footer-desc{color:var(--muted);font-size:14px;max-width:320px;margin-top:12px}
.footer-bottom{
  padding-top:24px;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;
  gap:16px;font-size:13px;
}

.news-item{
  display:block;
  padding:14px 0;
  text-decoration:none;
  color:var(--text);
  transition:.2s;
}
.news-item time{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:500;
  letter-spacing:.02em;
  margin-bottom:4px;
}
.news-title{
  display:block;
  font-size:14.5px;
  font-weight:600;
  line-height:1.35;
}
.news-item:hover .news-title{color:var(--accent)}
.news-item:hover time{color:var(--accent)}

/* ============================================================
   УНИВЕРСАЛЬНАЯ БОКОВАЯ КОЛОНКА (для видео, акций, технологий, наград)
   ============================================================ */
.side-layout{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:48px;
  align-items:start;
}
.side-layout .section-sub{margin-bottom:32px}

.side-col{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow-sm);
  align-self:start;
}
.side-col::-webkit-scrollbar{width:6px}
.side-col::-webkit-scrollbar-thumb{
  background:var(--line);border-radius:3px;
}
.side-col::-webkit-scrollbar-thumb:hover{background:var(--muted)}

.side-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding-bottom:16px;
  border-bottom:1px solid var(--line-2);
  margin-bottom:8px;
}
.side-head h3{font-size:18px;font-weight:800}
.side-all{
  font-size:13px;color:var(--accent);text-decoration:none;
  font-weight:600;white-space:nowrap;
}
.side-all:hover{color:var(--accent-2)}

.side-list{list-style:none;display:flex;flex-direction:column}
.side-list li{border-bottom:1px solid var(--line-2)}
.side-list li:last-child{border-bottom:none}

/* --- Видеообзор --- */
.video-item{
  display:block;padding:14px 0;text-decoration:none;
  color:var(--text);transition:.2s;cursor:pointer;
}
.video-thumb{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:10px;
  background:linear-gradient(135deg,var(--placeholder),var(--placeholder-2));
  margin-bottom:10px;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}

/* Превью локального видео — вместо градиента показываем первый кадр */
.video-thumb video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;   /* клики идут в родительский .video-thumb */
  -webkit-playsinline: true; /* для старых iOS */
}
.video-thumb::before{
  content:"";
  position:absolute;inset:0;
  background:rgba(0,0,0,.15);
  transition:.25s;
}
.video-play{
  position:relative;z-index:2;
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.92);
  display:flex;align-items:center;justify-content:center;
  color:#111;font-size:14px;
  transition:.25s;
  padding-left:3px; /* визуальное центрирование треугольника ▶ */
}
.video-item:hover .video-thumb::before{background:rgba(0,0,0,.35)}
.video-item:hover .video-play{
  background:var(--accent);color:#fff;
  transform:scale(1.08);
}
.video-meta{
  font-size:12px;color:var(--muted);
  font-weight:500;letter-spacing:.02em;margin-bottom:4px;
}
.video-title{
  display:block;font-size:14.5px;font-weight:600;line-height:1.35;
}
.video-item:hover .video-title{color:var(--accent)}

/* --- Акции и награды (миниатюра + текст + читать далее) --- */
.promo-item{
  display:block;padding:16px 0;
  color:var(--text);text-decoration:none;
}
.promo-thumb{
  width:100%;aspect-ratio:16/10;
  border-radius:10px;
  background:linear-gradient(135deg,var(--placeholder),var(--placeholder-2));
  margin-bottom:10px;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-size:12px;
}
.promo-thumb.no-image{
  aspect-ratio:auto;height:6px;
  background:var(--accent);
  margin-bottom:12px;
  border-radius:3px;
}
.promo-title{
  display:block;font-size:15px;font-weight:700;
  line-height:1.35;margin-bottom:6px;
}
.promo-desc{
  display:block;font-size:13.5px;color:var(--muted);
  line-height:1.5;margin-bottom:8px;
}
.promo-more{
  display:inline-block;font-size:13px;font-weight:600;
  color:var(--accent);text-decoration:none;
}
.promo-more:hover{color:var(--accent-2)}
.promo-more::after{content:" →";transition:.2s}
.promo-item:hover .promo-more::after{transform:translateX(2px)}

/* --- Награды (компактнее, без картинки) --- */
.award-item{
  display:block;padding:16px 0;
  color:var(--text);text-decoration:none;
}
.award-icon{
  display:block;
  font-size:32px;
  line-height:1;
  margin-bottom:12px;
}
.award-title{
  display:block;font-size:14.5px;font-weight:700;
  line-height:1.35;margin-bottom:6px;
}
.award-desc{
  display:block;font-size:13px;color:var(--muted);
  line-height:1.5;margin-bottom:8px;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА (универсальные)
   ============================================================ */
.modal-backdrop{
  position:fixed;inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
  z-index:1000;
  display:none;
  align-items:center;justify-content:center;
  padding:24px;
}
.modal-backdrop.open{display:flex}
.modal{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
  width:100%;
  max-width:900px;
  max-height:90vh;
  overflow-y:auto;
  overflow-x:hidden;
  position:relative;
  animation:modalIn .25s ease;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
  scrollbar-gutter:stable;
}

/* ─── Красивый скроллбар внутри модалок (Chrome, Edge, Safari) ─── */
.modal::-webkit-scrollbar{
  width:8px;
}
.modal::-webkit-scrollbar-track{
  background:transparent;
  margin:8px 0;
}
.modal::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:4px;
}
.modal::-webkit-scrollbar-thumb:hover{
  background:var(--muted);
}

.modal.modal-narrow{max-width:640px}
@keyframes modalIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.modal-close{
  position:absolute;top:14px;right:14px;
  width:38px;height:38px;border-radius:50%;
  background:var(--bg-2);border:1px solid var(--line);
  color:var(--text);font-size:18px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:.2s;z-index:5;
}
.modal-close:hover{
  background:var(--accent);color:#fff;border-color:var(--accent);
}
.modal-video-wrap{
  position:relative;
  width:100%;
  height:60vh;             /* ← фиксированная высота */
  max-height:600px;
  min-height:300px;
  background:#000;
  border-radius:var(--radius) var(--radius) 0 0;
  overflow:hidden;
}
.modal-video-wrap iframe,
.modal-video-wrap video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:none;
  background:#000;   /* ← фон самого видео тоже чёрный */
  object-fit:contain;   /* ← добавить! чтобы видео вписывалось без обрезки */
}
.modal-body{
  padding:28px 32px 32px;
}
.modal-body h3{
  font-size:22px;font-weight:800;
  margin-bottom:14px;padding-right:40px;
}
.modal-body p{
  color:var(--muted);font-size:15px;
  line-height:1.65;margin-bottom:12px;
}
.modal-body p:last-child{margin-bottom:0}