/* ================================================================
   КЛУБ РЕТРО ДВИГУН — Main Stylesheet
   ================================================================ */

:root {
  /* ДЕФОЛТИ синхронізовані з поточними значеннями в data.db (site_meta.colors).
     Це усуває FOUC (flash of unstyled content) при завантаженні —
     до того як cmsApply встигне підмінити CSS-змінні з API. */
  --sand:        #7A5530;
  --brown:       #1E0C00;
  --dark-brown:  #3D1E00;
  --charcoal:    #BDAD75;
  --cream:       #f5e9da;
  --gold:        #5C2E00;
  --gold-light:  #e8d5b7;
  --black-soft:  #2a1200;
  --text-main:   #1a0c02;
  --text-muted:  rgba(26,12,2,.82);
  --text-sub:    rgba(26,12,2,.62);
  --navbar-bg:          rgba(17,20,21,.92);
  --navbar-bg-scrolled: rgba(17,20,21,.98);
  --hero-grad-from:     rgba(92,46,0,.32);
  --hero-grad-to:       rgba(189,157,118,.96);
  --hero-grad-dir:      165deg;
  --hero-radial-center: #a07c53;
  --hero-radial-edge:   #957549;
  --section-top:        #c8a87c;

  --font-h:      'Playfair Display', Georgia, serif;
  --font-b:      'Raleway', system-ui, sans-serif;

  --ease:        all 0.35s ease;
  --container:   1200px;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; }
body  {
  font-family: var(--font-b);
  color: var(--text-main);
  background: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.65;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-b); }

section[id] { scroll-margin-top: 78px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ================================================================
   TYPOGRAPHY / ORNAMENT
   ================================================================ */
.section-heading { text-align: center; margin-bottom: 64px; }
.section-heading.text-left { text-align: left; }

.section-heading .overline {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-heading h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--text-main);
  line-height: 1.18; margin-bottom: 22px;
}

