/* ===========================
   ПЕРЕМЕННЫЕ
=========================== */
:root {
  --primary: #8B2635;
  --primary-dark: #6B1E2A;
  --primary-light: rgba(139,38,53,0.12);
  --gold: #C9973A;
  --gold-light: #E8B84B;
  --gold-glow: rgba(201,151,58,0.35);
  --neon-pink: #FF6B9D;
  --neon-rose: rgba(255,107,157,0.6);
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --bg: #FDF6F0;
  --white: #FFFFFF;
  --radius: 16px;
  --card-shadow: 0 4px 24px rgba(139,38,53,0.08);
  --transition: all 0.3s ease;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

/* ===========================
   СБРОС И БАЗА
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===========================
   КОНТЕЙНЕР
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   ХЕДЕР
=========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,246,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,151,58,0.15);
  box-shadow: 0 2px 24px rgba(139,38,53,0.07);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--neon-pink) 25%,
    var(--gold) 50%,
    var(--primary) 75%,
    transparent 100%
  );
  opacity: 0.6;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ===========================
   ЛОГО
=========================== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(139,38,53,0.25));
}

.logo:hover .logo-icon-wrap {
  transform: rotate(-8deg) scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(139,38,53,0.4));
}

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

.logo-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===========================
   НАВИГАЦИЯ
=========================== */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--neon-pink));
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

/* ===========================
   БУРГЕР
=========================== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   МОБИЛЬНОЕ МЕНЮ
=========================== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(201,151,58,0.15);
  padding: 16px 24px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(139,38,53,0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(201,151,58,0.1);
  transition: var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* ===========================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  background: linear-gradient(
    135deg,
    rgba(255,107,157,0.1),
    rgba(201,151,58,0.12)
  );
  border: 1px solid rgba(201,151,58,0.3);
  padding: 5px 16px;
  border-radius: 50px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-title span {
  color: var(--primary);
  position: relative;
}

.section-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================
   HERO
=========================== */
.hero {
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Неоновые глоу-пятна */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255,107,157,0.18) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(201,151,58,0.15) 0%,
    transparent 70%
  );
  bottom: -50px;
  left: -50px;
  animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  50%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1);   opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* HERO/* ===========================
   HERO LABEL
=========================== */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(255,107,157,0.1),
    rgba(201,151,58,0.1)
  );
  border: 1px solid rgba(255,107,157,0.3);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 50px;
  width: fit-content;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.1s;
  box-shadow: 0 0 20px rgba(255,107,157,0.1),
              inset 0 0 20px rgba(255,107,157,0.05);
}

.hero-label-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-pink),
              0 0 16px rgba(255,107,157,0.5);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--neon-pink), 0 0 16px rgba(255,107,157,0.5); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px var(--neon-pink); }
}

/* ===========================
   HERO TITLE
=========================== */
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.2s;
}

.hero-title-accent {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--neon-pink), var(--gold));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255,107,157,0.5),
              0 0 20px rgba(201,151,58,0.3);
  animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,107,157,0.5), 0 0 20px rgba(201,151,58,0.3); }
  50%       { box-shadow: 0 0 18px rgba(255,107,157,0.8), 0 0 35px rgba(201,151,58,0.5); }
}

/* ===========================
   HERO DESC
=========================== */
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.3s;
}

/* ===========================
   КНОПКИ
=========================== */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.4s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #C0392B);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(139,38,53,0.35),
              0 0 30px rgba(255,107,157,0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139,38,53,0.45),
              0 0 40px rgba(255,107,157,0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 rgba(139,38,53,0);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139,38,53,0.3);
}

/* ===========================
   HERO STATS
=========================== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.5s;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201,151,58,0.4),
    transparent
  );
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 500;
}

/* ===========================
   HERO ИЗОБРАЖЕНИЕ
=========================== */
.hero-image {
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.9s ease both;
  animation-delay: 0.3s;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse at center,
    rgba(255,107,157,0.2) 0%,
    rgba(201,151,58,0.15) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}

.hero-img-wrap img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: top center;
  border-radius: 80px 24px 80px 24px;
  display: block;
  box-shadow: 0 20px 60px rgba(139,38,53,0.2),
              0 0 40px rgba(255,107,157,0.1);
  position: relative;
  z-index: 1;
}

.hero-img-accent {
  position: absolute;
  inset: -8px;
  border-radius: 84px 28px 84px 28px;
  background: linear-gradient(
    135deg,
    rgba(201,151,58,0.25),
    rgba(255,107,157,0.15),
    transparent 60%
  );
  z-index: 0;
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: -24px;
  background: var(--white);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(139,38,53,0.15),
              0 0 20px rgba(255,107,157,0.1);
  line-height: 1.5;
  border-left: 4px solid var(--gold);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-badge-icon {
  font-size: 1.5rem;
}

/* ===========================
   КАТАЛОГ
=========================== */
.products {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,151,58,0.3),
    transparent
  );
}

