/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Watercolor Theme - NO Black)
   ========================================================================== */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors (Pure black is completely avoided) */
  --color-bg-paper: #FAF8F5;       /* Textured artistic paper canvas */
  --color-text-main: #3E3231;      /* Cozy deep charcoal-plum */
  --color-text-muted: #706261;    /* Soft warm gray-brown */
  
  /* Watercolor Pastel Accents */
  --color-yellow: #FCD581;
  --color-yellow-light: #FDF1D6;
  --color-orange: #F79F79;
  --color-orange-light: #FDE8DE;
  --color-pink: #F6A4B4;
  --color-pink-light: #FCE9ED;
  --color-blue: #A3D9E8;
  --color-blue-light: #E8F5F8;
  --color-teal: #8FC0A9;
  --color-teal-light: #E4F1EB;
  --color-purple: #C8B1E4;
  --color-purple-light: #F2ECFA;
  --color-violet-heading: #9E85B6; /* Even lighter watercolor lilac-violet for rubric headings */

  /* Borders & Shadows */
  --border-width-handdrawn: 2px;
  --color-border: #E8E2D9;
  --shadow-watercolor: 0 8px 30px rgba(112, 98, 97, 0.08);
  --shadow-active: 0 15px 35px rgba(62, 50, 49, 0.12);

  /* Border Radii for organic hand-drawn feel */
  --radius-organic-1: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --radius-organic-2: 20px 255px 20px 225px / 225px 20px 255px 20px;
  --radius-organic-3: 170px 30px 150px 30px / 30px 150px 30px 170px;
  --radius-button: 120px 15px 100px 15px / 15px 95px 15px 110px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Paint Splats Container (prevents layout stretching) */
.paint-splats-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1; /* Below interactive content, above background */
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-paper);
  color: var(--color-text-main);
  line-height: 1.6;
  position: relative;
}

main {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Hide SVG filter container */
.svg-filters-library {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ==========================================================================
   DYNAMIC WATERCOLOR BACKGROUND
   ========================================================================== */
.watercolor-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

/* Textured Paper Grain Overlay */
.paper-texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  filter: url(#paper-grain);
  opacity: 0.25;
}

/* Watercolor Blobs with Distorted Edges */
.watercolor-blob {
  position: absolute;
  width: 45vw;
  height: 45vw;
  min-width: 350px;
  min-height: 350px;
  border-radius: 50%;
  filter: url(#watercolor-distortion) blur(40px);
  mix-blend-mode: multiply;
  opacity: 0.35;
  animation: blobFloat 25s infinite ease-in-out alternate;
}

/* Individual Blobs Placement and Colors */
.blob-yellow {
  background: radial-gradient(circle, var(--color-yellow) 0%, rgba(252, 213, 129, 0) 70%);
  top: -10%;
  left: -10%;
  animation-duration: 28s;
}

.blob-orange {
  background: radial-gradient(circle, var(--color-orange) 0%, rgba(247, 159, 121, 0) 70%);
  bottom: 15%;
  right: -10%;
  animation-duration: 32s;
  animation-delay: -5s;
}

.blob-pink {
  background: radial-gradient(circle, var(--color-pink) 0%, rgba(246, 164, 180, 0) 70%);
  top: 30%;
  left: 55%;
  animation-duration: 24s;
  animation-delay: -10s;
}

.blob-blue {
  background: radial-gradient(circle, var(--color-blue) 0%, rgba(163, 217, 232, 0) 70%);
  bottom: -15%;
  left: 10%;
  animation-duration: 35s;
  animation-delay: -7s;
}

.blob-teal {
  background: radial-gradient(circle, var(--color-teal) 0%, rgba(143, 192, 169, 0) 70%);
  top: 40%;
  left: -15%;
  animation-duration: 30s;
  animation-delay: -3s;
}

.blob-purple {
  background: radial-gradient(circle, var(--color-purple) 0%, rgba(200, 177, 228, 0) 70%);
  top: -15%;
  right: 15%;
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(30px, -40px) scale(1.08) rotate(15deg);
  }
  66% {
    transform: translate(-20px, 30px) scale(0.92) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

/* ==========================================================================
   INTERACTIVE WATERCOLOR SPLATS
   ========================================================================== */
.paint-splat {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: url(#splat-distortion) blur(1px);
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.1);
  animation: splatFadeIn 4.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Tiny droplets around main splat */
.paint-droplet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: url(#splat-distortion);
  mix-blend-mode: multiply;
  opacity: 0;
  animation: dropletFadeIn 4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes splatFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) rotate(0deg);
  }
  5% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1) rotate(var(--rotation, 0deg));
  }
  60% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05) rotate(var(--rotation, 0deg));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) rotate(var(--rotation, 0deg));
  }
}

