/* ============================================
   ИВАН ТЮФЯКИН — Psychologist Website v2
   Liquid Glass · 3D · Advanced Animations
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-cream: #F5F0EB;
  --bg-beige: #EDE6DC;
  --bg-dark: #2C2824;
  --bg-dark-soft: #3A322C;
  --bg-card: #FFFFFF;

  --accent: #B8976A;
  --accent-light: #C8A87C;
  --accent-hover: #A07F55;

  --text-dark: #2C2824;
  --text-body: #4A433D;
  --text-muted: #7A726A;
  --text-light: #F5F0EB;

  --border-soft: rgba(184, 151, 106, .25);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, .15);
  --glass-border: rgba(255, 255, 255, .35);
  --glass-shadow: rgba(184, 151, 106, .18);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-py: 110px;
  --container-w: 1140px;
  --gap: 24px;

  /* Spring-like transitions */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.25, .46, .45, .94);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit
}

/* ---------- Utility ---------- */
.container {
  width: min(var(--container-w), 90%);
  margin: 0 auto;
}

.section-pad {
  padding: var(--section-py) 0
}

.accent-text {
  color: var(--accent)
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 600
}

/* ============================================
   REVEAL ANIMATIONS (multiple variants)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--smooth), transform .9s var(--spring);
}

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

/* Stagger children */
.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

.reveal-delay-4 {
  transition-delay: .4s
}

.reveal-delay-5 {
  transition-delay: .5s
}

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .9s var(--smooth), transform .9s var(--spring);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .9s var(--smooth), transform .9s var(--spring);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0)
}

/* Reveal with 3D flip */
.reveal-3d {
  opacity: 0;
  transform: perspective(800px) rotateY(8deg) translateY(30px);
  transition: opacity .9s var(--smooth), transform 1s var(--spring);
}

.reveal-3d.visible {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) translateY(0);
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(.85);
  transition: opacity .8s var(--smooth), transform .8s var(--spring);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1)
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.25
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem)
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem)
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem)
}

p {
  margin-bottom: 1rem
}

/* ============================================
   LIQUID GLASS BUTTONS (Apple-inspired)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .4s var(--spring);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

/* --- Primary: Liquid Glass gold --- */
.btn-primary {
  background: linear-gradient(135deg,
      rgba(184, 151, 106, .85) 0%,
      rgba(200, 168, 124, .75) 50%,
      rgba(184, 151, 106, .9) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .15) inset,
    0 2px 8px rgba(184, 151, 106, .25),
    0 8px 32px rgba(184, 151, 106, .15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

/* Inner highlight / glare */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, .05) 100%);
  border-radius: 50px 50px 60% 60%;
  pointer-events: none;
  z-index: 1;
}

/* Shimmer sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .3) 50%, transparent 100%);
  transform: skewX(-15deg);
  transition: left .6s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .25) inset,
    0 4px 16px rgba(184, 151, 106, .35),
    0 16px 48px rgba(184, 151, 106, .2);
}

.btn-primary:active {
  transform: translateY(0) scale(.98);
  transition-duration: .1s;
}

/* --- Outline: Liquid Glass transparent --- */
.btn-outline {
  background: rgba(255, 255, 255, .08);
  color: var(--accent);
  border: 1.5px solid rgba(184, 151, 106, .4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 2px 8px rgba(184, 151, 106, .08);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50px 50px 60% 60%;
  pointer-events: none;
}

.btn-outline:hover {
  background: linear-gradient(135deg,
      rgba(184, 151, 106, .8) 0%,
      rgba(200, 168, 124, .7) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .2) inset,
    0 8px 32px rgba(184, 151, 106, .2);
}

.btn-outline:active {
  transform: translateY(0) scale(.98);
  transition-duration: .1s;
}

/* ============================================
   FLOATING 3D ORB DECORATIONS
   ============================================ */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg)
  }

  25% {
    transform: translate(15px, -20px) rotate(5deg)
  }

  50% {
    transform: translate(-10px, -35px) rotate(-3deg)
  }

  75% {
    transform: translate(20px, -15px) rotate(4deg)
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translate(0, 0)
  }

  33% {
    transform: translate(-20px, 15px)
  }

  66% {
    transform: translate(15px, -25px)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(1.1)
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

/* 3D Orb */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb--gold {
  background: radial-gradient(circle at 35% 35%,
      rgba(200, 168, 124, .35) 0%,
      rgba(184, 151, 106, .15) 40%,
      transparent 70%);
  box-shadow:
    inset -8px -8px 24px rgba(184, 151, 106, .1),
    0 0 60px rgba(184, 151, 106, .08);
  animation: float 12s ease-in-out infinite;
}

.orb--glass {
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, .25) 0%,
      rgba(255, 255, 255, .08) 40%,
      transparent 70%);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: floatSlow 16s ease-in-out infinite;
}

