/* ==========================================================
   КОЛЬОРОВИЙ МОКАП — Ірина Буторина
   Візуальна концепція: українська класика без пафосу
   ========================================================== */

:root {
  /* Палітра */
  --paper: #FAF6EE;
  --paper-soft: #F2ECDD;
  --paper-deep: #E8E0CA;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --ink-tertiary: #6B7280;
  --line: #D4C9B0;
  --line-soft: #E3D9BE;
  --blue: #1E40AF;
  --blue-soft: #E8EEF7;
  --ochre: #C17817;
  --ochre-soft: #F7ECCF;
  --white: #FFFFFF;

  /* Шрифти */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;

  /* Розміри */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Контейнер */
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  font-variation-settings: "opsz" 80;
}

h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.005em; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }

p { margin-bottom: 16px; color: var(--ink); }
.small { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ============ SECTION TAG (маркер у верстці) ============
   У продакшні прибирається. Тут залишаємо як дизайн-елемент. */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ochre);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ============ CONTAINER ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ SECTION ============ */
section {
  padding: 96px 0;
  position: relative;
}

/* ============ VYSHYVANKA DIVIDER ============ */
.divider {
  display: block;
  width: 100%;
  height: 20px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 32px 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='20' viewBox='0 0 32 20'><g fill='none' stroke='%23C17817' stroke-width='1.2'><path d='M4 10 L8 6 L12 10 L8 14 Z'/><path d='M20 10 L24 6 L28 10 L24 14 Z'/><path d='M16 2 L16 18'/><path d='M0 10 L32 10' stroke-dasharray='2 2' stroke-width='0.6' opacity='0.5'/></g></svg>");
  margin: 0 auto;
  max-width: 1180px;
  opacity: 0.7;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 500;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  background: var(--ochre-soft);
  color: var(--ochre);
}
.btn-ghost:hover {
  background: var(--ochre);
  color: var(--paper);
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 18px 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-menu {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--blue); }
.nav-btn {
  font-size: 13px;
  padding: 9px 18px;
}

/* ============ HERO ============ */
.hero {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-superhead {
  font-size: 13px;
  color: var(--ochre);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero h1 span {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 0.6em;
  color: var(--ochre);
  font-style: italic;
  font-weight: 400;
}
.hero-lead {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.4;
}
.hero-desc {
  font-size: 17px;
  color: var(--ink);
  max-width: 540px;
  line-height: 1.7;
}

/* ============ PLACEHOLDER (замість фото) ============ */
.ph {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-tertiary);
  font-family: var(--sans);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  line-height: 1.5;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(193, 120, 23, 0.03) 20px,
      rgba(193, 120, 23, 0.03) 21px
    );
  pointer-events: none;
}
.ph-portrait { aspect-ratio: 3/4; }
.ph-video { aspect-ratio: 16/9; }
.ph-book { aspect-ratio: 2/3; }
.ph-diploma { aspect-ratio: 3/4; }

.clickable { cursor: zoom-in; }
.clickable:hover { border-color: var(--ochre); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.about-grid h2 {
  margin-bottom: 24px;
}
.about-grid h2 span {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 0.55em;
  color: var(--ochre);
  font-style: italic;
  font-weight: 400;
}
.about-grid p {
  margin-bottom: 16px;
  color: var(--ink);
}
.about-grid strong {
  color: var(--ochre);
  font-weight: 600;
}
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.counter { text-align: center; }
.counter-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--ochre);
  letter-spacing: -0.02em;
}
.counter-label {
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ============ ДЛЯ КОГО — CARDS ============ */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  position: relative;
}
.card:hover {
  border-color: var(--ochre);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(31, 41, 55, 0.12);
}
.card .card-badge {
  position: absolute;
  top: -10px;
  left: 32px;
  background: var(--ochre);
  color: var(--white);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.card h3 {
  margin-bottom: 16px;
  padding-right: 60px;
}
.card .pain {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--ochre);
  font-size: 15px;
}
.card p:not(.pain):not(.small) {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
}
.card .small {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  margin-bottom: 20px;
}
.card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  padding: 10px 20px;
}