@keyframes dropletFadeIn {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
  8% {
    opacity: 0.7;
    transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(1);
  }
  70% {
    opacity: 0.6;
    transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(0.8);
  }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
}

a {
  color: var(--color-text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-orange);
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--color-orange);
}

/* ==========================================================================
   CONTAINERS & BUTTONS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border: var(--border-width-handdrawn) solid var(--color-text-main);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-bg-paper);
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background-color: var(--color-bg-paper);
  color: var(--color-orange);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 5px 15px rgba(247, 159, 121, 0.3);
}

.btn-secondary {
  background-color: var(--color-blue-light);
  color: var(--color-text-main);
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background-color: var(--color-blue);
  color: var(--color-bg-paper);
  transform: translateY(-3px) rotate(1deg);
  box-shadow: 0 5px 15px rgba(163, 217, 232, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(232, 226, 217, 0.5);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.main-header.shrink {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(112, 98, 97, 0.04);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}


.logo-text {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 8px 20px 8px 16px;
  z-index: 1;
  isolation: isolate;
}

/* Rainbow shimmer flowing left-to-right */
.logo-text::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -40px;
  right: -40px;
  bottom: -20px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #FCD581 10%,
    #F79F79 20%,
    #F6A4B4 30%,
    #C8B1E4 40%,
    #A3D9E8 50%,
    #8FC0A9 60%,
    #FCD581 70%,
    #F79F79 80%,
    #F6A4B4 90%,
    transparent 100%
  );
  background-size: 300% 100%;
  z-index: -2;
  opacity: 0.5;
  filter: blur(14px);
  pointer-events: none;
  animation: shimmerFlow 4s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(ellipse 70% 70% at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 80%);
}

@keyframes shimmerFlow {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Desktop Nav links */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.desktop-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 4px 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-text-main);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-yellow);
  border-radius: var(--radius-organic-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header actions: lang & button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.lang-btn {
  cursor: pointer;
  padding: 2px 4px;
  transition: var(--transition-smooth);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--color-text-main);
}

.lang-btn.active {
  border-bottom: 2px solid var(--color-pink);
}

.lang-separator {
  color: #DDD;
}

.btn-header {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Mobile Nav Menu Drawer */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -340px; /* Fully off-screen, accounting for max-width (320px) + shadow */
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-bg-paper);
  box-shadow: -10px 0 30px rgba(112, 98, 97, 0.1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  visibility: hidden; /* Prevent mobile browsers from stretching layout */
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
}

.mobile-nav-menu.open {
  right: 0;
  visibility: visible;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  z-index: 1100;
  transition: var(--transition-bounce);
}

.mobile-menu-close:hover {
  color: var(--color-orange);
  transform: scale(1.15) rotate(90deg);
}

.mobile-nav-links ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 24px;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text-main);
  display: block;
}

.mobile-nav-links a:hover {
  color: var(--color-orange);
  transform: translateX(5px);
}

.mobile-enroll-btn {
  margin-top: 24px;
  text-align: center;
}

