/* ---------- ПЕРЕМЕННЫЕ И СБРОС ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1e1a17;
  --secondary-dark: #2c241e;
  --gold: #c9a96e;
  --gold-light: #dfc59b;
  --cream: #f8f2e7;
  --warm-gray: #e8e0d5;
  --text-light: #f5efe8;
  --text-muted: #b7a99a;
  --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 8px 20px rgba(201, 169, 110, 0.15);
  --transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  --border-radius-card: 24px;
  --border-radius-btn: 40px;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--cream);
  color: var(--primary-dark);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a, button, .btn, input, textarea, label, .category-card, .step-item, .antique-card, .contact-method, .lang-btn {
  cursor: none;
}

@media (max-width: 768px) {
  a, button, .btn, input, textarea, label, .category-card, .step-item, .antique-card, .contact-method, .lang-btn {
    cursor: pointer;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* ---------- КАСТОМНЫЙ КУРСОР ---------- */
.cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s, transform 0.08s;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.05s, width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  width: 48px;
  height: 48px;
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold-light);
}

.cursor-dot.hover {
  width: 4px;
  height: 4px;
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .cursor, .cursor-dot {
    display: none;
  }
}

/* ---------- КНОПКА НАВЕРХ ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(201, 169, 110, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s, box-shadow 0.3s;
  z-index: 998;
  cursor: pointer;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  color: var(--gold);
  box-shadow: 0 12px 30px rgba(30, 26, 23, 0.3);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* ---------- ЧАСТИЦЫ НА ФОНЕ (CANVAS) ---------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.header, main, footer, .hero, section {
  position: relative;
  z-index: 2;
}

/* ---------- ЭФФЕКТ ПЕЧАТИ ТЕКСТА ---------- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  margin-left: 5px;
  background: var(--gold);
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- АНИМАЦИИ ПОЯВЛЕНИЯ ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: var(--border-radius-btn);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 1.5px solid transparent;
  background: transparent;
  font-family: 'Raleway', sans-serif;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
  box-shadow: 0 6px 14px rgba(201, 169, 110, 0.2);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

.btn-outline {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--cream);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  padding: 6px 8px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--gold);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--primary-dark);
}

.lang-divider {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 20px;
  }
}

/* ---------- ШАПКА ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(248, 242, 231, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.logo span {
  color: var(--gold);
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 6px 0;
  color: var(--primary-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-menu .btn.nav-btn {
  margin-left: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 4px;
  transition: var(--transition);
}

/* ---------- ГЕРОЙ (ИСПРАВЛЕНО — НЕ ПРЫГАЕТ) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f3ede4 0%, #e3d9cc 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero .fade-up {
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-title-line {
  display: block;
  min-height: 1.2em;
}

.typewriter-container {
  display: inline-block;
  position: relative;
  min-width: 280px;
}

#typewriter-text {
  color: var(--gold);
  font-style: normal;
  border-bottom: 4px solid var(--gold);
  display: inline;
}

.hero-text {
  font-size: 1.2rem;
  color: #3a322b;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-features {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.hero-feature-item i {
  color: var(--gold);
  font-size: 1.3rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-image {
  position: relative;
  border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform: rotate(1deg);
  transition: var(--transition);
  animation: float 8s infinite alternate ease-in-out;
  border: 6px solid rgba(201, 169, 110, 0.25);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1.1;
}

@keyframes float {
  0% { transform: rotate(1deg) translateY(0); }
  100% { transform: rotate(-1deg) translateY(-15px); }
}

/* ---------- СЕКЦИИ ---------- */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

