/*
====================================================================
1. ПЕРЕМЕННЫЕ, ШРИФТЫ И БАЗОВЫЕ СТИЛИ (GLOBAL SETUP)
====================================================================
*/

:root {
  --bg: #0f0f10;
  --bg2: #171718;
  --card: #18181b;
  --line: #2a2a2d;
  --text: #f2f2f2;
  --muted: #a1a1aa;
  --accent: #ffd54a;
  --accent2: #ffb300;
  --radius: 20px;
  --shadow: 0 10px 35px rgba(0,0,0,.35);
  --max: 1200px;
}

@font-face {
  font-family: 'Golos';
  src: url('/fonts/golos.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--bg), #131314);
  color: var(--text);
  font: 16px/1.65 'Golos', -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ЕДИНЫЙ ЖЕСТКИЙ КОНТЕЙНЕР ДЛЯ ВСЕХ СЕКЦИЙ САЙТА (СТРОГО 1200px) */
.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

::selection {
  background: var(--accent);
  color: #111;
}
/* завершение секции базовых стилей */

/*
====================================================================
2. ШАПКА И НАВИГАЦИЯ (HEADER & NAVIGATION)
====================================================================
*/

header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 16, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  min-height: 84px;
  position: relative;
}

.logo { height: 56px; }

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: 'Unbounded', -apple-system, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .04em;
}

.brand-sub {
  color: #bdbdbd;
  font-size: 14px;
  margin-top: 4px;
}