/* Active hamburger animation */
.mobile-menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden; /* Prevent absolute decorators from stretching viewport on mobile */
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge-accent {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-main);
  background-color: var(--color-yellow-light);
  padding: 8px 16px;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-yellow);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(to right, var(--color-orange), var(--color-yellow), var(--color-teal), var(--color-blue), var(--color-purple), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.highlight-icon {
  font-size: 1.25rem;
}

/* Hand-painted frame for the Hero Image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-frame {
  position: relative;
  padding: 16px;
  background-color: #FFF;
  box-shadow: var(--shadow-watercolor);
  border-radius: var(--radius-organic-1);
  border: 3px solid var(--color-border);
  max-width: 460px;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-organic-1);
  display: block;
}

/* Decorative absolute elements on hero image */
.frame-splat-decorator {
  position: absolute;
  pointer-events: none;
}

.splat-1 {
  width: 100px;
  height: 100px;
  top: -40px;
  right: -30px;
  background-color: var(--color-blue);
  filter: url(#splat-distortion) blur(1px);
  opacity: 0.5;
  border-radius: 50%;
  z-index: -1;
}

.splat-2 {
  width: 120px;
  height: 120px;
  bottom: -50px;
  left: -40px;
  background-color: var(--color-pink);
  filter: url(#splat-distortion) blur(1px);
  opacity: 0.45;
  border-radius: 50%;
  z-index: -1;
}

.star-decorator-1 {
  color: var(--color-yellow);
  font-size: 2rem;
  top: 15px;
  left: -25px;
  transform: rotate(-15deg);
}

.star-decorator-2 {
  color: var(--color-orange);
  font-size: 1.5rem;
  bottom: 40px;
  right: -25px;
  transform: rotate(25deg);
}

.heart-decorator {
  color: var(--color-pink);
  font-size: 1.8rem;
  top: -15px;
  left: 35%;
  transform: rotate(10deg);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--color-violet-heading);
}

.watercolor-line {
  width: 140px;
  height: 30px;
  margin: 12px auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' width='120' height='30'%3E%3Cpath d='M 10,20 Q 50,15 110,22' fill='none' stroke='%23FFC0CB' stroke-opacity='0.2' stroke-width='8' stroke-linecap='round' /%3E%3Cg opacity='0.25'%3E%3Cpath d='M 5,15 C 15,13 45,11 70,10 L 70,20 C 45,19 15,17 5,15 Z' fill='url(%23brush-handle-grad)' /%3E%3Crect x='70' y='10' width='10' height='10' rx='1.5' fill='url(%23ferrule-grad)' /%3E%3Cpath d='M 80,10 C 83,3 93,2 101,9 C 108,12 114,14 120,15 C 114,16 108,18 101,21 C 93,28 83,27 80,20 Z' fill='url(%23bristles-grad)' /%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='brush-handle-grad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%238E5A32' /%3E%3Cstop offset='100%25' stop-color='%23D7A15C' /%3E%3C/linearGradient%3E%3ClinearGradient id='ferrule-grad' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23E0E0E0' /%3E%3Cstop offset='50%25' stop-color='%23B0B0B0' /%3E%3Cstop offset='100%25' stop-color='%23909090' /%3E%3C/linearGradient%3E%3ClinearGradient id='bristles-grad' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23FFD3DA' /%3E%3Cstop offset='40%25' stop-color='%23FFB7C5' /%3E%3Cstop offset='100%25' stop-color='%23F6A4B4' /%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-text-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.about-text-content blockquote {
  margin-top: 32px;
}

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

.feature-card {
  padding: 32px;
  background-color: #FFF;
  border: var(--border-width-handdrawn) solid var(--color-border);
  box-shadow: var(--shadow-watercolor);
  transition: var(--transition-bounce);
}

.feature-yellow {
  border-radius: var(--radius-organic-1);
  border-color: var(--color-yellow);
}

.feature-yellow:hover {
  transform: translateY(-5px) rotate(-1deg);
  border-color: var(--color-orange);
}

.feature-pink {
  border-radius: var(--radius-organic-2);
  border-color: var(--color-pink);
}

.feature-pink:hover {
  transform: translateY(-5px) rotate(1.5deg);
  border-color: var(--color-orange);
}

.feature-blue {
  border-radius: var(--radius-organic-2);
  border-color: var(--color-blue);
}

.feature-blue:hover {
  transform: translateY(-5px) rotate(-1.5deg);
  border-color: var(--color-teal);
}

.feature-teal {
  border-radius: var(--radius-organic-1);
  border-color: var(--color-teal);
}

.feature-teal:hover {
  transform: translateY(-5px) rotate(1deg);
  border-color: var(--color-blue);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   CLASSES / DIRECTIONS SECTION
   ========================================================================== */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.class-card {
  background-color: #FFF;
  border: var(--border-width-handdrawn) solid var(--color-border);
  box-shadow: var(--shadow-watercolor);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
  position: relative;
}

.card-yellow {
  border-radius: var(--radius-organic-1);
  border-color: var(--color-yellow);
}

.card-yellow:hover {
  transform: translateY(-8px) rotate(-0.5deg);
}

.card-pink {
  border-radius: var(--radius-organic-2);
  border-color: var(--color-pink);
}

.card-pink:hover {
  transform: translateY(-8px) rotate(1deg);
}

.card-blue {
  border-radius: var(--radius-organic-2);
  border-color: var(--color-blue);
}

.card-blue:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.card-teal {
  border-radius: var(--radius-organic-1);
  border-color: var(--color-teal);
}

.card-teal:hover {
  transform: translateY(-8px) rotate(0.5deg);
}

.class-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  background-color: rgba(250, 248, 245, 0.9);
  border: 1px solid var(--color-text-muted);
  border-radius: 30px;
  z-index: 10;
}

.class-image-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Pastel backgrounds for cards headers */
.card-yellow .class-image-placeholder { background-color: var(--color-yellow-light); }
.card-pink .class-image-placeholder { background-color: var(--color-pink-light); }
.card-blue .class-image-placeholder { background-color: var(--color-blue-light); }
.card-teal .class-image-placeholder { background-color: var(--color-teal-light); }

.class-image-placeholder svg {
  height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 4px 10px rgba(112, 98, 97, 0.08));
  transition: transform 0.5s ease;
}

.class-card:hover .class-image-placeholder svg {
  transform: scale(1.1) rotate(-3deg);
}

.class-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.class-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.class-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.class-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--color-border);
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ==========================================================================
   GALLERY SECTION (Aliska-style: main image + thumbnails)
   ========================================================================== */
