/*
Tooplate 2162 StackCraft
https://www.tooplate.com/view/2162-stackcraft
Free HTML CSS Template
*/

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --bg-primary: #0f0e0b;
  --bg-secondary: #161510;
  --bg-card: #1c1a15;
  --bg-card-hover: #23211a;
  --bg-elevated: #1a1814;
  --text-primary: #f0ece4;
  --text-secondary: #a8a295;
  --text-muted: #706b61;
  --accent: #c9a96e;
  --accent-light: #dfc596;
  --accent-dim: #8a7548;
  --border: rgba(201, 169, 110, 0.12);
  --border-strong: rgba(201, 169, 110, 0.25);
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-byn: 'NBRB BYN', sans-serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
  font-family: 'NBRB BYN';
  src: url('../fonts/nbrb/nbrb.woff2') format('woff2'),
       url('../fonts/nbrb/nbrb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.byn-symbol {
  font-family: var(--font-byn);
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  font-size: 1.42em;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  top: -0.06em;
}

.currency-amount {
  line-height: 1;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: rgba(15, 14, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.nav.scrolled {
  background: rgba(15, 14, 11, 0.95);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s, letter-spacing 0.4s var(--ease-out);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::before,
.nav-links a::after {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.1em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.nav-links a::before {
  content: '[';
  left: -0.6em;
  transform: translateX(4px);
}

.nav-links a::after {
  content: ']';
  right: -0.6em;
  transform: translateX(-4px);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  letter-spacing: 0.16em;
}

.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-cta {
  font-size: 0.82rem !important;
  letter-spacing: 0.12em !important;
  padding: 0.75rem 1.8rem !important;
  border: 1px solid var(--accent-dim);
  color: var(--accent) !important;
  transition: all 0.3s var(--ease-smooth) !important;
}

.nav-cta::before,
.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-primary) !important;
  border-color: var(--accent);
  letter-spacing: 0.12em !important;
}

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(28, 26, 21, 0.35);
  transition: color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.nav-cart-icon:hover,
.nav-cart-icon.active {
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(201, 169, 110, 0.08);
}

.nav-cart-icon-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-cart-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.nav-wishlist-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(28, 26, 21, 0.35);
  transition: color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.nav-wishlist-icon:hover,
.nav-wishlist-icon.active {
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(201, 169, 110, 0.08);
}

.nav-wishlist-icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-wishlist-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ========================================
   HERO — SPLIT LAYOUT
   ======================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 10vh, 8rem) clamp(2rem, 6vw, 5rem);
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-tagline p {
  margin: 0;
}

.hero-tagline p + p {
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost:hover {
  color: var(--accent);
}

/* Hero visual side */
.hero-visual {
  position: relative;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
}

.hero-code-block {
  position: relative;
  width: 80%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  opacity: 0;
  animation: fadeScale 1s var(--ease-out) 0.5s forwards;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.code-dot:nth-child(1) { background: #e06c60; opacity: 0.7; }
.code-dot:nth-child(2) { background: #e5bf4e; opacity: 0.7; }
.code-dot:nth-child(3) { background: #61c354; opacity: 0.7; }

.code-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.code-body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.code-body .kw { color: #c792ea; }
.code-body .fn { color: #82aaff; }
.code-body .str { color: #c3e88d; }
.code-body .cm { color: var(--text-muted); font-style: italic; }
.code-body .num { color: #f78c6c; }
.code-body .op { color: #89ddff; }
.code-body .pr { color: var(--accent); }
.code-body .typ { color: #ffcb6b; }

/* Floating decorative elements */
.hero-float {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: float 6s ease-in-out infinite;
}

.hero-float-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.hero-float-2 {
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 8%;
  animation-delay: -2s;
}

.hero-float-3 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: 20%;
  opacity: 0.4;
  animation-delay: -4s;
}

/* ========================================
   SECTIONS — SHARED
   ======================================== */
.section {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
}

.section--compact {
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ABOUT
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}

.about-photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.about-photo-placeholder span {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

/* ========================================
   SKILLS / TECH STACK
   ======================================== */
.skills-section {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.skill-category h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.skill-bar {
  margin-bottom: 1.4rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.skill-bar-name {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.skill-bar-pct {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.skill-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(201, 169, 110, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
  width: var(--w);
  animation: barFill 1.2s var(--ease-out) forwards;
}

@keyframes barFill {
  from { width: 0; }
  to { width: var(--w); }
}

/* Tech stack icons */
.tech-stack {
  margin-top: 3rem;
}

.tech-stack h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
}

.tech-icon:hover {
  border-color: var(--border-strong);
  color: var(--accent);
  transform: translateY(-2px);
}

.tech-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* GitHub Contributions Grid */
.github-section {
  margin-top: 3.5rem;
}

.github-section h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.github-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 3px;
  width: 100%;
}

.contrib-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(201, 169, 110, 0.06);
  transition: background 0.2s;
}

.contrib-cell.l1 { background: rgba(201, 169, 110, 0.14); }
.contrib-cell.l2 { background: rgba(201, 169, 110, 0.28); }
.contrib-cell.l3 { background: rgba(201, 169, 110, 0.48); }
.contrib-cell.l4 { background: rgba(201, 169, 110, 0.75); }

.contrib-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contrib-legend span {
  margin: 0 4px;
}

.contrib-legend-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* ========================================
   PROJECTS
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.8rem;
}

.project-card:first-child {
  grid-row: 1 / 3;
}

.project-card:first-child .project-thumb {
  aspect-ratio: 4/3;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:nth-child(2),
.project-card:nth-child(3) {
  flex-direction: row;
}

.project-card:nth-child(2) .project-thumb,
.project-card:nth-child(3) .project-thumb {
  aspect-ratio: auto;
  min-width: 180px;
  max-width: 200px;
  flex-shrink: 0;
}

.project-card:nth-child(4) {
  grid-column: 1 / -1;
  flex-direction: row;
}

.project-card:nth-child(4) .project-thumb {
  aspect-ratio: auto;
  min-width: 280px;
  max-width: 340px;
  flex-shrink: 0;
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.project-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 1px 1px, var(--accent) 1px, transparent 0);
  background-size: 20px 20px;
}

.project-thumb-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  color: var(--accent-dim);
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201, 169, 110, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease-out);
}

.project-link:hover {
  gap: 0.8rem;
}

.project-link svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   EXPERIENCE
   ======================================== */
.experience-section {
  background: var(--bg-secondary);
}

.experience-section .section-label {
  justify-content: center;
}

.experience-section .section-title {
  text-align: center;
}

.experience-section .section-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding-bottom: 3.5rem;
  width: 46%;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
  margin-left: 54%;
  text-align: left;
  padding-left: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -6px;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.section-contacts {
  padding-top: 10rem;
  min-height: 70vh;
}

.contact-page {
  max-width: 720px;
}

.contact-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-text p {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-press {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-press p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.contact-press-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s, gap 0.3s var(--ease-smooth);
}

.contact-press-link:hover {
  color: var(--accent-light);
  gap: 0.75rem;
}

.contact-press-link svg {
  width: 14px;
  height: 14px;
}

.contact-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-legal p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.contact-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.3s;
}

.contact-legal a:hover {
  color: var(--accent);
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s;
  margin-bottom: 2rem;
}

.contact-email:hover {
  color: var(--accent-light);
}

.contact-email svg {
  width: 20px;
  height: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(201, 169, 110, 0.05);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s;
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-dim);
}

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

.btn-submit {
  align-self: flex-start;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--accent-light);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 8rem 2rem 4rem;
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 50vh;
    padding: 3rem 2rem;
  }

  .page-hero-home .hero-visual {
    display: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-card:nth-child(2),
  .project-card:nth-child(3) {
    flex-direction: column;
  }

  .project-card:nth-child(2) .project-thumb,
  .project-card:nth-child(3) .project-thumb {
    min-width: 100%;
    max-width: 100%;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-elevated);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 120px 2rem 80px;
    border-left: 1px solid var(--border);
    transition: right 0.4s var(--ease-smooth);
    overflow-y: auto;
  }

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

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-actions {
    z-index: 1001;
  }

  .hero-content {
    padding: 7rem 1.5rem 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 220px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

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

  .project-card:first-child {
    grid-row: auto;
  }

  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) {
    flex-direction: column;
  }

  .project-card:nth-child(2) .project-thumb,
  .project-card:nth-child(3) .project-thumb,
  .project-card:nth-child(4) .project-thumb {
    min-width: 100%;
    max-width: 100%;
    aspect-ratio: 16/10;
  }

  .project-card:nth-child(4) {
    grid-column: auto;
  }

  /* Timeline collapse to single column */
  .timeline::before {
    left: 0;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    text-align: left !important;
    padding-left: 2rem !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
  }

  .timeline-dot {
    left: -6px !important;
    right: auto !important;
  }

  .contrib-grid {
    grid-template-columns: repeat(26, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}

/* ========================================
   LYS MULTI-PAGE LAYOUT
   ======================================== */
main {
  min-height: 60vh;
}

.page-hero {
  padding: 10rem clamp(1.5rem, 4vw, 3rem) 4rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero:not(.page-hero-home) {
  padding-bottom: 2rem;
}

.page-hero + .section {
  padding-top: 2rem;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero--with-media {
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero-layout .page-hero-inner {
  margin: 0;
  max-width: none;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero-title em {
  font-style: italic;
  color: var(--accent);
}

.page-hero-subtitle {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-hero-subtitle p {
  margin: 0;
}

.page-hero-subtitle p + p {
  margin-top: 1rem;
}

.page-hero-home {
  min-height: 100vh;
}

.hero-about-photo {
  width: min(100%, 400px);
  aspect-ratio: 678 / 1024;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-row {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-smooth);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 0.75rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth), visibility 0.25s;
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.nav-dropdown a::before,
.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--accent);
  background: rgba(201, 169, 110, 0.06);
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.category-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.category-card-desc {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.category-card-link {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.catalog-breadcrumb a:hover {
  color: var(--accent);
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.catalog-empty p {
  color: var(--text-secondary);
  max-width: 520px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Catalog search */
.catalog-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.catalog-search-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

.catalog-search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.catalog-search-submit {
  flex: 0 0 auto;
}

.catalog-search-summary {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Category layout */
.section-inner--catalog {
  max-width: 1360px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.catalog-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-layout-sidebar {
  min-width: 0;
}

.catalog-layout-main {
  min-width: 0;
}

.catalog-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-bottom: 1.25rem;
}

.catalog-sort-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.catalog-sort-select {
  width: auto;
  min-width: 11rem;
  max-width: 15rem;
  flex: 0 0 auto;
}

/* Category filters */
.catalog-filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: sticky;
  top: 6rem;
}

.catalog-filters-title {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
}

.catalog-filters-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.catalog-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.catalog-filter-group label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-filter-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.catalog-filter-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.catalog-filter-group--checkbox {
  padding-top: 0.25rem;
}

.catalog-filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.catalog-filter-checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.catalog-filters-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.catalog-filters-submit {
  width: 100%;
}

.catalog-filters-reset {
  align-self: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.catalog-filters-reset:hover {
  color: var(--accent);
}

/* Similar products */
.similar-products-section {
  padding-top: 0;
}

.similar-products-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.catalog-layout-main .product-grid,
.section-inner--catalog > .product-grid,
.similar-products-section .product-grid {
  gap: 1.25rem;
}

@media (min-width: 769px) {
  .catalog-layout-main .product-grid,
  .section-inner--catalog > .product-grid,
  .similar-products-section .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: inherit;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.product-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.catalog-layout-main .product-card,
.section-inner--catalog > .product-grid .product-card,
.similar-products-section .product-card {
  padding: 1rem;
  gap: 0.65rem;
}

.catalog-layout-main .product-card-link,
.section-inner--catalog > .product-grid .product-card-link,
.similar-products-section .product-card-link {
  gap: 0.65rem;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.product-card-image-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
}

.catalog-layout-main .product-card-image-wrap,
.section-inner--catalog > .product-grid .product-card-image-wrap,
.similar-products-section .product-card-image-wrap {
  aspect-ratio: 3 / 4;
}

.product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.product-card .product-price {
  margin-top: auto;
}

.wishlist-toggle-form {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  top: auto;
  z-index: 2;
}

.catalog-layout-main .wishlist-toggle-form,
.section-inner--catalog > .product-grid .wishlist-toggle-form,
.similar-products-section .wishlist-toggle-form {
  bottom: 0.55rem;
  right: 0.55rem;
  top: auto;
}

.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.72);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.wishlist-btn:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  background: rgba(201, 169, 110, 0.12);
  transform: scale(1.04);
}

.wishlist-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.16);
}

.wishlist-btn-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.wishlist-btn--detail {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.wishlist-btn--detail .wishlist-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.product-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-detail-heading .product-detail-title {
  margin: 0;
}

.product-detail-heading .wishlist-toggle-form {
  position: static;
}

.wishlist-back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.wishlist-back-link:hover {
  color: var(--accent);
}

.catalog-layout-main .product-card-title,
.section-inner--catalog > .product-grid .product-card-title,
.similar-products-section .product-card-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.catalog-layout-main .product-card-price,
.section-inner--catalog > .product-grid .product-card-price {
  font-size: 1rem;
}

.product-card-price {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.product-price--discount .product-price-current {
  color: var(--accent);
  font-size: 1.2rem;
}

.product-price-old {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: line-through;
}

.product-price-badge {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .catalog-layout-main .product-grid,
  .section-inner--catalog > .product-grid,
  .similar-products-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .catalog-layout-main .product-card,
  .section-inner--catalog > .product-grid .product-card,
  .similar-products-section .product-card {
    padding: 0.5rem;
    gap: 0.35rem;
  }

  .catalog-layout-main .product-card-image-wrap,
  .section-inner--catalog > .product-grid .product-card-image-wrap,
  .similar-products-section .product-card-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .catalog-layout-main .product-card-title,
  .section-inner--catalog > .product-grid .product-card-title,
  .similar-products-section .product-card-title {
    font-size: 0.76rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .catalog-layout-main .product-card .product-price,
  .section-inner--catalog > .product-grid .product-card .product-price,
  .similar-products-section .product-card .product-price {
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    gap: 0.2rem 0.35rem;
  }

  .catalog-layout-main .product-price--discount .product-price-current,
  .section-inner--catalog > .product-grid .product-price--discount .product-price-current,
  .similar-products-section .product-price--discount .product-price-current {
    font-size: 0.76rem;
  }

  .catalog-layout-main .product-price-old,
  .section-inner--catalog > .product-grid .product-price-old,
  .similar-products-section .product-price-old {
    font-size: 0.68rem;
  }

  .catalog-layout-main .product-price-badge,
  .section-inner--catalog > .product-grid .product-price-badge,
  .similar-products-section .product-price-badge {
    font-size: 0.58rem;
    padding: 0.1rem 0.3rem;
  }
}

.product-detail-info .product-price {
  font-size: 1.5rem;
}

.product-detail-info .product-price--discount .product-price-current {
  font-size: 1.6rem;
}

/* Product detail */
.product-detail-section {
  padding-top: 7rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-gallery-main {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.product-gallery-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.product-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-smooth), visibility 0.35s var(--ease-smooth);
}

.product-gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.product-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-nav {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.product-gallery-nav:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-gallery-thumb {
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.product-gallery-thumb.is-active,
.product-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-counter {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-detail-label {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.product-detail-description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-detail-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.product-detail-block-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-option-group--sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.5rem;
}

.product-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.product-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-option--chip {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.product-option--size {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  min-width: 0;
  padding: 0.5rem 0.65rem;
}

.product-option-size-title {
  flex: 0 0 auto;
  min-width: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

.product-option-size-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-option-size-measure {
  display: block;
}

.product-option:hover {
  border-color: var(--border-strong);
}

.product-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.08);
  color: var(--text-primary);
}

.product-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-quantity-group {
  max-width: 8rem;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
}

.product-detail-back {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.product-detail-back:hover {
  color: var(--accent);
}

.product-add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-line-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cart-line-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.cart-line-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.cart-line-title a {
  color: inherit;
  text-decoration: none;
}

.cart-line-title a:hover {
  color: var(--accent);
}

.cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 140px;
}

.cart-line-quantity-form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.cart-line-quantity-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cart-line-quantity-input {
  width: 5rem;
  text-align: center;
}

.cart-line-update-btn,
.cart-line-remove-btn {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cart-line-update-btn:hover,
.cart-line-remove-btn:hover {
  color: var(--accent);
}

.cart-line-total {
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.cart-summary,
.checkout-summary {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-summary-title,
.checkout-summary-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cart-summary-total,
.checkout-summary-total {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 1.75rem;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cart-totals-row--discount {
  color: var(--accent);
}

.cart-totals-row--total {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
}

.cart-totals-row--total strong {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
}

.cart-promo-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.cart-promo-form--applied {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.15);
}

.cart-promo-form--invalid {
  border-color: #9a4f4f;
  box-shadow: 0 0 0 1px rgba(154, 79, 79, 0.2);
}

.cart-promo-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cart-promo-status {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.cart-promo-status--error {
  color: #d98f8f;
}

.cart-promo-input-wrap {
  position: relative;
  display: block;
}

.cart-promo-input {
  width: 100%;
  padding-right: 2.5rem;
}

.cart-promo-form--applied .cart-promo-input {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-promo-form--invalid .cart-promo-input {
  border-color: #9a4f4f;
}

.cart-promo-clear {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-promo-clear:hover {
  color: var(--accent);
  background: rgba(201, 169, 110, 0.1);
}

.cart-promo-apply {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-promo-apply:hover {
  opacity: 0.9;
}

.cart-promo-controls {
  display: flex;
  gap: 0.5rem;
}

.cart-promo-controls .form-control {
  flex: 1;
}

.cart-promo-btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.cart-promo-btn--secondary {
  background: transparent;
  color: var(--accent);
}

.cart-promo-btn:hover {
  opacity: 0.9;
}

.cart-summary-btn {
  width: 100%;
  justify-content: center;
}

.cart-summary-back,
.checkout-back {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.cart-summary-back:hover,
.checkout-back:hover {
  color: var(--accent);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-product {
  margin: 0;
  font-weight: 500;
}

.checkout-summary-meta {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.checkout-summary-price {
  margin: 0;
  white-space: nowrap;
}

.checkout-summary .cart-totals {
  margin-top: 0.5rem;
}

.checkout-form {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery-main {
    grid-template-columns: 1fr;
  }

  .product-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .product-gallery-nav--prev {
    left: 0.75rem;
  }

  .product-gallery-nav--next {
    right: 0.75rem;
  }

  .cart-layout,
  .checkout-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: static;
  }

  .catalog-sort {
    gap: 0.6rem;
  }

  .catalog-sort-select {
    min-width: 9.5rem;
    max-width: 12rem;
  }

  .cart-line {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cart-line-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
  }
}

@media (min-width: 1200px) {
  .section-inner--catalog {
    max-width: 1480px;
  }
}

/* Services preview on home */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.service-preview-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.service-preview-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.service-preview-card p {
  flex: 1;
  color: var(--text-secondary);
}

.service-preview-link {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Service options with booking */
.service-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-options-grid-compact {
  max-width: 900px;
}

.service-option-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.service-option-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.service-option-content p {
  color: var(--text-secondary);
}

.service-option-content .service-option-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.service-option-price .currency-amount {
  font-family: var(--font-display);
}

.service-option-price .byn-symbol {
  font-size: 1.15em;
  top: 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Gift certificates */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gift-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gift-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.gift-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.gift-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gift-features li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-left: 1rem;
  position: relative;
}

.gift-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.gift-order {
  max-width: 560px;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gift-order h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.gift-order > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.gift-amount-note {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: -0.25rem 0 0.75rem;
}

.gift-amount-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.gift-amount-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.gift-amount-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.gift-amount-option:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.gift-amount-option:has(.gift-amount-radio-input:checked) {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.gift-amount-radio-input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.gift-amount-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* Women's club */
.women-club-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 3rem;
  align-items: start;
}

.women-club-text,
.women-club-media {
  min-width: 0;
}

.women-club-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.9;
}

.women-club-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.women-club-benefits > li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
}

.women-club-benefits > li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.women-club-benefits ul {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0.75rem;
}

.women-club-benefits ul li {
  position: relative;
  padding-left: 1rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.women-club-benefits ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.7;
}

.women-club-cta {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.women-club-cta strong {
  color: var(--accent);
  font-weight: 600;
}

.women-club-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.women-club-video {
  width: 100%;
  max-width: 320px;
  max-height: min(72vh, 560px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.women-club-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.women-club-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.women-club-social-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.women-club-social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
}

.women-club-social-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .women-club-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .women-club-media {
    width: 100%;
  }

  .women-club-video {
    max-width: 300px;
    max-height: 55vh;
  }
}

@media (max-width: 900px) {
  .service-option-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-item-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-row {
    justify-content: center;
  }

  .nav-dropdown-btn {
    display: inline-flex;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-smooth);
  }

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

  .nav-item-dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
  }

  .nav-dropdown a {
    padding: 0.45rem 0;
  }
}

@media (max-width: 768px) {
  .page-hero:not(.page-hero-home) {
    padding-top: 6.5rem;
    padding-bottom: 1.25rem;
  }

  .page-hero + .section {
    padding-top: 1.25rem;
  }

  .section-contacts {
    padding-top: 8rem;
  }

  .category-grid,
  .services-preview-grid,
  .gift-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   MESSAGES & BOOKING FORMS
   ======================================== */
.messages {
  max-width: 1280px;
  margin: 6.5rem auto 0;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.message {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 0.75rem;
}

.message-success {
  border-color: rgba(120, 180, 140, 0.35);
}

.message-error {
  border-color: rgba(200, 120, 120, 0.35);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.form-error {
  color: #d4a0a0;
  font-size: 0.82rem;
}

.form-group-error .form-control,
.form-control.form-control-invalid {
  border-color: #d4a0a0;
  box-shadow: 0 0 0 1px rgba(212, 160, 160, 0.35);
}

.form-group-error label {
  color: #d4a0a0;
}

.form-consent-group {
  margin-top: 0.25rem;
}

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-consent-label input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-consent-text a:hover {
  color: var(--accent-light);
}

.legal-document {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--text-muted);
}

.legal-document h2 {
  margin: 2rem 0 0.75rem;
  color: var(--text);
  font-size: 1.35rem;
}

.legal-document p,
.legal-document li {
  line-height: 1.7;
}

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

.legal-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legal-document a {
  color: var(--accent);
}

.legal-document a:hover {
  color: var(--accent-light);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.session-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.session-list li {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.session-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.masterclass-schedule {
  margin-bottom: 4rem;
}

.masterclass-video,
.page-hero-media {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.masterclass-video-player,
.page-hero-video-player {
  width: 100%;
  max-width: 280px;
  max-height: min(68vh, 500px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.schedule-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.schedule-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.schedule-card-full {
  opacity: 0.72;
}

.schedule-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.schedule-card-day {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}

.schedule-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.schedule-card-date {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-card-month {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.schedule-card-time {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.schedule-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.schedule-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  color: var(--accent);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.schedule-card-price .currency-amount {
  font-family: var(--font-display);
}

.schedule-card-price .byn-symbol {
  font-size: 1.15em;
  top: 0;
}

.schedule-card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.schedule-card-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

.schedule-card-status-full {
  color: #d4a0a0;
}

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

.service-options-grid.training-grid {
  max-width: none;
}

@media (max-width: 900px) {
  .page-hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .masterclass-video,
  .page-hero-media {
    justify-content: center;
  }

  .masterclass-video-player,
  .page-hero-video-player {
    max-width: 300px;
    max-height: 55vh;
  }

  .masterclasses-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }
}

/* Age gate (18+) for catalog */
html.age-gate-pending,
html.age-gate-pending body {
  overflow: hidden;
  height: 100%;
}

html.age-gate-pending nav,
html.age-gate-pending main,
html.age-gate-pending .footer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: auto;
}

html.age-gate-pending .age-gate {
  display: flex;
}

.age-gate[hidden] {
  display: none !important;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 24, 20, 0.78), rgba(15, 14, 11, 0.96)),
    var(--bg-primary);
  pointer-events: auto;
}

.age-gate-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: auto;
  padding: 2.25rem 2rem;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(201, 169, 110, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: fadeSlideUp 0.45s var(--ease-out);
}

.age-gate-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.age-gate-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

.age-gate-text {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.age-gate-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .age-gate-dialog {
    padding: 1.75rem 1.25rem;
  }
}