.ornament {
  display: flex; align-items: center;
  justify-content: center; gap: 14px;
}
.ornament::before, .ornament::after {
  content: '';
  display: block; width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament-left { justify-content: flex-start; }
.ornament-left::before { display: none; }

.ornament-diamond {
  display: block; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg); flex-shrink: 0;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(145deg, var(--brown) 0%, var(--dark-brown) 100%);
  border: 1px solid rgba(201,169,110,.45);
  padding: 16px 42px; border-radius: 2px;
  transition: var(--ease);
  box-shadow: 0 6px 24px rgba(85,53,4,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover {
  background: linear-gradient(145deg, var(--dark-brown) 0%, var(--black-soft) 100%);
  border-color: var(--gold);
  box-shadow: 0 14px 48px rgba(85,53,4,.8), inset 0 1px 0 rgba(255,255,255,.18);
  transform: translateY(-3px);
  filter: brightness(1.18);
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 1px solid var(--gold);
  padding: 16px 42px; border-radius: 2px;
  transition: var(--ease);
}
.btn-outline:hover {
  background: rgba(92,46,0,.14);
  box-shadow: 0 14px 40px rgba(92,46,0,.32);
  transform: translateY(-3px);
  filter: brightness(1.18);
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-d1 { transition-delay: .12s; }
.fade-in-d2 { transition-delay: .24s; }
.fade-in-d3 { transition-delay: .36s; }

/* ================================================================
   NAVBAR  — завжди видимий, виділений
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,169,110,.25);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  border-bottom-color: rgba(201,169,110,.4);
  box-shadow: 0 4px 28px rgba(0,0,0,.55);
}

.navbar .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  height: 72px; overflow: hidden;
}

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

.nav-brand-text {
  display: flex; flex-direction: column; gap: 1px; line-height: 1.25;
}
.nav-brand-name {
  font-family: var(--font-h);
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold-light); letter-spacing: .02em;
}
.nav-brand-sub {
  font-size: 1.16rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(232,213,183,.55);
}
.nav-brand-year {
  font-size: .7rem; font-style: italic;
  color: rgba(201,169,110,.5); letter-spacing: .06em;
}

.nav-links {
  display: flex; align-items: center; gap: 18px;
  flex-shrink: 1; flex-wrap: nowrap; min-width: 0;
}
.nav-links li { display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
.nav-links a {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold-light);
  transition: var(--ease);
  position: relative; padding-bottom: 2px;
  white-space: nowrap; display: block;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--gold-light);
  transition: right .3s ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { right: 0; }

.nav-btn {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(145deg, var(--brown), var(--dark-brown));
  border: 1px solid rgba(201,169,110,.4);
  padding: 10px 24px; border-radius: 2px;
  display: inline-block; transition: var(--ease);
  box-shadow: 0 4px 14px rgba(85,53,4,.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(85,53,4,.6);
  transform: translateY(-1px);
}


/* Auth nav state */
.nav-user-wrap {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-user-name {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(201,169,110,.75); white-space: nowrap;
  text-decoration: none;
}
.nav-user-name:hover { color: rgba(201,169,110,1); }
a.mobile-user-name { text-decoration: none; }
.nav-btn-logout {
  padding: 8px 16px; font-size: .65rem;
}
.mobile-user-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mobile-user-name {
  font-size: .8rem; font-weight: 600; color: rgba(201,169,110,.75);
}

/* Hamburger — у рамці, щоб не виглядав надто просто */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 9px 10px; border-radius: 7px;
  border: 1px solid rgba(201,169,110,.35);
  background: rgba(201,169,110,.07);
  transition: var(--ease); cursor: pointer;
  flex-shrink: 0;   /* ніколи не стискати/обрізати бургер */
}
.hamburger:hover { border-color: var(--gold-light); background: rgba(201,169,110,.14); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gold-light); border-radius: 2px; transition: var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu — ретро бічна шторка ──────────────────────────── */
.mobile-menu {
  display: flex; justify-content: flex-end;
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(10,6,2,0);
  visibility: hidden; opacity: 0;
  transition: background .35s ease, opacity .35s ease, visibility .35s ease;
}
.mobile-menu.open {
  visibility: visible; opacity: 1;
  background: rgba(10,6,2,.55);
}

/* Панель, що висувається справа */
.mobile-drawer {
  position: relative;
  width: 82%; max-width: 360px; height: 100%;
  display: flex; flex-direction: column;
  padding: 22px 0 26px;
  background: linear-gradient(165deg, #cdbb8c 0%, #c0aa76 55%, #b39c68 100%);
  border-left: 1px solid rgba(92,46,0,.3);
  box-shadow: -18px 0 55px rgba(0,0,0,.42);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.mobile-menu.open .mobile-drawer { transform: translateX(0); }

/* Шапка шторки: логотип + орнамент */
.mobile-drawer-head { text-align: center; padding: 6px 28px 0; }
.mobile-drawer-logo {
  width: 84px; height: 84px; margin: 4px auto 0;
  border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(92,46,0,.32);
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.mobile-drawer-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-drawer-orn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0 2px;
}
.mobile-drawer-orn span {
  width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.mobile-drawer-orn span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.mobile-drawer-orn i {
  width: 7px; height: 7px; flex-shrink: 0;
  background: var(--gold); transform: rotate(45deg);
}

/* Список пунктів */
.mobile-nav {
  display: flex; flex-direction: column;
  padding: 8px 28px 0; margin-top: 6px; flex: 1;
}
.mobile-nav a {
  display: flex; align-items: baseline;
  font-family: var(--font-h); font-size: 1.45rem;
  color: #2a1505; text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid rgba(92,46,0,.16);
  transition: color .2s ease, padding-left .2s ease;
  opacity: 0; transform: translateX(14px);
}
.mobile-nav a:hover, .mobile-nav a:active { color: var(--gold); padding-left: 6px; }
.mobile-nav a:last-child { border-bottom: none; }

/* Каскадна поява пунктів при відкритті */
.mobile-menu.open .mobile-nav a {
  opacity: 1; transform: translateX(0);
  transition: opacity .4s ease, transform .4s ease, color .2s ease, padding-left .2s ease;
}
.mobile-menu.open .mobile-nav a:nth-child(1) { transition-delay: .10s; }
.mobile-menu.open .mobile-nav a:nth-child(2) { transition-delay: .16s; }
.mobile-menu.open .mobile-nav a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.open .mobile-nav a:nth-child(4) { transition-delay: .28s; }
.mobile-menu.open .mobile-nav a:nth-child(5) { transition-delay: .34s; }
.mobile-menu.open .mobile-nav a:nth-child(6) { transition-delay: .40s; }
.mobile-menu.open .mobile-nav a:nth-child(7) { transition-delay: .46s; }
.mobile-menu.open .mobile-nav a:nth-child(8) { transition-delay: .52s; }

/* Кнопка приєднатися / профіль */
.mobile-auth-btn {
  margin: 18px 28px 0; text-align: center;
  padding: 13px; border-radius: 4px; text-decoration: none;
  font-family: var(--font-b); font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: #f5e9da;
  background: linear-gradient(135deg, #5c2e00, #3d1e00);
  border: 1px solid rgba(201,169,110,.4);
  transition: var(--ease);
}
.mobile-auth-btn:hover { background: linear-gradient(135deg, #6d3800, #4a2500); border-color: var(--gold-light); }

/* Кнопка закриття */
.mobile-menu-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #5c2e00; cursor: pointer;
  background: rgba(92,46,0,.08);
  border: 1px solid rgba(92,46,0,.22); border-radius: 50%;
  transition: var(--ease);
}
.mobile-menu-close:hover { background: rgba(92,46,0,.18); color: #1a0c02; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  position: relative; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  /*
    ФОНОВЕ ФОТО (замінити на реальне):
    background-image:
      linear-gradient(165deg, rgba(92,46,0,.45) 0%, rgba(92,46,0,.2) 65%),
      url('picture/hero-bg.jpg');
    background-size: cover; background-position: center;
  */
  background:
    linear-gradient(var(--hero-grad-dir), var(--hero-grad-from) 0%, var(--hero-grad-to) 70%),
    radial-gradient(ellipse at 68% 50%, var(--hero-radial-center) 0%, var(--hero-radial-edge) 100%),
    var(--charcoal);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 110px 28px 80px;
  max-width: 860px; width: 100%;
}

.hero-logo {
  width: 240px; height: 240px; margin: 0 auto 36px;
  border-radius: 50%;
  border: 2px solid rgba(92,46,0,.35);
  box-shadow:
    0 0 0 12px rgba(92,46,0,.06),
    0 0 0 24px rgba(92,46,0,.03),
    0 20px 60px rgba(0,0,0,.55),
    0 40px 100px rgba(0,0,0,.3),
    0 0 80px rgba(92,46,0,.2);
  overflow: hidden; background: rgba(92,46,0,.08);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.hero-overline {
  display: block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-h);
  font-style: italic;
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700; color: var(--text-main);
  line-height: 1.08; margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(92,46,0,.12);
}

/* ═══ Слово "Ретро" — Playfair Display italic ══════════════════ */
.retro-word {
  font-family: var(--font-h);   /* Playfair Display */
  font-style: italic;
  font-size: 1em;
  color: var(--gold);
}

.hero-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin: 24px auto;
}
.hero-ornament::before, .hero-ornament::after {
  content: ''; display: block; width: 72px; height: 1px;
  background: rgba(92,46,0,.35);
}

.hero-subtitle {
  font-family: var(--font-h);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 400; font-style: italic;
  color: var(--sand); margin-bottom: 28px;
}
.hero-description {
  font-size: 1rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 52px; line-height: 1.85;
}
.hero-buttons {
  display: flex; align-items: center;
  justify-content: center; gap: 20px; flex-wrap: wrap;
}



/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding: 108px 0; background: var(--charcoal); position: relative;
}
.about::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-content {
  margin-bottom: 60px;
}
.about-content p {
  font-size: .95rem; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 20px;
}
.about-content .lead {
  font-family: var(--font-h); font-size: 1.12rem; font-style: italic;
  color: var(--sand); border-left: 2px solid var(--gold);
  padding-left: 20px; margin-bottom: 24px; line-height: 1.7;
}

/* Плаваючі фото серед тексту */
.about-img-right {
  float: right;
  width: 360px; margin: 4px 0 24px 36px;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(92,46,0,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.about-img-left {
  float: left;
  width: 360px; margin: 4px 36px 24px 0;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(92,46,0,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.about-img-right img, .about-img-left img { width: 100%; height: auto; display: block; }
.about-clearfix::after { content: ''; display: block; clear: both; }

/* Три картки в ряд */
.about-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(135deg, rgba(85,53,4,.14), rgba(72,38,27,.08));
  border: 1px solid rgba(92,46,0,.2);
  border-radius: 3px; padding: 24px 26px; transition: var(--ease);
}
.feature-card:hover {
  border-color: rgba(92,46,0,.4);
  background: linear-gradient(135deg, rgba(85,53,4,.22), rgba(72,38,27,.15));
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(92,46,0,.15);
}
.feature-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.feature-body { flex: 1; }
.feature-card h3 { font-family: var(--font-h); font-size: 1.05rem; color: var(--gold); margin-bottom: 6px; }
.feature-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }


/* ================================================================
   GALLERY
   ================================================================ */
.gallery {
  padding: 108px 0;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--section-top) 100%);
  position: relative;
}
.gallery::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-bottom: 24px;
}

.gallery-load-more {
  padding: 13px 52px;
  background: linear-gradient(135deg, #2c1505 0%, #140900 50%, #2c1505 100%);
  border: 1px solid rgba(92,46,0,.55);
  border-radius: 4px;
  color: #c9a96e;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.gallery-load-more:hover {
  border-color: rgba(201,169,110,.55);
  box-shadow: 0 6px 24px rgba(92,46,0,.45);
}

.gallery-item {
  position: relative; aspect-ratio: 4/3;
  border-radius: 2px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(92,46,0,.18);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.gallery-item:nth-child(1) { background: linear-gradient(135deg,#2c1b09,#553504); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg,#1c1512,#48261b); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg,#111618,#212526); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg,#48261b,#2c1b09); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg,#1a1d1e,#1c1512); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg,#553504,#48261b); }

.gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .55s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: rgba(201,169,110,.28); transition: color .3s ease;
}
.gallery-placeholder span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery-item:hover .gallery-placeholder { color: rgba(201,169,110,.45); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17,20,21,.92) 100%);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 22px; opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover { border-color: rgba(92,46,0,.45); box-shadow: 0 10px 36px rgba(0,0,0,.4); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-family: var(--font-h); font-size: .95rem; color: var(--cream); margin-bottom: 4px; }
.gallery-overlay span { font-size: .65rem; color: var(--gold-light); letter-spacing: .15em; text-transform: uppercase; }

.gallery-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.gallery-cta p { font-size: .82rem; color: var(--text-sub); margin-bottom: 22px; font-style: italic; }

/* ================================================================
   CONTACT — тільки картки, без форми
   ================================================================ */
.contact {
  padding: 108px 0;
  background: linear-gradient(180deg, var(--section-top) 0%, var(--charcoal) 100%);
  position: relative;
}
.contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* 2 картки по центру */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 580px; margin: 0 auto 52px;
}

.contact-card {
  background: linear-gradient(145deg, rgba(85,53,4,.14), rgba(85,53,4,.05));
  border: 1px solid rgba(92,46,0,.22);
  border-radius: 4px; padding: 36px 28px;
  text-align: center; transition: var(--ease);
}
.contact-card:hover {
  border-color: rgba(92,46,0,.45);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(92,46,0,.2);
}

.contact-card-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--brown), var(--dark-brown));
  border: 1px solid rgba(92,46,0,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
}
.contact-card-label {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.contact-card-value {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.5; transition: color .25s ease;
  display: block;
}
a.contact-card-value:hover { color: var(--gold); }

/* Соцмережі */
.contact-social { text-align: center; }
.social-label {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; display: block;
}
.social-links { display: flex; gap: 12px; justify-content: center; }
.social-link {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(85,53,4,.2), rgba(72,38,27,.12));
  border: 1px solid rgba(92,46,0,.22);
  border-radius: 3px; display: flex;
  align-items: center; justify-content: center;
  color: var(--gold); transition: var(--ease);
}
.social-link:hover {
  background: linear-gradient(135deg, var(--brown), var(--dark-brown));
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(85,53,4,.5);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--black-soft);
  padding: 16px 0 8px;
  border-top: 1px solid rgba(201,169,110,.12);
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; padding-bottom: 12px; margin-bottom: 8px;
  align-items: start;
}
.footer-brand h3 { font-family: var(--font-h); font-size: 1.1rem; color: var(--gold-light); margin-bottom: 3px; }
.footer-city {
  display: block; font-size: .6rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(232,213,183,.55); margin-bottom: 2px;
}
.footer-founded {
  display: block; font-size: .65rem; font-weight: 500;
  letter-spacing: .15em; color: rgba(201,169,110,.55);
  margin-bottom: 10px; font-style: italic;
}
.footer-brand p {
  font-size: .78rem; color: rgba(245,233,218,.4);
  line-height: 1.6; max-width: 290px; margin-bottom: 10px;
}
.footer-social-links { display: flex; gap: 8px; }
.footer-social-links a {
  width: 28px; height: 28px;
  background: rgba(85,53,4,.22);
  border: 1px solid rgba(201,169,110,.14);
  border-radius: 3px; display: flex;
  align-items: center; justify-content: center;
  color: rgba(201,169,110,.6); transition: var(--ease);
}
.footer-social-links a:hover { color: var(--gold); background: rgba(85,53,4,.38); border-color: rgba(201,169,110,.35); }

.footer-col h4 {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 10px;
}
.footer-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.footer-col ul li a { font-size: .78rem; color: rgba(245,233,218,.45); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-divider {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.footer-divider::before, .footer-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(232,213,183,.12);
}
.footer-divider .ornament-diamond { background: rgba(232,213,183,.4); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-bottom p { font-size: .74rem; color: rgba(245,233,218,.25); }
.footer-credit    { font-style: italic; color: rgba(201,169,110,.3) !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  /* Навігація */
  .nav-links, .nav-btn { display: none; }
  .hamburger { display: flex; }

  /* Секції — менший відступ */
  .about, .gallery, .contact { padding: 72px 0; }
  .section-heading { margin-bottom: 44px; }

  /* Про клуб */
  .about .section-heading.text-left { text-align: center; }
  .about .section-heading .ornament-left { justify-content: center; }
  .about .section-heading .ornament-left::before { display: block; }
  .about-img-right, .about-img-left { float: none; width: 100%; margin: 0 0 20px 0; }
  .about-features { grid-template-columns: 1fr; gap: 14px; }
  .about-content { margin-bottom: 40px; }

  /* Галерея */
  .gallery-grid { grid-template-columns: repeat(2,1fr); }

  /* Контакти */
  .contact-cards { grid-template-columns: 1fr; max-width: 100%; }

  /* Футер */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-col ul { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 480px) {
  /* Контейнер */
  .container { padding: 0 18px; }

  /* Секції */
  .about, .gallery, .contact { padding: 56px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }

  /* Hero */
  .hero-content { padding: 100px 18px 60px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-logo { width: 160px; height: 160px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 16px 24px; }

  /* Галерея */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Контакти */
  .contact-card { padding: 28px 18px; }

  /* Футер */
  .footer-col ul { grid-template-columns: 1fr; }

  /* Мобільне меню — трохи менший шрифт пунктів на вузьких екранах */
  .mobile-nav a { font-size: 1.3rem; }
}

/* ================================================================
   COMMENTS  (блог / техніка клубу)
   ================================================================ */
.cmt-root-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: #f5e9da;
}
.cmt-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
}
.cmt-divider::before {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dark-brown));
}
.cmt-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--dark-brown), transparent);
}
.cmt-divider-gem {
  width: 8px;
  height: 8px;
  background: var(--dark-brown);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(201,169,110,.7);
}
.cmt-title {
  font-family: var(--font-h);
  font-size: 1.45rem;
  font-weight: 700;
  color: #f5e9da;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .03em;
}
.cmt-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,169,110,.25);
}