.gallery-section {
  position: relative;
}

.product-view-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  animation: galleryFadeIn 0.6s ease-out forwards;
}

@keyframes galleryFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.product-card-glass {
  background-color: #FFF;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-organic-1);
  padding: 24px;
  box-shadow: var(--shadow-watercolor);
  width: 100%;
}

/* Main large image */
.product-image-container {
  width: 100%;
  border-radius: var(--radius-organic-2);
  overflow: hidden;
  border: 2px solid var(--color-border);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background-color: var(--color-bg-paper);
}

.product-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-image:hover {
  transform: scale(1.02);
}

/* Thumbnail grid */
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.product-gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(245, 245, 248, 0.3);
  border-radius: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(200, 177, 228, 0.3);
  border-color: var(--color-purple);
}

.product-gallery-thumb.active {
  border-color: var(--color-purple);
  box-shadow: 0 4px 16px rgba(200, 177, 228, 0.4);
}

/* Artwork info below gallery */
.gallery-artwork-info {
  text-align: center;
  padding: 4px 0 0;
}

.gallery-artwork-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text-main);
}

.gallery-artwork-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
  animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  cursor: default;
  user-select: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-main);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-main);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.lightbox-nav.hidden-arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 600;
}


/* ==========================================================================
   CAROUSEL GALLERY SECTION
   ========================================================================== */
.carousel-gallery-section {
  position: relative;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 0;
  max-width: 760px;
  position: relative;
}

.carousel-track-container {
  width: 100%;
  overflow: hidden;
  background-color: #FFF;
  border-radius: var(--radius-organic-1);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-watercolor);
  padding: 24px;
}