/* ============ МЕТОДИКА ============ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.method-item {
  padding: 32px 28px;
  background: var(--paper-soft);
  border-radius: var(--r-lg);
  position: relative;
}
.method-letter {
  position: absolute;
  top: 20px;
  right: 28px;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  color: var(--ochre);
  opacity: 0.2;
  line-height: 1;
  letter-spacing: -0.02em;
}
.method-item h3 {
  font-size: 24px;
  margin-bottom: 14px;
  color: var(--ochre);
}
.method-item p {
  font-size: 15px;
  margin-bottom: 0;
  color: var(--ink);
}
.literary-quote {
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 40px 32px 60px;
  background: var(--paper-soft);
  border-radius: var(--r-lg);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
}
.literary-quote::before {
  content: '"';
  position: absolute;
  left: 24px;
  top: 8px;
  font-size: 80px;
  color: var(--ochre);
  font-style: normal;
  line-height: 1;
  font-weight: 600;
}
.literary-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
}

/* ============ РЕГАЛІЇ ============ */
.diplomas-section {
  background: var(--paper-soft);
}
.diplomas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.diploma-item {
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
}
.diploma-item .ph {
  margin-bottom: 12px;
  background: var(--white);
}
.diploma-item:hover .ph { border-color: var(--ochre); }

/* Особливо виділений диплом — "Освітянин року" */
.diploma-featured {
  position: relative;
}
.diploma-featured .ph {
  border: 2.5px solid var(--ochre);
  background: var(--ochre-soft);
  box-shadow: 0 8px 24px -8px rgba(193, 120, 23, 0.4);
}
.diploma-featured .diploma-meta strong {
  color: var(--ochre);
}
.diploma-meta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.diploma-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 13px;
}
.diplomas-cta {
  text-align: center;
  margin-top: 40px;
}
.encyclopedia-accent {
  margin-top: 64px;
  padding: 40px;
  background: var(--white);
  border: 2px solid var(--ochre);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.encyclopedia-accent::before {
  content: 'ОСОБЛИВЕ ВИЗНАННЯ';
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--ochre);
  color: var(--white);
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.encyclopedia-accent h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--ink);
}
.encyclopedia-accent p { font-size: 15px; margin-bottom: 8px; }
.encyclopedia-accent a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--blue-soft);
  transition: border-color 0.2s;
  font-size: 14px;
}
.encyclopedia-accent a:hover { border-color: var(--blue); }

/* ============ ПОЕЗІЯ ТА ПІСНІ (виділений блок) ============ */
.poems-section {
  background: var(--ink);
  color: var(--paper);
}
.poems-section h2 { color: var(--paper); }
.poems-section .tag { color: var(--ochre); }
.poems-section p { color: var(--paper-deep); }
.poems-section .section-head p { color: var(--paper-deep); }
.poems-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--paper);
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  line-height: 1.5;
}
.videos-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 0 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ochre) transparent;
}
.videos-slider::-webkit-scrollbar { height: 6px; }
.videos-slider::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 3px; }
.videos-slider::-webkit-scrollbar-thumb { background: var(--ochre); border-radius: 3px; }
.video-card {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-4px); }
.video-card .ph-video {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--paper-deep);
  margin-bottom: 14px;
  position: relative;
}
.video-card .ph-video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--ochre);
  border-radius: 50%;
  z-index: 2;
}
.video-card .ph-video .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  z-index: 3;
}
.video-card h4 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 4px;
  font-weight: 500;
  font-style: normal;
}
.video-card .small {
  font-size: 12px;
  color: var(--ochre);
}
.video-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(193, 120, 23, 0.2);
  color: var(--ochre);
  border: 1px solid var(--ochre);
  border-radius: 10px;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Текстові посилання на вірші */
.poems-text-links {
  max-width: 620px;
  margin: 56px auto 0;
}
.poems-text-links hr {
  border: none;
  border-top: 1px solid var(--ink-soft);
  margin-bottom: 28px;
}
.poems-text-links > p {
  color: var(--paper-deep);
  font-size: 15px;
  margin-bottom: 24px;
}
.poems-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.poems-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 19px;
}
.poems-list li:last-child { border-bottom: none; }
.poems-list a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.2s, color 0.2s;
}
.poems-list a::after {
  content: '→';
  color: var(--ochre);
  transition: transform 0.2s;
}
.poems-list a:hover { gap: 20px; color: var(--ochre); }

