* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* компенсация высоты липкого меню при переходе по якорям */
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  background: #1a1a2e;
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.2em;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-size: 1.15em;
  margin: 0 0 12px;
  color: #ffd166;
}

.hero .sub {
  margin: 0 auto;
  max-width: 640px;
  color: #cfd2dc;
}

.nav {
  background: #16213e;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.nav a {
  color: #cfd2dc;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 0.95em;
}

.nav a:hover { color: #ffd166; }

.talk {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 24px 24px 28px;
  margin: 32px 0;
  /* запасной вариант компенсации меню для браузеров без scroll-padding */
  scroll-margin-top: 60px;
}

.talk h2 { margin-top: 0; font-size: 1.5em; }
.talk h3 { font-size: 1.15em; margin-top: 24px; }

/* Блок видео 16:9 */
.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Фасад: заставка вместо плеера, iframe подставляется по клику */
.facade {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facade .thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.facade .play {
  position: relative;
  background: #16213e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.05em;
  border: 0;
}

.facade:hover .play, .facade:focus .play { background: #ffd166; color: #16213e; }

.yt-link {
  margin: 10px 0 0;
  font-size: 0.95em;
}

.yt-link a {
  color: #16213e;
  text-decoration: none;
  border-bottom: 1px solid #16213e;
}

.yt-link a:hover { color: #b8860b; border-color: #b8860b; }

/* Карусель: transform-based track, управляется script.js */
.carousel { overflow: hidden; margin-top: 8px; }

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 2px;
}

.cap {
  color: #444;
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 8px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.car-btn {
  background: #16213e;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
}

.car-btn:hover { background: #ffd166; color: #16213e; }

.car-dots { display: flex; gap: 8px; }

.car-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #ccc;
  padding: 0;
  cursor: pointer;
}

.car-dots button.active { background: #16213e; }

.footer {
  background: #1a1a2e;
  color: #9aa0b0;
  text-align: center;
  padding: 28px 0;
  margin-top: 48px;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 1.7em; }
  .talk { padding: 18px 14px 22px; margin: 20px 0; }
  .nav a { padding: 10px 8px; font-size: 0.85em; }
  html { scroll-padding-top: 100px; }
  .talk { scroll-margin-top: 100px; }
}
