:root {
  --font-sans: "Google Sans Flex", "Google Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f1f1f3;
  --bg-dark: #e1e1e8;
  --bg-ligth: #ffff;
  --bg-buttons: rgba(255, 255, 255, 0.85);
  --card: #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --glass-border: rgba(0,0,0,0.06);
  --text: #000000;
  --secondary-text: #dedede87;
  --text-muted: #8d8d93;
  --accent: #7a6555;
  --accent-light: rgba(122,101,85,0.12);
  --owerlay: rgb(53 53 53 / 31%);
  --light-red: rgba(175,85,65,0.8);
  --dark-red: rgb(162 79 60 / 80%);
  --light-green: rgba(80,200,120,0.5);
  --dark-green: rgb(74 186 112 / 50%);
  --border-box-shadow: 0 1px 1px 0 #ffffff inset, 0 -1px 1px 0 #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
  --box-shadow-button: 0 1px 1px 0 #d0d0d040 inset;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 50px;
  --radius-menu: 20px;
}



ul {
  padding-left: 20px;
  margin-top: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button { -webkit-tap-highlight-color: transparent; border: none}
a { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─── HEADER ────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, border-color 0.3s;
}

header.header-transparent {
  background: #ffffff14;
  border-bottom-color: transparent;
  box-shadow: 0px 5px 20px 0px #ffffff14;
}

.logo {
  display: flex;
  align-items: center;
  padding: 8px 13px;
  gap: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-buttons);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
  box-shadow: var(--border-box-shadow);
  
}
.logo:hover { background: var(--bg); }

.logoImg#bird {
  width: 25px;
}

.logoImg#chwz {
  width: 95px;
}

/* Квадратный логотип на десктопе: половина в шапке, половина свисает вниз */
header.desktop-header {
  --header-h: 70px;
  height: var(--header-h);
  padding-top: 0;
  padding-bottom: 0;
}

header.desktop-header .logo {
    display: flex;
    justify-content: center;
    width: 150px;
    height: 96px;
    padding: 0;
    border-radius: 24px;
    align-self: flex-start;
    margin-top: calc(var(--header-h) - 96px / 2);
    background: rgb(255 255 255 / 91%);

}
header.desktop-header .logo:hover { background: var(--bg); }

header.desktop-header .logo #bird {
  position: absolute;
  width: 76px;
  margin-right: 56px;
}

header.desktop-header .logo #chwz {
  margin-top: 55px;
  margin-left: 55px;
  width: 65px;
}

nav.desktop-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
nav.desktop-nav a {
  font-family: var(--font-sans);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  line-height: 1.4;
}
nav.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}
nav.desktop-nav a:hover { opacity: 0.75; }

.header-actions { display: flex; gap: 10px; align-items: center; }

.lang-wrapper { position: relative; }
.lang-dropdown {
  position: fixed;
  top: 76px;
  right: 32px;
  background: var(--bg-buttons);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-menu);
  overflow: hidden;
  min-width: 160px;
  z-index: 400;
  visibility: hidden;
  opacity: 0;
  transform: scaleY(0.1) scaleX(0.1);
  transform-origin: top center;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), visibility 0s linear 0.3s;
  pointer-events: none;
  box-shadow: var(--border-box-shadow)
}
.lang-dropdown.open {
  visibility: visible;
  opacity: 1;
  transform: scaleY(1) scaleX(1);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), visibility 0s linear 0s;
  pointer-events: all;
}
.lang-dropdown button {
  display: flex;
  width: 100%;
  padding: 12px;
  background: none;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  gap: 7px;
}
.lang-dropdown button:hover { 
  background: rgba(255, 255, 255, 0.85);
}
.lang-dropdown button:last-child {
  border-bottom: none;
}