.orb--dark {
  background: radial-gradient(circle at 35% 35%,
      rgba(200, 168, 124, .2) 0%,
      rgba(184, 151, 106, .05) 40%,
      transparent 70%);
  animation: float 14s ease-in-out infinite reverse;
}

/* 3D Floating shapes */
.shape-3d {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.shape-3d--ring {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(184, 151, 106, .2);
  border-radius: 50%;
  animation: spinSlow 20s linear infinite;
}

.shape-3d--diamond {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(184, 151, 106, .15), rgba(255, 255, 255, .1));
  border: 1px solid rgba(184, 151, 106, .2);
  transform: rotate(45deg);
  border-radius: 8px;
  animation: floatSlow 10s ease-in-out infinite;
}

.shape-3d--dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .4;
  animation: pulse 3s ease-in-out infinite;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all .5s var(--ease);
}

.header.scrolled {
  background: rgba(245, 240, 235, .75);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(184, 151, 106, .1),
    0 4px 30px rgba(44, 40, 36, .06);
  padding: 10px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 32px
}

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color .3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%
}

.header-cta {
  padding: 10px 24px;
  font-size: .85rem
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all .3s var(--ease);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px)
}

.burger.active span:nth-child(2) {
  opacity: 0
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px)
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 240, 235, .92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.mobile-menu.open {
  display: flex;
  opacity: 1
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-dark);
  transition: color .3s, transform .3s var(--spring);
}

.mobile-menu a:hover {
  color: var(--accent);
  transform: scale(1.05)
}

/* ============================================
   HERO — Bigger photo, 3D elements
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  z-index: 2
}

.hero-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(184, 151, 106, .8), rgba(200, 168, 124, .7));
  color: #fff;
  border-radius: 30px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset;
}

.hero h1 {
  margin-bottom: 20px
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

/* Hero image — BIGGER */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(44, 40, 36, .18),
    0 0 0 1px rgba(255, 255, 255, .1) inset;
  transition: transform .8s var(--spring);
}

.hero-image:hover img {
  transform: rotateY(-3deg) rotateX(2deg) scale(1.02);
}

/* Glass overlay corner badge */
.hero-image::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(184, 151, 106, .25);
  border-radius: 24px;
  opacity: .5;
  z-index: -1;
  animation: floatSlow 8s ease-in-out infinite;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(184, 151, 106, .15), transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* ============================================
   ABOUT / APPROACH
   ============================================ */
.about {
  background: var(--bg-beige);
  position: relative;
  overflow: hidden;
}

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

.about-image {
  position: relative;
  perspective: 800px;
}

.about-image img {
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(44, 40, 36, .12);
  width: 100%;
  object-fit: cover;
  transition: transform .6s var(--spring);
}

.about-image:hover img {
  transform: rotateY(3deg) scale(1.02);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  background: var(--accent);
  border-radius: 16px;
  opacity: .15;
  z-index: -1;
  animation: floatSlow 10s ease-in-out infinite;
}

.about-content h2 {
  margin-bottom: 24px
}

.about-content p {
  color: var(--text-body);
  line-height: 1.85
}

.about-highlight {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(184, 151, 106, .1);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-dark);
}

/* ============================================
   STORY CAROUSEL (МОЙ ПУТЬ)
   ============================================ */
.story {
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.story-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.story-track-wrapper {
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y;
}

.story-track {
  display: flex;
  transition: transform .5s var(--spring);
  will-change: transform;
}

.story-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 44px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.story-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.story-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent);
  pointer-events: none;
}

.story-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .3;
  line-height: 1;
  margin-bottom: 12px;
}

.story-slide h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.story-slide p {
  color: var(--text-body);
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 0;
}

/* Arrows */
.story-arrow,
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--spring);
  box-shadow: 0 4px 20px rgba(44, 40, 36, .1);
}

.story-arrow:hover,
.gallery-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(184, 151, 106, .3);
}

.story-arrow:disabled,
.gallery-arrow:disabled {
  opacity: .3;
  pointer-events: none;
}

.story-arrow--prev,
.gallery-arrow--prev {
  left: -24px;
}

.story-arrow--next,
.gallery-arrow--next {
  right: -24px;
}

/* Dots */
.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.story-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-soft);
  cursor: pointer;
  transition: all .3s var(--spring);
}

