/* ==========================================================================
   Оспанов Қыдырбек Мырабдоллаұлы — Мемориалдық сайт
   Мемлекеттік ресми салтанатты АҚ/ЖАРЫҚ стиль (State Official Light Design System)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Ресми ақ/ашық түстер палитрасы / Официальная светлая гамма */
  --color-bg: #f8f9fa;
  --color-bg-alt: #f1f4f8;
  --color-bg-card: #ffffff;
  --color-bg-quote: #faf7f0;
  
  --color-navy: #0f2744;
  --color-navy-dark: #081627;
  --color-navy-light: #1e3a5f;
  
  --color-gold: #b8860b;
  --color-gold-warm: #c59b27;
  --color-gold-light: #fef9e7;
  --color-gold-border: rgba(184, 134, 11, 0.3);
  --color-gold-glow: rgba(184, 134, 11, 0.18);
  
  --color-azure: #0284c7;

  --color-text-primary: #102136;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-gold: #996515;

  --border-gold: 1px solid var(--color-gold-border);
  --border-subtle: 1px solid rgba(15, 39, 68, 0.08);

  --shadow-sm: 0 2px 8px rgba(15, 39, 68, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 39, 68, 0.12);
  --shadow-gold: 0 6px 20px rgba(184, 134, 11, 0.25);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Қалпына келтіру / Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(2, 132, 199, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 0% 80%, rgba(184, 134, 11, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Орнаменттік бөлу сызығы / Орнаментальные разделители */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
}
.ornament-line {
  height: 1.5px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--color-gold-warm), transparent);
}
.ornament-icon {
  width: 40px;
  height: 20px;
  object-fit: contain;
}

/* Навигация / Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(184, 134, 11, 0.25);
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.05);
  transition: var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fdfbf7;
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.15);
}

.brand-logo-wrap img {
  width: 30px;
  height: 30px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-navy);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-gold);
  font-weight: 600;
}

/* Навбар сілтемелері */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--color-gold);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-navy);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Тіл таңдау / Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switch {
  display: flex;
  background: #edf2f7;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: var(--color-navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 39, 68, 0.25);
}

.btn-header-qr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fdfaf3;
  border: 1.5px solid var(--color-gold);
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-header-qr:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-navy);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
}

/* Hero Секциясы / Парадный блок */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.hero-backdrop-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  background: var(--color-gold-light);
  border: 1px solid rgba(184, 134, 11, 0.35);
  color: var(--color-text-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
}

.hero-dates-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.hero-quote-box {
  background: var(--color-bg-quote);
  border-left: 4px solid var(--color-gold);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid rgba(184, 134, 11, 0.15);
  border-left-width: 4px;
}

.hero-quote-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
}

/* Түймелер / Кнопки */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.25);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 39, 68, 0.35);
  background: linear-gradient(135deg, #16365c 0%, #0c1d32 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1.5px solid rgba(184, 134, 11, 0.4);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: #fdfaf3;
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Басты Портрет / Парадный портрет */
.hero-portrait-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame-outer {
  position: relative;
  width: 350px;
  height: 440px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: #ffffff;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(184, 134, 11, 0.15);
}

.portrait-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s ease;
}

.portrait-frame-outer:hover .portrait-image {
  transform: scale(1.03);
}

.portrait-memorial-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 39, 68, 0.95) 0%, rgba(15, 39, 68, 0.65) 70%, transparent 100%);
  padding: 2.2rem 1.2rem 1rem;
  text-align: center;
}

.portrait-ribbon-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.portrait-ribbon-sub {
  font-size: 0.8rem;
  color: #f1f5f9;
}

.portrait-accent-shanyrak {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 68px;
  height: 68px;
  background: #ffffff;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--shadow-md);
}

/* Секциялардың жалпы стилі / Общие стили секций */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

/* Таймлайн / Өмір жолы */
.timeline-section {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.timeline-wrap {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0.8rem 2.8rem;
  margin-bottom: 1.8rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-gold);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.2);
  z-index: 2;
}

.timeline-item.left .timeline-badge {
  right: -22px;
}

.timeline-item.right .timeline-badge {
  left: -22px;
}

.timeline-card {
  background: #ffffff;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
}

.timeline-item.left .timeline-header {
  align-items: flex-end;
}
.timeline-item.right .timeline-header {
  align-items: flex-start;
}

.timeline-year {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-gold);
}