.btn-glass {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-buttons);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--border-box-shadow);
}
.btn-glass:hover { background: var(--bg); }
.btn-glass svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-icon {
  position: relative;
  height: 42px;
  background: var(--bg-buttons);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.3s, border-color 0.3s;
  gap: 4px;
  width: auto;
  padding: 13px;
  border-radius: 50px;
  z-index: 10;
  box-shadow: var(--border-box-shadow);
}
.btn-icon:hover { background: var(--bg); }

.link-to-liveStream-mobile {
  display: none;
}

/* Cal btn pulse */
@keyframes calBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,210,80,0); border-color: var(--glass-border); }
  50%       {  background: rgba(255, 219, 109, 0.8); }
}
.cal-btn-pulse { animation: calBtnPulse 1.8s ease-in-out infinite; }

/* @keyframes dayPulse {
  0%, 100% { background: none; }
  50%       { background: rgba(255, 210, 80, 0.4); }
} */
/* .cal-day.day-pulse {
  animation: dayPulse 1.8s ease-in-out infinite;
} */
.cal-day.today.day-pulse {
  animation: dayPulse 1.8s ease-in-out infinite;
  background: rgba(255,255,255,0.92);
}

/* ─── MOBILE HEADER ───────────────────────────────────── */
header.mobile-header {
  display: none;
  padding: 12px 14px;
  backdrop-filter: none;
  border-bottom: 0px;
}

/* ─── MOBILE BOTTOM NAV ───────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 150px; right: 150px;
  z-index: 100;
  border-radius: var(--radius-pill);
  padding: 4px;
  background: var(--bg-buttons);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0px 1px 0 rgba(0, 0, 0, 0.06), 0px 0px 16px rgba(0, 0, 0, 0.04);
}
.nav-indicator {
  position: absolute;
  height: calc(100% - 10px);
  width: 20%;
  background: var(--bg);
  border-radius: var(--radius-pill);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  transform: translateX(6%);
  top: 5px;
  left: 0;
  pointer-events: none;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 6px 6px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  z-index: 10;
}
.mobile-nav a.active { color: var(--text); }
.mobile-nav a svg { width: 22px; height: 22px; }

/* ═══════════════════════════════════════════════════════ */
/* SECTIONS                                               */
/* ═══════════════════════════════════════════════════════ */

/* HOME */
.section-home {
  width: 100%;
  height: 100vh;
  position: relative;
}
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero .build-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.section-home::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 32px;
  z-index: 1;
}
.hero-tagline {
  font-family: var(--font-sans);
  font-size: 50px;
  font-weight: 600;
  margin-top: 150px;
  /* width: 362px; */
  color: #fff;
  text-align: center;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title-wrap-mobile {
  display: none;
}

.hero-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-top: 115px;
  text-align: center;
}

.hero-title-small {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 4vw, 50px); /* адаптивно, не растягивается на всю ширину */
  font-weight: 500; /* было 300 — слишком тонко и плохо читается на светлом фоне */
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65); /* усилена тень для контраста на светлом небе */
  letter-spacing: 0.5px;
}

.hero-title-sub {
  margin-top: 14px;
  font-family: 'Playfair Display', serif; /* единый шрифт с заголовком вместо Lato */
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: #f2ede4; /* чуть тёплый оттенок вместо чистого белого — мягче сочетается с serif */
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .hero-title-sub::before,
.hero-title-sub::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: #c8922a;
} */

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-btns .btn-glass { font-size: 1rem; padding: 12px 28px; font-weight: 700; letter-spacing: 0.5px; }

.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.18) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* CONTENT SECTIONS */
.section-content {
  width: 100%;
  background: var(--bg);
}
.section-inner {
  padding: 48px 32px 0px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Scroll reveal */
.block, .kontakt-block {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-ligth);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease; */
}
/* .block.visible, .kontakt-block.visible {
  opacity: 1;
  transform: translateY(0);
} */
.block h2 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text);
}

