/* ============================================
   Modern Light Theme for ndrozdova.ru
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #0D9488;
  --color-primary-dark: #0F766E;
  --color-primary-light: #CCFBF1;
  --color-secondary: #0891B2;
  --color-secondary-light: #CFFAFE;
  --color-accent: #F59E0B;
  --color-accent-light: #FEF3C7;

  --color-bg: #FFFFFF;
  --color-bg-alt: #FFFFFF;
  --color-bg-card: #FFFFFF;
  --color-bg-soft: #F0FDFA;

  --color-text: #1F2937;
  --color-text-secondary: #6B7280;
  --color-text-muted: #9CA3AF;
  --color-text-inverse: #FFFFFF;

  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-colored: 0 4px 14px rgba(13, 148, 136, 0.15);
  --shadow-colored-lg: 0 10px 25px rgba(13, 148, 136, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-colored);
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored-lg);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  padding: 16px 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-primary);
  overflow: hidden;
  transition: transform var(--transition);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.main-nav {
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-alt);
}

.nav-list {
  display: flex;
  gap: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  position: relative;
  white-space: nowrap;
}

.nav-list a i {
  font-size: 14px;
  transition: transform var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  background: var(--color-bg-soft);
  border-bottom-color: var(--color-primary);
}

.nav-list a:hover i,
.nav-list a.active i {
  transform: translateY(-1px);
}

.nav-list a.active {
  font-weight: 600;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
  min-height: 60vh;
  padding: 48px 0 64px;
}

/* Page Header / Hero */
.page-hero {
  background: linear-gradient(135deg, var(--color-hero-from), var(--color-hero-to));
  padding: 60px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08), transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.08), transparent 70%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Sections
   ============================================ */
.section {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

.section-title-center {
  text-align: center;
}
.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   Cards Grid
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.card-icon.purple {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.card-icon.pink {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
}
.card-icon.amber {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.card-icon.green {
  background: #D1FAE5;
  color: #059669;
}
.card-icon.blue {
  background: #DBEAFE;
  color: #3B82F6;
}
.card-icon.teal {
  background: #CCFBF1;
  color: #0D9488;
}
.card-icon.cyan {
  background: #CFFAFE;
  color: #0891B2;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
  transition: gap var(--transition);
}

.card-link i {
  font-size: 12px;
  transition: transform var(--transition);
}

.card-link:hover i {
  transform: translateX(4px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-colored);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored-lg);
  color: var(--color-text-inverse);
}

.btn-secondary {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-light);
}
.btn-secondary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ============================================
   Content Cards (Blog posts, News, etc.)
   ============================================ */
.content-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.content-card-body {
  padding: 28px;
}

.content-card .card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.content-card .card-meta i {
  margin-right: 4px;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.content-card h2 a {
  color: var(--color-text);
}
.content-card h2 a:hover {
  color: var(--color-primary);
}

.content-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.content-card .read-more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
}

.content-card .read-more i {
  font-size: 12px;
  transition: transform var(--transition);
}
.content-card .read-more:hover i {
  transform: translateX(4px);
}

/* ============================================
   Hero (Home page)
   ============================================ */
.home-hero {
  background: linear-gradient(135deg, var(--color-hero-from) 0%, var(--color-hero-to) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08), transparent 70%);
  border-radius: 50%;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.06), transparent 70%);
  border-radius: 50%;
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero .hero-icon {
  font-size: 56px;
  color: var(--color-primary);
  margin-bottom: 24px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-hero .hero-subtitle {
  font-size: 20px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.home-hero .hero-quote {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 32px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.8);
}

.home-hero .hero-quote i {
  color: var(--color-primary);
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.home-hero .hero-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.6;
}

/* ============================================
   Feature Grid (Rubrics preview on home)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ============================================
   Timeline (Homepage)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   About Page
   ============================================ */

/* Welcome Block (Home page) */
.welcome-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-direction: column;
  text-align: center;
}

.welcome-photo {
  /* Empty - kept for semantic structure */
}

.author-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-colored);
  transition: transform var(--transition-slow), box-shadow var(--transition);
}

.author-photo:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-colored-lg);
}

/* About Page Hero Block */
.about-hero-block {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.about-photo {
  flex-shrink: 0;
}

.about-main-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition);
}

.about-main-photo:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.about-content .about-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--color-primary);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* Content Card Image */
.content-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.content-card:hover .content-card-image img {
  transform: scale(1.08);
}

/* ============================================
   Booking Form (Запись / бронирование)
   ============================================ */
.booking-section {
  max-width: 600px;
  margin: 56px auto 0;
}

.booking-divider {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.booking-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  z-index: 0;
}

.booking-divider i {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  padding: 0 16px;
  font-size: 24px;
  color: var(--color-primary);
}

.booking-form-container {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all var(--transition);
}

.booking-form-container:hover {
  box-shadow: var(--shadow-md);
}

.booking-form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.booking-form-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.booking-form {
  text-align: left;
}

.booking-form .form-group {
  margin-bottom: 18px;
}

.booking-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.booking-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all var(--transition);
  color: var(--color-text);
}

.booking-form .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  background: var(--color-bg-alt);
}

.booking-form .booking-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.booking-success {
  text-align: center;
  padding: 32px 16px;
}

.booking-success-icon {
  font-size: 56px;
  color: #059669;
  margin-bottom: 12px;
  animation: bookingPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bookingPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.booking-success h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #065F46;
  margin-bottom: 8px;
}

