/* ============================================================
   TETIANA ZAVIALOVA — styles.css
   Palette: --indigo #6E7A9E | --sand #F2E8DC | --graphite #3A3A3A | --rust #D9743D
   ============================================================ */

:root {
  --indigo:        #6E7A9E;
  --indigo-light:  #8E99B8;
  --indigo-dark:   #4E5A7E;
  --sand:          #F2E8DC;
  --sand-dark:     #E8DACE;
  --graphite:      #3A3A3A;
  --graphite-mid:  #6A6A6A;
  --rust:          #D9743D;
  --rust-light:    #E8956A;
  --white:         #FDFAF7;
  --border:        rgba(110,122,158,0.15);
}

/* ---- RESET ------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; }

/* ---- LAYOUT ---------------------------------------------- */
.container        { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 680px;  margin: 0 auto; padding: 0 2rem; }

/* ---- BUTTONS --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
  border-radius: 6px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
}
.btn-primary   { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,116,61,0.3); }
.btn-secondary { background: rgba(255,255,255,0.18); color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn-ghost     { background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--indigo-dark); border: 1.5px solid var(--indigo); border-radius: 6px; padding: 0.7rem 1.5rem; font-size: 0.88rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; transition: background 0.2s, color 0.2s; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-outline-dark:hover { background: var(--indigo); color: #fff; }

/* ---- NAV ------------------------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  transition: background 0.35s, box-shadow 0.35s;
}
nav.scrolled {
  background: rgba(253,250,247,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500;
  color: #fff; text-decoration: none; transition: color 0.35s;
}
nav.scrolled .nav-logo { color: var(--indigo-dark); }

.nav-links { display: flex; gap: 0.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 0.4rem 0.7rem; border-radius: 4px; transition: color 0.2s, background 0.2s;
}
nav.scrolled .nav-links a { color: var(--graphite-mid); }
.nav-links a:hover { color: var(--rust); background: rgba(217,116,61,0.07); }
.nav-cta { background: var(--rust) !important; color: #fff !important; border-radius: 5px; padding: 0.45rem 1.1rem !important; }
.nav-cta:hover { background: var(--rust-light) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 1.5px; background: #fff; transition: all 0.3s; }
nav.scrolled .nav-burger span { background: var(--graphite); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--graphite); text-decoration: none; }
.mobile-menu a:hover { color: var(--rust); }
.mobile-menu-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; font-size: 1.8rem; color: var(--graphite); }

/* ---- HERO ------------------------------------------------ */
#home {
  background: var(--indigo);
  min-height: 100vh;
  padding: 7rem 4rem 0;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-1 { width: 550px; height: 550px; background: var(--sand); opacity: 0.08; top: -120px; right: -80px; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--rust); opacity: 0.08; bottom: -60px; left: -60px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-left { position: relative; z-index: 1; padding: 3rem 0; }
.hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(242,232,220,0.6); margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; color: var(--sand); line-height: 1.1; margin-bottom: 1.2rem; }
.hero-subtitle { font-size: 1rem; color: rgba(242,232,220,0.72); font-weight: 300; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-meta { font-size: 0.78rem; color: rgba(242,232,220,0.4); letter-spacing: 0.04em; }

.hero-right {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  align-self: flex-end;
}
.hero-photo-wrap {
  width: 100%; max-width: 380px; height: 520px;
  overflow: hidden; flex-shrink: 0;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* ---- STATS ----------------------------------------------- */
#stats { padding: 5rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.stat-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.stat-card:hover { box-shadow: 0 8px 32px rgba(110,122,158,0.12); transform: translateY(-3px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--indigo), var(--rust)); opacity: 0; transition: opacity 0.25s; }
.stat-card:hover::before { opacity: 1; }
.stat-number { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 5vw, 5rem); font-weight: 400; color: var(--indigo); line-height: 1; margin-bottom: 0.5rem; }
.stat-label  { font-size: 0.9rem; color: var(--graphite-mid); line-height: 1.5; }

.stats-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stats-tag-card { background: var(--sand); border-radius: 12px; padding: 1.8rem 2rem; transition: background 0.2s; }
.stats-tag-card:hover { background: var(--sand-dark); }
.stats-tag-title { font-size: 1rem; font-weight: 500; color: var(--graphite); margin-bottom: 0.3rem; }
.stats-tag-sub   { font-size: 0.82rem; color: var(--rust); }

/* ---- AUDIENCE SECTIONS ----------------------------------- */
.audience-section { padding: 5rem 2rem; }
.audience-section:nth-child(odd)  { background: var(--white); }
.audience-section:nth-child(even) { background: var(--sand); }
.audience-inner { max-width: 700px; margin: 0 auto; }
.audience-tag { display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem; }
.audience-inner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; color: var(--graphite); margin-bottom: 1rem; line-height: 1.15; }
.audience-inner > div > p { font-size: 0.95rem; color: var(--graphite-mid); line-height: 1.8; margin-bottom: 1.5rem; }
.audience-points { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.65rem; }
.audience-points li { font-size: 0.92rem; color: var(--graphite); padding-left: 1.4rem; position: relative; line-height: 1.5; }
.audience-points li::before { content: '→'; position: absolute; left: 0; color: var(--rust); }

/* ---- ABOUT ----------------------------------------------- */
#about-section { background: var(--indigo); padding: 5rem 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; max-width: 1080px; margin: 0 auto; }
.about-eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(217,116,61,0.8); margin-bottom: 0.75rem; }
.about-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--sand); font-weight: 500; margin-bottom: 1rem; line-height: 1.15; }
.about-divider { width: 40px; height: 2px; background: rgba(217,116,61,0.6); margin-bottom: 1.5rem; }
.about-bio { color: rgba(242,232,220,0.78); font-size: 0.97rem; line-height: 1.85; margin-bottom: 1.2rem; }
.about-socials { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.about-social-link {
  font-size: 0.82rem; color: rgba(242,232,220,0.7); text-decoration: none;
  border: 1px solid rgba(242,232,220,0.25); border-radius: 4px; padding: 0.45rem 1rem;
  transition: all 0.2s;
}
.about-social-link:hover { color: var(--sand); border-color: rgba(242,232,220,0.6); }

.about-credentials { padding-top: 0.5rem; }
.credential-row { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(242,232,220,0.12); }
.credential-row:last-child { border-bottom: none; }
.credential-key { font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; color: rgba(242,232,220,0.65); min-width: 80px; padding-top: 0.1rem; }
.credential-val { font-size: 0.9rem; color: rgba(242,232,220,0.72); line-height: 1.6; }

/* ---- REVIEWS --------------------------------------------- */
#reviews { padding: 5rem 0; overflow: hidden; }
.reviews-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: 3rem;
  padding: 0 2rem;
  text-align: center;
}

.carousel-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  padding: 1rem 0 1.5rem;
}
.carousel-track {
  display: flex; gap: 1.5rem;
  will-change: transform;
}
.carousel-card {
  flex: 0 0 500px;
  background: var(--sand); border-radius: 12px; padding: 2.5rem;
  box-sizing: border-box;
  opacity: 0.35;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.carousel-card.active   { opacity: 1;    pointer-events: auto; }
.carousel-card.adjacent { opacity: 0.65; }
.card-quote { font-family: 'Cormorant Garamond', serif; font-size: 4rem; color: var(--indigo-light); line-height: 0.5; opacity: 0.35; margin-bottom: 1rem; }
.card-text   { font-size: 0.95rem; color: var(--graphite); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.card-author { font-size: 0.85rem; font-weight: 500; color: var(--indigo-dark); }
.card-role   { font-size: 0.78rem; color: var(--graphite-mid); margin-top: 0.15rem; }

.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; padding: 0 2rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 1.1rem; color: var(--graphite-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { border-color: var(--indigo); color: var(--indigo); background: var(--sand); }
.carousel-dots { display: flex; gap: 6px; align-items: center; }
.c-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.25s; }
.c-dot.active { background: var(--indigo); width: 22px; border-radius: 4px; }

/* ---- CTA ------------------------------------------------- */
#cta { background: var(--indigo); text-align: center; padding: 6rem 2rem; }
.cta-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--sand); font-weight: 400; margin-bottom: 1rem; line-height: 1.15; }
.cta-title em { font-style: italic; color: rgba(242,232,220,0.5); }
.cta-sub { color: rgba(242,232,220,0.65); font-size: 1rem; margin-bottom: 2.5rem; }