/* Video */
.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* Bracia */
.bracia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brat-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  text-align: center;
  padding-bottom: 14px;
  transition: background 0.2s;
}
.brat-photo { width: 101%; aspect-ratio: 1/1; object-fit: cover; display: block; background: rgba(0,0,0,0.2); }
.brat-name { font-weight: 700; font-size: 0.9rem; margin: 10px 8px 3px; line-height: 1.3; }
.brat-role { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 1px; }

/* Accordion */
#rules h2 {
  margin-bottom: 5px;
}
.accordion-item { border-bottom: 1px solid var(--glass-border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%; background: none;
  color: var(--text); font-family: 'Lato', sans-serif;
  font-size: 0.95rem; font-weight: 700; text-align: left;
  padding: 16px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: opacity 0.2s;
}
.accordion-trigger:hover { opacity: 0.8; }
.accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.open .accordion-body {
  opacity: 1;
  padding: 0 0 16px;
}

.accordion-body p { margin-bottom: 12px; }
.accordion-body p:last-child { margin-bottom: 0; }

.read-more-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}
.read-more-content.open {
  opacity: 1;
}

.read-more-btn {
  display: block;
  margin-top: 6px;
  background: none;
  color: var(--accent);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.2s;
}
.read-more-btn:hover { opacity: 0.7; }

.lang-content { display: none; }
.lang-content.active { display: block; }

/* ═══════════════════════════════════════════════════════ */
/* KONTAKT                                                 */
/* ═══════════════════════════════════════════════════════ */
.kontakt-grid { display: grid; gap: 24px; align-items: start; }
.kontakt-block { padding: 28px; }
.kontakt-block h2 {
  margin-bottom: 5px;
}
/* .kontakt-block .subtitle { color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; } */