/* ===========================
   ФИЛЬТРЫ
=========================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid rgba(201,151,58,0.25);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(139,38,53,0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #C0392B);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139,38,53,0.3),
              0 0 20px rgba(255,107,157,0.15);
}

/* ===========================
   СЕТКА КАРТОЧЕК
=========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

/* ===========================
   КАРТОЧКА ТОВАРА
=========================== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(201,151,58,0.15);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(255,107,157,0.04),
    rgba(201,151,58,0.04)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 48px rgba(139,38,53,0.15),
              0 0 0 1px rgba(201,151,58,0.3),
              0 0 30px rgba(255,107,157,0.08);
}

.card-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(201,151,58,0.1),
    rgba(139,38,53,0.08)
  );
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img img {
  transform: scale(1.06);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(
    135deg,
    rgba(201,151,58,0.1),
    rgba(139,38,53,0.07)
  );
}

.card-grade-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--primary), #C0392B);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(139,38,53,0.3);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tag {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.25);
  padding: 3px 10px;
  border-radius: 50px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(201,151,58,0.12);
  margin-top: auto;
}

.card-price {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.card-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), #C0392B);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 9px 20px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 3px 14px rgba(139,38,53,0.25);
  position: relative;
  overflow: hidden;
}

.card-buy-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transition: left 0.4s ease;
}

.card-buy-btn:hover::before {
  left: 100%;
}

.card-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139,38,53,0.38),
              0 0 20px rgba(255,107,157,0.15);
}

/* ===========================
   ПУСТОЙ КАТАЛОГ
=========================== */
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.products-empty span {
  display: block;
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ===========================
   ОБО МНЕ
=========================== */
.about {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255,107,157,0.1) 0%,
    rgba(201,151,58,0.08) 40%,
    transparent 70%
  );
  top: -150px;
  right: -150px;
  filter: blur(60px);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}

.about-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-ring { display:none; }

@keyframes ringRotate {
  0%   { opacity: 0.5; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}

.about-img { border:none;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: 60px 20px 60px 20px;
  box-shadow: 0 20px 60px rgba(139,38,53,0.18),
              0 0 40px rgba(255,107,157,0.08);
  position: relative;
  z-index: 1;
}

.about-img-decor { display:none; }

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-text .section-label {
  text-align: left;
  margin-bottom: 10px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 10px;
}

.about-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: linear-gradient(
    135deg,
    rgba(139,38,53,0.06),
    rgba(255,107,157,0.06)
  );
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 0 20px rgba(255,107,157,0.08);
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.about-bio strong {
  color: var(--primary);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: var(--white);
  border: 2px solid rgba(201,151,58,0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(139,38,53,0.08);
  transition: var(--transition);
  cursor: default;
}

.badge:hover {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(139,38,53,0.06),
    rgba(255,107,157,0.06)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139,38,53,0.12),
              0 0 12px rgba(255,107,157,0.1);
}

/* ===========================
   ОБРАЗОВАНИЕ
=========================== */
.education {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.education::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,107,157,0.3),
    rgba(201,151,58,0.3),
    transparent
  );
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.edu-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(201,151,58,0.15);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--neon-pink), var(--gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.edu-card:hover::after {
  opacity: 1;
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(139,38,53,0.12),
              0 0 20px rgba(255,107,157,0.08);
  border-color: rgba(201,151,58,0.3);
}

.edu-card-featured {
  background: linear-gradient(135deg, var(--primary) 0%, #A93226 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(139,38,53,0.3),
              0 0 40px rgba(255,107,157,0.12);
}

.edu-card-featured::after {
  background: linear-gradient(90deg, var(--gold-light), var(--neon-pink));
  opacity: 1;
}

.edu-card-featured:hover {
  box-shadow: 0 16px 48px rgba(139,38,53,0.4),
              0 0 50px rgba(255,107,157,0.2);
}

.edu-card-featured .edu-year {
  color: rgba(255,255,255,0.7);
}

.edu-card-featured .edu-desc {
  color: rgba(255,255,255,0.85);
}

.edu-card-featured .edu-title {
  color: var(--white);
}

.edu-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.edu-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.edu-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===========================
   ОТЗЫВЫ
=========================== */
.reviews {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(201,151,58,0.1) 0%,
    transparent 70%
  );
  top: -100px;
  left: -100px;
  filter: blur(60px);
  pointer-events: none;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(201,151,58,0.15);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,151,58,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(139,38,53,0.12),
              0 0 20px rgba(255,107,157,0.06);
}

.review-featured {
  background: linear-gradient(135deg, #8B2635 0%, #A93226 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(139,38,53,0.32),
              0 0 40px rgba(255,107,157,0.15);
}

.review-featured::before {
  background: linear-gradient(90deg, transparent, rgba(255,107,157,0.5), rgba(201,151,58,0.5), transparent);
  opacity: 1 !important;
}

.review-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 52px rgba(139,38,53,0.42),
              0 0 50px rgba(255,107,157,0.22);
}

.review-quote {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.8;
  color: rgba(255,255,255,0.25);
  margin-bottom: -10px;
}

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(201,151,58,0.5);
}

.review-featured .review-stars {
  color: var(--gold-light);
  text-shadow: 0 0 15px rgba(232,184,75,0.6);
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.review-featured .review-text {
  color: rgba(255,255,255,0.9);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,151,58,0.15);
}