.story-dots .dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Counter */
.story-counter,
.gallery-counter {
  text-align: center;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.story-current,
.gallery-current {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   DIPLOMA GALLERY
   ============================================ */
.diplomas {
  background: var(--bg-beige);
  position: relative;
  overflow: hidden;
}

.gallery {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-track-wrapper {
  overflow: hidden;
  border-radius: 20px;
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  gap: 16px;
  transition: transform .5s var(--spring);
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all .4s var(--spring);
  position: relative;
  background: var(--bg-card);
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(44, 40, 36, .4);
  opacity: 0;
  transition: opacity .3s var(--ease);
  border-radius: 16px;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(44, 40, 36, .15);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}

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

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .3s var(--ease);
  border: 1px solid rgba(255, 255, 255, .15);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
  transition: transform .4s var(--spring);
}

.lightbox.open .lightbox-content img {
  animation: lightboxIn .4s var(--spring) both;
}

@keyframes lightboxIn {
  from {
    transform: scale(.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .3s var(--ease);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, .25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow--prev {
  left: 20px;
}

.lightbox-arrow--next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  font-weight: 500;
}

.lightbox-current {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================
   PROBLEMS (С ЧЕМ РАБОТАЮ) — 3D Cards
   ============================================ */
.problems {
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header .uppercase {
  color: var(--accent);
  margin-bottom: 12px;
  display: block
}

.section-header h2 {
  margin-bottom: 16px
}

.section-header p {
  color: var(--text-muted)
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--border-soft);
  transition: all .5s var(--spring);
  position: relative;
  overflow: hidden;
  perspective: 600px;
  transform-style: preserve-3d;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.problem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.problem-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 20px 50px rgba(44, 40, 36, .1),
    0 0 0 1px rgba(184, 151, 106, .15);
}

.problem-card:hover::before {
  opacity: 1
}

.problem-card .icon {
  width: 52px;
  height: 52px;
  background: rgba(184, 151, 106, .12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  transition: transform .4s var(--spring);
}

.problem-card:hover .icon {
  transform: scale(1.15) rotate(-5deg);
}

.problem-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem
}

.problem-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 0
}

/* ============================================
   METHOD (МОЙ МЕТОД) — 3D Glassmorphism Cards
   ============================================ */
.method {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.method .section-header h2 {
  color: var(--text-light)
}

.method .section-header .uppercase {
  color: var(--accent-light)
}

.method .section-header p {
  color: rgba(245, 240, 235, .6)
}

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

.method-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 36px 30px;
  transition: all .5s var(--spring);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.method-card:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .25),
    0 0 0 1px rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}

.method-card .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1;
  transition: transform .4s var(--spring);
}

.method-card:hover .num {
  transform: scale(1.15);
}

.method-card h3 {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 1.15rem
}

.method-card p {
  color: rgba(245, 240, 235, .6);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 0
}

/* ============================================
   CONSULTATION (КАК ПРОХОДИТ)
   ============================================ */
.consultation {
  background: var(--bg-beige);
  position: relative;
  overflow: hidden;
}

.consultation .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.consult-info {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.consult-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform .3s var(--spring);
}

.consult-step:hover {
  transform: translateX(8px)
}

.consult-step .step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184, 151, 106, .85), rgba(200, 168, 124, .7));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 4px 16px rgba(184, 151, 106, .2);
}

.consult-step h3 {
  margin-bottom: 6px;
  font-size: 1.05rem
}

.consult-step p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 0
}

.consult-features {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .5) inset,
    0 16px 50px rgba(44, 40, 36, .08);
  border: 1px solid rgba(184, 151, 106, .15);
  position: relative;
  overflow: hidden;
}

.consult-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), transparent);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

.consult-features h3 {
  margin-bottom: 24px;
  font-size: 1.3rem
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(184, 151, 106, .12);
}

.feature-item:last-child {
  border-bottom: none
}

.feature-item .check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(184, 151, 106, .15), rgba(184, 151, 106, .08));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  margin-top: 2px;
  border: 1px solid rgba(184, 151, 106, .15);
}

.feature-item p {
  margin-bottom: 0;
  font-size: .95rem
}

/* ============================================
   RESULTS (РЕЗУЛЬТАТЫ)
   ============================================ */
.results {
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

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

.result-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px 26px;
  border: 1px solid var(--border-soft);
  transition: all .5s var(--spring);
  position: relative;
  overflow: hidden;
}

.result-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.result-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 20px 50px rgba(44, 40, 36, .1);
}

.result-card .result-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  transition: transform .4s var(--spring);
}

.result-card:hover .result-icon {
  transform: scale(1.2) rotate(10deg)
}

.result-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px
}

.result-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 0
}

/* ============================================
   REVIEWS (ОТЗЫВЫ) — Glassmorphism
   ============================================ */