.timeline-date {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Жырлар секциясы / Сборник стихотворений */
.poems-section {
  background: #f7f9fc;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.poems-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-bottom: 2.5rem;
}

.poems-search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.poems-search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.poems-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(15, 39, 68, 0.15);
  border-radius: var(--radius-full);
  padding: 13px 20px 13px 3rem;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.poems-search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.poems-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.cat-tab {
  background: #ffffff;
  border: 1px solid rgba(15, 39, 68, 0.12);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.cat-tab:hover {
  background: #fdfaf3;
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.cat-tab.active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  box-shadow: 0 3px 10px rgba(15, 39, 68, 0.2);
}

.poems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

.poem-card {
  background: #ffffff;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-top: 3.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 134, 11, 0.4);
  border-top-color: var(--color-gold);
}

.poem-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.poem-number {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.poem-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: #fbf6e9;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: var(--radius-full);
  color: var(--color-text-gold);
}

.poem-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.poem-verses {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(184, 134, 11, 0.4);
}

.poem-line {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: #1e293b;
  line-height: 1.5;
}

.poem-desc-ru {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  background: #f8fafc;
  border: 1px solid rgba(15, 39, 68, 0.06);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.poem-desc-ru i {
  color: var(--color-gold);
  margin-right: 4px;
}

.poem-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(15, 39, 68, 0.06);
  padding-top: 0.8rem;
}

.btn-copy-poem {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-poem:hover {
  color: var(--color-navy);
}

.poems-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--color-text-muted);
}
.poems-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
  opacity: 0.7;
}

/* Фотоальбом / Фотогалерея */
.gallery-section {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.gallery-tab {
  background: #f1f5f9;
  border: 1px solid rgba(15, 39, 68, 0.08);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-tab.active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 39, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-overlay i {
  font-size: 2rem;
  color: #ffffff;
  transform: scale(0.8);
  transition: var(--transition-fast);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover .gallery-overlay i {
  transform: scale(1);
}

.gallery-card-info {
  padding: 1.2rem;
}

.gallery-card-info h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 0.3rem;
}

.gallery-card-info p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Видеолар / Видеовоспоминания */
.video-section {
  background: #f7f9fc;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: var(--shadow-md);
}

.video-thumb-wrap {
  position: relative;
  height: 210px;
  background: #0f2744;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-bg {
  transform: scale(1.05);
}

.video-play-icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}

.video-card:hover .video-play-icon {
  transform: scale(1.1);
  background: var(--color-gold);
  color: #ffffff;
}

.video-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.video-info h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.video-info p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.btn-video-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fdfaf3;
  border: 1.5px solid var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.btn-video-open:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
}

/* Футер / Footer */
.site-footer {
  background: #0d2139;
  padding: 3.5rem 0 2.5rem;
  border-top: 3px solid var(--color-gold);
  color: #94a3b8;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.footer-shanyrak {
  width: 50px;
  height: 50px;
}

.footer-memorial-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-quote {
  font-style: italic;
  color: #e2e8f0;
  max-width: 500px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  font-size: 0.85rem;
}

/* Мобильді навигация тартпасы / Mobile Drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  background: #ffffff;
  border-left: 2px solid var(--color-gold);
  z-index: 1600;
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  list-style: none;
  margin-top: 1.5rem;
}

.nav-drawer-link {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 39, 68, 0.06);
}

.nav-drawer-link i {
  color: var(--color-gold);
  width: 20px;
}

/* Модалдар / Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(15, 39, 68, 0.25);
  position: relative;
  overflow: hidden;
}

.modal-header {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-navy);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--color-navy);
}

.modal-body {
  padding: 2rem 1.8rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 39, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #f1f5f9;
  font-size: 0.95rem;
  max-width: 700px;
}

.lightbox-btn-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--color-gold);
  color: #fff;
  font-size: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-btn-close:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

.lightbox-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--color-gold);
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-btn-nav:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

/* Video Tribute Placeholder inside modal */
.video-tribute-player {
  background: #f8fafc;
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.6rem;
  text-align: center;
}

.video-play-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fdfaf3;
  border: 2px solid var(--color-gold);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.4rem;
  box-shadow: var(--shadow-sm);
}

.video-placeholder-inner h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
}

.video-placeholder-inner p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.video-note-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: #0369a1;
}

/* Toast хабарламасы */
.site-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-navy);
  border: 1px solid var(--color-gold);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(15, 39, 68, 0.3);
  z-index: 3000;
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.site-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--color-gold);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   Адаптивтілік / Responsive Design (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-badge {
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-quote-box {
    border-left: none;
    border-top: 4px solid var(--color-gold);
    border-radius: var(--radius-md);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .timeline-wrap::before {
    left: 28px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 68px;
    padding-right: 0.5rem;
    text-align: left !important;
  }
  .timeline-item.left .timeline-header,
  .timeline-item.right .timeline-header {
    align-items: flex-start !important;
  }
  .timeline-badge {
    left: 7px !important;
  }
  .lightbox-btn-nav {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .section-title {
    font-size: 1.95rem;
  }
  .portrait-frame-outer {
    width: 290px;
    height: 380px;
  }
  .portrait-accent-shanyrak {
    width: 54px;
    height: 54px;
    top: -15px;
    right: -15px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .poems-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    height: 66px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
}
