/* =========================================
   1) Base: CSS Variables, Reset, Base tags
   ========================================= */
:root {
  --bg: #0b0b10;
  --ink: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --ring: rgba(79, 70, 229, .35);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }

/* =========================================
   2) Navbar
   ========================================= */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255, 255, 255, .7);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.nav__wrap {
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 800; letter-spacing: .2px; font-size: 18px }
.menu { display: flex; gap: 18px; align-items: center }
.menu a {
  padding: 8px 10px; border-radius: 12px; font-weight: 600; font-size: 16px; opacity: .9;
}
.menu a.active { background: rgba(15, 23, 42, .06) }

.cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--ring);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

button.cta{ font: inherit; }

.ghost { padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(15, 23, 42, .12); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: #111; border-radius: 2px; }

/* Navbar: mobile */
@media (max-width:760px){
  .burger { display: flex }
  .menu {
    display: none; position: absolute; right: 12px; top: 58px; background: #fff;
    border: 1px solid rgba(15, 23, 42, .08); border-radius: 16px; padding: 10px 8px;
    flex-direction: column; min-width: 180px; box-shadow: 0 10px 30px rgba(2, 6, 23, .12);
  }
  .menu.show { display: flex }
}

/* =========================================
   3) Hero
   ========================================= */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: #fff; overflow: hidden; background: var(--bg);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .8;
}
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55)) }
.grain {
  position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .15;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22500%22 height=%22500%22><filter id=%22n%22><feTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%222%22/></filter><rect width=%22500%22 height=%22500%22 filter=%22url(%23n)%22/></svg>');
  background-size: 300px;
}
.hero__inner {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 24px;
}
.hero__logo { width: min(88vw, 980px); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.55)) }
.hero__sub { margin-top: 18px; font-size: 18px; color: #e5e7eb; max-width: 820px }
.hero__buttons { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center }

/* =========================================
   4) Buttons
   ========================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px; font-weight: 700;
}

/* .btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 28px var(--ring)} */

.btn--ghost   { border: 1px solid rgba(255,255,255,.35); color: #fff }

/* =========================================
   5) Layout helpers & Cards
   ========================================= */
.section { padding: 72px 20px }
.section--muted { background: #f8fafc }
.container { max-width: 1120px; margin: 0 auto }
.footer .container { text-align: center; }
.two-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px }
@media (max-width:900px){ .two-cols { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 30px rgba(2,6,23,.06); border-radius: 20px; padding: 24px;
}
.actions { display: flex; gap: 10px; margin-top: 14px }
.card--row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between }
.title { font-weight: 800; font-size: 20px }

/* =========================================
   6) Typography
   ========================================= */
.h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: 40px; line-height: 1.1; margin: 0 0 12px;
}
.h3 { margin: 0 0 8px; font-weight: 800 }
.muted { color: var(--muted) }
.preline { white-space: pre-line; }

/* ABOUT tweaks */
#about .muted.preline {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.75;
  margin-bottom: 16px;
}
#about ul.muted { font-size: 17px; }
#about .h2 { font-size: clamp(40px, 4.2vw, 52px); }

/* =========================================
   7) Lists
   ========================================= */
/* обычный muted-список */
ul.muted {
  padding-inline-start: 1.1rem;
  margin-block: 0.75rem 0;
}
ul.muted li { margin-block: 0.7rem; line-height: 1.5; }
ul.muted li::marker { color: var(--muted); }