.carousel-track {
  list-style: none;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-slide {
  min-width: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.slide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.artwork-frame {
  width: 100%;
  height: 380px;
  background-color: var(--color-bg-paper);
  border-radius: var(--radius-organic-2);
  border: 2px solid var(--color-border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.slide-card:hover .gallery-img {
  transform: scale(1.05) rotate(1deg);
}

.artwork-info {
  margin-top: 20px;
}

.artwork-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.artwork-author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.carousel-btn {
  background-color: #FFF;
  border: var(--border-width-handdrawn) solid var(--color-text-main);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  color: var(--color-text-main);
  box-shadow: var(--shadow-watercolor);
}

.carousel-btn:hover {
  background-color: var(--color-yellow-light);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--color-pink);
  transform: scale(1.25);
}

/* ==========================================================================
   SCHEDULE AND PRICING
   ========================================================================== */
.schedule-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.table-container {
  background-color: #FFF;
  border: var(--border-width-handdrawn) solid var(--color-border);
  box-shadow: var(--shadow-watercolor);
  padding: 40px;
  min-width: 0; /* Prevent grid item from stretching beyond parent */
}

.schedule-table-wrapper {
  border-radius: var(--radius-organic-1);
  border-color: var(--color-blue);
}

.pricing-table-wrapper {
  border-radius: var(--radius-organic-2);
  border-color: var(--color-purple);
}

.table-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-violet-heading);
}

.responsive-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-main);
}

td {
  padding: 16px;
  border-bottom: 1px dashed rgba(232, 226, 217, 0.6);
  color: var(--color-text-muted);
}

tr:last-child td {
  border-bottom: none;
}

.group-name, .price-name {
  font-weight: 600;
  color: var(--color-text-main);
}

.price-amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-orange);
}

.pricing-notes {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ==========================================================================
   INTERACTIVE TIP BANNER
   ========================================================================== */
.click-splat-tip-container {
  display: flex;
  justify-content: center;
  margin: 20px auto 40px;
}

.click-splat-tip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-yellow-light);
  border: 1px dashed var(--color-yellow);
  padding: 12px 24px;
  border-radius: var(--radius-organic-2);
  max-width: 600px;
}

.click-splat-tip span {
  font-size: 1.5rem;
}

.click-splat-tip p {
  font-size: 0.85rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

/* ==========================================================================
   CONTACT & ENROLLMENT SECTION
   ========================================================================== */
.grid-contacts {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: stretch;
}

.form-container {
  background-color: #FFF;
  border: var(--border-width-handdrawn) solid var(--color-orange);
  border-radius: var(--radius-organic-1);
  box-shadow: var(--shadow-watercolor);
  padding: 48px;
}

.form-header {
  margin-bottom: 32px;
}

.badge-accent-form {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-orange);
  background-color: var(--color-orange-light);
  padding: 6px 12px;
  border-radius: var(--radius-button);
  margin-bottom: 12px;
}

.form-card-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: var(--color-violet-heading);
}

.form-card-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.enroll-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  background-color: var(--color-bg-paper);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(247, 159, 121, 0.15);
  background-color: #FFF;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
}

.form-status-message {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}

.form-status-message.success {
  color: var(--color-teal);
}

.form-status-message.error {
  color: var(--color-pink);
}

/* Contacts Info Card styling */
.contacts-info-card {
  background-color: #FFF;
  border: var(--border-width-handdrawn) solid var(--color-teal);
  border-radius: var(--radius-organic-2);
  box-shadow: var(--shadow-watercolor);
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.contacts-card-header {
  margin-bottom: 32px;
}

.contacts-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: var(--color-violet-heading);
}

.contacts-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.contact-item-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: var(--color-teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-teal);
}

.contact-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.contact-val-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.contact-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-teal);
  border-bottom: 1px dashed var(--color-teal);
}

.contact-link:hover {
  color: var(--color-orange);
  border-bottom-color: var(--color-orange);
}

.facebook-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-blue-light);
  color: var(--color-text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--color-blue);
  width: fit-content;
}

.facebook-link-btn:hover {
  background-color: var(--color-blue);
  color: var(--color-bg-paper);
}

/* Watercolor map illustration */
.map-placeholder-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-watercolor);
  margin-top: auto;
}

.map-illustration {
  width: 100%;
  display: block;
  background-color: var(--color-bg-paper);
}

.map-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-pulse {
  transform-origin: center;
  animation: mapPulseAnim 2.5s infinite ease-out;
}