.menu {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.menu a {
  padding: 8px 0;
  opacity: .82;
  transition: .25s;
}

.menu a:hover {
  opacity: 1;
  color: var(--accent);
}

.menu-soon {
  padding: 8px 0;
  opacity: .4;
  cursor: default;
  user-select: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.burger.is-active {
  transform: rotate(90deg);
}

.burger span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  box-shadow: 0 10px 35px rgba(255, 213, 74, .22);
  transition: .25s;
  cursor: pointer;
  border: none;
}

.button:hover {
  background: #fff0aa;
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-outline:hover {
  background: #252528;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.button-danger {
  background: #e53935;
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.button-danger:hover {
  background: #ff4d4d;
  color: #fff;
}

@media(max-width: 900px) {
  .nav { flex-wrap: nowrap; justify-content: space-between; align-items: center; }
  .brand { justify-content: flex-start; flex: 1; min-width: 0; margin-right: 12px; }
  .brand-text { min-width: 0; }
  .brand-title { font-size: clamp(18px, 5.5vw, 26px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand img { width: 44px; height: 44px; }
  .burger { display: flex; flex-shrink: 0; }

  /* Обновленное меню (не на всю ширину, прибито к правому краю, с тенью) */
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 4%;
    left: auto;
    width: max-content;
    min-width: 220px;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding: 24px 30px;
    background: rgba(23, 23, 24, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 100;
  }
  .menu.is-open { display: flex; }
}
/* завершение секции шапки */

/*
====================================================================
3. ГЛАВНЫЙ ЭКРАН (HERO SECTION)
====================================================================
*/

.hero {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  color: #ffd54a;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Unbounded', -apple-system, sans-serif;
  font-size: clamp(64px, 9vw, 112px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.button-secondary {
  background: #222;
  color: #fff;
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(480px, 90%);
  opacity: 1;
  filter: none;
  transition: .4s ease;
}

.hero-logo img:hover {
  transform: rotate(-3deg) scale(1.03);
}

@media(max-width: 900px) {
  .hero { min-height: auto; padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; max-width: 340px; margin: auto; }
  .hero-logo img { width: 240px; }
  .hero h1 { margin: auto; text-align: center; }
  .hero .rich-text { margin: 0 auto 36px; text-align: center; }
  .hero-buttons { justify-content: center; }
}

@media(max-width: 640px) {
  .hero h1 { font-size: 48px; }
  .hero .rich-text p { font-size: 18px; }
}
/* завершение секции главного экрана */

/*
====================================================================
4. ОБЩИЕ СЕКЦИИ, ПОДЗАГОЛОВКИ И RICH-TEXT
====================================================================
*/

section { padding: 90px 0; }

.section-title {
  font-family: 'Unbounded', -apple-system, sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  width: 100%;
  max-width: 800px;
  margin-bottom: 45px;
}

.section-sub p { margin-bottom: 12px; }
.section-sub p:last-child { margin-bottom: 0; }

.wave-divider { position: relative; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 90px; }
.wave-emblem {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 4px solid var(--accent); border-radius: 50%;
  box-shadow: var(--shadow); transform: translate(-50%, -50%);
}
.wave-emblem img { width: 34px; height: 34px; }

.rich-text p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.rich-text li { margin-bottom: 8px; }
.rich-text li:last-child { margin-bottom: 0; }
.rich-text ul li::marker { color: var(--accent); }
.rich-text h3 { font-family: 'Unbounded', -apple-system, sans-serif; font-size: 22px; line-height: 1.25; margin: 24px 0 12px; color: var(--text); }
.rich-text h4 { font-family: 'Unbounded', -apple-system, sans-serif; font-size: 20px; line-height: 1.25; margin: 24px 0 12px; color: var(--text); }
.rich-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: var(--accent2); }

@media(max-width: 640px) {
  section { padding: 60px 0; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 16px; }
}
/* завершение секции общих компонентов */

/*
====================================================================
5. КАРТОЧКИ ФАКТОВ И ПРЕДЛОЖЕНИЯ (DESKTOP LAYOUT)
====================================================================
*/

.about-cards-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; width: 100%; }
.about-cards-wrap.has-expanded { justify-content: center; }

.w-1-4 { flex: 0 0 calc(25% - 18px); width: calc(25% - 18px); }
.w-2-4 { flex: 0 0 calc(50% - 12px); width: calc(50% - 12px); }
.w-3-4 { flex: 0 0 calc(75% - 6px);  width: calc(75% - 6px); }
.w-4-4 { flex: 0 0 100%;             width: 100%; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.3s ease, opacity 0.3s ease;
}
.card:hover { border-color: var(--accent); box-shadow: 0 15px 40px rgba(0,0,0,.45); transform: translateY(-3px); }
.card.offer-card { cursor: pointer; position: relative; }

.card h3, .offer-card-title, .about-card-title {
  font-family: 'Unbounded', -apple-system, sans-serif; font-size: 20px; line-height: 1.25; margin-bottom: 12px; color: var(--text); text-align: left;
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/*
--------------------------------------------------------------------
5.1 ФАКТЫ О ДРЕДАХ (ABOUT SECTION CARDS)
--------------------------------------------------------------------
*/
.about-card { display: flex; flex-direction: column; }
.about-card-body { width: 100%; }
.about-card-media { max-width: 150px; max-height: 150px; flex-shrink: 0; margin-bottom: 12px; }
.about-card-media img { max-width: 150px; max-height: 150px; width: auto; height: auto; object-fit: contain; display: block; }
.about-card-media.float-left { float: left; margin-right: 20px; }
.about-card-media.float-right { float: right; margin-left: 20px; }
.about-card-media.float-none { float: none; margin: 0 auto 16px auto; }
.about-card-content { color: var(--muted); font-size: 16px; line-height: 1.6; }
.about-card-action { margin-top: 16px; text-align: right; clear: both; }

/*
--------------------------------------------------------------------
5.2 ПРЕДЛОЖЕНИЯ И УСЛУГИ (OFFER SECTION CARDS) - DESKTOP
--------------------------------------------------------------------
*/
.offer-card:not(.expanded) .offer-collapsed-body { display: flex; flex-direction: row; gap: 20px; align-items: stretch; height: 100%; min-height: 160px; }
.offer-card:not(.expanded) .offer-expanded-body { display: none; }
.offer-collapsed-cover { width: 130px; height: 130px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #111; border: 1px solid rgba(255, 255, 255, 0.08); }
.offer-collapsed-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-collapsed-content { flex: 1; display: flex; flex-direction: column; text-align: left; min-width: 0; }
.offer-card-title { font-family: 'Unbounded', -apple-system, sans-serif; font-size: 18px; line-height: 1.25; margin-bottom: 8px; color: var(--text); }
.offer-short-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-collapsed-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.offer-price-tag { color: var(--accent); font-weight: 700; font-size: 16px; }
.offer-more-link { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.offer-more-link:hover { opacity: 0.8; }

.offer-card.expanded .offer-collapsed-body { display: none !important; }
.offer-card.expanded .offer-expanded-body { display: block !important; }
.card.offer-card.expanded:hover { border-color: var(--line); transform: none; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); }
.offer-expanded-inner { width: 100%; }

@keyframes slideInRight { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } }
.slide-in-right { animation: slideInRight 0.3s ease forwards; }
.slide-in-left { animation: slideInLeft 0.3s ease forwards; }

.offer-expanded-header { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; margin-bottom: 24px; }
.offer-expanded-header.has-cover { grid-template-columns: 1.1fr 0.9fr; }
.offer-expanded-header-text { display: flex; flex-direction: column; justify-content: flex-start; }
.card.expanded .offer-card-title-large { font-family: 'Unbounded', sans-serif !important; font-size: 40px !important; font-weight: 800 !important; margin-bottom: 18px !important; color: var(--accent) !important; text-align: left !important; line-height: 1.15 !important; }
.offer-expanded-subtitle { color: #f2f2f2; font-size: 19px; line-height: 1.6; margin-bottom: 0; text-align: left; }

.offer-expanded-header-cover { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.offer-expanded-header-cover img { width: 100%; height: auto; object-fit: cover; display: block; max-height: 380px; }

.offer-thumbs-strip { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.offer-thumb-item { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.8; transition: all 0.2s ease; background: #000; border: 1px solid transparent; }
.offer-thumb-item:hover { opacity: 1; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,213,74,0.2); }

.offer-yellow-underline { height: 3px; background: var(--accent); width: 100%; margin: 20px 0 24px 0; border-radius: 2px; box-shadow: 0 0 10px rgba(255,213,74,0.3); }
.offer-full-text { font-size: 16px; color: var(--text); line-height: 1.7; }
.offer-expanded-price-center { text-align: center; margin: 32px 0 20px 0; }
.offer-price-value { color: var(--accent); font-size: 28px; font-weight: 800; font-family: 'Unbounded', sans-serif; display: inline-block; padding: 8px 24px; background: rgba(255,213,74,0.05); border: 1px solid rgba(255,213,74,0.25); border-radius: 999px; box-shadow: 0 0 20px rgba(255,213,74,0.15); }
.offer-price-info { margin-bottom: 24px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.offer-expanded-footer { display: flex; justify-content: flex-end; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }

.offer-book-btn { background: var(--accent); color: #111; padding: 12px 28px; font-size: 14px; font-weight: 700; border-radius: 999px; box-shadow: 0 6px 20px rgba(255,213,74,0.25); transition: all 0.2s ease; }
.offer-book-btn:hover { background: #ffe066; transform: translateY(-2px); }

@media(min-width: 901px) {
  .about-cards-wrap.has-expanded { display: grid !important; grid-template-columns: 760px 1fr !important; gap: 0 24px !important; align-items: start !important; }
  .card.expanded { grid-column: 1 / 2 !important; grid-row: 1 / span 50 !important; width: 100% !important; max-width: 760px !important; margin: 0 !important; padding: 40px 60px !important; cursor: default; }
  .about-cards-wrap.has-expanded .card:not(.expanded) { grid-column: 2 / 3 !important; grid-row: auto; width: 100% !important; max-width: 100% !important; margin: 0 0 24px 0 !important; opacity: 0.6; filter: grayscale(0.2); transform: scale(0.99); }
}

.offer-nav-arrow { position: absolute; top: 0; bottom: 0; width: 50px; background-color: transparent; border: none; cursor: pointer; z-index: 10; display: none; align-items: center; justify-content: center; transition: background-color 0.2s ease; }
.offer-nav-arrow::after { content: ''; display: block; width: 14px; height: 14px; border-top: 3px solid rgba(255, 255, 255, 0.2); border-right: 3px solid rgba(255, 255, 255, 0.2); transition: border-color 0.2s ease; }
.offer-nav-arrow.prev::after { transform: rotate(-135deg); margin-left: 6px; }
.offer-nav-arrow.next::after { transform: rotate(45deg); margin-right: 6px; }
.offer-nav-arrow.prev { left: 0; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.offer-nav-arrow.next { right: 0; border-left: 1px solid rgba(255, 255, 255, 0.05); }
.card.expanded .offer-nav-arrow { display: flex; }
.offer-nav-arrow:hover { background-color: rgba(255, 255, 255, 0.03); }
.offer-nav-arrow:hover::after { border-color: var(--accent); }

/*
====================================================================
5.3 ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (MOBILE < 900px)
====================================================================
*/
@media(max-width: 900px) {
  /* Перебиваем Grid и Flex для общего контейнера */
  .about-cards-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* Все карточки (и Факты, и Услуги) становятся 100% ширины */
  .w-1-4, .w-2-4, .w-3-4, .w-4-4,
  .about-card, .offer-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* --- Секция Фактов (Убираем плавающие картинки) --- */
  .about-card-media.float-left,
  .about-card-media.float-right {
    float: none !important;
    margin: 0 auto 16px auto !important;
  }

  /* --- Свернутая карточка услуг: компактный вид --- */
  .offer-card:not(.expanded) .offer-collapsed-body {
    flex-direction: row !important;
    align-items: center;
    gap: 16px !important;
    min-height: auto !important;
  }
  .offer-collapsed-cover {
    width: 90px !important;
    height: 90px !important;
    border-radius: 8px !important;
  }
  .offer-card-title { font-size: 16px !important; margin-bottom: 4px !important; }
  .offer-short-desc { font-size: 13px !important; -webkit-line-clamp: 2 !important; }
  .offer-price-tag { font-size: 14px !important; }
  .offer-collapsed-footer { padding-top: 6px !important; }

  /* --- Раскрытая карточка услуг --- */
  .card.expanded {
    order: -1 !important; /* Всплывает наверх колонки */
    padding: 30px 20px 24px 20px !important;
  }

  /* Невыбранные карточки: убираем серый фильтр, просто очередь под открытой */
  .about-cards-wrap.has-expanded .card:not(.expanded) {
    order: 1 !important;
    opacity: 0.8 !important;
    filter: none !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }

  /* Шапка раскрытой карточки */
  .offer-expanded-header { grid-template-columns: 1fr !important; gap: 20px !important; }
  .offer-expanded-header-cover { order: -1 !important; }
  .offer-expanded-header-cover img { max-height: 280px !important; }
  .card.expanded .offer-card-title-large { font-size: 28px !important; margin-bottom: 12px !important; }
  .offer-expanded-subtitle { font-size: 16px !important; }

  /* Навигация переходит в круглые кнопки поверх обложки */
  .offer-nav-arrow {
    top: 50px !important; /* Отступ от верхнего края карточки */
    bottom: auto !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background-color: rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
  .offer-nav-arrow.prev { left: 10px !important; border-right: 1px solid rgba(255,255,255,0.1) !important; }
  .offer-nav-arrow.next { right: 10px !important; border-left: 1px solid rgba(255,255,255,0.1) !important; }
  .offer-nav-arrow:hover { background-color: rgba(0,0,0,0.8) !important; }
}

/*
====================================================================
6. ЛАЙТБОКС СЛАЙДЕР (OFFER LIGHTBOX DIALOG 640px)
====================================================================
*/

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.lightbox-overlay.open {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #171718;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.1s;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.08);
}

.lightbox-photo-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  min-height: 250px;
  max-height: 70vh;
}

.lightbox-photo-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 44px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-nav:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.lightbox-nav-prev { left: 12px; }
.lightbox-nav-next { right: 12px; }
/* завершение секции лайтбокса */

/*
====================================================================
7. СЕКЦИЯ МАНИФЕСТА (CTA / MANIFEST — СТРОГО В ПРЕДЕЛАХ СЕТКИ 1200px)
====================================================================
*/

.cta {
  position: relative;
  padding: 90px 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 213, 74, 0.03) 0%, transparent 70%),
              linear-gradient(180deg, #131314 0%, #0d0d0e 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta h2 {
  font-family: 'Unbounded', -apple-system, sans-serif;
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--accent);
}

/* ОБНОВЛЕННЫЙ ПРЕМИАЛЬНЫЙ ВИД МАНИФЕСТА */
.manifest-card {
  width: 100%;
  background: linear-gradient(145deg, #1c1c1f, #151518);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 60px 80px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.manifest-card .rich-text {
  text-align: left;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

.manifest-card .rich-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #d4d4d8; /* Слегка осветленный текст для лучшей читаемости */
}

.manifest-card .rich-text p:last-child {
  margin-bottom: 0;
}

.manifest-block-wrap {
  margin-bottom: 32px;
}

.manifest-block-wrap:last-child {
  margin-bottom: 0;
}

.manifest-media {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: none;
}

.manifest-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.manifest-media.float-left {
  float: left;
  margin-right: 32px;
  margin-bottom: 20px;
  max-width: 360px;
}

.manifest-media.float-right {
  float: right;
  margin-left: 32px;
  margin-bottom: 20px;
  max-width: 360px;
}

.manifest-media.align-center {
  float: none;
  margin: 0 auto 32px auto;
  max-width: 600px;
}

.clearfix {
  clear: both;
}

.manifest-quote {
  margin: 40px 0;
  padding: 24px 32px;
  border-radius: 0 16px 16px 0;
  position: relative;
}

.manifest-quote.quote-accent {
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(255, 213, 74, 0.08) 0%, transparent 100%);
}

.manifest-quote.quote-minimal {
  border-left: 4px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.manifest-quote.quote-giant p {
  font-size: 24px;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
}

.manifest-quote p {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0;
}

.manifest-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  font-style: normal;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

@media(max-width: 768px) {
  .cta { padding: 60px 0; }
  .manifest-card { padding: 30px 20px; border-radius: 16px; }
  .manifest-card .rich-text p { font-size: 16px; margin-bottom: 20px; }
  .manifest-quote { padding: 20px 24px; margin: 32px 0; }
  .manifest-quote p { font-size: 18px; }
  .manifest-media.float-left,
  .manifest-media.float-right {
    float: none;
    margin: 0 auto 20px auto;
    max-width: 100%;
  }
}
/* завершение секции манифеста */

/*
====================================================================
8. ФОРМЫ И ИНПУТЫ (FEEDBACK & GENERAL INPUTS)
====================================================================
*/

.gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumb-new {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.gallery-thumb-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}

.gallery-thumb-remove:hover {
  background: #ff4d4d;
  transform: scale(1.1);
}

.feedback-form-wrap { position: relative; }

.feedback-form-wrap .section-title,
.feedback-form-wrap .section-sub {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.feedback-form {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--card), #161617);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.feedback-honeypot {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.feedback-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-field {
  display: flex;
  flex-direction: column;
}

.feedback-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feedback-form label,
.content-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.req-star { color: var(--accent); }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: #141415;
  color: #fff;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.telegram-field {
  position: relative;
}

.telegram-field input {
  padding-left: 56px !important;
}

.telegram-icon {
  position: absolute;
  left: 14px;
  top: 15px;
  color: var(--accent);
  display: flex;
  pointer-events: none;
}

.telegram-at {
  position: absolute;
  left: 38px;
  top: 13px;
  color: var(--muted);
  pointer-events: none;
  font-weight: 600;
}

.field-disabled,
input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(0, 0, 0, 0.2) !important;
}

.signup-offer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.signup-offer input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.feedback-bottom-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feedback-loading .feedback-form {
  filter: blur(3px);
  opacity: .4;
  pointer-events: none;
}

.feedback-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: fb-spin .8s linear infinite;
}

@keyframes fb-spin { to { transform: rotate(360deg); } }

@media(max-width: 640px) {
  .feedback-form { padding: 20px; }
  .feedback-row-2col { grid-template-columns: 1fr; }
}
/* завершение секции форм */

/*
====================================================================
9. ПОДВАЛ САЙТА (FOOTER)
====================================================================
*/

footer {
  padding: 70px 0;
  color: #7d7d7d;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 14px;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
/* завершение секции подвала */

/*
====================================================================
10. УНИВЕРСАЛЬНОЕ МОДАЛЬНОЕ ОКНО ДЛЯ КАРТИНОК
====================================================================
*/
main img.zoomable,
section img.zoomable,
.container img.zoomable {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

main img.zoomable:hover,
section img.zoomable:hover {
    opacity: 0.92;
}

.site-img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.site-img-modal.is-active {
    display: flex;
    opacity: 1;
}

.site-img-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-img-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.site-img-modal-close {
    position: absolute;
    top: -45px;
    right: -10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.site-img-modal-close:hover {
    background: #ffd54a;
    color: #000;
    transform: scale(1.08);
}
/* завершение универсального модального окна */
