/* ── FONTS ──────────────────────────────────────────────────────── */

@font-face {
  font-family: 'BespokeStencil';
  src: url('fonts/BespokeStencil-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'BespokeStencil';
  src: url('fonts/BespokeStencil-Medium.ttf') format('truetype');
  font-weight: 500;
}

/* ── TOKENS ─────────────────────────────────────────────────────── */

:root {
  --gold:        #c8960c;
  --teal:        #00b1a2;
  --dark:        #2b2926;
  --cream:       #f6f4e1;
  --sage:        #d5e2c1;
  --sand:        #e8cfa6;
  --terracotta:  #9e6f5c;
  --mauve:       #97828a;
  --beige:       #ecdbb9;

  --serif:   'Playfair Display', Georgia, serif;
  --stencil: 'BespokeStencil', serif;
  --ui:      Arial, Helvetica, sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; }

body {
  font-family: var(--serif);
  color: var(--dark);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
}

/* ── HEADER ─────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-a {
  font-family: var(--stencil);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.logo-tagline {
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  opacity: 0.75;
}

.header-nav { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  font-family: var(--serif);
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ────────────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 99;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-menu nav a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.mobile-menu nav a:hover { color: var(--gold); }

/* ── BUTTONS ────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  color: #fff;
}
.btn:hover { opacity: 0.85; }
.btn-gold {
  background: var(--gold);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.btn-teal { background: var(--teal); }
.btn-dark { background: var(--dark); }

.link-more {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--dark);
  text-decoration: underline;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.link-more:hover { opacity: 0.65; }

/* ── SHARED LABELS ──────────────────────────────────────────────── */

h2 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.stati-text h2,
.footer-text h2 { color: var(--cream); }

/* ── HERO ────────────────────────────────────────────────────────── */

.hero { margin-top: 56px; }

/* Block 1: original photo at PDF brightness (0.43×) via ::before; SVG wordmark on top */
.hero-photo {
  position: relative;
  width: 100%;
  height: calc(100svh - 56px);
  background-color: var(--dark);
  overflow: hidden;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/img_0_0_800x598.webp') center / cover no-repeat;
  filter: brightness(0.43);
  z-index: 0;
}

/* SVG wordmark: sits above the photo ::before layer */
.hero-wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

/* Block 2: dark two-column strip below photo */
.hero-bottom {
  display: grid;
  grid-template-columns: 66% 34%;
  background: var(--dark);
}

.hero-intro {
  padding: 3rem 3rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-intro h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 2.5rem;
}

.hero-intro .btn { align-self: flex-start; }

/* Pillar panel: gold left border + stacked cells */
.hero-pillars {
  border-left: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
}

.pillar {
  flex: 1;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.pillar:last-child { border-bottom: none; }

.pillar h3 {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.pillar p {
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cream);
}

/* ── SPLIT SECTIONS ─────────────────────────────────────────────── */

.section-split {
  display: grid;
  grid-template-columns: 59% 41%;
}

/* Section-specific column overrides */
.section-programma { grid-template-columns: 65% 35%; }
.section-partnery  { grid-template-columns: 60% 40%; }

/* Section-specific backgrounds */
.section-prostranstvo  { background: var(--sage); }
.section-soobshchestvo { background: var(--sand); }
.section-programma     { background: var(--sage); }
.section-partnery      { background: var(--beige); }

.split-text {
  padding: 4rem 4rem 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.split-text p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.split-text ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.split-text ul li {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark);
}
.split-text .btn { margin-top: 1.5rem; align-self: flex-start; }

.split-image { overflow: hidden; }
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── КЛУБ-A (terracotta 29% + conference hall 71%) ──────────────── */

.section-klub-a {
  display: grid;
  grid-template-columns: 29% 71%;
  min-height: 420px;
}

.klub-a-text {
  background: var(--terracotta);
  padding: 3rem 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.klub-a-label {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: rgba(246, 244, 225, 0.65);
  margin-bottom: 0.5rem;
}

.klub-a-heading {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.klub-a-text .btn { align-self: flex-start; }

.klub-a-image { overflow: hidden; }
.klub-a-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── КЛУБ-B (Bergson 36% + quote 64%) ───────────────────────────── */

.section-klub-b {
  display: grid;
  grid-template-columns: 36% 64%;
  min-height: 480px;
}

.klub-b-photo {
  overflow: hidden;
  background: var(--dark);
}
.klub-b-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%) contrast(1.05);
}

.klub-b-content {
  background: var(--cream);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.klub-b-content blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.klub-b-content blockquote cite {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.5;
}

/* ── СТАТЬИ (mauve 33% + beige 67%) ─────────────────────────────── */

.section-stati {
  display: grid;
  grid-template-columns: 33% 67%;
}

.stati-text {
  background: var(--mauve);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  color: var(--cream);
}

.stati-text p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.stati-text .btn { margin-top: auto; align-self: flex-start; }

.stati-list {
  background: var(--beige);
  display: flex;
  flex-direction: column;
}

.article-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem 1.5rem;
  align-items: start;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(43, 41, 38, 0.15);
}

.article-row time {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--dark);
  opacity: 0.6;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.article-row p {
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--dark);
}

.article-empty {
  display: block;
  min-height: 3rem;
  grid-template-columns: unset;
}

/* ── ПАРТНЕРЫ ───────────────────────────────────────────────────── */

.afina-logo {
  width: 180px;
  height: auto;
  margin: 1.5rem 0;
}

/* ── КОНТАКТЫ (footer) ──────────────────────────────────────────── */

.site-footer {
  display: grid;
  grid-template-columns: 65% 35%;
  border-top: 2px solid var(--gold);
  min-height: 320px;
}

.footer-text {
  background: var(--dark);
  padding: 4rem 3rem;
  color: var(--cream);
}

.footer-image {
  overflow: hidden;
  background: var(--mauve);
}
.footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-photo { height: 60vw; min-height: 320px; }

  .hero-bottom { grid-template-columns: 1fr; }
  .hero-pillars { border-left: none; border-top: 1px solid var(--gold); flex-direction: row; flex-wrap: wrap; }
  .pillar { flex: 1 1 160px; border-bottom: none; border-right: 1px solid var(--gold); }
  .pillar:last-child { border-right: none; }

  .section-split,
  .section-programma,
  .section-partnery,
  .section-klub-a,
  .section-klub-b,
  .section-stati,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .split-image,
  .klub-a-image,
  .klub-b-photo { min-height: 300px; }

  /* text at top when section has no fixed height */
  .klub-a-text { justify-content: flex-start; }

  .klub-b-content { padding: 3rem 2rem; }

  .stati-list { border-top: 1px solid rgba(43,41,38,0.15); }
  .article-empty { display: none; }

  .footer-image { min-height: 280px; }
}

@media (max-width: 600px) {
  .hero-photo { padding: 1.5rem; }
  .wordmark { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero-intro { padding: 2rem 1.5rem; }
  .hero-intro h1 { font-size: 1.5rem; }

  /* stack pillars vertically — 2+1 wrap looks odd at 375px */
  .hero-pillars { flex-direction: column; }
  .pillar { border-right: none; border-bottom: 1px solid var(--gold); }
  .pillar:last-child { border-bottom: none; }

  .split-text { padding: 2.5rem 1.5rem; }
  .klub-a-text { padding: 2rem 1.5rem 2.5rem; }
  .stati-text { padding: 2.5rem 1.5rem; }
  .footer-text { padding: 2.5rem 1.5rem; }

  .article-row { grid-template-columns: 5rem 1fr; }
  .article-row .link-more { display: none; }
}