/* ---------- КАТЕГОРИИ ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.category-card {
  background: #fffbf7;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: rgba(201, 169, 110, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--gold);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: var(--gold);
  color: var(--primary-dark);
}

.category-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.category-card p {
  color: #5a4e44;
  font-size: 0.95rem;
}

.category-card-other {
  background: linear-gradient(145deg, #f3ede4, #e8ddd0);
}

/* ---------- ШАГИ РАБОТЫ ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step-item {
  text-align: center;
  padding: 30px 20px;
  background: #fffbf7;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  position: relative;
  transition: var(--transition);
}

.step-item:hover {
  transform: translateY(-8px);
}

.step-number {
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201, 169, 110, 0.15);
}

.step-icon {
  width: 70px;
  height: 70px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  color: var(--primary-dark);
}

.step-item h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.step-item p {
  color: #5a4e44;
  font-size: 0.95rem;
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.advantage-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.advantage-item i {
  font-size: 2.5rem;
  color: var(--gold);
  min-width: 50px;
}

.advantage-item h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.advantage-item p {
  color: #5a4e44;
}

/* ---------- КОНТАКТНАЯ ФОРМА ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: #fffbf7;
  border-radius: 40px;
  padding: 50px;
  box-shadow: var(--shadow-soft);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--cream);
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-method:hover {
  background: #fff;
  border-color: var(--gold);
  transform: translateX(6px);
}

.contact-method i {
  width: 24px;
  color: var(--gold);
  font-size: 1.3rem;
}

.contact-address {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(201, 169, 110, 0.1);
  border-radius: 20px;
}

.contact-address i {
  color: var(--gold);
  font-size: 1.3rem;
}

.contact-form {
  background: var(--cream);
  border-radius: 30px;
  padding: 30px;
  overflow: hidden;
  min-width: 0; /* Важно для grid */
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 16px 20px;
  border: 1.5px solid #ddd0c0;
  border-radius: 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: var(--transition);
  box-sizing: border-box;
  resize: none; /* ← Запрещает растягивать */
  overflow-y: auto; /* Прокрутка если текст не помещается */
}

.form-group input {
  height: 55px;
}

.form-group textarea {
  height: 120px;
  min-height: 120px;
  max-height: 200px;
  resize: none; /* Полностью запрещаем растягивание */
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

.file-upload {
  text-align: center;
}

.file-upload label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: 30px;
  transition: var(--transition);
  cursor: pointer;
}

.file-upload label:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

.file-hint {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #887a6a;
}

/* ---------- КАРТА ---------- */
.map-placeholder {
  width: 100%;
  line-height: 0;
}

.map-placeholder iframe {
  display: block;
  width: 100%;
}

/* ---------- ПОДВАЛ ---------- */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 18px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 22px;
}

.social-links a {
  color: var(--gold);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--cream);
  transform: translateY(-4px);
}

.footer h4 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--cream);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--gold);
}

.copyright {
  border-top: 1px solid #3a322b;
  margin-top: 50px;
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media screen and (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: flex;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(30, 26, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    color: var(--cream);
    font-size: 1.3rem;
  }

  .nav-menu .btn {
    color: var(--gold);
    border-color: var(--gold);
    margin-top: 10px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: var(--gold);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: var(--gold);
  }

  section {
    padding: 70px 0;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-wrapper {
    padding: 24px;
  }

  .typewriter-container {
    min-width: 200px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: flex-start;
  }

  .typewriter-container {
    min-width: 160px;
  }
}
/* ---------- ПРЕЛОАДЕР ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 30px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-logo span {
  color: var(--cream);
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  position: relative;
}

.preloader-spinner::before,
.preloader-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

.preloader-spinner::before {
  width: 100%;
  height: 100%;
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  animation: spin 1s linear infinite;
}

.preloader-spinner::after {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-bottom-color: var(--gold-light);
  border-left-color: var(--gold-light);
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-text {
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  animation: fadeText 2s ease-in-out infinite;
}

@keyframes fadeText {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
/* ---------- МОДАЛЬНОЕ ОКНО ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 26, 23, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(145deg, #fffbf7, #f8f2e7);
  border-radius: 40px;
  padding: 50px 40px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--gold-light);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 3rem;
  color: var(--primary-dark);
  animation: modalIconPulse 0.6s ease;
}

@keyframes modalIconPulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.modal h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.modal p {
  color: #5a4e44;
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.modal .btn {
  min-width: 180px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  background: transparent;
  color: var(--primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: rotate(90deg);
}

/* Частицы внутри модалки */
.modal-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 40px;
}

.modal-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: floatUp 2s ease-in-out infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100%) scale(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-100%) scale(1.5); opacity: 0; }
}
/* ---------- ПРОСТОЕ МОДАЛЬНОЕ ОКНО ---------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30,26,23,0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-success {
  background: #fffbf7;
  border-radius: 35px;
  padding: 50px 35px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 0 2px var(--gold-light);
}
.modal-success .modal-icon {
  width: 80px; height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: #1e1a17;
}
.modal-success h3 { font-size: 1.8rem; margin-bottom: 10px; }
.modal-success p { color: #5a4e44; margin-bottom: 25px; }