.reviews {
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.reviews .section-header h2 {
  color: var(--text-light)
}

.reviews .section-header .uppercase {
  color: var(--accent-light)
}

.reviews .section-header p {
  color: rgba(245, 240, 235, .6)
}

.reviews .gallery {
  margin-bottom: 48px;
}

.reviews .gallery-counter {
  color: rgba(255, 255, 255, 0.6);
}

.reviews .gallery-item {
  background: var(--bg-dark-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.reviews .gallery-item img {
  height: 540px; 
  object-fit: cover;
  object-position: top;
}

.reviews .gallery-arrow {
  background: rgba(44, 40, 36, .6);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,.15);
}

.reviews .gallery-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.reviews-cta {
  text-align: center
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-beige);
  position: relative;
  overflow: hidden;
}

.contact .container {
  text-align: center;
  max-width: 720px
}

.contact h2 {
  margin-bottom: 16px
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.85;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(245, 240, 235, .5);
  padding: 32px 0;
  text-align: center;
  font-size: .85rem;
}

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

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

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */
section {
  position: relative;
}

/* ============================================
   RESPONSIVE — FULL MOBILE SUPPORT
   ============================================ */

/* Tablet */
@media(max-width:1024px) {
  :root {
    --section-py: 72px
  }

  .hero .container {
    gap: 40px
  }

  .about .container {
    gap: 40px
  }

  .consultation .container {
    gap: 40px
  }

  .method-grid {
    gap: 16px
  }

  .results-grid {
    gap: 16px
  }

  .reviews-grid {
    gap: 16px
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: .8rem;
  }

  .orb,
  .shape-3d {
    display: none
  }

  .story-arrow--prev,
  .gallery-arrow--prev {
    left: -16px;
  }

  .story-arrow--next,
  .gallery-arrow--next {
    right: -16px;
  }

  .gallery-item {
    flex: 0 0 calc(50% - 8px);
  }
}

/* Mobile */
@media(max-width:768px) {
  :root {
    --section-py: 56px
  }

  .nav-links,
  .header-cta {
    display: none
  }

  .burger {
    display: flex
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto
  }

  .hero-buttons {
    justify-content: center
  }

  .hero-image::before {
    display: none
  }

  .hero-image img {
    max-width: 320px
  }

  /* About */
  .about .container {
    grid-template-columns: 1fr;
    text-align: center
  }

  .about-image {
    order: -1
  }

  .about-highlight {
    text-align: left
  }

  /* Story carousel */
  .story-slide {
    padding: 28px 24px;
  }

  .story-num {
    font-size: 2.2rem;
  }

  .story-slide h3 {
    font-size: 1.1rem;
  }

  .story-slide p {
    font-size: .9rem;
  }

  .story-arrow,
  .gallery-arrow {
    width: 40px;
    height: 40px;
  }

  .story-arrow--prev,
  .gallery-arrow--prev {
    left: -8px;
  }

  .story-arrow--next,
  .gallery-arrow--next {
    right: -8px;
  }

  /* Gallery */
  .gallery-item {
    flex: 0 0 calc(100% - 0px);
  }

  .gallery-item img {
    height: 360px;
  }

  /* Grids → single column */
  .problems-grid {
    grid-template-columns: 1fr
  }

  .method-grid {
    grid-template-columns: 1fr
  }

  .consultation .container {
    grid-template-columns: 1fr
  }

  .results-grid {
    grid-template-columns: 1fr
  }

  .reviews-grid {
    grid-template-columns: 1fr
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center
  }

  /* Lightbox mobile */
  .lightbox-content {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-arrow--prev {
    left: 8px;
  }

  .lightbox-arrow--next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* Small mobile */
@media(max-width:480px) {
  :root {
    --section-py: 44px
  }

  .container {
    width: 92%;
  }

  h1 {
    font-size: 2rem
  }

  h2 {
    font-size: 1.4rem
  }

  .btn {
    padding: 14px 24px;
    font-size: .85rem;
    width: 100%;
    justify-content: center;
  }

  .hero-image img {
    max-width: 280px;
  }

  .problem-card,
  .method-card,
  .review-card,
  .result-card {
    padding: 24px 20px
  }

  .consult-features {
    padding: 28px 22px
  }

  .story-slide {
    padding: 24px 20px;
  }

  .story-num {
    font-size: 1.8rem;
  }

  .story-dots .dot {
    width: 8px;
    height: 8px;
  }

  .gallery-item img {
    height: 300px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* Mobile menu fine-tuning */
  .mobile-menu a {
    font-size: 1.3rem;
  }

  .mobile-menu {
    gap: 20px;
  }
}