.contact-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
.contact-row:last-of-type { border-bottom: none; }
.contact-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 16px; height: 16px; }
.contact-info { flex: 1; min-width: 0; }
.contact-label { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.contact-value { font-size: 0.88rem; color: var(--text); word-break: break-all; }
.contact-actions { display: flex; gap: 6px; flex-shrink: 0; }
.schedule-list { display: flex; flex-direction: column; }
.schedule-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--glass-border);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day { width: 130px; flex-shrink: 0; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.schedule-events { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.schedule-event { font-size: 0.88rem; color: var(--text); line-height: 1.5; }

.schedule-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content;
  margin: 18px 0 0 auto;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: #9d7c6e; color: #fff;
  font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  box-shadow: 0 1px 1px 0 #9d7c6e inset, 0 -1px 1px 0 #9d7c6e inset;
}
.schedule-btn:hover { background: #8a685a; }
.schedule-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 768px) {
  .schedule-btn { width: 100%; }
  .schedule-btn:hover { background: #8a685a; }
}
@media (max-width: 480px) {
  .schedule-row { flex-direction: column; gap: 4px; }
  .schedule-day { width: auto; }
}
.btn-sm {
  padding: 6px 12px; font-size: 0.75rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.1);
  color: var(--text); cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  transition: background 0.2s; font-family: 'Lato', sans-serif; box-shadow: 0 1px 1px 0 #9d7c6e inset, 0 -1px 1px 0 #9d7c6e inset;
}
#btn_color {
  background: #9d7c6e;
  color: #fff;
}
#btn_color:hover {
  background: #8a685a;
}
.btn-sm:hover { background: #9d7c6e; color: #fff }
.btn-sm svg { width: 12px; height: 12px; }

.social-block h3 { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; }
.social-divider { height: 2px; width: 36px; background: var(--text-muted); border-radius: 2px; margin-bottom: 18px; }
.social-btn {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-radius: var(--radius-sm); color: #fff;
  font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; margin-bottom: 10px; text-decoration: none;
  transition: filter 0.2s; justify-content: space-between; box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.08), 0px 1px 8px rgba(0, 0, 0, 0.06);
}
.social-btn:hover { filter: brightness(1.1); }
.social-fb { background: #1877F2; }
.social-yt { background: #FF0000; }
.social-ig { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); }
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-btn-name { flex: 1; padding-left: 4px; }

.map-block h2 { margin-bottom: 5px; }
/* .map-block .subtitle { color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; } */
.map-wrap { border-radius: var(--radius-sm); overflow: hidden; height: 450px; background: rgba(0,0,0,0.2); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px auto;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: #9d7c6e; color: #fff;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  font-family: 'Lato', sans-serif; width: fit-content;
  transition: background 0.2s; text-decoration: none;
}
.map-btn:hover { background: #8a685a; color: #fff; }

.site-footer {
  width: 100%;
  padding: 0 32px 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* nav показывается на ≤1315px, поэтому запас снизу нужен уже здесь */
@media (max-width: 1315px) {
  .site-footer { padding-bottom: 110px; }
}
@media (max-width: 768px) {
  .site-footer { padding: 0 14px 110px; }
}

/* ════════════════════════════════════════════════════════ */
/* UWAGA BANNER                                            */
/* ════════════════════════════════════════════════════════ */
.uwaga-banner {
  padding: 12px 16px 12px 20px;
  background: linear-gradient(
180deg, rgba(177, 117, 110, 0.78), rgba(177, 68, 44, 0.78), rgba(158, 45, 30, 0.78));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: uwagaSlideDown 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  transition: top 0.3s ease;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow-button);
}

.uwaga-banner .uwaga-text { flex: 1; font-size: 0.88rem; font-weight: 700; color: var(--bg-ligth); line-height: 1.5; }
.uwaga-stack {
  position: fixed;
  top: 78px; right: 34px;
  z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  max-width: min(560px, calc(100vw - 64px));
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  pointer-events: none;
}
.uwaga-stack .uwaga-banner { pointer-events: auto; }
.uwaga-banner > svg { flex-shrink: 0; }

/* Изменённые дни в календаре: мигающий жёлтый */
.cal-day.day-changed::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(255, 200, 60, 0.5);
  pointer-events: none;
  animation: dayChangedPulse 1.8s ease-in-out infinite;
}
@keyframes dayChangedPulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Вкладки в админке */
.admin-tabs {
  display: flex; gap: 6px; padding: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}
.admin-tab {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-pill);
  background: transparent; color: var(--text);
  font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: background 0.25s ease, box-shadow 0.25s ease;
}
.admin-tab.active { background: var(--bg-buttons); box-shadow: var(--border-box-shadow); }
.uwaga-close {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.1);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; transition: background 0.2s; box-shadow: var(--box-shadow-button);
}
.uwaga-close:hover { background: rgba(255,255,255,0.2); }
.uwaga-banner.hiding { animation: uwagaSlideUp 0.3s ease forwards; }
@keyframes uwagaSlideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes uwagaSlideUp   { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }

.subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

@media (max-width: 1315px) {
  .mobile-nav { 
    display: flex; 
  }
  nav.desktop-nav {
    display: none;
  }
}

@media (max-width: 950px) {
  .mobile-nav { 
    left: 50px;
    right: 50px; 
  }
}

@media (max-width: 769px) {
  .uwaga-stack { top: 66px; left: 14px; right: 14px; max-width: none; }
  .hero-tagline {
    font-size: 32px;
  }
  .subtitle {
    font-size: 13.7px;
  }
}

/* ════════════════════════════════════════════════════════ */
/* CALENDAR OVERLAY                                        */
/* ════════════════════════════════════════════════════════ */
.calendar-overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgb(53 53 53 / 31%); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); padding: 16px;
  animation: calBgIn 0.25s cubic-bezier(0.76, 0.76, 0.26, 0.24) both;
}
.calendar-overlay.hiding { animation: calBgOut 0.22s ease forwards; }
@keyframes calBgIn  { from { opacity:0; } to { opacity:1; } }
@keyframes calBgOut { from { opacity:1; } to { opacity:0; } }