@keyframes mapPulseAnim {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.map-overlay-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 248, 245, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.map-placeholder-wrapper:hover .map-overlay-button {
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: rgba(250, 248, 245, 0.9);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
  z-index: 10;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.footer-logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.footer-logo-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 380px;
}

.footer-section-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--color-yellow);
  border-radius: var(--radius-organic-1);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.footer-hours p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.footer-special-note {
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 226, 217, 0.5);
  padding: 24px 0;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SCROLL REVEAL STYLES (Progressive Enhancement)
   ========================================================================== */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-highlights {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 18px;
  }

  .frame-splat-decorator {
    display: none;
  }

  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .desktop-nav {
    display: none;
  }

  .btn-header {
    display: none; /* In favour of mobile menu drawer button */
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

  .product-card-glass {
    padding: 16px;
    border-radius: 24px;
  }

  .product-image {
    max-height: 350px;
  }

  .product-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .table-container, .form-container, .contacts-info-card {
    padding: 30px 20px;
  }

  .table-container th,
  .table-container td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .carousel-btn {
    display: none;
  }

  .carousel-track-container {
    padding: 16px;
  }

  .artwork-frame {
    height: 280px;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-container {
    padding: 12px 16px;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }

  .header-actions {
    gap: 12px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }

  .table-container, .form-container, .contacts-info-card {
    padding: 24px 16px;
  }

  .table-container th,
  .table-container td {
    padding: 8px 6px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   VIKERKAAR ADMIN EDITOR (логин + правка галерей)
   ========================================================================== */

/* Плавающая панель управления */
.viker-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 6000;
  display: none;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-active);
}
.viker-toolbar.visible { display: flex; }

.viker-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.viker-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-watercolor); }
.viker-btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
.viker-btn-primary {
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
  color: #fff;
  border-color: transparent;
}
.viker-del { color: #b5453f; }
.viker-move { padding: 9px 12px; }

/* Видимость кнопок панели в зависимости от режима */
.viker-toolbar .viker-tb-save,
.viker-toolbar .viker-tb-cancel,
.viker-toolbar .viker-tb-logout { display: none; }
.viker-toolbar.editing .viker-tb-edit { display: none; }
.viker-toolbar.editing .viker-tb-save,
.viker-toolbar.editing .viker-tb-cancel,
.viker-toolbar.editing .viker-tb-logout { display: inline-flex; }

/* В режиме правки прячем обычный вид галерей и таблиц */
body.viker-edit .gallery-section .product-view-container { display: none; }
body.viker-edit .carousel-container,
body.viker-edit .carousel-dots { display: none; }
body.viker-edit .schedule-section .schedule-grid { display: none; }

/* Сетка редактирования */
.viker-edit-grid {
  margin-top: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed var(--color-orange);
  border-radius: 20px;
}
.viker-edit-hint {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}
.viker-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
/* Таблицы (расписание/цены): строки на всю ширину */
.viker-cards-rows { grid-template-columns: 1fr; }
.viker-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-watercolor);
}
.viker-card-thumb { position: relative; }
.viker-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-bg-paper);
  display: block;
}
.viker-replace {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 0.82rem;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
}
.viker-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.viker-field { display: flex; flex-direction: column; gap: 3px; }
.viker-field-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.viker-in {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text-main);
  background: var(--color-bg-paper);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 8px 10px;
  width: 100%;
}
.viker-in:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-light);
}
.viker-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.viker-card-actions .viker-del { margin-left: auto; }

/* Модалка логина */
.viker-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(62, 50, 49, 0.5);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.viker-login-overlay[hidden] { display: none; }
.viker-login-box {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-active);
}
.viker-login-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text-main);
  margin: 0 0 6px;
  text-align: center;
}
.viker-login-err { color: #b5453f; font-size: 0.85rem; min-height: 1em; text-align: center; }
.viker-login-close { background: transparent; border: none; }

/* Тост */
.viker-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  z-index: 8000;
  background: var(--color-text-main);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-active);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.viker-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .viker-toolbar { right: 10px; bottom: 10px; padding: 8px; }
  .viker-btn { font-size: 0.85rem; padding: 8px 11px; }
  .viker-cards { grid-template-columns: 1fr; }
  .viker-card-fields { grid-template-columns: 1fr; }
}

/* Ссылка в копирайте футера */
.copyright a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.copyright a:hover { color: var(--color-orange); }
