/* Soul Dance — layout.css */

/* ── Контейнер ───────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 16px;
  }
}

/* ── Секции ──────────────────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 24px;
}

.section-lead {
  font-size: 18px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 600px;
}

@media (max-width: 768px) {
  .section      { padding: 64px 0; }
  .section--sm  { padding: 48px 0; }
}

/* ── Сетка ───────────────────────────────────────────────── */

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── Хедер ───────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: background 200ms ease, backdrop-filter 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
}

/* ── Навигация ───────────────────────────────────────────── */

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: color 150ms ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-text);
}

/* Стрелка дропдауна */
.has-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
  transition: transform 150ms ease;
}

.has-dropdown.is-open > .nav-link::after {
  transform: rotate(180deg);
}

/* Дропдаун */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.nav-tag-soon {
  font-size: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* CTA в хедере */
.header-cta {
  flex-shrink: 0;
  margin-left: 16px;
  font-size: 14px;
  padding: 12px 20px;
}

/* Бургер */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background 150ms ease;
}

.burger-btn:hover { background: var(--color-surface-2); }

.burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.burger-btn.is-active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Оверлей мобильного меню */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.8);
  z-index: 499;
  opacity: 0;
  transition: opacity 200ms ease;
}

.mobile-overlay.is-active {
  opacity: 1;
}

/* Мобильное меню */
@media (max-width: 1024px) {
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .burger-btn { display: flex; }
  .mobile-overlay { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--color-surface-1);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 16px 32px;
    overflow-y: auto;
    z-index: 501;
    transform: translateX(100%);
    transition: transform 250ms ease;
    margin-left: 0;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    background: var(--color-bg);
    border: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    transition: max-height 200ms ease;
  }

  .has-dropdown.is-open .nav-dropdown {
    max-height: 400px;
    transform: none;
    pointer-events: auto;
    opacity: 1;
  }

  .dropdown-link {
    padding: 10px 12px;
    font-size: 15px;
  }
}

/* Основной контент с отступом под хедер */
main {
  padding-top: 72px;
}

/* ── Футер ───────────────────────────────────────────────── */

.site-footer {
  background: var(--color-surface-1);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-border);
}

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col--nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col--nav a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 150ms ease;
}

.footer-col--nav a:hover { color: var(--color-text); }

.footer-col--contacts address {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-col--contacts address p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-social-link {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 150ms ease;
}

.footer-social-link:hover { color: var(--color-accent); }

/* Нижняя строка футера */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}

.footer-legal-info {
  font-size: 12px;
  color: var(--color-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links a,
.footer-legal-links button {
  font-size: 12px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer-col--brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal-links { gap: 12px; }
  .site-footer { margin-top: 64px; }
}

/* ── Hero-секция ─────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 64px 0;
  }
}

/* ── Страница coming soon ────────────────────────────────── */

.coming-soon {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0;
}

.coming-soon__content {
  max-width: 560px;
}

.coming-soon__title {
  margin: 24px 0 16px;
}

.coming-soon__text {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Разделитель ─────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}