.cmt-compose { margin-bottom: 28px; }
.cmt-guest, .cmt-banned, .cmt-empty, .cmt-loading, .cmt-error {
  padding: 16px 20px;
  background: rgba(33,37,38,.7);
  border: 1px solid rgba(201,169,110,.25);
  border-radius: 3px;
  color: rgba(245,233,218,.8);
  font-size: .9rem;
  text-align: center;
}
.cmt-guest a { color: #c9a96e; text-decoration: underline; }
.cmt-guest a:hover { color: #e8d5b7; }
.cmt-banned { color: #e07070; border-color: rgba(224,112,112,.35); background: rgba(120,40,40,.12); }
.cmt-error  { color: #e07070; border-color: rgba(200,60,60,.3); }

.cmt-list { display: flex; flex-direction: column; gap: 14px; }

.cmt {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(28,22,16,.75);
  border: 1px solid rgba(201,169,110,.28);
  border-left: 3px solid rgba(201,169,110,.55);
  border-radius: 3px;
}
.cmt-reply {
  margin-left: 40px;
  background: rgba(22,17,12,.65);
  border-color: rgba(201,169,110,.18);
  border-left: 3px solid rgba(201,169,110,.3);
}
.cmt-deleted { opacity: .5; }

.cmt-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,169,110,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: #c9a96e;
  background: rgba(92,46,0,.35);
  flex-shrink: 0;
}
.cmt-avatar-placeholder { font-weight: 700; }
.cmt-avatar-deleted     { color: rgba(245,233,218,.25); border-color: rgba(245,233,218,.12); }

.cmt-side { align-self: start; }
.cmt-main { display: flex; flex-direction: column; min-width: 0; }

.cmt-head {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .82rem;
}
.cmt-author {
  color: #c9a96e;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.cmt-author:hover { color: #e8d5b7; text-decoration: underline; }
.cmt-author-deleted { color: rgba(245,233,218,.35); font-style: italic; }
.cmt-role {
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(201,169,110,.14);
  color: #c9a96e;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid rgba(201,169,110,.28);
}
.cmt-date    { color: rgba(245,233,218,.4); font-size: .78rem; }
.cmt-edited  { color: rgba(245,233,218,.35); font-style: italic; font-size: .72rem; }

.cmt-body {
  color: #f0e6d6;
  line-height: 1.65;
  font-size: .93rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.cmt-body-deleted {
  color: rgba(245,233,218,.35);
  font-style: italic;
}

.cmt-actions {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cmt-action {
  background: rgba(201,169,110,.08);
  border: 1px solid rgba(201,169,110,.4);
  padding: 4px 12px;
  border-radius: 2px;
  color: rgba(245,233,218,.82);
  font-size: .68rem;
  cursor: pointer;
  font-family: var(--font-b);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s;
}
.cmt-action:hover {
  color: #c9a96e;
  border-color: #c9a96e;
  background: rgba(201,169,110,.14);
}
.cmt-action-danger {
  background: rgba(192,57,43,.08);
  border-color: rgba(192,57,43,.4);
  color: rgba(240,128,128,.82);
}
.cmt-action-danger:hover {
  color: #e07070;
  border-color: rgba(240,128,128,.6);
  background: rgba(192,57,43,.15);
}

.cmt-form        { margin-top: 12px; }
.cmt-form-slot:not(:empty) { margin-top: 18px; }
.cmt-replies     { margin-top: 20px; }
.cmt-textarea {
  width: 100%;
  background: rgba(17,20,21,.85);
  border: 1px solid rgba(201,169,110,.35);
  border-radius: 2px;
  color: #f5e9da;
  padding: 9px 12px;
  font-family: var(--font-b);
  font-size: .9rem;
  resize: none;
  overflow: hidden;
  min-height: 100px;
  transition: border-color .2s;
}
.cmt-textarea::placeholder { color: rgba(245,233,218,.28); }
.cmt-textarea:focus { outline: none; border-color: rgba(201,169,110,.65); }
.cmt-form-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cmt-form-error {
  flex: 1;
  color: #e07070;
  font-size: .82rem;
}

.cmt-btn {
  display: inline-block;
  font-family: var(--font-b);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid;
}
.cmt-btn-primary {
  background: linear-gradient(145deg, rgba(85,53,4,.9), rgba(72,38,27,.9));
  border-color: rgba(201,169,110,.5);
  color: #f5e9da;
  box-shadow: 0 4px 16px rgba(85,53,4,.4);
}
.cmt-btn-primary:hover {
  border-color: #c9a96e;
  box-shadow: 0 6px 20px rgba(85,53,4,.6);
  transform: translateY(-1px);
}
.cmt-btn-secondary {
  background: rgba(192,57,43,.1);
  border-color: rgba(192,57,43,.45);
  color: #c0392b;
}
.cmt-btn-secondary:hover {
  background: rgba(192,57,43,.2);
  border-color: rgba(192,57,43,.65);
  color: #a93226;
}

@media (max-width: 600px) {
  .cmt-reply        { margin-left: 20px; }
  .cmt              { padding: 12px 14px; grid-template-columns: 36px 1fr; gap: 10px; }
  .cmt-avatar       { width: 34px; height: 34px; font-size: .9rem; }
  .cmt-root-section { padding: 28px 14px 60px; }
  .cmt-btn          { padding: 7px 14px; }
}

/* ================================================================
   USER PROFILE MODAL
   ================================================================ */
.upm-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 20px;
}
.upm-overlay.open { display: flex; }

.upm-modal {
  background: linear-gradient(145deg, #261405, #150900);
  border: 1px solid rgba(201,169,110,.3);
  border-radius: 6px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 12px 50px rgba(0,0,0,.6);
}
.upm-close {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: rgba(245,233,218,.5);
  cursor: pointer;
  line-height: 1;
}
.upm-close:hover { color: #c9a96e; }

.upm-loading, .upm-error {
  text-align: center; padding: 40px 10px;
  color: rgba(245,233,218,.6);
}
.upm-error { color: #e07070; }

.upm-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201,169,110,.18);
  margin-bottom: 18px;
}
.upm-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,169,110,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 1.8rem;
  color: #c9a96e;
  background: rgba(92,46,0,.4);
  flex-shrink: 0;
}
.upm-avatar-placeholder { font-weight: 700; }
.upm-headinfo  { flex: 1; min-width: 0; }
.upm-name {
  font-family: var(--font-h);
  font-size: 1.25rem;
  color: #f5e9da;
  margin-bottom: 4px;
  word-wrap: break-word;
}
.upm-role { color: rgba(201,169,110,.7); font-size: .82rem; }
.upm-badges { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.upm-badge {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 700;
}
.upm-badge-admin  { background: rgba(201,169,110,.22); color: #c9a96e; border: 1px solid rgba(201,169,110,.4); }
.upm-badge-banned { background: rgba(224,112,112,.18); color: #e07070; border: 1px solid rgba(224,112,112,.45); }

.upm-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.upm-row  { color: rgba(245,233,218,.82); font-size: .9rem; line-height: 1.55; }
.upm-label{ color: rgba(201,169,110,.7); margin-right: 6px; font-weight: 600; }

.upm-actions {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(201,169,110,.18);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.upm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 6px;
  font-family: var(--font-b); font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid; cursor: pointer; white-space: nowrap;
  transition: all .22s ease;
}
.upm-btn:hover { transform: translateY(-1px); }
.upm-btn-gold {
  background: linear-gradient(145deg, #c9a96e, #a8854a);
  border-color: rgba(201,169,110,.6); color: #1a0c02;
  box-shadow: 0 3px 12px rgba(201,169,110,.18);
}
.upm-btn-gold:hover {
  background: linear-gradient(145deg, #d8b87d, #b89255);
  box-shadow: 0 5px 16px rgba(201,169,110,.3);
}
.upm-btn-danger {
  background: rgba(192,57,43,.16); border-color: rgba(192,57,43,.55);
  color: #f0a0a0;
}
.upm-btn-danger:hover {
  background: rgba(192,57,43,.3); border-color: rgba(192,57,43,.8); color: #ffb3b3;
  box-shadow: 0 4px 14px rgba(192,57,43,.22);
}

.upm-admin-info {
  margin-bottom: 16px; padding: 12px 14px;
  background: rgba(0,0,0,.25); border-radius: 3px;
  border: 1px solid rgba(201,169,110,.12);
  display: flex; flex-direction: column; gap: 6px;
}
.upm-admin-title {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(201,169,110,.55); margin-bottom: 3px; font-family: var(--font-b);
}
.upm-admin-row { color: rgba(245,233,218,.75); font-size: .85rem; }
.upm-link { color: #c9a96e; text-decoration: none; }
.upm-link:hover { text-decoration: underline; }

.upm-tabs {
  display: flex; margin-top: 18px;
  border-bottom: 1px solid rgba(201,169,110,.2);
}
.upm-tab {
  padding: 8px 16px; background: transparent; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--font-b); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(201,169,110,.45); cursor: pointer; transition: all .22s;
}
.upm-tab:hover { color: rgba(201,169,110,.75); }
.upm-tab.active { color: #c9a96e; border-bottom-color: #c9a96e; }
.upm-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 3px; margin-left: 4px;
  background: rgba(201,169,110,.25); color: #c9a96e;
  border-radius: 7px; font-size: .58rem; font-weight: 700;
  vertical-align: middle;
}
.upm-materials { padding-top: 12px; }
.upm-mat-empty {
  padding: 12px 0; color: rgba(201,169,110,.4);
  font-size: .82rem; font-style: italic; text-align: center;
}
.upm-pager {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(201,169,110,.12);
}
.upm-page-btn {
  min-width: 30px; height: 30px; padding: 0 7px;
  background: transparent; border: 1px solid rgba(201,169,110,.22);
  border-radius: 3px; color: rgba(201,169,110,.55);
  font-family: var(--font-b); font-size: .7rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.upm-page-btn:hover { border-color: rgba(201,169,110,.55); color: #c9a96e; }
.upm-page-btn.active {
  background: rgba(201,169,110,.18); border-color: #c9a96e; color: #c9a96e;
}
.upm-section-title {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(201,169,110,.55); margin-bottom: 8px; font-family: var(--font-b);
}
.upm-mat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; color: rgba(245,233,218,.82); text-decoration: none;
  font-size: .88rem; border-bottom: 1px solid rgba(201,169,110,.1);
  transition: color .2s;
}
.upm-mat-item:last-child { border-bottom: none; }
.upm-mat-item:hover { color: #c9a96e; }
.upm-mat-type {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(201,169,110,.55); margin-left: 10px; white-space: nowrap;
}