.review-featured .review-author {
  border-top-color: rgba(255,255,255,0.2);
}

.review-avatar {
  font-size: 1.9rem;
}

.review-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;}

.review-author strong {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.review-featured .review-author strong {
  color: var(--white);
}

.review-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-featured .review-author span {
  color: rgba(255,255,255,0.65);
}

/* ===========================
   КОНТАКТЫ
=========================== */
.contact {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(255,107,157,0.1) 0%,
    rgba(201,151,58,0.08) 40%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn i {
  font-size: 1.2rem;
}

.contact-btn.vk {
  background: linear-gradient(135deg, #4C75A3, #3d6491);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(76,117,163,0.35),
              0 0 30px rgba(76,117,163,0.15);
}

.contact-btn.vk:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(76,117,163,0.5),
              0 0 40px rgba(76,117,163,0.2);
}

.contact-btn.tg {
  background: linear-gradient(135deg, #2AABEE, #1a96d4);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(42,171,238,0.35),
              0 0 30px rgba(42,171,238,0.15);
}

.contact-btn.tg:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(42,171,238,0.5),
              0 0 40px rgba(42,171,238,0.2);
}

.contact-btn.max {
  background: linear-gradient(135deg, #6B48FF, #A855F7);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(107,72,255,0.35),
              0 0 30px rgba(168,85,247,0.15);
}

.contact-btn.max:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107,72,255,0.5),
              0 0 40px rgba(168,85,247,0.25);
}

/* ===========================
   ФУТЕР
=========================== */
.footer {
  background: #0F0A14;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--neon-pink),
    var(--gold),
    var(--primary),
    transparent
  );
  opacity: 0.7;
}

.footer::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139,38,53,0.15) 0%,
    transparent 70%
  );
  bottom: -150px;
  right: -100px;
  filter: blur(60px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer .logo-title {
  color: var(--gold-light);
}

.footer .logo-sub {
  color: rgba(255,255,255,0.45);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   АНИМАЦИИ
=========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ===========================
   СКРОЛЛ-АНИМАЦИЯ
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===========================
   ЗАГРУЗКА КАРТОЧЕК
=========================== */
.product-card {
  animation: fadeInUp 0.5s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }

/* ===========================
   СКРОЛЛБАР
=========================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--gold));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===========================
   ВЫДЕЛЕНИЕ ТЕКСТА
=========================== */
::selection {
  background: rgba(139,38,53,0.15);
  color: var(--primary);
}

/* ===========================
   ФОКУС
=========================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================
   АДАПТИВ — ПЛАНШЕТ
=========================== */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
    align-items: center;
  }

  .hero-image {
    order: 1;
    justify-content: center;
  }

  .hero-img-wrap {
    max-width: 320px;
  }

  .hero-img-wrap img {
    height: 380px;
  }

  .hero-badge {
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

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

  .about-img { border:none;
    height: 380px;
  }

  .about-text .section-title,
  .about-text .section-label,
  .about-lead {
    text-align: center;
  }

  .about-badges {
    justify-content: center;
  }

  .about-bio p {
    text-align: center;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

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

/* ===========================
   АДАПТИВ — МОБИЛЬНЫЙ
=========================== */
@media (max-width: 600px) {
  .hero {
    padding: 50px 0 60px;
  }

  .products,
  .about,
  .education,
  .reviews,
  .contact {
    padding: 64px 0;
  }

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

  .hero-stats {
    gap: 14px;
  }

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

  .stat-divider {
    height: 28px;
  }

  .filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

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

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

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

  .contact-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

  .about-img-decor { display:none; }

  .hero-img-wrap img {
    height: 320px;
  }

  .about-img { border:none;
    height: 320px;
  }

  .about-lead {
    text-align: left;
  }
}

/* ===========================
   FOOTER LOGO ИКОНКА
=========================== */
.logo-icon-wrap--footer {
  filter: drop-shadow(0 2px 8px rgba(201,151,58,0.4));
}

/* DIPLOMA GALLERY FIX */
.diploma-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  margin: 20px 0 40px;
}
.diploma-gallery img{
  width:100%;
  border-radius:12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  object-fit:cover;
  transition: transform .3s ease;
}
.diploma-gallery img:hover{
  transform: scale(1.03);
}


/* remove frame around hero photo */
.hero img, .hero-image, .hero-photo{
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
}

.hero img,
.hero-photo img,
.hero-image img,
.hero__img,
.hero .image,
.hero .photo{
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
  background:none !important;
}


/* FIX HERO IMAGE FRAME */
.hero-img-wrap{
  border:none !important;
  box-shadow:none !important;
  background:none !important;
  outline:none !important;
}

.hero-image{
  border:none !important;
  box-shadow:none !important;
}

.hero-img-glow{
  opacity:0 !important;
}

.hero-img-accent{
  display:none !important;
}

.hero-image img{
  border:none !important;
  box-shadow:none !important;
}




/* === FIX: hero badge text is in HTML === */

/* === FIX: product card actions === */
.card-footer {
  gap: 12px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 9px 18px;
  border-radius: 50px;
  border: 2px solid rgba(139,38,53,0.35);
  cursor: pointer;
  transition: var(--transition);
}

.card-view-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.card-img img {
  object-fit: contain;
  background: var(--white);
}

/* === FIX: product modal === */
body.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 26, 46, 0.62);
  backdrop-filter: blur(6px);
}

