/* ===== Переменные ===== */
:root {
  --gold: #C5A059;
  --gold-light: #E3C282;
  --gold-dark: #A88347;
  --dark-brown: #3A2C24;
  --light-bg: #fef9f4;
  --card-bg: rgba(255, 243, 233, 0.7);
  --text: #4a3b2f;
  --text-light: #6f4a3b;
  --border: #f0e0d6;
  --glass-bg: rgba(255, 243, 233, 0.6);
  --shadow-elegant: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 10px 30px rgba(197, 160, 89, 0.2);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== Базовые стили ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Утилиты ===== */
.gold-text {
  color: var(--gold);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: var(--shadow-elegant);
}

.pattern-dots {
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  pointer-events: none;
}

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 243, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  color: var(--dark-brown);
  letter-spacing: 1px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 16px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after {
  width: 100%;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-phone i {
  color: var(--gold);
}

.btn {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-small {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

.btn-outline {
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--dark-brown);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--gold);
  cursor: pointer;
}

/* ===== Hero секция ===== */
.hero {
  height: 100vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background-attachment: fixed; /* параллакс-эффект */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(58, 44, 36, 0.6) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Секции ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-bg {
  background: linear-gradient(180deg, #f9f0e9 0%, #fef9f4 100%);
}

.section-title {
  font-size: 48px;
  margin-bottom: 60px;
  color: var(--dark-brown);
  position: relative;
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ===== О нас ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text);
  line-height: 1.8;
}

.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-radius: 30px;
  padding: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  font-family: 'Cormorant Garamond', serif;
}

.stat-label {
  font-size: 16px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-gold), var(--shadow-elegant);
  border-color: var(--gold);
}

.advantage-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--dark-brown);
  font-family: 'Cormorant Garamond', serif;
}

.advantage-card p {
  color: #666;
}

/* ===== Мастера ===== */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.master-card {
  border-radius: 30px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.master-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-gold), var(--shadow-elegant);
  border-color: var(--gold);
}

.master-photo {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.master-card:hover .master-photo img {
  transform: scale(1.1);
}

.master-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(197, 160, 89, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.master-card:hover .master-photo::after {
  opacity: 1;
}

.master-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  background: linear-gradient(to top, rgba(58, 44, 36, 0.8), transparent);
  transition: bottom 0.3s;
  z-index: 2;
}

.master-card:hover .master-social {
  bottom: 0;
}

.master-social a {
  color: white;
  font-size: 22px;
  transition: var(--transition);
  background: rgba(197, 160, 89, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
}

.master-social a:hover {
  background: var(--gold);
  color: var(--dark-brown);
  transform: scale(1.2);
}

.master-info {
  padding: 25px;
  text-align: center;
}

.master-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-brown);
  font-family: 'Cormorant Garamond', serif;
}

.master-position {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.master-position.senior {
  background: var(--gold);
  color: white;
  display: inline-block;
  padding: 4px 15px;
  border-radius: 50px;
  font-size: 12px;
}

.master-specialization {
  color: #666;
}

/* ===== Услуги ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  border-radius: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-gold), var(--shadow-elegant);
  border-color: var(--gold);
}

.service-icon {
  font-size: 56px;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark-brown);
  font-family: 'Cormorant Garamond', serif;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
}

.service-price {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Cormorant Garamond', serif;
}

/* ===== Портфолио ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-elegant);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(197, 160, 89, 0.3));
  opacity: 0;
  transition: opacity 0.4s;
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* ===== Отзывы ===== */
.reviews-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 300px;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
  border-radius: 30px;
  padding: 50px;
  backdrop-filter: blur(10px);
}

.review-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.review-content i {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  opacity: 0.5;
}

.review-content p {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.8;
}

.review-author {
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  font-size: 18px;
  font-family: 'Cormorant Garamond', serif;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  color: var(--gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: -70px;
}

.carousel-next {
  right: -70px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

/* ===== Форма ===== */
.form-container {
  border-radius: 30px;
  padding: 60px;
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

/* Плавающие подписи */
.float-label {
  position: relative;
}

.float-label input,
.float-label textarea {
  width: 100%;
  padding: 18px 20px 8px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--light-bg);
}

.float-label textarea {
  border-radius: 20px;
  padding: 25px 20px 8px;
}

.float-label label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  transition: 0.2s ease all;
  pointer-events: none;
  font-size: 16px;
}

.float-label textarea + label {
  top: 25px;
  transform: none;
}

.float-label input:focus,
.float-label input:not(:placeholder-shown),
.float-label textarea:focus,
.float-label textarea:not(:placeholder-shown) {
  padding-top: 25px;
  padding-bottom: 8px;
  border-color: var(--gold);
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label,
.float-label textarea:focus + label,
.float-label textarea:not(:placeholder-shown) + label {
  top: 10px;
  transform: translateY(0);
  font-size: 12px;
  color: var(--gold);
}

input, select, textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--light-bg);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
}