/* В темній секції (poems-section на лендингу) — світлі кольори */
.poems-section .poems-list li {
  border-bottom: 1px solid var(--ink-soft);
}
.poems-section .poems-list a {
  color: var(--paper);
}
.poems-section .poems-list a:hover {
  color: var(--ochre);
}

.poems-cta {
  text-align: center;
  margin-top: 48px;
}
.poems-cta .btn {
  background: var(--ochre);
  color: var(--white);
  padding: 16px 32px;
  font-size: 16px;
}
.poems-cta .btn:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ============ КНИГИ ============ */
.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: all 0.25s;
}
.book-card:hover {
  border-color: var(--ochre);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -15px rgba(31, 41, 55, 0.15);
}
.book-card .ph-book {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line-soft);
}
.book-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 500;
}
.book-card .book-meta {
  font-size: 12px;
  color: var(--ochre);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.book-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.book-card.encyclopedia-card {
  border: 2px solid var(--ochre);
}
.book-card.encyclopedia-card .book-meta { color: var(--blue); }
.book-card .ency-note {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: auto;
  padding-top: 12px;
}

/* 8-ма картка "Замовити книгу" */
.book-order-card {
  text-decoration: none;
  color: var(--ink);
  border: 2px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.25s;
  background: transparent;
  min-height: 100%;
}
.book-order-card:hover {
  border-color: var(--blue);
  background: var(--paper-soft);
  transform: translateY(-4px);
}
.book-order-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.book-order-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-family: var(--serif);
  color: var(--ink);
}
.book-order-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.book-order-arrow {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.book-order-card:hover .book-order-arrow {
  background: var(--blue);
  border-color: var(--blue);
}
.books-note {
  text-align: center;
  margin-top: 32px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
}

/* ============ SCAFFOLD (каркаси) ============ */
.scaffold {
  padding: 72px 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.scaffold h2 {
  color: var(--ink-tertiary);
  text-align: center;
  margin-bottom: 24px;
}
.scaffold-placeholder {
  padding: 36px 40px;
  border: 1.5px dashed var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--paper);
  line-height: 1.7;
}

/* ============ ФОРМА ============ */
.form-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}
.form-head { text-align: center; margin-bottom: 56px; }
.form-head h2 { margin-bottom: 12px; }
.form-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.form-left h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--ochre);
}
.form-left ul {
  list-style: none;
  margin-bottom: 28px;
}
.form-left li {
  padding: 12px 0 12px 36px;
  position: relative;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.form-left li:last-child { border-bottom: none; }
.form-left li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--ochre);
  font-weight: 700;
  font-size: 18px;
  width: 24px;
  height: 24px;
  background: var(--ochre-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-left .small {
  margin-bottom: 24px;
  line-height: 1.7;
}
.telegram-alt-mobile { display: none; }

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  padding: 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  box-shadow: 0 20px 40px -25px rgba(31, 41, 55, 0.08);
}
form label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: -8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
form input,
form select,
form textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.2s;
  font-weight: 400;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
form textarea { min-height: 96px; resize: vertical; }
form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
form .checkbox input { accent-color: var(--ochre); margin-top: 3px; }
form button {
  padding: 16px 26px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  border-radius: var(--r-md);
  font-family: inherit;
  transition: all 0.2s;
}
form button:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

/* ============ ФУТЕР ============ */
footer {
  padding: 56px 0 32px;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--ochre);
}
.footer-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: center;
}
.footer-nav li { font-size: 14px; }
.footer-nav a {
  color: var(--paper-deep);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--ochre); }