.product-modal.open {
  display: flex;
}

.product-modal-window {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
  border: 1px solid rgba(201,151,58,0.25);
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  position: relative;
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(139,38,53,0.1);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.product-modal-image {
  background: linear-gradient(135deg, rgba(201,151,58,0.08), rgba(139,38,53,0.05));
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-image img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  border-radius: 16px;
}

.product-modal-info {
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}

.product-modal-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--text);
  padding-right: 30px;
}

.product-modal-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.product-modal-inside h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-modal-inside ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.product-modal-inside li {
  margin-bottom: 7px;
  line-height: 1.55;
}

.product-modal-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(201,151,58,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-modal-price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.product-modal-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  background: linear-gradient(135deg, var(--primary), #C0392B);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 6px 22px rgba(139,38,53,0.32);
}

/* === FIX: mobile menu === */
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
  .mobile-nav.open {
    display: flex !important;
  }
}

@media (max-width: 720px) {
  .product-modal {
    padding: 12px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .product-modal-window {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .product-modal-image {
    padding: 18px 18px 8px;
  }

  .product-modal-image img {
    max-height: 260px;
  }

  .product-modal-info {
    padding: 18px 20px 22px;
    overflow: visible;
  }

  .product-modal-info h2 {
    padding-right: 38px;
  }

  .product-modal-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .product-modal-price {
    text-align: center;
  }

  .product-modal-buy {
    width: 100%;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions {
    width: 100%;
  }

  .card-view-btn,
  .card-buy-btn {
    flex: 1;
    justify-content: center;
  }
}



/* === FIX: верхняя подложка === */
.hero {
  background:
    linear-gradient(rgba(253,246,240,0.62), rgba(253,246,240,0.84)),
    url("images/top-bg.png") center top / cover no-repeat !important;
}


/* === FIX: подложка в самом верху, путь от style.css === */
.hero {
  background: url("images/top-bg.png") center top / cover no-repeat !important;
}


/* === FIX: крестик закрытия модалки товара === */
.product-modal-window {
  position: relative;
}

.product-modal-close {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #8B2635;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(139,38,53,0.22);
  z-index: 20;
}

.product-modal-close:hover {
  background: #8B2635;
  color: #ffffff;
}

/* === FIX: убираем тёмные/чёрные уголки у фото в модалке === */
.product-modal-image {
  background: #ffffff !important;
}

.product-modal-image img {
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}




/* =========================================================
   ОБНОВЛЕНИЯ: счётчики, тёмная тема, геометрия, блик кнопок
   Старые блоки не меняем — только добавляем новые эффекты
========================================================= */

/* Переключатель темы */
.theme-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(201,151,58,0.35);
  background: rgba(255,255,255,0.88);
  color: var(--primary);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139,38,53,0.16);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

.theme-toggle:hover {
  transform: translateY(-3px) rotate(10deg);
  box-shadow: 0 16px 38px rgba(139,38,53,0.22);
}

/* Плавность перехода в тёмную тему */
body,
.header,
.mobile-nav,
.product-card,
.review-card,
.edu-card,
.about-lead,
.badge,
.product-modal-window,
.card-buy-btn,
.btn,
.filter-btn {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

/* Тёмная тема */
body.dark-theme {
  --bg: #10101a;
  --white: #171726;
  --text: #F7F3EA;
  --text-muted: #C9C0B6;
  --primary: #FF8A3D;
  --primary-dark: #D85E17;
  --gold: #FFB35C;
  --gold-light: #FFD08A;
  --primary-light: rgba(255,138,61,0.14);
  --gold-glow: rgba(255,179,92,0.32);
  background: radial-gradient(circle at top right, rgba(255,138,61,0.14), transparent 35%),
              radial-gradient(circle at bottom left, rgba(255,107,157,0.08), transparent 38%),
              #10101a;
}

body.dark-theme .header {
  background: rgba(16,16,26,0.88);
  border-bottom-color: rgba(255,179,92,0.2);
}

body.dark-theme .hero,
body.dark-theme .about,
body.dark-theme .products,
body.dark-theme .education,
body.dark-theme .reviews,
body.dark-theme .contact,
body.dark-theme .footer {
  background-color: transparent;
}

body.dark-theme .product-card,
body.dark-theme .review-card,
body.dark-theme .edu-card,
body.dark-theme .badge,
body.dark-theme .product-modal-window,
body.dark-theme .mobile-nav {
  background: rgba(23,23,38,0.92);
  border-color: rgba(255,179,92,0.22);
  box-shadow: 0 16px 42px rgba(0,0,0,0.32), 0 0 30px rgba(255,138,61,0.06);
}

body.dark-theme .theme-toggle {
  background: rgba(23,23,38,0.92);
  color: #FFD08A;
  border-color: rgba(255,179,92,0.45);
  box-shadow: 0 12px 34px rgba(0,0,0,0.35), 0 0 22px rgba(255,138,61,0.18);
}

body.dark-theme .filter-btn {
  background: rgba(23,23,38,0.65);
  color: var(--text-muted);
}

body.dark-theme .card-img,
body.dark-theme .product-modal-image {
  background: rgba(255,255,255,0.03) !important;
}

/* Плавающая геометрия */
.floating-geometry {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-item {
  position: absolute;
  color: rgba(139,38,53,0.12);
  font-family: var(--font-head);
  font-weight: 700;
  user-select: none;
  transform: translate3d(0,0,0);
  animation: geoFloat 18s ease-in-out infinite;
}

.geo-item:nth-child(1) { top: 18%; left: 4%; font-size: 42px; animation-delay: 0s; }
.geo-item:nth-child(2) { top: 42%; right: 5%; font-size: 34px; animation-delay: -4s; }
.geo-item:nth-child(3) { top: 72%; left: 8%; font-size: 30px; animation-delay: -8s; }
.geo-item:nth-child(4) { top: 88%; right: 12%; font-size: 38px; animation-delay: -12s; }
.geo-item:nth-child(5) { top: 32%; left: 48%; font-size: 26px; animation-delay: -6s; }

body.dark-theme .geo-item {
  color: rgba(255,179,92,0.16);
  text-shadow: 0 0 18px rgba(255,138,61,0.14);
}

@keyframes geoFloat {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); opacity: .45; }
  50% { transform: translate3d(18px,-24px,0) rotate(4deg); opacity: .75; }
}

/* Блик на главных кнопках */
.hero-btns .btn::before {
  left: -120%;
  animation: softButtonShine 5.8s ease-in-out infinite;
}

.hero-btns .btn:nth-child(2)::before {
  animation-delay: 1.4s;
}

@keyframes softButtonShine {
  0% { left: -120%; }
  35% { left: -120%; }
  52% { left: 120%; }
  100% { left: 120%; }
}

/* Счётчики чуть живее при срабатывании */
.stat-num.counting {
  filter: drop-shadow(0 0 10px rgba(255,107,157,0.18));
}

@media (max-width: 720px) {
  .theme-toggle {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .geo-item {
    opacity: .35;
  }

  .geo-item:nth-child(2),
  .geo-item:nth-child(5) {
    display: none;
  }
}


/* === FIX VISIBLE EFFECTS: видимость переключателя темы и геометрии === */

/* Кнопка темы теперь в правом верхнем углу — её точно видно */
.theme-toggle {
  position: fixed !important;
  top: 92px !important;
  right: 22px !important;
  bottom: auto !important;
  z-index: 10000 !important;
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 2px solid rgba(201,151,58,0.45) !important;
  background: rgba(255,255,255,0.94) !important;
  color: #8B2635 !important;
  font-size: 1.35rem !important;
  cursor: pointer !important;
  box-shadow: 0 12px 34px rgba(139,38,53,0.22) !important;
  backdrop-filter: blur(10px);
}

/* Плавающая геометрия была слишком низко по слоям — поднимаем, но оставляем некликабельной */
.floating-geometry {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: hidden !important;
  display: block !important;
}

.geo-item {
  position: absolute !important;
  display: block !important;
  color: rgba(139,38,53,0.20) !important;
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  user-select: none !important;
  animation: geoFloat 18s ease-in-out infinite !important;
}

.geo-item:nth-child(1) { top: 18%; left: 4%; font-size: 46px; animation-delay: 0s; }
.geo-item:nth-child(2) { top: 42%; right: 5%; font-size: 38px; animation-delay: -4s; }
.geo-item:nth-child(3) { top: 72%; left: 8%; font-size: 34px; animation-delay: -8s; }
.geo-item:nth-child(4) { top: 88%; right: 12%; font-size: 42px; animation-delay: -12s; }
.geo-item:nth-child(5) { top: 32%; left: 48%; font-size: 30px; animation-delay: -6s; }

/* Контент выше геометрии */
.header,
.hero-content,
.about-inner,
.products .container,
.education .container,
.reviews .container,
.contact .container,
.footer .container {
  position: relative;
  z-index: 2;
}

/* Тёмная тема — усиленный видимый режим */
body.dark-theme {
  --bg: #10101a;
  --white: #171726;
  --text: #F7F3EA;
  --text-muted: #C9C0B6;
  --primary: #FF8A3D;
  --primary-dark: #D85E17;
  --gold: #FFB35C;
  --gold-light: #FFD08A;
  background: radial-gradient(circle at top right, rgba(255,138,61,0.18), transparent 35%),
              radial-gradient(circle at bottom left, rgba(255,107,157,0.10), transparent 38%),
              #10101a !important;
  color: var(--text) !important;
}

body.dark-theme .header,
body.dark-theme .mobile-nav,
body.dark-theme .product-card,
body.dark-theme .review-card,
body.dark-theme .edu-card,
body.dark-theme .badge,
body.dark-theme .product-modal-window {
  background: rgba(23,23,38,0.94) !important;
  color: var(--text) !important;
  border-color: rgba(255,179,92,0.25) !important;
}

body.dark-theme .hero,
body.dark-theme .about,
body.dark-theme .products,
body.dark-theme .education,
body.dark-theme .reviews,
body.dark-theme .contact,
body.dark-theme .footer {
  background-color: transparent !important;
}

body.dark-theme .theme-toggle {
  background: rgba(23,23,38,0.96) !important;
  color: #FFD08A !important;
  border-color: rgba(255,179,92,0.55) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,0.40), 0 0 24px rgba(255,138,61,0.24) !important;
}

body.dark-theme .geo-item {
  color: rgba(255,179,92,0.25) !important;
  text-shadow: 0 0 18px rgba(255,138,61,0.22);
}

@media (max-width: 720px) {
  .theme-toggle {
    top: 86px !important;
    right: 14px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .geo-item:nth-child(2),
  .geo-item:nth-child(5) {
    display: none !important;
  }
}


/* === FIX: в тёмной теме убираем фоновую картинку top-bg.png === */
body.dark-theme .hero {
  background-image: none !important;
  background:
    radial-gradient(circle at top right, rgba(255,138,61,0.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(255,107,157,0.10), transparent 38%),
    #10101a !important;
}


/* =========================================================
   СИЛЬНЫЙ ФИКС: тёмная тема без top-bg.png + видимая геометрия
========================================================= */

/* В тёмной теме полностью убираем верхнюю картинку и любые светлые подложки hero */
html body.dark-theme .hero,
html body.dark-theme section.hero {
  background-image: none !important;
  background: 
    radial-gradient(circle at 18% 18%, rgba(255,138,61,0.18), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255,179,92,0.12), transparent 34%),
    linear-gradient(135deg, #10101a 0%, #171726 55%, #0d0d16 100%) !important;
  background-color: #10101a !important;
}

/* Убираем возможные светлые глоу-пятна в hero только в тёмной теме */
html body.dark-theme .hero-glow,
html body.dark-theme .hero-img-glow {
  opacity: 0.18 !important;
}

/* Чтобы текст в hero был читаемым в тёмной теме */
html body.dark-theme .hero-title,
html body.dark-theme .hero-desc,
html body.dark-theme .stat-label {
  color: var(--text) !important;
}

html body.dark-theme .hero-title-accent,
html body.dark-theme .stat-num {
  color: #FF8A3D !important;
  background: linear-gradient(135deg, #FF8A3D, #FFD08A) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Геометрия поверх фоновых секций, но под главным контентом */
.floating-geometry {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 3 !important;
  display: block !important;
  overflow: hidden !important;
}

.geo-item {
  position: absolute !important;
  display: block !important;
  font-family: var(--font-head), serif !important;
  font-weight: 700 !important;
  color: rgba(139,38,53,0.22) !important;
  text-shadow: 0 0 18px rgba(139,38,53,0.06);
  user-select: none !important;
  animation: geoFloatStrong 16s ease-in-out infinite !important;
}

body.dark-theme .geo-item {
  color: rgba(255,179,92,0.34) !important;
  text-shadow: 0 0 22px rgba(255,138,61,0.22) !important;
}

.geo-item:nth-child(1) { top: 19%; left: 3%; font-size: 58px !important; animation-delay: 0s !important; }
.geo-item:nth-child(2) { top: 40%; right: 4%; font-size: 48px !important; animation-delay: -4s !important; }
.geo-item:nth-child(3) { top: 68%; left: 7%; font-size: 44px !important; animation-delay: -8s !important; }
.geo-item:nth-child(4) { top: 82%; right: 10%; font-size: 56px !important; animation-delay: -12s !important; }
.geo-item:nth-child(5) { top: 30%; left: 47%; font-size: 40px !important; animation-delay: -6s !important; }
.geo-item:nth-child(6) { top: 58%; right: 22%; font-size: 34px !important; animation-delay: -10s !important; }
.geo-item:nth-child(7) { top: 12%; right: 28%; font-size: 36px !important; animation-delay: -14s !important; }

/* Контент выше геометрии */
.header,
.hero-content,
.about-inner,
.products .container,
.education .container,
.reviews .container,
.contact .container,
.footer .container,
.product-modal {
  position: relative;
  z-index: 5;
}

@keyframes geoFloatStrong {
  0%, 100% {
    transform: translate3d(0,0,0) rotate(0deg);
    opacity: .55;
  }
  50% {
    transform: translate3d(24px,-30px,0) rotate(5deg);
    opacity: .9;
  }
}

@media (max-width: 720px) {
  .geo-item:nth-child(2),
  .geo-item:nth-child(5),
  .geo-item:nth-child(7) {
    display: none !important;
  }

  .geo-item:nth-child(1) { font-size: 42px !important; }
  .geo-item:nth-child(3) { font-size: 36px !important; }
  .geo-item:nth-child(4) { font-size: 40px !important; }
}


/* =========================================================
   ФИНАЛЬНЫЙ ФИКС: убираем параллакс/геометрию и чиним тему
========================================================= */

/* Полностью убираем геометрию и формулы */
.floating-geometry,
.geo-item {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Кнопка темы */
.theme-toggle {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  top: auto !important;
  z-index: 10000 !important;
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  border: 2px solid rgba(201,151,58,0.45) !important;
  background: rgba(255,255,255,0.94) !important;
  color: #8B2635 !important;
  font-size: 1.35rem !important;
  cursor: pointer !important;
  box-shadow: 0 12px 34px rgba(139,38,53,0.22) !important;
  backdrop-filter: blur(10px);
}

/* Тёмная тема — без top-bg.png */
html body.dark-theme {
  --bg: #10101a;
  --white: #171726;
  --text: #F7F3EA;
  --text-muted: #C9C0B6;
  --primary: #FF8A3D;
  --primary-dark: #D85E17;
  --gold: #FFB35C;
  --gold-light: #FFD08A;
  background: #10101a !important;
  color: var(--text) !important;
}

/* Самое главное: у hero полностью убираем фон-картинку в тёмной теме */
html body.dark-theme .hero,
html body.dark-theme section.hero {
  background-image: none !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,138,61,0.16), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(255,179,92,0.10), transparent 36%),
    linear-gradient(135deg, #10101a 0%, #171726 55%, #0d0d16 100%) !important;
  background-color: #10101a !important;
}

html body.dark-theme .header,
html body.dark-theme .mobile-nav,
html body.dark-theme .product-card,
html body.dark-theme .review-card,
html body.dark-theme .edu-card,
html body.dark-theme .badge,
html body.dark-theme .product-modal-window {
  background: rgba(23,23,38,0.94) !important;
  color: var(--text) !important;
  border-color: rgba(255,179,92,0.25) !important;
}

html body.dark-theme .products,
html body.dark-theme .about,
html body.dark-theme .education,
html body.dark-theme .reviews,
html body.dark-theme .contact,
html body.dark-theme .footer {
  background: #10101a !important;
}

html body.dark-theme .hero-title,
html body.dark-theme .section-title,
html body.dark-theme .card-title,
html body.dark-theme .edu-title,
html body.dark-theme .review-text,
html body.dark-theme .about-bio p,
html body.dark-theme .hero-desc,
html body.dark-theme .stat-label {
  color: var(--text) !important;
}

html body.dark-theme .theme-toggle {
  background: rgba(23,23,38,0.96) !important;
  color: #FFD08A !important;
  border-color: rgba(255,179,92,0.55) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,0.40), 0 0 24px rgba(255,138,61,0.24) !important;
}

@media (max-width: 720px) {
  .theme-toggle {
    right: 16px !important;
    bottom: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}




/* FINAL INLINE FIX: карточка без чёрных уголков */
.card-img{
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.card-img img{
  background:#fff!important;
  object-fit:contain!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:scale(1.025)!important;
  clip-path:inset(3px)!important;
}
.product-card:hover .card-img img{
  transform:scale(1.04)!important;
}

/* FINAL INLINE MODAL */
#finalProductModal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  background:rgba(26,26,46,.64)!important;
  backdrop-filter:blur(6px)!important;
}
#finalProductModal.open{display:flex!important;}
#finalProductModal .fpm-window{
  width:min(980px,96vw)!important;
  max-height:calc(100vh - 48px)!important;
  background:#fff!important;
  border-radius:24px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.25)!important;
  border:1px solid rgba(201,151,58,.25)!important;
  display:grid!important;
  grid-template-columns:42% 1fr!important;
  overflow:hidden!important;
  position:relative!important;
}
#finalProductModal .fpm-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:200!important;
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  border:none!important;
  background:#fff!important;
  color:#8B2635!important;
  font-size:30px!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 4px 18px rgba(139,38,53,.22)!important;
}
#finalProductModal .fpm-gallery{
  position:relative!important;
  background:#fff!important;
  padding:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
#finalProductModal .fpm-gallery::before{
  content:''!important;
  position:absolute!important;
  inset:0!important;
  background:#fff!important;
  z-index:1!important;
}
#finalProductModal .fpm-img{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  max-height:430px!important;
  object-fit:contain!important;
  display:block!important;
  background:#fff!important;
  border-radius:0!important;
  box-shadow:none!important;
  transform:scale(1.018)!important;
  clip-path:inset(4px)!important;
}
#finalProductModal .fpm-arrow{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:150!important;
  width:50px!important;
  height:50px!important;
  border-radius:50%!important;
  border:2px solid rgba(139,38,53,.18)!important;
  background:rgba(255,255,255,.98)!important;
  color:#8B2635!important;
  font-size:42px!important;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  box-shadow:0 8px 26px rgba(139,38,53,.28)!important;
  padding:0!important;
}
#finalProductModal .fpm-prev{left:12px!important;}
#finalProductModal .fpm-next{right:12px!important;}
#finalProductModal .fpm-arrow:hover{background:#8B2635!important;color:#fff!important;}
#finalProductModal .fpm-dots{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:14px!important;
  z-index:151!important;
  display:flex!important;
  justify-content:center!important;
  gap:8px!important;
}
#finalProductModal .fpm-dot{
  width:9px!important;
  height:9px!important;
  border-radius:50%!important;
  border:none!important;
  background:rgba(139,38,53,.28)!important;
  cursor:pointer!important;
  padding:0!important;
}
#finalProductModal .fpm-dot.active{background:#8B2635!important;transform:scale(1.25)!important;}
#finalProductModal .fpm-info{
  padding:34px 34px 30px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  overflow:auto!important;
  background:#fff!important;
}
#finalProductModal .fpm-title{
  font-family:var(--font-head),serif!important;
  font-size:clamp(1.35rem,2.4vw,2rem)!important;
  line-height:1.2!important;
  color:#1A1A2E!important;
  padding-right:30px!important;
}
#finalProductModal .fpm-desc{color:#6B7280!important;font-size:.98rem!important;line-height:1.7!important;}
#finalProductModal .fpm-inside h3{color:#8B2635!important;font-size:1rem!important;margin-bottom:8px!important;}
#finalProductModal .fpm-list{margin:0!important;padding-left:20px!important;color:#1A1A2E!important;}
#finalProductModal .fpm-list li{margin-bottom:7px!important;line-height:1.55!important;}
#finalProductModal .fpm-bottom{
  margin-top:auto!important;
  padding-top:18px!important;
  border-top:1px solid rgba(201,151,58,.16)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}