.cal-modal {
  display: flex; flex-direction: column;
  gap: 12px; width: 100%; max-width: 400px;
  animation: calModalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.calendar-overlay.hiding .cal-modal { animation: calModalOut 0.22s ease forwards; }
@keyframes calModalIn  { from { opacity:0; transform: scale(0.92) translateY(16px); } to { opacity:1; transform: scale(1) translateY(0); } }
@keyframes calModalOut { from { opacity:1; transform: scale(1); } to { opacity:0; transform: scale(0.95); } }

.cal-events-panel {
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  padding: 16px 20px; min-height: 58px;
  display: flex; align-items: center; justify-content: center;
}
.cal-events-content { font-weight: 700; font-size: 19px; color: var(--text); text-align: center; line-height: 1.65; width: 100%; }
.cal-event-line { display: block; }
.cal-no-events { color: var(--text); font-weight: 400; font-style: italic; font-size: 0.88rem; }

.cal-widget { border-radius: var(--radius); border: 1px solid var(--glass-border); padding: 18px 14px 14px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1);
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0; box-shadow: 0 1px 1px 0 #d0d0d040 inset;
}
.cal-nav-btn:hover { background: rgb(255 255 255 / 26%); }
.cal-title-wrap { display: flex; align-items: center; gap: 8px; }
.cal-month { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: 2px; color: var(--text); text-transform: capitalize; }
.cal-year-wrap { display: flex; align-items: center; gap: 4px; }
.cal-year { font-family: 'Bebas Neue', sans-serif; font-size: 1.55rem; letter-spacing: 2px; color: var(--text); }
.cal-year-arrows { display: flex; flex-direction: column; gap: 2px; }
.cal-year-arrows button {
  width: 18px; height: 13px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.1); color: var(--text); cursor: pointer;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background 0.15s;
}
.cal-year-arrows button:hover { background: rgb(255 255 255 / 26%);; }

.cal-dow-row { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 4px; }
.cal-dow-cell { text-align: center; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 0; color: var(--text); background: rgba(255,255,255,0.1); margin: 0 5px; border-radius: var(--radius); }
.cal-dow-cell.sunday { color: rgba(220,100,100,0.9); }

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1/1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  color: var(--text); transition: background 0.15s;
  position: relative; background: none;
  font-family: 'Lato', sans-serif; -webkit-tap-highlight-color: transparent;
}
.cal-day:hover:not(.empty) { background: rgba(255,255,255,0.15); }
.cal-day.empty { pointer-events: none; cursor: default; }
.cal-day.sunday { color: rgba(220,100,100,0.9); }
.cal-day.today { background: rgba(255,255,255,0.22) !important; color: var(--text) !important; font-weight: 800; }
.cal-day.selected:not(.today) { background: rgba(255,255,255,0.92); border: 1.5px solid rgba(255,255,255,0.55); font-weight: 700; }
.cal-day.has-events::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--text); opacity: 0.65; }
.cal-day.today.has-events::after { background: var(--bg-dark); opacity: 0.5; }

.cal-close-btn {
  width: 100%; padding: 15px; border-radius: var(--radius-pill);
  background: var(--dark-red);
  color: var(--text); font-family: 'Lato', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  letter-spacing: 0.5px; transition: background 0.2s; box-shadow: var(--box-shadow-button);
}
.cal-close-btn:hover { background: var(--light-red); }