/* ---- FOOTER ---------------------------------------------- */
footer {
  background: var(--white); border-top: 1px solid var(--border);
  padding: 2.5rem 2rem 1.5rem; text-align: center;
}
.footer-contacts { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-bottom: 1.2rem; }
.footer-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--graphite-mid); font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--rust); }
.footer-icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.footer-copy { font-size: 0.78rem; color: rgba(58,58,58,0.4); margin-bottom: 0.4rem; }
.footer-thor { display: block; text-align: center; font-size: 0.5rem; color: rgba(58,58,58,0.08); cursor: pointer; user-select: none; letter-spacing: 0.08em; transition: color 0.3s; }
.footer-thor:hover { color: rgba(58,58,58,0.2); }

/* ---- POPUP ----------------------------------------------- */
.popup-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(58,58,58,0.5); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.popup-overlay.open { display: flex; }
.popup { background: var(--white); border-radius: 16px; padding: 2.5rem 2rem; max-width: 420px; width: 90%; position: relative; animation: popIn 0.3s ease; }
@keyframes popIn { from { opacity:0; transform: translateY(16px) scale(0.97); } to { opacity:1; transform: translateY(0) scale(1); } }
.popup-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--graphite-mid); }
.popup h3 { font-size: 1.8rem; margin-bottom: 0.4rem; color: var(--graphite); }
.popup > p { font-size: 0.88rem; color: var(--graphite-mid); margin-bottom: 1.8rem; }
.popup-btns { display: flex; flex-direction: column; gap: 0.65rem; }
.popup-btn { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.2rem; border-radius: 10px; text-decoration: none; font-size: 0.9rem; font-weight: 500; border: none; transition: transform 0.18s, box-shadow 0.18s; }
.popup-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.popup-btn.tg  { background: #2CA5E0; color: #fff; }
.popup-btn.vb  { background: #7B519D; color: #fff; }
.popup-btn.cal { background: var(--rust); color: #fff; }
.popup-btn.em  { background: var(--sand); color: var(--graphite); border: 1px solid var(--sand-dark); }
.popup-icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.popup-btn.em .popup-icon { stroke: var(--graphite); }

/* ---- ANIMATIONS ------------------------------------------ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 900px) {
  #home { padding: 6rem 2rem 0; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    gap: 0;
  }
  .hero-left { order: 1; padding: 2.5rem 0 1.5rem; }
  .hero-right { order: 2; justify-content: center; margin-top: 0; }
  .hero-btns { justify-content: center; }
  .hero-photo-wrap { height: 380px; max-width: 100%; border-radius: 0; }
  .hero-photo-wrap img { object-position: top center; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-tags { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .audience-section, #about-section, #reviews, #stats, #cta { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; }
  .carousel-card { flex: 0 0 280px; padding: 1.8rem; }
  .footer-contacts { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-links { justify-content: center; flex-direction: column; gap: 0.5rem; }

  /* Mobile hero: hide eyebrow, title; subtitle becomes heading; hide meta */
  .hero-eyebrow { display: none; }
  .hero-title    { display: none; }
  .hero-meta     { display: none; }
  .hero-subtitle {
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--sand);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-style: normal;
  }
  .hero-photo-wrap { height: 320px; max-width: 100%; border-radius: 0; }
}

/* ---- HERO LINKS ------------------------------------------ */
.hero-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem;
}
.hero-links a {
  font-size: 0.88rem; color: rgba(242,232,220,0.7);
  text-decoration: none; letter-spacing: 0.03em;
  transition: color 0.2s;
}
.hero-links a:hover { color: var(--sand); }

