/* ===== Design Tokens ===== */
:root {
  --bg: #FAF6EF;
  --bg-section: #F2EBDF;
  --bg-card: #FFFDF8;
  --bg-dark-section: #1a1816;
  --text: #3A2E22;
  --text-secondary: #6E5E4B;
  --text-muted: #A2917C;
  --accent: #B08D4F;
  --accent-light: #E6D5B0;
  --accent-dark: #A47F3F;
  --border: rgba(176, 141, 79, 0.22);
  --border-strong: rgba(176, 141, 79, 0.45);
  --shadow-sm: 0 2px 12px rgba(90,70,40,0.07);
  --shadow-md: 0 8px 30px rgba(90,70,40,0.11);
  --shadow-lg: 0 20px 60px rgba(90,70,40,0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.05em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== Typography ===== */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: 0.04em; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 0.5em;
  letter-spacing: 0.03em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 300;
}
.accent { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 44px; width: auto; transition: 0.4s var(--ease); }
.navbar.scrolled .nav-logo img { height: 34px; }

/* Text-only logo variant */
.nav-logo-text {
  font-family: 'Cormorant Garant', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-logo-text:hover { color: var(--accent-dark); }
body.night-mode .nav-logo-text { color: #F0E8D8; }


.nav-links { display: flex; gap: 32px; list-style: none; margin-left: auto; }

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  font-weight: 400;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent-dark);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
body.night-mode .nav-links a { color: rgba(240, 232, 216, 0.7); }
body.night-mode .nav-links a:hover { color: #F0E8D8; }
body.night-mode .nav-burger span { background: #F0E8D8; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* ===== Hero — Interactive Painting Board ===== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-sticky {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Watercolor Canvas Board ===== */
.watercolor-canvas-board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FCFAF7;
  overflow: hidden;
}

/* ===== 3D Gallery WebGL Container ===== */
.three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
  touch-action: none;
}

.gallery-hud {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 100;
  pointer-events: auto;
}

.hud-btn {
  background: rgba(252, 250, 247, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 168, 130, 0.4);
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1E2A2B;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
}

.hud-btn:hover {
  background: #C4A882;
  color: #FCFAF7;
  border-color: #C4A882;
  box-shadow: 0 6px 22px rgba(196, 168, 130, 0.35);
  transform: translateY(-2px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Artist name — top-left, davidlee.studio style ── */
.hero-artist-name {
  position: absolute;
  top: 88px;
  left: 160px;
  pointer-events: auto;
}
.hero-artist-line1,
.hero-artist-line2 {
  font-family: 'Cormorant Garant', 'Cormorant', Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F5F0E8;
  text-shadow: 0 2px 14px rgba(35, 28, 18, 0.55), 0 0 4px rgba(35, 28, 18, 0.3);
  line-height: 1.1;
  margin: 0;
  opacity: 0;
  animation: fadeInDownTitle 1s ease forwards 0.4s;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}
.hero-artist-line2 {
  animation-delay: 0.52s;
}
.hero-artist-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 245, 230, 0.62);
  text-shadow: 0 1px 10px rgba(35, 28, 18, 0.5);
  margin-top: 8px;
  opacity: 0;
  animation: fadeInDownTitle 1s ease forwards 0.7s;
  transition: color 0.8s ease;
}

/* Night-mode text colours — toggled via body.night-mode */
body.night-mode .hero-artist-line1,
body.night-mode .hero-artist-line2 { color: #F5F0E8; text-shadow: 0 0 20px rgba(255,200,100,0.18); }
body.night-mode .hero-artist-sub   { color: rgba(255,245,230,0.45); }

body.night-mode .hero-nav-btn {
  background: rgba(20,16,12,0.65);
  border-color: rgba(255,200,120,0.3);
}
body.night-mode .hero-nav-text { color: #F0E8D8; }
body.night-mode .hero-nav-arrow,
body.night-mode .hero-nav-end  { color: rgba(255,200,120,0.6); }

/* ── Bottom navigation buttons — BOTTOM RIGHT ── */
.hero-bottom-nav {
  position: absolute;
  bottom: 48px;
  right: 44px;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
  opacity: 0;
  animation: fadeInDownTitle 1s ease forwards 0.9s;
}
.hero-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgba(90, 79, 68, 0.22);
  border-radius: 40px;
  background: rgba(252, 250, 247, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-width: fit-content;
  min-width: 0;
}
.hero-nav-btn:hover {
  background: rgba(196, 168, 130, 0.9);
  border-color: #C4A882;
  transform: translateX(-4px);
}
.hero-nav-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  transition: color 0.3s;
}
.hero-nav-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1E2A2B;
  transition: color 0.3s;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}
.hero-nav-end {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}
.hero-nav-btn:hover .hero-nav-arrow,
.hero-nav-btn:hover .hero-nav-text,
.hero-nav-btn:hover .hero-nav-end {
  color: #FCFAF7;
}
.hero-nav-btn:hover .hero-nav-end {
  transform: translateX(-3px);
}


.hero-hint {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0;
}


.brush-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-dark);
  animation: brushWiggle 3s ease-in-out infinite;
}

.scroll-down {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
  transition: color 0.3s;
  margin: 0;
  pointer-events: auto;
}

.scroll-down:hover {
  color: var(--text);
}

.scroll-down svg {
  width: 28px;
  height: 28px;
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  animation: fadeInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-delayed {
  opacity: 0;
  animation: fadeInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.3s;
}

.animate-fade-in-delayed2 {
  opacity: 0;
  animation: fadeInDown 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.6s;
}

.animate-fade-in-delayed3 {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards 1s;
}

@keyframes fadeInDownTitle {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDownTagline {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

@keyframes brushWiggle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== About Section ===== */
.about { padding: 120px 0; }

.about-content {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo-wrapper img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.about-photo-wrapper:hover img { transform: scale(1.03); }

.about-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 300;
}

.about-services-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.clickable-about-link {
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.clickable-about-link:hover {
  transform: translateX(6px);
  opacity: 0.85;
}

.clickable-about-link:hover .ico {
  background: var(--text);
  color: var(--bg);
}

.about-services-list li .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.about-services-list li .ico svg { width: 18px; height: 18px; }

.about-features {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}

.about-feature { text-align: center; }

.about-feature .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-dark);
  display: block;
}

.about-feature .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Studio Gallery ===== */
.studio { padding: 100px 0 120px; background: var(--bg-section); }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.studio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.studio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

.studio-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,24,22,0.7) 100%);
  opacity: 0; transition: opacity 0.5s ease;
  display: flex; align-items: flex-end; padding: 24px;
}

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

.studio-card-overlay span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.03em;
}

/* ===== Portfolio ===== */
.portfolio { padding: 100px 0 120px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
}

.portfolio-item.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26,24,22,0.75) 100%);
  opacity: 0; transition: opacity 0.5s ease;
  display: flex; align-items: flex-end; padding: 24px;
}

.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

.portfolio-item-overlay .info h4 {
  font-family: var(--font-display);
  font-size: 1.2rem; color: #fff;
  margin-bottom: 4px;
}

.portfolio-item-overlay .info span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gypsum-panel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f0ede8;
  box-shadow: var(--shadow-sm);
}

.gypsum-panel .gypsum-art {
  width: 100%; height: 100%;
  transition: transform 0.8s var(--ease);
}

.gypsum-panel:hover .gypsum-art { transform: scale(1.03); }

.portfolio-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.portfolio-cat-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}

.portfolio-cat-btn:hover,
.portfolio-cat-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.masterclass-includes-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.masterclass-list li {
  align-items: flex-start !important;
}

.masterclass-list li span {
  line-height: 1.5;
  text-align: left;
}

.btn-long-text {
  font-size: 0.72rem !important;
  padding: 14px 12px !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  text-align: center;
}

.form-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-logo {
    bottom: 46%;
    top: auto;
    height: 42px;
  }
}

/* ===== Services ===== */
.services { padding: 100px 0 120px; background: var(--bg-section); }

.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.services-block h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.03em;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card + .service-card { margin-top: 16px; }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.service-details {
  list-style: none;
  margin-bottom: 24px;
}

.service-details li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-details li svg {
  width: 16px; height: 16px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.service-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

.service-price-line .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}

.service-price-line .unit { font-size: 1rem; color: var(--text-muted); }

.service-individual {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-dark);
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem; font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem; font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  transition: all 0.3s var(--ease);
  width: 100%;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ===== Booking ===== */
.booking { padding: 100px 0 120px; background: linear-gradient(180deg, #F4EDE2 0%, #EBE0CC 100%); }

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.booking-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.booking-info > p { color: var(--text-secondary); font-size: 1.05rem; font-weight: 300; margin-bottom: 32px; }

.booking-perks { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.booking-perks li {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-secondary); font-size: 0.95rem;
}

.booking-perks li .perk-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.booking-perks li .perk-icon svg { width: 20px; height: 20px; }

.booking-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.booking-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

/* Calendar */
.calendar-wrapper { margin-bottom: 20px; }

.calendar-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}

.calendar-header .month-year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.calendar-header button {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border: 1px solid var(--border);
  transition: all 0.3s;
}

.calendar-header button:hover { border-color: var(--text); color: var(--text); }
.calendar-header button svg { width: 16px; height: 16px; }

.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center; font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 0;
}