/* ════════════════════════════════════════════════════════ */
/* ADMIN PANEL                                             */
/* ════════════════════════════════════════════════════════ */
.admin-overlay {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgb(53 53 53 / 31%); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); padding: 16px;
  animation: calBgIn 0.25s ease both;
}
.admin-modal {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  padding: 28px 24px; animation: calModalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.admin-modal::-webkit-scrollbar { width: 4px; }
.admin-modal::-webkit-scrollbar-track { background: transparent; }
.admin-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.admin-screen { display: flex; flex-direction: column; gap: 12px; }
.admin-logo { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; }
.admin-title { font-family: var(--font-sans), sans-serif; font-size: 1.6rem; color: var(--text); text-align: center; margin: 0; }
/* .admin-subtitle { font-size: 0.82rem; color: var(--secondary-text); text-align: center; line-height: 1.5; margin: 0; } */
.admin-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.08);
  color: var(--text); font-family: 'Lato', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, background 0.2s; 
}
.admin-input:focus { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.12); }
.admin-input::placeholder { color: rgba(245,239,232,0.35); }
.admin-input-sm { padding: 8px 12px; font-size: 0.82rem; }
input[type="date"].admin-input::-webkit-calendar-picker-indicator { filter: invert(0.9); cursor: pointer; }
.admin-error { font-size: 0.8rem; color: rgba(220,100,100,0.95); text-align: center; padding: 6px 0; }
.admin-success { font-size: 0.8rem; color: rgba(100,200,130,0.95); text-align: center; padding: 6px 0; }
.admin-btns-row { display: flex; gap: 10px; margin-top: 4px; }
.admin-btn-primary {
  flex: 1; padding: 11px 16px; border-radius: var(--radius-pill);
  background: var(--dark-green);
  color: var(--text); font-family: 'Lato', sans-serif; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--box-shadow-button);
}
.admin-btn-primary:hover { background: var(--light-green); }
.admin-btn-secondary {
  flex: 1; padding: 11px 16px; border-radius: var(--radius-pill);
  background: var(--dark-red);
  color: var(--text); font-family: 'Lato', sans-serif; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s; box-shadow: var(--box-shadow-button);
}
.admin-btn-secondary:hover { background: var(--light-red); }
.admin-btn-full { width: 100%; flex: none; }
.admin-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.admin-logout-btn {
  display: flex; align-items: center; gap: 5px; padding: 6px 12px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); color: var(--text);
  font-family: 'Lato', sans-serif; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s; box-shadow: 0 1px 1px 0 #d0d0d040 inset;
}
.admin-logout-btn:hover { background: rgba(255,255,255,0.17); }
.admin-add-block { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.admin-field-row { display: flex; align-items: center; gap: 10px; }
.admin-label { font-size: 0.75rem; font-weight: 700; color: var(--secondary-text); text-transform: uppercase; letter-spacing: 0.5px; width: 72px; flex-shrink: 0; }
.admin-exc-list-wrap { margin-top: 4px; }
.admin-list-title { font-family: var(--font-sans), sans-serif; font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.admin-exc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.admin-no-exc { font-size: 0.82rem; color: var(--text-muted); font-style: italic; text-align: center; padding: 12px 0; }
.admin-exc-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); }
.admin-exc-item-info { flex: 1; min-width: 0; }
.admin-exc-date-label { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.admin-exc-events-text { font-size: 0.76rem; color: var(--secondary-text); line-height: 1.4; }
.admin-exc-delete { width: 28px; height: 28px; border-radius: 50%; background: rgba(220,100,100,0.15); color: rgba(220,100,100,0.9); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; margin-top: 1px; box-shadow: var(--box-shadow-button)}
.admin-exc-delete:hover { background: rgba(220,100,100,0.3); }
.admin-exc-event-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--glass-border); }
.admin-exc-event-row:last-child { border-bottom: none; }

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 768px) {
  header.desktop-header { display: none; }
  header.mobile-header { display: flex; }
  .mobile-nav { display: flex; left: 14px; right: 14px; }

  header::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 8%;
    background: linear-gradient(to top, transparent, var(--bg));
    pointer-events: none;
    z-index: 0;
  }

  body::after {
    content: '';
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 10%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 50;
  }

  .lang-dropdown { top: 65px; right: 14px; left: 14px;}

  .lang-dropdown button {
    width: calc(100% - 46px);
    margin: 0 23px;
    padding: 17px 0;
    border-bottom: 1px solid var(--glass-border);
  }


  .section-inner { padding: 32px 14px calc(90px + 14px); gap: 24px; }
  .section-inner#section-inner-onas { padding: 32px 14px 0 14px;}
  .block { padding: 18px; }
  .bracia-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .brat-name { font-size: 0.8rem; }

  .hero-overlay { padding: 24px 14px; margin-top: 115px;}
  .hero-btns .btn-glass { font-size: 0.9rem; padding: 10px 20px; }

  .kontakt-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-row { flex-wrap: wrap; }
  .contact-actions { width: 100%; justify-content: flex-end; margin-top: 4px; }
  .map-wrap { height: 200px; }

  .cal-modal { max-width: 100%; }
  .admin-modal { padding: 22px 18px; }

  .btn-sm:hover { background: rgba(255,255,255,0.1); color: var(--text); }
  .map-btn { width: 100%; margin-left: 0;}

  .link-to-liveStream-mobile {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 89px;
    right: 14px;
    overflow: hidden;
    gap: 0;
    transition: gap 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .link-to-liveStream-mobile:hover {
    background: var(--bg-buttons);
  }
  
  .link-to-liveStream-mobile .live-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 700;
    color: #DC143C;
    font-family: 'Lato', sans-serif;
    will-change: max-width, opacity;
    transition: max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.28s ease-out;
  }
  
  .link-to-liveStream-mobile.expanded {
    gap: 7px;
  }
  
  .link-to-liveStream-mobile.expanded .live-label {
    max-width: 160px;
    opacity: 1;
    transition: max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.28s ease-in 0.08s;
  }
}