textarea {
  border-radius: 20px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.btn-submit {
  width: 100%;
  margin-top: 20px;
  background: var(--gold);
  color: white;
  border: none;
}

.btn-submit:hover {
  background: var(--gold-dark);
}

/* ===== Контакты ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contacts-info {
  border-radius: 30px;
  padding: 50px;
  backdrop-filter: blur(10px);
}

.contacts-info p {
  margin-bottom: 25px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.gold-icon {
  color: var(--gold);
  width: 30px;
  text-align: center;
  font-size: 22px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  color: var(--gold);
  border-radius: 50%;
  font-size: 22px;
  transition: var(--transition);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.social-links a:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-5px);
}

.map-container {
  border-radius: 30px;
  overflow: hidden;
  height: 350px;
  backdrop-filter: blur(10px);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: #e0cfc2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ===== Подвал ===== */
.footer {
  background: var(--dark-brown);
  color: #f0e0d6;
  padding: 40px 0;
  text-align: center;
  border-top: 2px solid var(--gold);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Уведомление ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: var(--shadow-gold), var(--shadow-elegant);
  transform: translateX(400px);
  transition: transform 0.3s;
  z-index: 2000;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: #d9534f;
}

/* ===== Анимации при прокрутке ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
  .masters-grid,
  .services-grid,
  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-prev {
    left: -20px;
  }
  .carousel-next {
    right: -20px;
  }
  .hero-title {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .nav, .header-contacts {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .section-title {
    font-size: 36px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    flex-direction: column;
    gap: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 10px;
  }
  .carousel-prev, .carousel-next {
    top: auto;
    bottom: -50px;
    transform: none;
  }
  .carousel-prev {
    left: 20%;
  }
  .carousel-next {
    right: 20%;
  }
  .form-container {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .masters-grid,
  .services-grid,
  .advantages,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 40px;
  }
  .section-title {
    font-size: 32px;
  }
  .master-photo {
    height: 300px;
  }
}
/* ===== Портфолио с описанием ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.portfolio-item:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
  border-radius: 0 0 20px 20px;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.5px;
}

.portfolio-master {
  font-size: 14px;
  margin-bottom: 5px;
  opacity: 0.9;
}

.portfolio-desc {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.4;
}

/* Адаптивность для портфолио */
@media (max-width: 768px) {
  .portfolio-overlay {
    transform: translateY(0); /* Всегда показывать на мобильных */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    padding: 15px;
  }
  .portfolio-title {
    font-size: 16px;
  }
  .portfolio-master, .portfolio-desc {
    font-size: 12px;
  }
}
/* ===== Кастомный календарь ===== */
.date-picker-group, .time-picker-group {
  position: relative;
}

.custom-date-input, .custom-time-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  background: var(--light-bg);
  cursor: pointer;
  transition: var(--transition);
}

.custom-date-input:hover, .custom-time-input:hover {
  border-color: var(--gold);
}

.custom-date-input i, .custom-time-input i {
  color: var(--gold);
  font-size: 18px;
}

.calendar-popup, .time-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: rgba(255, 243, 233, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-gold), var(--shadow-elegant);
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.calendar-popup.active, .time-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-nav {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav:hover {
  background: rgba(197, 160, 89, 0.1);
}

.calendar-month-year {
  font-weight: 600;
  color: var(--dark-brown);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 14px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 15px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.calendar-day:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.calendar-day.selected {
  background: var(--gold);
  color: white;
  font-weight: 600;
}

.calendar-day.today {
  border: 2px solid var(--gold);
  font-weight: 600;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
}

.btn-calendar {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-calendar:hover {
  background: var(--gold);
  color: white;
}

/* ===== Кастомный выбор времени ===== */
.time-popup {
  width: 250px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-slot {
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 5px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.time-slot.selected {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
/* ===== Кастомные селекты (мастер, услуга) ===== */
.custom-select-group {
  position: relative;
}

.custom-select-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  background: var(--light-bg);
  cursor: pointer;
  transition: var(--transition);
}

.custom-select-input:hover {
  border-color: var(--gold);
}

.custom-select-input i {
  color: var(--gold);
  font-size: 14px;
  transition: transform 0.3s;
}

.custom-select-input.active i {
  transform: rotate(180deg);
}

.select-placeholder {
  color: #999;
}

.select-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: rgba(255, 243, 233, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-gold), var(--shadow-elegant);
  padding: 15px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.select-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-option {
  padding: 12px 15px;
  background: white;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  font-weight: 500;
}

.select-option:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(5px);
}

.select-option.selected {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}