.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.calendar-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.88rem; color: var(--text-secondary);
  transition: all 0.3s; cursor: pointer;
}

.calendar-day:hover:not(.disabled):not(.empty) { background: var(--bg-section); color: var(--text); }

.calendar-day.selected { background: var(--text); color: var(--bg); font-weight: 600; }
.calendar-day.today { border: 1px solid var(--accent-dark); }
.calendar-day.disabled { color: var(--accent-light); cursor: default; }
.calendar-day.empty { cursor: default; }

.time-slots-wrapper { margin-bottom: 20px; }

.time-slots-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
}

.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.time-slot {
  padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); text-align: center;
  font-size: 0.9rem; color: var(--text-secondary);
  transition: all 0.3s; cursor: pointer;
}

.time-slot:hover { border-color: var(--text); color: var(--text); }
.time-slot.selected { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 500; }
.time-slot.disabled { opacity: 0.3; cursor: default; }

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

.form-group label {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s; outline: none;
}

.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus { border-color: var(--text); }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F8A86' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.booking-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid var(--border);
}

.booking-total .total-label { font-size: 0.95rem; color: var(--text-secondary); }
.booking-total .total-amount { font-family: var(--font-display); font-size: 1.6rem; }

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--bg-dark-section);
  color: #ccc;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.footer-logo img { height: 50px; width: auto; opacity: 0.85; filter: brightness(2); }

.footer-contacts-info {
  text-align: center;
  margin: 10px 0;
}
.footer-phone {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  transition: color 0.3s;
}
.footer-phone:hover {
  color: var(--accent);
}
.footer-address {
  font-size: 0.9rem;
  color: #8f8a86;
  margin-top: 6px;
  font-weight: 300;
}

.footer-social { display: flex; gap: 14px; }

.footer-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-3px);
}

.footer-social a svg { width: 18px; height: 18px; }
.footer-text { font-size: 0.8rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius-sm); object-fit: contain;
  transform: scale(0.9); transition: transform 0.4s;
}
.lightbox.active img { transform: scale(1); }

.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 22px; height: 22px; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 48px 40px; max-width: 420px; width: 90%;
  border: 1px solid var(--border); text-align: center;
  transform: scale(0.9) translateY(20px); transition: transform 0.4s;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-section);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--accent-dark);
}
.modal-icon svg { width: 32px; height: 32px; }
.modal h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 10px; }
.modal p { color: var(--text-secondary); margin-bottom: 24px; font-weight: 300; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrapper { max-width: 400px; margin: 0 auto; order: -1; }
  .about-photo-wrapper img { height: 450px; }
  .services-split { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.wide { grid-column: span 2; }
  .gallery-room { height: 400px; }
}

/* ===== Interactive overlay styling ===== */
.three-info-overlay {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(252, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 168, 130, 0.35);
  border-radius: 40px;
  padding: 10px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1E2A2B;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, background-color 0.4s, color 0.4s;
  white-space: nowrap;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

/* Night-mode theme for interactive info panel */
body.night-mode .three-info-overlay {
  background: rgba(20, 16, 12, 0.9);
  border-color: rgba(255, 200, 120, 0.3);
  color: #F0E8D8;
}

body.night-mode .navbar.scrolled {
  background: rgba(18, 16, 15, 0.95);
  border-bottom: 1px solid rgba(255, 200, 120, 0.15);
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250, 246, 239, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  }
  .nav-links.open { display: flex; }
  body.night-mode .nav-links {
    background: rgba(18, 16, 15, 0.98);
  }
  .nav-burger { display: flex; z-index: 1001; margin-left: auto; }
  .nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  .nav-links a { font-size: 1.1rem; color: var(--text); }
  body.night-mode .nav-links a { color: #F0E8D8; }
  .studio-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.wide { grid-column: span 1; aspect-ratio: 3 / 4; }
  .gallery-room { height: 340px; }
  .time-slots { grid-template-columns: repeat(2, 1fr); }
  .about-features { justify-content: center; }

  /* Hero overlay mobile adjustments - Left Aligned to prevent any truncation */
  .hero-artist-name {
    left: 24px !important;
    right: auto !important;
    transform: none !important;
    top: 96px;
    text-align: left;
    width: auto;
  }
  .hero-artist-line1,
  .hero-artist-line2 {
    font-size: 1.45rem !important;
    letter-spacing: 0.12em !important;
  }
  .hero-artist-sub {
    font-size: 0.6rem !important;
    letter-spacing: 0.1em !important;
    margin-top: 6px !important;
  }
  .hero-bottom-nav {
    bottom: 32px !important;
    left: 24px !important;
    right: 24px !important;
    width: auto !important;
    gap: 8px;
    align-items: stretch !important;
    transform: none !important;
  }
  .hero-nav-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 9px 16px;
    justify-content: space-between;
  }
  .hero-nav-text {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .three-info-overlay {
    bottom: 230px;
    font-size: 0.72rem;
    padding: 8px 18px;
    max-width: 88%;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-room { height: 280px; }
  .hero-artist-name {
    top: 84px;
    left: 16px !important;
  }
  .hero-artist-line1,
  .hero-artist-line2 {
    font-size: 1.22rem !important;
    letter-spacing: 0.12em !important;
  }
  .hero-artist-sub {
    font-size: 0.56rem !important;
    margin-top: 4px !important;
  }
  .hero-bottom-nav {
    bottom: 24px !important;
    right: 16px !important;
    left: 16px !important;
  }
  .three-info-overlay {
    bottom: 250px;
  }
}

/* ===== Описание художницы — антиквенный шрифт и тёплый цвет ===== */
.about-text p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #5C4A33;
}
.about-text h2 { color: #3A2E22; }

/* ===== Mobile polish ===== */
button, a { -webkit-tap-highlight-color: transparent; }

@media (max-width: 768px) {
  html { font-size: 16px; }
  .container { padding: 0 18px; }
  .about { padding: 70px 0; }
  .studio, .portfolio, .services, .booking { padding: 60px 0 70px; }
  .section-subtitle { margin-bottom: 2rem; }
  .about-content { grid-template-columns: 1fr; gap: 28px; }
  .about-photo-wrapper { max-width: 420px; margin: 0 auto; }
  .studio-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-item.wide { grid-column: auto; }
  .services-split { grid-template-columns: 1fr; gap: 24px; }
  .service-card { padding: 26px 20px; }
  .booking-layout { grid-template-columns: 1fr; gap: 28px; }
  .booking-form-card { padding: 24px 18px; }
  /* 16px в полях ввода — чтобы iOS не приближал экран при фокусе */
  .form-group input, .form-group select { font-size: 16px; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .hero-bottom-nav { flex-wrap: wrap; gap: 10px; }
  .footer-content { text-align: center; }
}

@media (max-width: 480px) {
  .studio-grid { grid-template-columns: 1fr; }
  .portfolio-categories { gap: 8px; }
  .portfolio-cat-btn { padding: 7px 14px; font-size: 0.78rem; }
  .about-features { justify-content: space-between; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; }
}


/* ── Кнопка «Все работы» в галерее ── */
.all-works-btn {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%) translateY(14px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: rgba(20, 21, 23, 0.55);
  border: 1px solid rgba(240, 232, 216, 0.35);
  border-radius: 999px;
  color: #F0E8D8;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.25s ease;
}
.all-works-btn:hover { background: rgba(240, 232, 216, 0.14); }
.all-works-btn.visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* ── Выставочная стена «Все работы» ── */
.all-works-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #26282A;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.all-works-overlay.open { opacity: 1; visibility: visible; }
.all-works-close {
  position: fixed;
  top: 26px;
  right: 30px;
  z-index: 1210;
  touch-action: manipulation;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(240, 232, 216, 0.35);
  background: rgba(20, 21, 23, 0.55);
  color: #F0E8D8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
}
.all-works-close:hover { background: rgba(240, 232, 216, 0.14); }
.all-works-head {
  padding: 92px 8vw 18px;
  text-align: center;
}
.all-works-title {
  font-size: clamp(30px, 4.5vw, 52px);
  color: #F5F0E8;
  letter-spacing: 0.08em;
}
.all-works-sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.45);
}
.all-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(30px, 4vw, 60px);
  padding: 40px 8vw 110px;
  max-width: 1500px;
  margin: 0 auto;
}
.all-works-item { margin: 0; }
.all-works-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 12px solid #141414;
  background: #141414;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
  .all-works-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 26px 6vw 80px; }
  .all-works-item img { border-width: 7px; }
  .all-works-btn { bottom: 30px; }
  .all-works-close { top: 18px; right: 18px; }
}