/* даты в карточке */
.dates {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.dates li {
  margin: 14px 0;
}

.dates .when {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.dates .day {
  font-weight: 700;
  font-size: 20px;
  min-width: 80px;
}

.dates .time {
  font-weight: 600;
  font-size: 18px;
  color: #1f2937;
  min-width: 60px;
}

.dates .addr {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* темнее рамку только в карточке дат */
.section--sky .card .actions .ghost{
  border-color: rgba(15,23,42,.28);   /* было .12 */
}

.card .actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

#about .card .dates li {
  font-size: 17px;
  line-height: 1.6;
  margin: 10px 0;
}

/* .section--sky {
  position: relative;
  background: url("./logo/sky.jpeg") center / cover no-repeat;
  padding: 96px 20px;
} */

.sky-wrapper {
  background: url("./logo/sky.jpeg") center / cover no-repeat;
}

/* .section--sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, .25) 0%,
    rgba(2, 6, 23, .20) 40%,
    rgba(2, 6, 23, .25) 100%
  );
  pointer-events: none;
} */
/* .section--sky .container { position: relative; z-index: 1; } */

/* белая типографика на фоне */
.section--sky .h2 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(2,6,23,.35);
}
.section--sky .muted,
.section--sky ul.muted li { color: #e8eef7; }
.section--sky ul.muted li::marker { color: rgba(255,255,255,.7); }

/* карточка дат — слегка «стеклянная», чтобы читалась на фоне */
.section--sky .card {
  background: rgba(255,255,255,.6);
  border-color: rgba(255,255,255,.45);
  backdrop-filter: blur(6px);
}
.section--sky .card .h3 { color: var(--ink); }
.section--sky .card .muted { color: #475569; }

/* Вся типографика внутри левой карточки — в muted-серый */
.section--sky .about-card{
  --about-text: #1f2937;
  color: var(--about-text);
}

/* Перекрасить элементы с классом muted и пункты списков */
.section--sky .about-card .muted,
.section--sky .about-card ul.muted li { color: var(--about-text); }
.section--sky .about-card ul.muted li::marker { color: var(--about-text); }

/* Заголовок — контрастный (можно сделать тоже серым, см. ниже) */
.section--sky .about-card .h2 { 
  color: #1f2937;
  text-shadow: none;
}

.section--sky .card .dates .addr { color: #1f2937; }

/* опционально: лёгкий параллакс на десктопе (отключить на мобилках) */

@media (min-width: 960px) {
  .sky-wrapper {
    background-attachment: fixed;
  }
}

@media (max-width: 959px) {
  .sky-wrapper {
    background-attachment: scroll;
  }
}

/* Внутри — без индивидуального фона */
.section--sky {
  background: none;
  position: relative;
  padding: 96px 20px;
}

.section--sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, .25) 0%,
    rgba(2, 6, 23, .20) 40%,
    rgba(2, 6, 23, .25) 100%
  );
  pointer-events: none;
}

.section--sky .container {
  position: relative;
  z-index: 1;
}


/* ===== FAQ ===== */
.faq { margin-top: 18px; display: grid; gap: 12px; }

/* Карточка-аккордеон */
.faq__item {
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  overflow: clip;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.faq__item[open]{
  border-color: rgba(79,70,229,.28);
  box-shadow: 0 14px 36px rgba(2,6,23,.10);
}

/* Шапка */
.faq__summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 18px;
  font-weight: 800;
  user-select: none;
}
.faq__summary::-webkit-details-marker { display: none; }

/* Плюс/минус */
.faq__summary::after{
  content:"";
  position:absolute; right:16px; top:50%;
  width:24px; height:24px; transform: translateY(-50%);
  border-radius: 8px;
  /* две линии = плюс */
  background:
    linear-gradient(currentColor,currentColor) center/14px 2px no-repeat,
    linear-gradient(currentColor,currentColor) center/2px 14px no-repeat;
  opacity:.9;
  color: var(--brand, #4f46e5);
  transition: opacity .2s ease;
}

.faq__item[open] .faq__summary::after{
  background: linear-gradient(currentColor,currentColor) center/16px 2px no-repeat;
  transform: translateY(-50%);
  opacity:.8;
}

/* Контент */
.faq__content{ padding: 0 18px 18px; display: grid; gap: 14px; }
.faq__q{ margin: 4px 0 4px; font-size: 18px; font-weight: 800; }
.faq__a p{ margin: 8px 0; line-height: 1.6; }
.faq__a ul{ margin: 8px 0; padding-inline-start: 1.1rem; }
.faq__a li{ margin: 6px 0; line-height: 1.55; }

/* Длинные перечни — в две колонки на десктопе */
.faq__grid{
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  padding-left: 1.1rem; margin: 6px 0 0;
}
@media (min-width: 860px){
  .faq__grid{ grid-template-columns: 1fr 1fr; }
}
.faq__grid li{ margin: 4px 0; }

/* Список правил — обычный вертикальный */
.faq__list{ padding-left: 1.1rem; margin: 6px 0 0; }
.faq__list li{ margin: 8px 0; }

/* Тёмная подложка, если разместишь FAQ на облачном фоне */
.section--sky .faq__item{
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,.5);
}

@media (min-width: 860px){
  .faq__grid{
    /* две колонки, но не уже 320px каждая */
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    /* увеличенный межколоночный зазор */
    column-gap: clamp(32px, 6vw, 72px);
    row-gap: 10px; /* можно менять при желании */
  }
}

/* переносы в пунктах (можно оставить как у тебя) */
.faq__grid li{
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  min-width: 0;
}

/* =========================================
   8) Contacts & Socials
   ========================================= */
.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* три равные колонки */
  gap: 24px;
}