#finalProductModal .fpm-price{
  font-family:var(--font-head),serif!important;
  font-size:2rem!important;
  font-weight:700!important;
  color:#8B2635!important;
}
#finalProductModal .fpm-buy{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:140px!important;
  background:linear-gradient(135deg,#8B2635,#C0392B)!important;
  color:#fff!important;
  font-size:1rem!important;
  font-weight:700!important;
  padding:12px 28px!important;
  border-radius:50px!important;
  box-shadow:0 6px 22px rgba(139,38,53,.32)!important;
}
@media(max-width:720px){
  #finalProductModal{
    padding:12px!important;
    align-items:flex-start!important;
    overflow-y:auto!important;
  }
  #finalProductModal .fpm-window{
    grid-template-columns:1fr!important;
    max-height:none!important;
  }
  #finalProductModal .fpm-gallery{padding:18px!important;}
  #finalProductModal .fpm-img{max-height:260px!important;}
  #finalProductModal .fpm-info{padding:18px 20px 22px!important;overflow:visible!important;}
  #finalProductModal .fpm-bottom{flex-direction:column!important;align-items:stretch!important;}
  #finalProductModal .fpm-price{text-align:center!important;}
  #finalProductModal .fpm-buy{width:100%!important;}
  #finalProductModal .fpm-arrow{width:38px!important;height:38px!important;font-size:30px!important;}
  #finalProductModal .fpm-prev{left:8px!important;}
  #finalProductModal .fpm-next{right:8px!important;}
}