/* ── HUD «Записаться» в виде сверху ── */
.top-view-hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 4vw 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.top-view-hud.visible { opacity: 1; visibility: visible; }
.top-view-hud.visible .top-view-info,
.top-view-hud.visible .top-view-close,
.top-view-hud.visible .top-view-form { pointer-events: auto; }
.top-view-inner {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(340px, 480px);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  width: 100%;
  max-width: 1080px;
  max-height: 100%;
}
.top-view-info { color: #F5F0E8; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); }
.top-view-kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6); margin-bottom: 14px; }
.top-view-info h3 { font-size: clamp(26px, 3vw, 40px); margin: 0 0 14px; color: #F5F0E8; }
.top-view-info p { font-size: 15px; line-height: 1.65; color: rgba(245, 240, 232, 0.85); margin: 0 0 18px; font-weight: 300; }
.top-view-info ul { list-style: none; padding: 0; margin: 0 0 18px; }
.top-view-info li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 14px; line-height: 1.5; color: rgba(245, 240, 232, 0.82); font-weight: 300; }
.top-view-info li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #C9A86A; }
.top-view-price { font-size: 15px; color: #E8D5A8; letter-spacing: 0.04em; margin-bottom: 22px; }
.top-view-hint { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 240, 232, 0.45); }
.top-view-form {
  max-height: min(80vh, 700px);
  overflow-y: auto;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overscroll-behavior: contain;
}
.top-view-form .booking-form-card { margin: 0; }
@media (max-width: 980px) {
  .top-view-hud { align-items: stretch; padding: 76px 5vw 20px; overflow-y: auto; }
  .top-view-inner { grid-template-columns: 1fr; gap: 20px; align-items: start; align-content: start; }
  .top-view-form { max-height: none; overflow: visible; }
}