@media (max-width: 509px) {
  .hero-title-wrap {
    display: none;
  }

  .hero-title-wrap-mobile {
	  display: flex;
    flex-direction: column;
    align-items: center;
    background: #0e0e0e66;
    box-shadow: 0px 0px 55px 55px #0e0e0e66;
    border: none;
  }


  .hero-title-small-mobile {
      font-family: 'Playfair Display', serif;
      font-size: 30px;
      color: #ffffff;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-title-main-mobile {
      font-family: 'Playfair Display', serif;
      font-size: 45px;
      font-weight: 700;
      background: linear-gradient(180deg, #eeeeee 0%, #9d7c6e 40%, #9d7c6e 50%, #9d7c6e 60%, #E1E1E1 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
      line-height: 1.2;
  }


  .hero-title-sub-mobile {
      font-family: 'Lato', sans-serif;
      font-size: 21px;
      font-weight: 700;
      color: #ffffff;
      letter-spacing: 4px;
      display: flex;
      align-items: center;
      gap: 10px;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
      margin-top: 10px;
  }

  .hero-title-sub-mobile::before,
  .hero-title-sub-mobile::after {
    content: '';
    display: block;
    height: 1px;
    width: 40px;
    background: #fff;
  }
}

@media (max-width: 396px) {
  .hero-tagline {
    font-size: 27px;
  }
  .hero-title-small-mobile {
    font-size: 24px;
  }
  .hero-title-main-mobile {
    font-size: 39px;
  }
  .hero-title-sub-mobile {
    font-size: 15px;
  }
}

@media (min-width: 769px) {
  .section-inner { padding-bottom: 0px; }
  #section-inner-kontakt { padding: 24px 32px 32px; max-width: 1100px; margin: 0 auto; }
}

@media (max-width: 768px) {
  #section-inner-kontakt { 
    padding: 24px 14px 32px; 
  }
}

/* @media (max-width: 768px) {
  #section-inner-kontakt { 
    padding: 24px 14px calc(90px + 14px); 
  }
} */

/* ════════════════════════════════════════════════════════ */
/* SCROLL REVEAL ANIMATIONS                                 */
/* ════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для дочерних элементов */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