/* ---- STATS NOTE ------------------------------------------ */
.stats-note {
  font-size: 0.78rem; color: var(--graphite-mid);
  margin-top: 1rem; padding: 0 0.25rem;
}
.stat-asterisk { color: var(--rust); font-size: 0.9em; }

/* ---- ABOUT EXTRA ----------------------------------------- */
.about-edu {
  font-size: 0.85rem; color: rgba(242,232,220,0.55);
  margin-top: 1.2rem; margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.about-certs-link {
  font-size: 0.85rem; color: rgba(242,232,220,0.65);
  text-decoration: none; border-bottom: 1px solid rgba(242,232,220,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.about-certs-link:hover { color: var(--sand); border-color: rgba(242,232,220,0.6); }

/* ---- GALLERY HEADER -------------------------------------- */
.gallery-header { text-align: center; margin-bottom: 3rem; }
.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 500;
  color: var(--graphite); margin-bottom: 0.6rem;
}
.gallery-sub { font-size: 1rem; color: var(--graphite-mid); }

/* ---- GALLERY MOSAIC (desktop) ---------------------------- */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 6px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 6px; cursor: pointer;
  background: var(--sand);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: #fff; font-size: 0.82rem; padding: 1.5rem 1rem 0.85rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* Mosaic layout */
.gallery-main    { grid-column: 1; grid-row: 1; height: 380px; }
.gallery-side    { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 6px; }
.gallery-side .gallery-item { flex: 1; min-height: 0; }
.gallery-bottom-wide { grid-column: 1; grid-row: 2; height: 240px; }
.gallery-bottom-mid  { grid-column: 2; grid-row: 2; height: 240px; }
.gallery-full    { grid-column: 1 / -1; grid-row: 3; height: 300px; }

/* bottom row: 2 items in col 2 stacked — fix via sub-grid workaround */
.gallery-mosaic {
  grid-template-columns: 2fr 1fr 1fr;
}
.gallery-main       { grid-column: 1;     grid-row: 1; }
.gallery-side       { grid-column: 2 / 4; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-side .gallery-item { height: 380px; }
.gallery-bottom-wide { grid-column: 1;    grid-row: 2; height: 240px; }
.gallery-bottom-mid  { grid-column: 2;    grid-row: 2; height: 240px; }
.gallery-bottom-mid:last-of-type { grid-column: 3; grid-row: 2; }
.gallery-full       { grid-column: 1 / -1; grid-row: 3; height: 280px; }

/* ---- GALLERY MOBILE ------------------------------------- */
.gallery-mobile { display: none; }
.gallery-swipe-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 12px; padding-bottom: 1rem; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-swipe-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 85vw; scroll-snap-align: center;
  border-radius: 8px; overflow: hidden; position: relative;
}
.gallery-slide img { width: 100%; height: 260px; object-fit: cover; display: block; }
.gallery-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff; font-size: 0.8rem; padding: 1.2rem 0.85rem 0.7rem;
}

/* ---- LIGHTBOX ------------------------------------------- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 500;
  align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-bg {
  position: absolute; inset: 0;
  background: rgba(15,15,20,0.92); backdrop-filter: blur(6px);
  cursor: pointer;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 1;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.4rem; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-img {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: 6px;
}
.lightbox-caption {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,0.85); font-size: 0.88rem;
  background: rgba(0,0,0,0.5); padding: 0.5rem 1rem; border-radius: 4px;
  white-space: nowrap;
}

/* ---- FOOTER OFFER LINK ---------------------------------- */
.footer-offer-link {
  display: block; font-size: 0.78rem; color: rgba(58,58,58,0.4);
  text-decoration: none; margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-offer-link:hover { color: var(--rust); }

/* ---- RESPONSIVE ----------------------------------------- */
@media (max-width: 900px) {
  .gallery-mosaic { display: none; }
  .gallery-mobile { display: block; }
  .gallery-side { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-links { flex-direction: column; gap: 0.6rem; }
}

/* ---- GALLERY CAROUSEL ------------------------------------ */
#gallery { padding: 5rem 0; background: var(--white); }

.gallery-carousel-outer {
  overflow: hidden;
  padding: 1rem 0 1rem;
  /* mask only the photo strip, not nav buttons */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.gallery-carousel-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}
.gallery-photo-card {
  flex: 0 0 420px;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.45s ease;
  pointer-events: none;
  background: var(--sand-dark);
}
.gallery-photo-card.active   { opacity: 1;    pointer-events: auto; }
.gallery-photo-card.adjacent { opacity: 0.65; pointer-events: none; }
.gallery-photo-card:not(.active):not(.adjacent) { opacity: 0.35; }
.gallery-photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-photo-card:hover img { transform: scale(1.03); }
.gallery-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: #fff; font-size: 0.82rem;
  padding: 2rem 1.2rem 1rem;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-photo-card.active:hover .gallery-photo-caption,
.gallery-photo-card.active .gallery-photo-caption { opacity: 1; transform: translateY(0); }

.gallery-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1.5rem; padding: 0 2rem;
  /* ensure nav is never masked */
  position: relative; z-index: 2;
}
.gallery-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  font-size: 1.1rem; color: var(--graphite-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  /* force full opacity — outside masked zone */
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.gallery-btn:hover { border-color: var(--indigo); color: var(--indigo); background: var(--sand); }
.gallery-dots-wrap { display: flex; gap: 6px; align-items: center; }
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all 0.25s;
}
.gallery-dot.active { background: var(--indigo); width: 22px; border-radius: 4px; }

/* Remove old mosaic/mobile */
.gallery-mosaic, .gallery-mobile, .gallery-header + .gallery-mosaic { display: none !important; }

@media (max-width: 768px) {
  .gallery-photo-card { flex: 0 0 85vw; }
}

.audience-tags-line {
  font-size: 0.95rem; font-weight: 500;
  color: var(--graphite); margin-bottom: 0.75rem;
}
.audience-lgbt {
  font-size: 0.95rem; color: var(--graphite-mid);
  margin-bottom: 1.2rem; line-height: 1.6;
}
.rainbow-text {
  background: linear-gradient(90deg, #e40303, #ff8c00, #ccb800, #008026, #004dff, #750787);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.hero-text    { /* desktop: just flow naturally */ }
.hero-actions { margin-top: 0; }

@media (max-width: 768px) {
  /* Mobile hero order: photo → actions → text */
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .hero-right { order: 1; display: flex; justify-content: center; width: 100%; }
  .hero-photo-wrap { width: 75vw; max-width: 300px; height: 320px; margin: 0 auto; border-radius: 0; }
  #home { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-actions { order: 2; margin-top: 1.5rem; } /* кнопка + посилання + meta */
  .hero-text    { order: 3; margin-top: 1rem; }   /* eyebrow + title + subtitle */
  .hero-actions .hero-meta { display: none; } /* meta не потрібна на мобільному */

  /* Photo: fade bottom edge */
  .hero-photo-wrap {
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  /* Hide on mobile */
  .hero-eyebrow { display: none; }
  .hero-title   { display: none; }
  .hero-meta    { display: none; }

  /* Subtitle as heading */
  .hero-subtitle {
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--sand);
    line-height: 1.25;
    margin-bottom: 0;
    font-style: normal;
  }
}

/* Desktop hero — restore grid, reset mobile order */
@media (min-width: 769px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero-left    { order: unset; }
  .hero-right   { order: unset; }
  .hero-text    { order: unset; }
  .hero-actions { order: unset; }
  .hero-photo-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-eyebrow { display: block; }
  .hero-title   { display: block; }
  .hero-meta    { display: block; }
  .hero-actions .hero-meta { display: block; }
  .hero-subtitle {
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: rgba(242,232,220,0.72);
    line-height: 1.75;
    margin-bottom: 2.5rem;
  }
}

/* Desktop: restore original left-text / right-photo layout */
@media (min-width: 769px) {
  .hero-right { order: 2; }
  .hero-left  { order: 1; }
}