.footer-signature {
  text-align: center;
  margin-bottom: 24px;
}
.footer-signature .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 4px;
}
.footer-signature .subtitle {
  font-size: 13px;
  color: var(--ochre);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: var(--paper-deep);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-bottom a {
  color: var(--paper-deep);
  text-decoration: none;
  opacity: 0.8;
}
.footer-bottom a:hover { opacity: 1; color: var(--ochre); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--r-md);
  display: block;
}
.lightbox-content iframe {
  width: min(900px, 90vw);
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--r-md);
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; color: var(--ochre); }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 52px;
  height: 72px;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox.has-gallery .lightbox-nav { display: flex; }
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 56px; font-size: 22px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}
.lightbox-caption {
  color: var(--paper-deep);
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid > div:last-child { max-width: 360px; }
  .cards,
  .method-grid,
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .diplomas,
  .books { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .video-card { flex: 0 0 78%; }
  .encyclopedia-accent { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .encyclopedia-accent .ph-book { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .nav-menu { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 48px 0 72px; }
  .hero-lead { font-size: 18px; }
  .hero-desc { font-size: 15px; }
  .counter-num { font-size: 38px; }
  .counters { gap: 8px; }
  .counter-label { font-size: 11px; }
  .card { padding: 28px 24px; }
  .method-item { padding: 24px 20px; }
  .method-letter { font-size: 48px; top: 16px; right: 20px; }
  .literary-quote { font-size: 18px; padding: 28px 24px 28px 44px; }
  .literary-quote::before { font-size: 60px; left: 16px; }
  .form-head p { font-size: 16px; }
  form { padding: 24px; }
  .hide-on-mobile { display: none; }
  .encyclopedia-accent::before { font-size: 10px; }

  .form-left .telegram-alt-desktop { display: none; }
  .telegram-alt-mobile { display: block; text-align: center; margin-top: 32px; }

  .diploma-meta { font-size: 11px; }
  .diploma-meta strong { font-size: 12px; }
  .poems-list li { font-size: 16px; padding: 12px 0; }
  .poems-lead { font-size: 17px; }

  .footer-nav ul { gap: 8px 18px; font-size: 13px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}
/* ==========================================
   ДОДАТКОВІ СТИЛІ (для сторінок віршів та повідомлень форми)
   ========================================== */

/* ПОВІДОМЛЕННЯ ФОРМИ */
.form-message {
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.form-message.success {
  display: block;
  margin-bottom: 20px;
  background: var(--ochre-soft);
  color: var(--ochre);
  border: 1px solid var(--ochre);
}
.form-message.error {
  display: block;
  margin-bottom: 20px;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* СТОРІНКА ВІРША */
.poem-container {
  max-width: 760px;
}
.page-header {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  text-align: center;
}
.page-header h1 {
  margin-bottom: 12px;
}
.page-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { margin: 0 8px; color: var(--line); }

.poem-page {
  padding: 48px 0 96px;
}
.poem-header {
  margin-bottom: 40px;
  text-align: center;
}
.poem-title {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
}
.poem-meta {
  font-size: 14px;
  color: var(--ochre);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.poem-video-wrapper {
  max-width: 760px;
  margin: 0 auto 48px;
}
.poem-video-inner {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(31, 41, 55, 0.25);
}
.poem-video-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.poem-text {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.8;
  color: var(--ink);
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.poem-text p {
  margin-bottom: 28px;
}
.poem-text p:last-child {
  margin-bottom: 0;
}
.poem-text strong {
  color: var(--ochre);
  font-weight: 600;
}
.poem-text em {
  color: var(--ink-soft);
}

.poem-footer {
  margin-top: 64px;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  background: transparent;
}

/* ПОВНИЙ СПИСОК ВІРШІВ */
.poems-full-list {
  padding: 48px 0 96px;
}
.poems-list-full {
  max-width: 720px;
  margin: 0 auto;
}
.poems-list-full li {
  font-size: 20px;
  padding: 16px 0;
}
.video-indicator {
  display: inline-block;
  margin-left: 8px;
  color: var(--ochre);
  font-size: 14px;
  vertical-align: middle;
}

/* HERO PHOTO (замість placeholder) */
.hero-photo,
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}
.hero-photo.clickable:hover,
.about-photo.clickable:hover {
  border-color: var(--ochre);
  transition: border-color 0.2s;
}

@media (max-width: 768px) {
  .poem-text { font-size: 18px; line-height: 1.75; }
  .poem-title { font-size: 28px; }
  .poems-list-full li { font-size: 17px; padding: 12px 0; }
}