/* HUD v97: floor-colored card, black digits, graphite panels */
.top-view-info {
  background: rgba(28, 30, 32, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 30px 34px;
  border-radius: 18px;
  border: 1px solid rgba(245, 240, 232, 0.08);
}
.top-view-form {
  background: rgba(28, 30, 32, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(245, 240, 232, 0.08);
}
.top-view-form .booking-form-card {
  background: #E8E4DE;
  border-color: rgba(0, 0, 0, 0.08);
}
.top-view-form .calendar-day { color: #111111; }
.top-view-form .calendar-day.disabled { color: rgba(17, 17, 17, 0.28); }
.top-view-form .calendar-day.selected { background: #111111; color: #E8E4DE; }
.top-view-form .calendar-header .month-year,
.top-view-form .calendar-weekdays span,
.top-view-form h3 { color: #111111; }


/* v98: transparent card, hidden scrollbar, hero exit cross */
.top-view-form { scrollbar-width: none; -ms-overflow-style: none; }
.top-view-form::-webkit-scrollbar { display: none; width: 0; }
.top-view-form .booking-form-card {
  background: rgba(232, 228, 222, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-exit-btn {
  position: absolute;
  top: 88px;
  right: 28px;
  z-index: 7;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(240, 232, 216, 0.35);
  background: rgba(20, 21, 23, 0.55);
  color: #F0E8D8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.5s ease, background 0.25s ease;
}
.hero-exit-btn:hover { background: rgba(240, 232, 216, 0.14); }
.hero-exit-btn.visible { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .hero-exit-btn { top: 78px; right: 16px; width: 42px; height: 42px; }
}


/* v99: unified muted card, service switcher arrows, close near card */
.top-view-form h3 { color: #FFFFFF; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.top-view-form .time-slots-label,
.top-view-form label,
.top-view-form .total-label { color: #111111; }
.top-view-form .time-slot {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(0, 0, 0, 0.22);
  color: #111111;
}
.top-view-form .time-slot:hover:not(.disabled) { border-color: #111111; color: #111111; }
.top-view-form .time-slot.selected { background: #111111; border-color: #111111; color: #E8E4DE; }
.top-view-form select,
.top-view-form input {
  background: rgba(255, 255, 255, 0.26);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.22);
}
.top-view-form input::placeholder { color: rgba(17, 17, 17, 0.45); }
.top-view-form .total-amount { color: #111111; }
.top-view-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.top-view-title-row h3 { flex: 1; margin: 0; text-align: center; }
.top-view-arrow {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.35);
  background: rgba(20, 21, 23, 0.45);
  color: #F0E8D8;
  font-size: 16px; line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease;
}
.top-view-arrow:hover { background: rgba(240, 232, 216, 0.16); }
.top-view-inner { position: relative; }
.top-view-close {
  position: absolute;
  top: 14px;
  right: -58px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 232, 216, 0.35);
  background: rgba(20, 21, 23, 0.55);
  color: #F0E8D8;
  font-size: 16px; line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease;
}
.top-view-close:hover { background: rgba(240, 232, 216, 0.14); }
@media (max-width: 1260px) {
  .top-view-close { right: 6px; top: 6px; }
}


/* v104: only the room; booking section hidden on desktop (form lives in top-view HUD) */
@media (min-width: 821px) {
  #booking { display: none; }
}


/* ===== Полноэкранный блокнот (v113) ===== */
.notebook-hud {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background: radial-gradient(ellipse at center, rgba(24, 19, 14, 0.3) 0%, rgba(10, 8, 6, 0.6) 100%);
}
.notebook-hud.visible { opacity: 1; }
.notebook-hud.visible .notebook-book,
.notebook-hud.visible .notebook-close { pointer-events: auto; }
.notebook-book {
  position: relative;
  width: min(1180px, 94vw);
  height: min(740px, 86vh);
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #5f4a35, #52402d);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.8s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.notebook-hud.visible .notebook-book { transform: translateY(0) scale(1); }
.notebook-page {
  flex: 1;
  background:
    repeating-linear-gradient(transparent 0px, transparent 33px, rgba(70, 64, 54, 0.16) 33px, rgba(70, 64, 54, 0.16) 34px),
    linear-gradient(180deg, #f7f3e8 0%, #f2edde 100%);
  background-position: 0 26px, 0 0;
  padding: 44px 48px;
  color: #4a4136;
  overflow: hidden;
}
.notebook-page-left {
  border-radius: 12px 3px 3px 12px;
  box-shadow: inset -22px 0 28px rgba(60, 48, 32, 0.12);
}
.notebook-page-right {
  border-radius: 3px 12px 12px 3px;
  box-shadow: inset 22px 0 28px rgba(60, 48, 32, 0.12);
}
.notebook-page h3 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3d352b;
}
.notebook-page .nb-hint {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  opacity: 0.55;
}
.notebook-spine {
  width: 26px;
  margin: 4px 6px;
  border-radius: 13px;
  background: linear-gradient(90deg, #cfc7b0 0%, #ece5d1 45%, #b9b09a 100%);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.28), 0 0 14px rgba(0, 0, 0, 0.18);
  flex: none;
}
.notebook-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(74, 65, 54, 0.4);
  background: rgba(247, 243, 232, 0.85);
  color: #4a4136;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.notebook-close:hover { background: #fffdf6; transform: rotate(90deg); }
@media (max-width: 820px) {
  .notebook-book { flex-direction: column; height: 90vh; }
  .notebook-spine { width: auto; height: 22px; margin: 6px 4px; background: linear-gradient(180deg, #cfc7b0, #ece5d1, #b9b09a); }
  .notebook-page { padding: 26px 22px; }
  .notebook-page-left { border-radius: 12px 12px 3px 3px; box-shadow: inset 0 -18px 24px rgba(60, 48, 32, 0.1); }
  .notebook-page-right { border-radius: 3px 3px 12px 12px; box-shadow: inset 0 18px 24px rgba(60, 48, 32, 0.1); }
}


/* ===== Блокнот bullet-journal (v114) ===== */
.notebook-page {
  background:
    radial-gradient(rgba(90, 80, 60, 0.3) 1px, transparent 1.2px) 0 0 / 16px 16px,
    linear-gradient(180deg, #f7f3e8 0%, #f2edde 100%);
  padding: 126px 32px 28px;
}
.nb-month {
  position: absolute;
  top: 22px;
  left: 52px;
  margin: 0;
  font-family: 'Georgia', serif;
  font-size: clamp(44px, 6.8vw, 84px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #262119;
  z-index: 3;
  pointer-events: none;
  line-height: 1;
}
.nb-right-wrap { display: flex; gap: 16px; height: 100%; }
.nb-grid { display: grid; height: 100%; }
.nb-grid-left { grid-template-columns: repeat(4, 1fr); }
.nb-grid-right { grid-template-columns: repeat(3, 1fr); flex: 1; }
.nb-wd {
  margin: 0 3px 6px;
  padding: 4px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #2b261e;
  background: rgba(43, 38, 30, 0.08);
  border: 1.2px solid #2b261e;
}
.nb-cell {
  position: relative;
  border: 1px solid rgba(43, 38, 30, 0.7);
  margin: -0.5px;
  min-height: 52px;
}
.nb-cell span {
  position: absolute;
  top: 4px;
  right: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #2b261e;
}
.nb-empty {
  background: linear-gradient(to top right, transparent 49.4%, rgba(43, 38, 30, 0.75) 49.7%, rgba(43, 38, 30, 0.75) 50.3%, transparent 50.6%);
}
.nb-day { cursor: pointer; transition: background 0.2s ease; }
.nb-day:hover { background: rgba(201, 138, 46, 0.14); }
.nb-cell.nb-sel { background: rgba(201, 138, 46, 0.28); box-shadow: inset 0 0 0 2px #b07f2c; }
.nb-past { opacity: 0.4; }
.nb-side { width: 126px; flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 32px; }
.nb-side-label {
  align-self: flex-start;
  font-size: 14px;
  font-style: italic;
  color: #4a4136;
  background: rgba(230, 140, 160, 0.38);
  padding: 2px 9px;
  border-radius: 2px;
}
.nb-side-lines { height: 86px; background: repeating-linear-gradient(transparent 0 20px, rgba(70, 64, 54, 0.28) 20px 21px); }
/* Перелистывание страниц при открытии */
.nb-flipper {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  right: 16px;
  border-radius: 3px 12px 12px 3px;
  background: linear-gradient(90deg, #e9e2cf 0%, #f7f3e8 55%, #efe8d5 100%);
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.12);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.notebook-hud.visible .nb-flip1 { animation: nbFlipTurn 0.95s cubic-bezier(0.3, 0.1, 0.3, 1) 0.55s both; }
.notebook-hud.visible .nb-flip2 { animation: nbFlipTurn 0.9s cubic-bezier(0.3, 0.1, 0.3, 1) 0.15s both; }
@keyframes nbFlipTurn {
  0% { opacity: 1; transform: perspective(1700px) rotateY(0deg); }
  99% { opacity: 1; transform: perspective(1700px) rotateY(-164deg); }
  100% { opacity: 0; transform: perspective(1700px) rotateY(-167deg); }
}
/* Панелька записи на время */
.nb-time-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.94);
  width: min(360px, 80vw);
  background: #fffdf4;
  border: 1.5px solid #2b261e;
  border-radius: 10px;
  box-shadow: 8px 10px 0 rgba(43, 38, 30, 0.16), 0 26px 60px rgba(0, 0, 0, 0.35);
  padding: 22px 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 8;
  color: #2b261e;
}
.nb-time-panel.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.nb-time-panel h4 { margin: 0 0 4px; font-family: 'Georgia', serif; font-size: 22px; }
.nb-panel-sub { margin: 0 0 12px; font-size: 12px; font-style: italic; opacity: 0.6; }
.nb-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nb-slot {
  border: 1.2px solid #2b261e;
  background: transparent;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #2b261e;
  transition: all 0.2s ease;
}
.nb-slot:hover { background: rgba(201, 138, 46, 0.15); }
.nb-slot.active { background: #2b261e; color: #f7f3e8; }
.nb-slots.nb-shake { animation: nbShake 0.4s ease; }
@keyframes nbShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.nb-time-panel input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1.2px solid rgba(43, 38, 30, 0.5);
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  color: #2b261e;
}
.nb-book-btn {
  width: 100%;
  padding: 11px;
  background: #2b261e;
  color: #f7f3e8;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.nb-book-btn:hover { background: #4a3f30; }
.nb-done { display: none; margin-top: 12px; font-size: 14px; color: #2e8b4f; font-weight: 600; }
.nb-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(43, 38, 30, 0.4);
  background: transparent;
  color: #2b261e;
  font-size: 13px;
  cursor: pointer;
}


/* ===== Блокнот «на столе» (v115) ===== */
.notebook-hud { background: none; transition: opacity 0.45s ease; }
.notebook-book {
  width: min(1260px, 97vw);
  height: min(830px, 93vh);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.45s ease;
}
.notebook-hud.visible .nb-flip1,
.notebook-hud.visible .nb-flip2 { animation: none; }
.nb-flip2 { display: none; }
.nb-flipper.run {
  animation: nbFlipFast 0.24s cubic-bezier(0.4, 0.05, 0.45, 1) both !important;
}
@keyframes nbFlipFast {
  0% { opacity: 1; transform: perspective(1500px) rotateY(0deg); }
  99% { opacity: 1; transform: perspective(1500px) rotateY(-162deg); }
  100% { opacity: 0; transform: perspective(1500px) rotateY(-165deg); }
}


/* ===== Синий бархатный блокнот на спирали (v116) ===== */
.notebook-book.nb-velvet {
  background:
    radial-gradient(ellipse at 28% 22%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 72% 78%, rgba(0, 0, 0, 0.28), transparent 60%),
    linear-gradient(135deg, #30527f 0%, #254264 45%, #1a3049 100%);
  border-radius: 26px;
  padding: 26px;
}
.nb-cover-inner {
  flex: 1;
  border-radius: 16px 5px 5px 16px;
  background:
    radial-gradient(ellipse at 38% 28%, rgba(255, 255, 255, 0.13), transparent 52%),
    radial-gradient(ellipse at 68% 82%, rgba(0, 0, 0, 0.32), transparent 60%),
    radial-gradient(ellipse at 15% 70%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(150deg, #35598c 0%, #28466b 50%, #1e3550 100%);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.notebook-spiral {
  flex: none;
  width: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 6;
  overflow: visible;
}
.notebook-spiral i {
  display: block;
  width: 60px;
  height: 19px;
  flex: none;
  border: 4px solid #b98950;
  border-radius: 50%;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 240, 210, 0.75),
    inset 0 -1px 2px rgba(90, 55, 20, 0.6);
}
.nb-velvet .notebook-page.nb-paper {
  flex: 1.12;
  display: flex;
  flex-direction: column;
  border-radius: 5px 14px 14px 5px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f1 100%);
  box-shadow:
    3px 5px 0 #e9e7e0,
    6px 10px 0 #dbd8cf,
    0 16px 34px rgba(0, 0, 0, 0.3);
  padding: 24px 28px 24px 30px;
}
.nb-velvet .nb-month {
  position: static;
  margin: 0 0 12px;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: 0.13em;
  color: #22303f;
}
.nb-grid-full { grid-template-columns: repeat(7, 1fr); flex: 1; }
.nb-velvet .nb-wd { border-color: #24303d; color: #24303d; background: rgba(36, 48, 61, 0.07); }
.nb-velvet .nb-cell { border-color: rgba(36, 48, 61, 0.55); min-height: 0; }
.nb-velvet .nb-cell span { color: #24303d; }
.nb-velvet .nb-empty { background: linear-gradient(to top right, transparent 49.4%, rgba(36, 48, 61, 0.7) 49.7%, rgba(36, 48, 61, 0.7) 50.3%, transparent 50.6%); }
.nb-velvet .nb-day:hover { background: rgba(48, 82, 127, 0.1); }
.nb-velvet .nb-cell.nb-sel { background: rgba(48, 82, 127, 0.2); box-shadow: inset 0 0 0 2px #30527f; }
.nb-velvet .nb-flipper {
  top: 26px;
  bottom: 26px;
  left: calc(50% + 28px);
  right: 26px;
  border-radius: 5px 14px 14px 5px;
  background: linear-gradient(90deg, #eceae3 0%, #ffffff 45%, #f3f1ea 100%);
  box-shadow: -4px 0 14px rgba(0, 0, 0, 0.2);
  transform-origin: left center;
}
.nb-velvet .nb-time-panel { background: #ffffff; border-color: #24303d; color: #24303d; box-shadow: 8px 10px 0 rgba(36, 48, 61, 0.15), 0 26px 60px rgba(0, 0, 0, 0.4); }
.nb-velvet .nb-slot { border-color: #24303d; color: #24303d; }
.nb-velvet .nb-slot.active { background: #24303d; color: #ffffff; }
.nb-velvet .nb-book-btn { background: #24303d; color: #ffffff; }
.nb-velvet .nb-book-btn:hover { background: #30527f; }
.nb-velvet .nb-panel-close { border-color: rgba(36, 48, 61, 0.4); color: #24303d; }
.nb-velvet .notebook-close {
  top: 36px;
  right: 40px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #eaf0f7;
}
.nb-velvet .notebook-close:hover { background: rgba(255, 255, 255, 0.3); }


/* ===== Плавное перелистывание с укладкой влево (v117) ===== */
.nb-landed {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 26px;
  right: calc(50% + 28px);
  border-radius: 14px 5px 5px 14px;
  background: linear-gradient(270deg, #eceae3 0%, #ffffff 45%, #f3f1ea 100%);
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 4;
}
.nb-landed.on { opacity: 1; }
.nb-flipper.run {
  animation: nbFlipSmooth 0.44s cubic-bezier(0.42, 0.02, 0.34, 1) both !important;
}
@keyframes nbFlipSmooth {
  0% { opacity: 1; transform: perspective(1700px) rotateY(0deg); }
  55% { opacity: 1; transform: perspective(1700px) rotateY(-96deg); }
  100% { opacity: 1; transform: perspective(1700px) rotateY(-177deg); }
}


/* ===== Премиальный крем-блокнот (v118) ===== */
.notebook-book {
  background:
    radial-gradient(ellipse at 22% 18%, rgba(255, 255, 255, 0.09), transparent 55%),
    radial-gradient(ellipse at 78% 86%, rgba(0, 0, 0, 0.32), transparent 60%),
    linear-gradient(135deg, #6b5340 0%, #57432f 50%, #453423 100%);
  border-radius: 20px;
  padding: 18px;
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
.notebook-page {
  background:
    radial-gradient(rgba(96, 84, 62, 0.24) 1px, transparent 1.15px) 0 0 / 15px 15px,
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(180deg, #faf6ea 0%, #f2edde 100%);
  padding: 122px 34px 28px;
}
.notebook-page-left {
  border-radius: 10px 2px 2px 10px;
  box-shadow:
    inset -36px 0 42px rgba(74, 58, 38, 0.16),
    inset 2px 2px 5px rgba(255, 255, 255, 0.7);
}
.notebook-page-right {
  border-radius: 2px 10px 10px 2px;
  box-shadow:
    inset 36px 0 42px rgba(74, 58, 38, 0.16),
    inset -2px 2px 5px rgba(255, 255, 255, 0.7);
}
.notebook-spine {
  width: 22px;
  margin: 2px 4px;
  border-radius: 11px;
  background: linear-gradient(90deg, #a3957a 0%, #d8d1bb 30%, #f1ebd7 48%, #cec5aa 70%, #8f8267 100%);
  box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.38), 0 0 18px rgba(0, 0, 0, 0.28);
}
.nb-month {
  color: #2e2619;
  top: 24px;
  left: 58px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.nb-wd { border-width: 1px; border-color: #2e2619; color: #2e2619; background: rgba(46, 38, 25, 0.055); }
.nb-cell { border-color: rgba(46, 38, 25, 0.48); }
.nb-cell span { font-family: 'Georgia', serif; }
.nb-empty { background: linear-gradient(to top right, transparent 49.4%, rgba(46, 38, 25, 0.55) 49.7%, rgba(46, 38, 25, 0.55) 50.3%, transparent 50.6%); }
.nb-day:hover { background: rgba(176, 127, 44, 0.12); }
.nb-flipper {
  top: 18px;
  bottom: 18px;
  right: 18px;
  left: calc(50% + 11px);
  border-radius: 2px 10px 10px 2px;
  background:
    radial-gradient(rgba(96, 84, 62, 0.16) 1px, transparent 1.15px) 0 0 / 15px 15px,
    linear-gradient(90deg, #efe9d8 0%, #faf6ea 55%, #f1ebda 100%);
  box-shadow: -9px 0 24px rgba(0, 0, 0, 0.24);
  transform-origin: left center;
}
.nb-landed {
  top: 18px;
  bottom: 18px;
  left: 18px;
  right: calc(50% + 11px);
  border-radius: 10px 2px 2px 10px;
  background:
    radial-gradient(rgba(96, 84, 62, 0.16) 1px, transparent 1.15px) 0 0 / 15px 15px,
    linear-gradient(270deg, #efe9d8 0%, #faf6ea 55%, #f1ebda 100%);
  box-shadow: 9px 0 24px rgba(0, 0, 0, 0.24);
}
.nb-flipper.run {
  animation: nbFlipLux 0.55s cubic-bezier(0.45, 0.02, 0.18, 1) both !important;
}
@keyframes nbFlipLux {
  0% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(0deg); box-shadow: -9px 0 24px rgba(0, 0, 0, 0.24); }
  50% { opacity: 1; transform: perspective(1900px) translateZ(48px) rotateY(-92deg); box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4); }
  100% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(-178deg); box-shadow: 9px 0 24px rgba(0, 0, 0, 0.24); }
}
.nb-time-panel { background: #fffcf2; border-color: #2e2619; color: #2e2619; }
.nb-slot { border-color: #2e2619; color: #2e2619; }
.nb-slot.active { background: #2e2619; color: #faf6ea; }
.nb-book-btn { background: #2e2619; color: #faf6ea; }
.nb-book-btn:hover { background: #57432f; }
.notebook-close {
  top: 28px;
  right: 32px;
  background: rgba(250, 246, 234, 0.85);
  border-color: rgba(46, 38, 25, 0.4);
  color: #2e2619;
}


/* ===== v119: быстрое листание, лист растворяется ===== */
.nb-landed { transition: opacity 0.3s ease; }
.nb-flipper.run {
  animation: nbFlipQuick 0.38s cubic-bezier(0.42, 0.03, 0.25, 1) both !important;
}
@keyframes nbFlipQuick {
  0% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(0deg); box-shadow: -9px 0 24px rgba(0, 0, 0, 0.24); }
  50% { opacity: 1; transform: perspective(1900px) translateZ(40px) rotateY(-92deg); box-shadow: 0 26px 44px rgba(0, 0, 0, 0.38); }
  100% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(-178deg); box-shadow: 9px 0 24px rgba(0, 0, 0, 0.24); }
}


/* ===== v120: месяц всегда виден при листании ===== */
.nb-month { z-index: 7; }


/* ===== v121: сетка на листающихся страницах ===== */
.nb-flipper,
.nb-landed {
  padding: 122px 34px 28px;
  box-sizing: border-box;
}
.nb-flipper .nb-grid,
.nb-landed .nb-grid {
  height: 100%;
  backface-visibility: hidden;
}


/* ===== v122: фотоблокнот — блокнот «один в один» с фото ===== */
@media (min-width: 821px) {
  .notebook-book {
    display: block;
    width: min(1500px, 97vw, calc(93vh * 1.7917));
    height: auto;
    aspect-ratio: 1376 / 768;
    padding: 0;
    background: url('images/notebook_photo.webp') center / 100% 100% no-repeat;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(40, 30, 18, 0.35);
    overflow: hidden;
  }
  .notebook-spine { display: none; }
  .notebook-page {
    position: absolute;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
  }
  .notebook-page-left { left: 25.2%; top: 24%; width: 21.8%; height: 57%; }
  .notebook-page-right { left: 52.4%; top: 24%; width: 21.8%; height: 57%; }
  .nb-month {
    top: 13.5%;
    left: 25.4%;
    font-size: clamp(26px, 3.4vw, 52px);
    color: #3d352b;
    text-shadow: none;
    letter-spacing: 0.16em;
  }
  .nb-grid { height: 100%; }
  /* лёгкая, «карандашная» сетка — под чистые страницы фото */
  .nb-wd {
    border-width: 1px;
    border-color: rgba(61, 53, 43, 0.65);
    background: rgba(61, 53, 43, 0.05);
    color: #3d352b;
  }
  .nb-cell { border-color: rgba(61, 53, 43, 0.35); min-height: 0; }
  .nb-cell span { color: #3d352b; }
  .nb-empty { background: linear-gradient(to top right, transparent 49.4%, rgba(61, 53, 43, 0.4) 49.7%, rgba(61, 53, 43, 0.4) 50.3%, transparent 50.6%); }
  .nb-side { width: 96px; padding-top: 24px; }
  .nb-side-label { font-size: 13px; }
  .nb-side-lines { height: 72px; }
  /* листающиеся страницы — по контуру страниц на фото */
  .nb-landed {
    left: 22.9%;
    top: 12.5%;
    right: auto;
    bottom: auto;
    width: 26.7%;
    height: 73.5%;
    padding: 0;
    border-radius: 6px 2px 2px 6px;
    background: linear-gradient(270deg, #ece7d8 0%, #f6f2e6 55%, #f0ebdc 100%);
    box-shadow: 6px 0 18px rgba(60, 45, 25, 0.18);
  }
  .nb-flipper {
    left: 50.1%;
    top: 12.5%;
    right: auto;
    bottom: auto;
    width: 26.4%;
    height: 73.5%;
    padding: 0;
    border-radius: 2px 6px 6px 2px;
    background: linear-gradient(90deg, #ece7d8 0%, #f6f2e6 55%, #f0ebdc 100%);
    box-shadow: -6px 0 18px rgba(60, 45, 25, 0.18);
  }
  .nb-flipper .nb-grid,
  .nb-landed .nb-grid {
    position: absolute;
    left: 8.6%;
    right: 9%;
    top: 15.6%;
    bottom: 6.8%;
    height: auto;
  }
  .notebook-close {
    top: 3.5%;
    right: 2%;
    background: rgba(250, 246, 234, 0.75);
  }
}


/* ===== v124: бесшовный «заезд» камеры в блокнот ===== */
@media (min-width: 821px) {
  /* HUD появляется ровно поверх 3D-блокнота: без сдвига и масштаба */
  .notebook-book,
  .notebook-hud.visible .notebook-book {
    transform: none !important;
    transition: none;
  }
  .notebook-hud { transition: opacity 0.35s ease; }
}


/* ===== v123: только блокнот — без фона и кисти ===== */
@media (min-width: 821px) {
  .notebook-book {
    width: min(880px, 92vw, calc(86vh * 1.3174));
    aspect-ratio: 772 / 586;
    background: url('images/notebook_cut.webp') center / 100% 100% no-repeat;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 28px 42px rgba(40, 30, 18, 0.35));
  }
  .notebook-page-left { left: 6.3%; top: 16.1%; width: 38.9%; height: 74.7%; }
  .notebook-page-right { left: 54.8%; top: 16.1%; width: 38.9%; height: 74.7%; }
  .nb-month {
    top: 4.6%;
    left: 8%;
    font-size: clamp(24px, 3vw, 44px);
  }
  .nb-side { width: 92px; padding-top: 20px; }
  .nb-landed {
    left: 2.2%;
    top: 1%;
    width: 47.6%;
    height: 96.3%;
    border-radius: 8px 2px 2px 8px;
  }
  .nb-flipper {
    left: 50.7%;
    top: 1%;
    width: 47.1%;
    height: 96.3%;
    border-radius: 2px 8px 8px 2px;
  }
  .nb-flipper .nb-grid,
  .nb-landed .nb-grid {
    left: 8.6%;
    right: 9%;
    top: 15.6%;
    bottom: 6.8%;
  }
  .notebook-close {
    top: -1%;
    right: -7%;
    background: rgba(250, 246, 234, 0.9);
    box-shadow: 0 6px 18px rgba(40, 30, 18, 0.25);
  }
}


/* ===== v126: единый блокнот — мгновенная подмена без наложения ===== */
@media (min-width: 821px) {
  .notebook-hud { transition: none; }
  .notebook-book { filter: none !important; }
}

/* ===== v127: перевор��чиваемые страницы из фото-бумаги + стрелки листания месяцев ===== */
@media (min-width: 821px) {
  .nb-landed {
    background: url('images/notebook_cut.webp') no-repeat;
    background-size: 210.1% 103.8%;
    background-position: 4.2% 27%;
    box-shadow: 6px 0 18px rgba(60, 45, 25, 0.25);
  }
  .nb-flipper {
    background: url('images/notebook_cut.webp') no-repeat;
    background-size: 212.3% 103.8%;
    background-position: 95.84% 27%;
    box-shadow: -6px 0 18px rgba(60, 45, 25, 0.25);
  }
  .nb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(61, 53, 43, 0.2);
    background: rgba(250, 246, 234, 0.92);
    color: #3d352b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(40, 30, 18, 0.22);
    z-index: 6;
    transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
  }
  .nb-nav:hover { transform: translateY(-50%) scale(1.1); background: #faf6ea; }
  .nb-nav-prev { left: -8.5%; }
  .nb-nav-next { right: -8.5%; }
  .nb-nav.off { opacity: 0.22; pointer-events: none; }
}



/* ===== v131: более быст��о�������� автопролистывание январь→текущий месяц ===== */
.nb-flipper.run {
  animation: nbFlipZip 0.26s cubic-bezier(0.42, 0.03, 0.25, 1) both !important;
}
@keyframes nbFlipZip {
  0% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(0deg); box-shadow: -9px 0 24px rgba(0, 0, 0, 0.24); }
  50% { opacity: 1; transform: perspective(1900px) translateZ(36px) rotateY(-92deg); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.36); }
  100% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(-178deg); box-shadow: 9px 0 24px rgba(0, 0, 0, 0.24); }
}
.nb-landed { transition: opacity 0.2s ease; }


/* ===== v133: мобильное зеркало настольного фотоблокнота ===== */
/* ===== v122: фотоблокнот — блокнот «один в один» с фото ===== */
@media (max-width: 820px) {
  .notebook-book {
    display: block;
    width: min(1500px, 97vw, calc(93vh * 1.7917));
    height: auto;
    aspect-ratio: 1376 / 768;
    padding: 0;
    background: url('images/notebook_photo.webp') center / 100% 100% no-repeat;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(40, 30, 18, 0.35);
    overflow: hidden;
  }
  .notebook-spine { display: none; }
  .notebook-page {
    position: absolute;
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
  }
  .notebook-page-left { left: 25.2%; top: 24%; width: 21.8%; height: 57%; }
  .notebook-page-right { left: 52.4%; top: 24%; width: 21.8%; height: 57%; }
  .nb-month {
    top: 13.5%;
    left: 25.4%;
    font-size: clamp(26px, 3.4vw, 52px);
    color: #3d352b;
    text-shadow: none;
    letter-spacing: 0.16em;
  }
  .nb-grid { height: 100%; }
  /* лёгкая, «карандашная» сетка — под чистые страницы фото */
  .nb-wd {
    border-width: 1px;
    border-color: rgba(61, 53, 43, 0.65);
    background: rgba(61, 53, 43, 0.05);
    color: #3d352b;
  }
  .nb-cell { border-color: rgba(61, 53, 43, 0.35); min-height: 0; }
  .nb-cell span { color: #3d352b; }
  .nb-empty { background: linear-gradient(to top right, transparent 49.4%, rgba(61, 53, 43, 0.4) 49.7%, rgba(61, 53, 43, 0.4) 50.3%, transparent 50.6%); }
  .nb-side { width: 96px; padding-top: 24px; }
  .nb-side-label { font-size: 13px; }
  .nb-side-lines { height: 72px; }
  /* листающиеся страницы — по контуру страниц на фото */
  .nb-landed {
    left: 22.9%;
    top: 12.5%;
    right: auto;
    bottom: auto;
    width: 26.7%;
    height: 73.5%;
    padding: 0;
    border-radius: 6px 2px 2px 6px;
    background: linear-gradient(270deg, #ece7d8 0%, #f6f2e6 55%, #f0ebdc 100%);
    box-shadow: 6px 0 18px rgba(60, 45, 25, 0.18);
  }
  .nb-flipper {
    left: 50.1%;
    top: 12.5%;
    right: auto;
    bottom: auto;
    width: 26.4%;
    height: 73.5%;
    padding: 0;
    border-radius: 2px 6px 6px 2px;
    background: linear-gradient(90deg, #ece7d8 0%, #f6f2e6 55%, #f0ebdc 100%);
    box-shadow: -6px 0 18px rgba(60, 45, 25, 0.18);
  }
  .nb-flipper .nb-grid,
  .nb-landed .nb-grid {
    position: absolute;
    left: 8.6%;
    right: 9%;
    top: 15.6%;
    bottom: 6.8%;
    height: auto;
  }
  .notebook-close {
    top: 3.5%;
    right: 2%;
    background: rgba(250, 246, 234, 0.75);
  }
}


/* ===== v124: бесшовный «заезд» камеры в блокнот ===== */
@media (max-width: 820px) {
  /* HUD появляется ровно поверх 3D-блокнота: без сдвига и масштаба */
  .notebook-book,
  .notebook-hud.visible .notebook-book {
    transform: none !important;
    transition: none;
  }
  .notebook-hud { transition: opacity 0.35s ease; }
}


/* ===== v123: только блокнот — без фона и кисти ===== */
@media (max-width: 820px) {
  .notebook-book {
    width: min(880px, 92vw, calc(86vh * 1.3174));
    aspect-ratio: 772 / 586;
    background: url('images/notebook_cut.webp') center / 100% 100% no-repeat;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 28px 42px rgba(40, 30, 18, 0.35));
  }
  .notebook-page-left { left: 6.3%; top: 16.1%; width: 38.9%; height: 74.7%; }
  .notebook-page-right { left: 54.8%; top: 16.1%; width: 38.9%; height: 74.7%; }
  .nb-month {
    top: 4.6%;
    left: 8%;
    font-size: clamp(24px, 3vw, 44px);
  }
  .nb-side { width: 92px; padding-top: 20px; }
  .nb-landed {
    left: 2.2%;
    top: 1%;
    width: 47.6%;
    height: 96.3%;
    border-radius: 8px 2px 2px 8px;
  }
  .nb-flipper {
    left: 50.7%;
    top: 1%;
    width: 47.1%;
    height: 96.3%;
    border-radius: 2px 8px 8px 2px;
  }
  .nb-flipper .nb-grid,
  .nb-landed .nb-grid {
    left: 8.6%;
    right: 9%;
    top: 15.6%;
    bottom: 6.8%;
  }
  .notebook-close {
    top: -1%;
    right: -7%;
    background: rgba(250, 246, 234, 0.9);
    box-shadow: 0 6px 18px rgba(40, 30, 18, 0.25);
  }
}


/* ===== v126: единый блокнот — мгновенная подмена без наложения ===== */
@media (max-width: 820px) {
  .notebook-hud { transition: none; }
  .notebook-book { filter: none !important; }
}

/* ===== v127: переворачиваемые страницы из фото-бумаги + стрелки листания месяцев ===== */
@media (max-width: 820px) {
  .nb-landed {
    background: url('images/notebook_cut.webp') no-repeat;
    background-size: 210.1% 103.8%;
    background-position: 4.2% 27%;
    box-shadow: 6px 0 18px rgba(60, 45, 25, 0.25);
  }
  .nb-flipper {
    background: url('images/notebook_cut.webp') no-repeat;
    background-size: 212.3% 103.8%;
    background-position: 95.84% 27%;
    box-shadow: -6px 0 18px rgba(60, 45, 25, 0.25);
  }
  .nb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(61, 53, 43, 0.2);
    background: rgba(250, 246, 234, 0.92);
    color: #3d352b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(40, 30, 18, 0.22);
    z-index: 6;
    transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
  }
  .nb-nav:hover { transform: translateY(-50%) scale(1.1); background: #faf6ea; }
  .nb-nav-prev { left: -8.5%; }
  .nb-nav-next { right: -8.5%; }
  .nb-nav.off { opacity: 0.22; pointer-events: none; }
}



/* ===== v131: более быстрое автопролистывание январь→текущий месяц ===== */
.nb-flipper.run {
  animation: nbFlipZip 0.26s cubic-bezier(0.42, 0.03, 0.25, 1) both !important;
}
@keyframes nbFlipZip {
  0% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(0deg); box-shadow: -9px 0 24px rgba(0, 0, 0, 0.24); }
  50% { opacity: 1; transform: perspective(1900px) translateZ(36px) rotateY(-92deg); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.36); }
  100% { opacity: 1; transform: perspective(1900px) translateZ(0) rotateY(-178deg); box-shadow: 9px 0 24px rgba(0, 0, 0, 0.24); }
}
.nb-landed { transition: opacity 0.2s ease; }


/* ===== v133: мобильная версия — без панелек, тот же блокнот, те же этапы ===== */
@media (max-width: 820px) {
  /* v142: кнопки навигации снова видны на телефоне — как на десктопе */
  .notebook-book { width: min(880px, 96vw, 86vh * 1.3174); }
  .nb-nav { display: block; width: 38px; height: 38px; font-size: 22px; }
  .nb-nav-prev { left: -6px; }
  .nb-nav-next { right: -6px; }
  .notebook-close { top: 14px; right: 14px; }
}

/* ===== v134: телефон — правильные пропорции фотоблокнота ===== */
@media (max-width: 820px) {
  .notebook-book {
    flex-direction: row;
    width: min(880px, 96vw, calc(86vh * 1.3174));
    height: auto;
    aspect-ratio: 772 / 586;
    transform: none;
  }
  .notebook-spine { display: none; }
}

/* ===== v135: телефон — без колонки заметок, она не помещается на узкой странице ===== */
@media (max-width: 820px) {
  .nb-side { display: none; }
  .nb-right-wrap { gap: 0; }
}

/* ===== v136: стрелочки-подсказки свайпа в галерее (телефон) ===== */
.gal-swipe-arrow {
  display: none;
  position: fixed;
  top: 50%;
  z-index: 30;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.85);
  box-shadow: 0 4px 14px rgba(40, 30, 18, 0.28);
  color: #4a4237;
  font-family: 'Georgia', serif;
  font-size: 27px;
  line-height: 44px;
  text-align: center;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.gal-swipe-left { left: 10px; }
.gal-swipe-right { right: 10px; }
@media (max-width: 820px) {
  .gal-swipe-arrow.show { display: block; animation: galArrowPulseR 1.6s ease-in-out infinite; }
  .gal-swipe-left.show { animation-name: galArrowPulseL; }
}
@keyframes galArrowPulseR { 0%, 100% { transform: translateX(0); opacity: 0.8; } 50% { transform: translateX(-6px); opacity: 1; } }
@keyframes galArrowPulseL { 0%, 100% { transform: translateX(0); opacity: 0.8; } 50% { transform: translateX(6px); opacity: 1; } }

/* ===== v137: стрелка вверх + кнопка «Все работы» на телефоне ===== */
.gal-swipe-up {
  left: 50%;
  top: auto;
  bottom: 22px;
  margin-top: 0;
  margin-left: -23px;
  font-size: 24px;
}
@media (max-width: 820px) {
  .gal-swipe-up.show { animation-name: galArrowPulseU; }
  .all-works-btn {
    top: 16px;
    bottom: auto;
    padding: 10px 18px;
    font-size: 11px;
    gap: 7px;
    background: rgba(20, 21, 23, 0.62);
    transform: translateX(-50%) translateY(-10px);
  }
  .all-works-btn.visible { transform: translateX(-50%) translateY(0); }
}
@keyframes galArrowPulseU { 0%, 100% { transform: translateY(0); opacity: 0.8; } 50% { transform: translateY(-7px); opacity: 1; } }

/* ===== v138: панель вида сверху работает и на телефоне ===== */
@media (max-width: 820px) {
  .top-view-hud { padding: 56px 4vw 84px; }
  .top-view-title-row { margin-top: 42px; }
  .top-view-arrow { width: 34px; height: 34px; font-size: 14px; }
  .top-view-info h3 { font-size: 21px; }
  .top-view-info p { font-size: 14px; }
  .top-view-close { top: 10px; right: 10px; }
}

/* ===== v139: «обо мне:» в блокноте + страница о художнике ===== */
.nb-about-link { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.nb-about-link:hover { opacity: 0.7; }
.about-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(24, 20, 15, 0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.about-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.about-card {
  position: relative; width: 100%; max-width: 860px; max-height: 90vh; overflow-y: auto;
  background: #F7F3EA; color: #2E2A24;
  border-radius: 18px; padding: 48px 50px 42px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  overscroll-behavior: contain;
}
.about-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(46, 42, 36, 0.25);
  background: transparent; color: #2E2A24; font-size: 16px; line-height: 1;
  cursor: pointer; touch-action: manipulation;
}
.about-close:hover { background: rgba(46, 42, 36, 0.08); }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.about-photo { width: 100%; border-radius: 12px; display: block; box-shadow: 0 16px 36px rgba(40, 30, 18, 0.25); }
.about-kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(46, 42, 36, 0.55); margin-bottom: 10px; }
.about-text h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(30px, 4vw, 42px); margin: 0 0 16px; }
.about-text p { font-size: 15px; line-height: 1.7; font-weight: 300; margin: 0 0 14px; }
.about-facts { list-style: none; padding: 0; margin: 18px 0 0; }
.about-facts li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 14px; line-height: 1.5; }
.about-facts li::before { content: '✦'; position: absolute; left: 0; top: 0; color: #C9A86A; }
@media (max-width: 820px) {
  .about-overlay { padding: 3vh 4vw; }
  .about-card { padding: 52px 22px 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .about-photo { max-width: 260px; margin: 0 auto; }
}

/* ===== v140: письмо на стене + графитовая карточка «обо мне» ===== */
.about-card { background: #2B2C30; color: #F3EFE7; }
.about-close { border-color: rgba(243, 239, 231, 0.35); color: #F3EFE7; }
.about-close:hover { background: rgba(243, 239, 231, 0.1); }
.about-kicker { color: rgba(243, 239, 231, 0.55); }
.about-text h2 { color: #F7F3EA; }
.about-text p { color: rgba(243, 239, 231, 0.88); }
.about-facts li { color: rgba(243, 239, 231, 0.82); }
.about-overlay { background: rgba(18, 16, 13, 0.4); }
.about-overlay.visible .about-card { animation: letterOpen 0.7s cubic-bezier(0.22, 0.9, 0.3, 1); }
@keyframes letterOpen {
  from { transform: translateY(80px) scale(0.12); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== v141: мобильные доработки ===== */
@media (max-width: 820px) {
  /* Кнопка «Все работы» была под фиксированным navbar (z-index 1000) —
     тапы попадали в него. Опускаем ниже шапки и поднимаем z-index. */
  .all-works-btn { top: 72px; z-index: 1100; }
  /* Страница не скроллится: остаётся только 3D-сцена, как на десктопе.
     Форма записи и календарь живут в top-view HUD и блокноте. */
  html, body { overflow: hidden; height: 100%; overscroll-behavior: none; }
  /* Нижняя панель с дублем формы скрыта — карточка формы
     переносится в вид сверху через topViewFormSlot как и раньше. */
  .booking { display: none; }
}

/* ===== v144: панель «Запись на мастер-класс» убрана из вида сверху (десктоп + телефон) ===== */
.top-view-form { display: none !important; }
.top-view-inner {
  grid-template-columns: minmax(300px, 480px);
  justify-content: center;
}

/* ===== v146: hero-кнопки приподняты на телефоне — обе видны над панелью браузера ===== */
@media (max-width: 820px) {
  .hero-bottom-nav { bottom: 104px !important; }
}

/* ===== v147: надпись «Запись на мастер-класс» на правой странице блокнота ===== */
.nb-month-right {
  left: auto !important;
  right: 96px;
  top: 52px;
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0.12em;
  text-align: right;
  color: #3d352b;
  text-shadow: none;
}
@media (max-width: 820px) {
  /* страницы стопкой: правая (нижняя) начинается после середины блокнота */
  .nb-month-right {
    top: calc(50% + 26px);
    right: 28px;
    font-size: clamp(15px, 4.2vw, 21px);
  }
}

/* ===== v148: на телефоне у блокнота один крестик — быстрый возврат на главную ===== */
@media (max-width: 820px) {
  .notebook-close { display: none !important; }
}

/* ===== v149: «ЗАПИСЬ» — крупно сверху правой страницы, в стиле заголовка месяца ===== */
.nb-month-right {
  left: 55% !important;
  right: auto !important;
  top: 22px;
  font-size: clamp(38px, 5.2vw, 64px);
  letter-spacing: 0.14em;
  text-align: left;
}
@media (max-width: 820px) {
  /* на телефоне страницы стопкой — надпись в начале нижней страницы */
  .nb-month-right {
    left: auto !important;
    right: 28px !important;
    top: calc(50% + 24px);
    font-size: clamp(16px, 4.6vw, 24px);
  }
}

/* ===== v150: «ЗАПИСАТЬСЯ» — чуть меньше, чтобы влезала и смотрелась гармонично с месяцем ===== */
.nb-month-right {
  font-size: clamp(24px, 3.2vw, 42px);
  top: 40px; /* визуально на одной линии с крупным заголовком месяца */
}
@media (max-width: 820px) {
  .nb-month-right {
    top: calc(50% + 24px);
    font-size: clamp(15px, 4.2vw, 22px);
  }
}

/* ===== v151: месяц и «ЗАПИСАТЬСЯ» — одинаковый размер, одна линия на обеих страницах ===== */
.nb-month {
  top: 36px !important;
  font-size: clamp(24px, 2.8vw, 38px) !important;
  letter-spacing: 0.14em !important;
}
.nb-month-right {
  top: 36px !important;
  left: 55% !important;
  right: auto !important;
  font-size: clamp(24px, 2.8vw, 38px) !important;
  letter-spacing: 0.14em !important;
}
@media (max-width: 820px) {
  /* телефон: месяц сверху верхней страницы, «ЗАПИСАТЬСЯ» — сверху нижней, тот же размер */
  .nb-month {
    top: 10px !important;
    font-size: clamp(17px, 4.6vw, 24px) !important;
  }
  .nb-month-right {
    top: calc(50% + 18px) !important;
    left: auto !important;
    right: 28px !important;
    font-size: clamp(17px, 4.6vw, 24px) !important;
  }
}

/* ===== v152: панель «Услуги» в виде сверху + полноэкранная страница описания услуги ===== */
.tv-services-title {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #3d352b;
}
.tv-services-sub {
  margin: 0 0 14px;
  font-size: 14px;
  font-style: italic;
  opacity: 0.6;
}
.tv-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tv-services button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(90, 79, 68, 0.25);
  border-radius: 12px;
  background: rgba(252, 250, 247, 0.8);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  color: #3d352b;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.tv-services button::after {
  content: '→';
  opacity: 0.5;
  flex: none;
}
.tv-services button:hover {
  background: #fffdf6;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(60, 48, 32, 0.12);
}
.service-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: linear-gradient(180deg, #f7f3ec 0%, #efe8da 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 90px 24px 70px;
}
.service-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.service-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(74, 65, 54, 0.4);
  background: rgba(247, 243, 232, 0.92);
  color: #4a4136;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  z-index: 1310;
  transition: background 0.25s ease, transform 0.25s ease;
}
.service-close:hover { background: #fffdf6; transform: rotate(90deg); }
.service-card {
  max-width: 720px;
  margin: 0 auto;
}
.service-sub {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  color: #5c4a33;
  margin-bottom: 14px;
}
.service-card h2 {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  color: #3d352b;
}
.service-card p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: #4a4136;
}
.service-card ul {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #4a4136;
  font-size: 16px;
  line-height: 1.8;
}
.service-price {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid rgba(90, 79, 68, 0.3);
  border-radius: 40px;
  background: rgba(252, 250, 247, 0.85);
  font-weight: 700;
  font-size: 17px;
  color: #3d352b;
}
@media (max-width: 820px) {
  .service-overlay { padding: 76px 18px 50px; }
  .tv-services button { font-size: 14px; padding: 10px 14px; }
}

/* ===== v153: графитовый фон страницы услуги + кнопка «Записаться» справа от цены ===== */
.service-overlay {
  background: linear-gradient(180deg, #33343a 0%, #232428 100%);
}
.service-sub { color: #cfc5b4; opacity: 0.75; }
.service-card h2 { color: #f2ede2; }
.service-card p { color: #d8d2c6; }
.service-card ul { color: #cfc9bd; }
.service-price {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(240, 232, 216, 0.35);
  color: #f2ede2;
}
.service-close {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 232, 216, 0.4);
  color: #f0e8d8;
}
.service-close:hover { background: rgba(255, 255, 255, 0.18); }
.service-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.service-book-btn {
  padding: 12px 32px;
  border: none;
  border-radius: 40px;
  background: #e9dfc9;
  color: #2b2620;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.service-book-btn:hover {
  background: #fff8e8;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* ===== v154: карточка услуги поверх 3D-студии — прозрачный фон, стиль как у «обо мне», белый текст ===== */
.service-overlay {
  background: rgba(18, 16, 13, 0.25);
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  overflow: hidden;
}
.service-card {
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  background: rgba(43, 44, 48, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 44px 46px 38px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.service-sub { color: rgba(255, 255, 255, 0.65); opacity: 1; }
.service-card h2 { color: #ffffff; }
.service-card p { color: rgba(255, 255, 255, 0.88); }
.service-card ul { color: rgba(255, 255, 255, 0.82); }
.service-price {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}
.service-book-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}
.service-book-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
@media (max-width: 820px) {
  .service-card { padding: 34px 22px 28px; }
}

/* ===== v155: адрес на линиях блокнота ===== */
.nb-side-address {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 21px;
  color: #4a4136;
  padding-top: 0;
  overflow: hidden;
}
@media (max-width: 820px) {
  .nb-side-address { font-size: 13px; line-height: 21px; }
}

/* ===== v156: форма «Оставить контакты для обратной связи» на карточке услуги ===== */
.svc-contact {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.svc-contact.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-contact input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.svc-contact input::placeholder { color: rgba(255, 255, 255, 0.55); }
.svc-contact input:focus { border-color: rgba(255, 255, 255, 0.9); }
.svc-contact-send { align-self: flex-start; margin-top: 4px; }
.svc-contact-done {
  display: none;
  color: #cfe8c8;
  font-size: 15px;
}
.svc-contact-done.show { display: block; }

/* ===== v157: без золотистой полосы прокрутки; карточка услуги шире и компактнее на телефоне ===== */
.service-card { scrollbar-width: none; -ms-overflow-style: none; }
.service-card::-webkit-scrollbar { display: none; width: 0; height: 0; }
.service-overlay { scrollbar-width: none; -ms-overflow-style: none; }
.service-overlay::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 820px) {
  .service-overlay { padding: 2vh 3vw; }
  .service-card {
    max-width: 100%;
    max-height: 92vh;
    padding: 26px 18px 22px;
    -webkit-overflow-scrolling: touch;
  }
  .service-card h2 { font-size: clamp(24px, 6.5vw, 32px); margin-bottom: 10px; }
  .service-card p { font-size: 15px; line-height: 1.55; }
  .service-card ul { font-size: 14px; line-height: 1.5; padding-left: 20px; }
  .service-price { font-size: 16px; padding: 8px 14px; }
  .service-book-btn { padding: 11px 22px; font-size: 15px; }
  .svc-contact { margin-top: 14px; padding-top: 14px; }
}

/* ===== v158: крестик закрытия — в правом верхнем углу карточки услуги ===== */
.service-card { position: relative; }
.service-card .service-close {
  /* sticky + float: крестик всегда в правом верхнем углу, даже при прокрутке карточки */
  position: sticky;
  top: 0;
  float: right;
  left: auto;
  bottom: auto;
  margin: -8px -8px 0 12px;
  width: 38px;
  height: 38px;
  font-size: 17px;
  z-index: 3;
}
@media (max-width: 820px) {
  .service-card .service-close { width: 36px; height: 36px; margin: -8px -4px 0 10px; }
}


/* ===== v178: мобильные фиксы ===== */
/* пинч-зум ломал страницу */
html, body { touch-action: pan-y; overscroll-behavior-x: none; }
@media (max-width: 820px) {
  /* «ЗАПИСАТЬСЯ» — на одной линии с месяцем, а не поверх дат */
  .nb-month-right {
    top: 10px !important;
    left: auto !important;
    right: 22px !important;
  }
  /* вместо накладывающихся листов — календарь «приближается» */
  .nb-flipper, .nb-landed { display: none !important; }
  .nb-grid.nb-zoom { animation: nbCalZoom 0.42s cubic-bezier(0.3, 0.05, 0.2, 1) both; }
  .nb-month.nb-zoom { animation: nbCalFade 0.42s ease both; }
}
@keyframes nbCalZoom {
  0% { opacity: 0; transform: scale(0.86); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nbCalFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
/* v181: крестик внутри оверлея: на десктопе JS привязывает его к углу карточки, на телефоне — угол экрана */
.service-overlay > .service-close {
  position: absolute;
  float: none;
  margin: 0;
  top: 16px;
  right: 16px;
  z-index: 1350;
}
@media (max-width: 820px) {
  .service-overlay > .service-close {
    width: 42px;
    height: 42px;
    font-size: 18px;
    top: 12px;
    right: 12px;
  }
}