/* =========================================================
   FINAL FIX: убираем чёрные уголки у картинок товара
   Работает и в каталоге, и внутри модалки/карусели
========================================================= */

/* Картинка в карточке каталога */
.card-img {
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.card-img img {
  background: #ffffff !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  height: 100% !important;
  transform: scale(1.08) !important;
  clip-path: inset(10px) !important;
}

.product-card:hover .card-img img {
  transform: scale(1.10) !important;
}

/* Картинка в старой модалке, если она где-то ещё вызовется */
.product-modal-image {
  background: #ffffff !important;
  overflow: hidden !important;
}

.product-modal-image img,
#productModalImg {
  background: #ffffff !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: scale(1.08) !important;
  clip-path: inset(10px) !important;
}

/* Картинка в новой рабочей модалке */
#finalProductModal .fpm-gallery,
#emergencyProductModal .egm-gallery {
  background: #ffffff !important;
  overflow: hidden !important;
}

#finalProductModal .fpm-gallery::before,
#emergencyProductModal .egm-gallery::before {
  background: #ffffff !important;
}

#finalProductModal .fpm-img,
#emergencyProductModal .egm-img {
  background: #ffffff !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: scale(1.08) !important;
  clip-path: inset(10px) !important;
}

/* Стрелки оставляем поверх картинки */
#finalProductModal .fpm-arrow,
#emergencyProductModal .egm-arrow,
.product-gallery-arrow {
  z-index: 999 !important;
}

/* В тёмной теме тоже белая подложка вокруг картинки */
body.dark-theme .card-img,
body.dark-theme .card-img img,
body.dark-theme .product-modal-image,
body.dark-theme .product-modal-image img,
body.dark-theme #productModalImg,
body.dark-theme #finalProductModal .fpm-gallery,
body.dark-theme #finalProductModal .fpm-gallery::before,
body.dark-theme #finalProductModal .fpm-img,
body.dark-theme #emergencyProductModal .egm-gallery,
body.dark-theme #emergencyProductModal .egm-gallery::before,
body.dark-theme #emergencyProductModal .egm-img {
  background: #ffffff !important;
}

@media (max-width: 720px) {
  .card-img img,
  .product-modal-image img,
  #productModalImg,
  #finalProductModal .fpm-img,
  #emergencyProductModal .egm-img {
    transform: scale(1.10) !important;
    clip-path: inset(12px) !important;
  }
}
