@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&display=swap');

:root {
  --bked-parchment: #FAF7F2;
  --bked-surface: #F0EAE0;
  --bked-ink: #1C1917;
  --bked-accent: #1E3A5F; /* Темно-синій */
  --bked-accent-hover: #152B47;
  --bked-muted: #5C554D;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Source Serif 4', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bked-parchment);
  color: var(--bked-ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--bked-ink);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header */
.bked-masthead {
  background-color: var(--bked-parchment);
  border-bottom: 2px solid var(--bked-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
}

.bked-logotype {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--bked-accent);
}

.bked-logotype svg {
  width: 28px;
  height: 28px;
  fill: var(--bked-accent);
}

.bked-navigation {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.bked-navigation a:hover {
  color: var(--bked-accent);
}

.bked-menu-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.bked-menu-trigger svg {
  width: 30px;
  height: 30px;
  fill: var(--bked-accent);
}

/* Preset C: Hero Editorial Split */
.bked-editorial-split {
  display: flex;
  min-height: 90vh;
}

.bked-split-left {
  width: 30%;
  background-color: var(--bked-accent);
  color: var(--bked-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.bked-vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.bked-split-right {
  width: 70%;
  position: relative;
  background: url('img/bg.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem;
}

.bked-image-veil {
  position: absolute;
  inset: 0;
  background-color: rgba(250, 247, 242, 0.65);
}

.bked-hero-typography {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.bked-hero-typography h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.bked-hero-typography p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--bked-ink);
}

/* Buttons */
.bked-outline-action {
  display: inline-block;
  border: 1px solid var(--bked-accent);
  color: var(--bked-accent);
  padding: 0.85rem 2.5rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: transparent;
}

.bked-outline-action:hover {
  background-color: var(--bked-accent);
  color: var(--bked-parchment);
}

/* Preset C: Pull-quote & Image Block */
.bked-statement-block {
  background-color: var(--bked-surface);
  padding: 8dvh 5%;
  text-align: center;
}

.bked-statement-block p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  max-width: 900px;
  margin: 0 auto;
  color: var(--bked-accent);
  position: relative;
}

.bked-statement-block p::before {
  content: '“';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -40px;
  opacity: 0.3;
}
.bked-statement-block p::after {
  content: '”';
  font-size: 4rem;
  position: absolute;
  bottom: -40px;
  right: -20px;
  opacity: 0.3;
}

.bked-image-text-pair {
  display: flex;
  padding: 6rem 5%;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.bked-image-text-pair.bked-reversed {
  flex-direction: row-reverse;
}

.bked-pair-visual {
  flex: 0 0 45%;
}

.bked-pair-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.bked-pair-copy {
  flex: 1;
}

.bked-pair-copy p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.bked-bullet-list {
  list-style: none;
  margin-top: 2rem;
}

.bked-bullet-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.bked-bullet-list li::before {
  content: '•';
  color: var(--bked-accent);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
}

/* Preset C: Magazine Grid */
.bked-magazine-spread {
  padding: 5rem 5%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.bked-mag-feature {
  flex: 0 0 50%;
  position: relative;
  background: url('img/bg2.webp') center/cover;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.bked-mag-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.8), rgba(28,25,23,0.1));
}

.bked-mag-feature h3 {
  position: relative;
  color: var(--bked-parchment);
  font-size: 2.5rem;
  z-index: 2;
}

.bked-mag-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bked-mag-minor {
  background-color: var(--bked-surface);
  border-top: 2px solid var(--bked-accent);
  padding: 2rem;
  flex: 1;
}

.bked-mag-minor svg {
  width: 32px;
  height: 32px;
  fill: var(--bked-accent);
  margin-bottom: 1.5rem;
}

.bked-mag-minor h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Preset C: Event Rows */
.bked-agenda-list {
  padding: 6rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.bked-agenda-row {
  display: flex;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(28,25,23,0.15);
  gap: 3rem;
}

.bked-agenda-date {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--bked-accent);
  opacity: 0.08;
  font-weight: 600;
  flex: 0 0 100px;
}

.bked-agenda-info h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Preset C: Form Underlines */
.bked-typographic-form {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 5%;
}

.bked-line-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bked-muted);
  padding: 1rem 0;
  margin-bottom: 2.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--bked-ink);
  transition: border-color 0.3s;
}

.bked-line-input:focus {
  outline: none;
  border-bottom-color: var(--bked-accent);
}

.bked-checkbox-wrap {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
}

/* Stats */
.bked-plain-stats {
  display: flex;
  justify-content: space-around;
  padding: 4rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.bked-stat-number {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 600;
  color: var(--bked-accent);
  display: block;
}

.bked-stat-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}

/* Call to action strip */
.bked-cta-banner {
  background-color: var(--bked-surface);
  text-align: center;
  padding: 6rem 5%;
}

.bked-cta-banner h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

/* Footer */
.bked-colophon {
  background-color: var(--bked-surface);
  border-top: 1px solid rgba(28,25,23,0.1);
  padding: 4rem 5% 2rem;
  text-align: center;
}

.bked-colophon .bked-logotype {
  justify-content: center;
  margin-bottom: 2rem;
}

.bked-legal-links {
  margin-bottom: 2rem;
}

.bked-legal-links a {
  margin: 0 1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.bked-notice {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bked-muted);
  margin-bottom: 1rem;
}

/* Cookie */
.bked-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bked-surface);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  border-top: 1px solid var(--bked-accent);
}

.bked-consent-btns {
  display: flex;
  gap: 1rem;
}

.bked-btn-solid {
  background-color: var(--bked-accent);
  color: var(--bked-parchment);
  border: 1px solid var(--bked-accent);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.bked-btn-hollow {
  background-color: transparent;
  color: var(--bked-ink);
  border: 1px solid var(--bked-muted);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Text pages */
.bked-text-document {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 5%;
  min-height: 50vh;
}

.bked-text-document h1 {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.bked-text-document h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

@media (max-width: 900px) {
  .bked-editorial-split {
    flex-direction: column;
  }
  .bked-split-left {
    width: 100%;
    padding: 1rem;
  }
  .bked-vertical-text {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .bked-split-right {
    width: 100%;
    padding: 3rem 5%;
  }
  .bked-magazine-spread {
    flex-direction: column;
  }
  .bked-image-text-pair {
    flex-direction: column;
  }
  .bked-image-text-pair.bked-reversed {
    flex-direction: column;
  }
  .bked-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bked-parchment);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--bked-accent);
  }
  .bked-navigation.bked-menu-open {
    display: flex;
  }
  .bked-menu-trigger {
    display: block;
  }
  .bked-agenda-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .bked-consent-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}