.booking-success p {
  font-size: 15px;
  color: #065F46;
  line-height: 1.6;
}

.booking-error {
  background: #FEE2E2;
  color: #991B1B;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
  text-align: left;
}

.booking-error p {
  margin: 0;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.contact-info-card i {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.contact-info-card p {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.contact-info-card a {
  font-weight: 600;
  font-size: 18px;
}

.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all var(--transition);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  background: var(--color-bg-alt);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-soft);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item .gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
}

.gallery-item .gallery-overlay p {
  font-size: 13px;
  opacity: 0.9;
}

/* ============================================
   Booking Slots (Checkbox Time Slots)
   ============================================ */
.slots-section {
  margin-bottom: 28px;
  text-align: left;
}

.slots-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.slots-section-title i {
  color: var(--color-primary);
  margin-right: 8px;
}

.slot-day-group {
  margin-bottom: 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.slot-day-group:hover {
  box-shadow: var(--shadow-sm);
}

.slot-day-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.slot-day-header i {
  color: var(--color-primary);
  font-size: 16px;
}

.slot-day-date {
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-left: 4px;
}

.slot-items {
  padding: 8px;
}

.slot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.slot-item:last-child {
  margin-bottom: 0;
}

.slot-item:hover:not(.slot-full) {
  border-color: var(--color-primary);
  background: rgba(13, 148, 136, 0.02);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.06);
}

.slot-item.slot-full {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-bg-soft);
}

.slot-item.slot-full:hover {
  border-color: var(--color-border);
  box-shadow: none;
}

.slot-check {
  position: relative;
  flex-shrink: 0;
}

.slot-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.slot-check .slot-checkmark {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 5px;
  transition: all var(--transition);
  position: relative;
}

.slot-check .slot-checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: all var(--transition);
}

.slot-check input[type="checkbox"]:checked + .slot-checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.slot-check input[type="checkbox"]:checked + .slot-checkmark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.slot-check input[type="checkbox"]:disabled + .slot-checkmark {
  background: var(--color-bg-soft);
  border-color: var(--color-border);
  opacity: 0.5;
}

.slot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-time {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.slot-title {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.slot-capacity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.slot-capacity-bar {
  width: 40px;
  height: 5px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.slot-capacity-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.slot-capacity-fill.free {
  background: #059669;
}

.slot-capacity-fill.medium {
  background: #D97706;
}

.slot-capacity-fill.full {
  background: #EF4444;
}

.slot-capacity-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.slot-capacity-text.text-full {
  color: #EF4444;
}

.slot-capacity-text i {
  margin-right: 2px;
}

.slots-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.slots-hint i {
  margin-right: 4px;
  color: var(--color-primary);
}

.slots-empty {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 20px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
}

.slots-empty i {
  font-size: 32px;
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-bottom: 8px;
}

.slots-empty p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.booking-fields-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.booking-fields-divider::before,
.booking-fields-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.booking-fields-divider span {
  white-space: nowrap;
}

/* ============================================
   Empty state / Not found
   ============================================ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state i {
  font-size: 56px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-secondary);
  font-size: 16px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 0;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-col p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.footer-quote {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.footer-quote i {
  color: var(--color-primary);
  margin-bottom: 6px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.footer-links a i {
  font-size: 12px;
  width: 16px;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-links a:hover i {
  transform: translateX(3px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-contact i {
  color: var(--color-primary);
  width: 16px;
}

.footer-contact a {
  color: var(--color-primary);
  font-weight: 500;
}

.footer-social {
  margin-top: 16px;
}

.footer-social p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-made-with i {
  color: var(--color-secondary);
  margin: 0 4px;
}

/* ============================================
   Poetry Page
   ============================================ */
.poem-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  text-align: center;
  transition: all var(--transition);
}

.poem-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.poem-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
}

.poem-card .poem-content {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 2;
  color: var(--color-text-secondary);
  white-space: pre-line;
  max-width: 600px;
  margin: 0 auto;
}

.poem-card .poem-date {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 20px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs i {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-hero-block {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .main-nav.open {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border-light);
    border-bottom-width: 1px;
  }

  .home-hero h1 {
    font-size: 32px;
  }

  .home-hero {
    padding: 48px 0;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .main-content {
    padding: 24px 0 40px;
  }

  .contact-form {
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero-block {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .about-main-photo {
    width: 220px;
    height: 280px;
  }

  .author-photo {
    width: 160px;
    height: 160px;
  }

  .content-card-image {
    height: 180px;
  }

  .poem-card {
    padding: 24px;
  }

  .home-hero .hero-quote {
    padding: 16px 20px;
  }

  .home-hero .hero-quote p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .logo-title {
    font-size: 17px;
  }

  .about-main-photo {
    width: 180px;
    height: 230px;
  }

  .content-card-image {
    height: 160px;
  }
}

/* ============================================
   Dropdown Menu (Rubrics)
   ============================================ */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown .dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform var(--transition);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
  padding: 8px 0;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: none !important;
  white-space: nowrap;
  transition: all var(--transition);
}

.dropdown-menu a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  padding-left: 24px;
}

.dropdown-menu a i {
  font-size: 14px;
  width: 18px;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .nav-item.has-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    background: var(--color-bg-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav-item.has-dropdown.open .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-menu a {
    padding-left: 48px;
  }
}