@media (max-width: 900px) {
  .contacts {
    grid-template-columns: 1fr; /* на мобилке в столбик */
  }
}
.contact-item {
  border-radius: 16px; border: 1px solid rgba(15,23,42,.08);
  padding: 18px; background: #fff;
}
/* подписи в карточках контактов */
.contact-item > strong {
  display:block; font-size:15px; text-transform:uppercase; letter-spacing:.04em;
}
.contact-item > strong + * { margin-top:12px; }

/* соцсети: плитки по центру */
.contact-item--social {
  grid-column: 1 / -1;  /* занимает всю ширину отдельной строкой */
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
}

.contact-item--social strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.socials { display:flex; justify-content:center; gap:16px; margin-top:8px; }

.contact-item--social { grid-column: 1 / -1; justify-self: center; }

.socials a{
  display:inline-flex; align-items:center; justify-content:center;
  width:64px; height:64px; border-radius:16px; box-shadow:0 10px 24px rgba(2,6,23,.10);
  transition:transform .15s ease, box-shadow .15s ease;
  background:#fff;
}
.socials a:hover { transform:translateY(-3px) scale(1.03); box-shadow:0 14px 32px rgba(2,6,23,.14); }
.socials a .icon { width:28px; height:28px; object-fit:contain; display:block; }
.socials a.telegram { border:1px solid rgba(34,158,217,.25); }
.socials a.vk       { border:1px solid rgba(39,135,245,.25); }

/* =========================================
   9) Scroll-reveal
   ========================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease }
.reveal.in { opacity: 1; transform: none }

/* =========================================
   10) Footer
   ========================================= */
.footer { padding-top: 36px }


/* =========================================
ALBUM (carousel)
========================================= */
/* ===== ALBUM (carousel) ===== */
#album .muted { margin-top:-6px; margin-bottom:16px; }

.album { position: relative; }
.album__viewport{
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  transition: height .35s ease;
}

.album__slide.is-portrait{ position: relative; }
.album__slide.is-portrait::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.05) brightness(.95);
  transform: scale(1.08);
}

/* Само фото – не шире 720px на десктопе, по центру */
.album__slide.is-portrait img{
  position: relative;
  z-index: 1;
  display:block;
  max-width: min(720px, 92vw);
  height: auto;
  margin: 0 auto;
}

.album__track{
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.album__slide{
  position: relative;
  flex: 0 0 100%;
  height: auto;
}
.album__slide img,
.album__video{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

/* портретные кадры — не шире ~700px на десктопе, центрируем */
.album__slide.is-portrait img{
  max-width: min(720px, 92vw);
  margin: 0 auto;
}

/* arrows */
.album__btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  border:0; cursor:pointer; z-index:2;
  background:rgba(15,23,42,.55); color:#fff;
  box-shadow:0 8px 20px rgba(2,6,23,.20);
  transition:transform .15s ease, background .15s ease;
}
.album__btn:hover{ transform:translateY(-50%) scale(1.06); background:rgba(15,23,42,.7); }
.album__btn:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; }
.album__btn.prev{ left:10px; }
.album__btn.next{ right:10px; }

/* dots */
.album__dots{
  display:flex; justify-content:center; gap:8px; margin-top:12px;
}
.album__dot{
  width:8px; height:8px; border-radius:999px;
  background:rgba(15,23,42,.25); border:0; cursor:pointer;
}
.album__dot.is-active{
  background:var(--brand);
  width:22px; transition: width .25s ease;
}

#album .card .h2{
  color: var(--ink);
  text-shadow: none;
}

#album .card > .muted{
  color: #1f2937;
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 4px 0 16px;
}

/* ===== Floating Action Button (Telegram) ===== */
.fab{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 1000;
  width: clamp(56px, 6vw, 64px);
  height: clamp(56px, 6vw, 64px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  box-shadow:
    0 12px 28px rgba(2,6,23,.22),
    0 2px 8px rgba(2,6,23,.10);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}

.fab--tg{
  background: #229ED9;
  color: #fff;
  border: 1px solid rgba(2,6,23,.06);
}

.fab--tg img{
  width: 52%;
  height: 52%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.fab:hover{
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 16px 36px rgba(2,6,23,.30),
    0 4px 12px rgba(2,6,23,.12);
}

.fab:active{ transform: translateY(-1px) scale(.98); }

.fab:focus-visible{
  outline: 3px solid var(--brand, #4f46e5);
  outline-offset: 3px;
}

/* компактнее на телефонах */
@media (max-width: 760px){
  .fab{
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce){
  .fab{ transition: none; }
  .fab:hover{ transform: none; }
}

.docs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.doc-card {
  display: block;
  max-width: 500px;   /* ограничиваем ширину */
  width: 100%;        /* на мобилках тянется до края */
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.doc-card:hover {
  background: #f9fafb;
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-decoration: none;
}