/* Основные стили и переменные */
:root {
  --color-indigo: #4B0082;
  --color-coral: #FF6F61;
  --color-sand: #F2D2BD;
  --color-mint: #98D8C8;
  --color-gold: #FFD700;
  --color-violet: #9370DB;
  --font-main: 'Montserrat', Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
}

/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-main);
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--color-indigo);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-coral);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  margin-bottom: 1rem;
  color: var(--color-indigo);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--color-indigo), var(--color-violet));
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--color-coral), var(--color-gold));
  margin: 15px auto 0;
}

/* Хедер и навигация */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 150px;
  height: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  font-weight: 600;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-coral);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu-checkbox {
  display: none;
}

/* Херо секция */
.hero {
  background: url('../img/kTQkWi.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(75, 0, 130, 0.7), rgba(255, 111, 97, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Секция услуг */
.services {
  padding: 100px 0;
  background-color: #fff;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--color-indigo), var(--color-coral));
}

.service-card-content {
  padding: 25px;
}

.service-card h3 {
  color: var(--color-indigo);
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
  color: #666;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 15px;
  display: block;
}

/* Секция отзывов */
.testimonials {
  padding: 100px 0;
  background-color: var(--color-mint);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/Ma7erJ.jpg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.testimonials-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-indigo);
}

/* Секция формы заказа */
.order {
  padding: 100px 0;
  background-color: #fff;
}

.order-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 40px;
}

.order-info {
  flex: 1 1 400px;
}

.order-info p {
  margin-bottom: 30px;
  color: #666;
}

.order-form-container {
  flex: 1 1 500px;
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.order-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-indigo), var(--color-violet));
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 40%);
  opacity: 0.1;
  z-index: 0;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-indigo);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-family: var(--font-main);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-coral);
  outline: none;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234B0082' d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4 6 8.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

select.form-control option {
  color: black;
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: #666;
}

.checkbox-group a {
  color: var(--color-coral);
  text-decoration: underline;
}

/* Секция специалистов */
.specialists {
  padding: 100px 0;
  background-color: var(--color-sand);
}

.specialists-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.specialist-card {
  flex: 1 1 250px;
  max-width: 300px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.specialist-card:hover {
  transform: translateY(-10px);
}

.specialist-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.specialist-info {
  padding: 20px;
  text-align: center;
}

.specialist-info h3 {
  margin-bottom: 5px;
  color: var(--color-indigo);
}

.specialist-info p {
  color: #666;
  font-style: italic;
}

/* Секция галереи */
.gallery {
  padding: 100px 0;
  background-color: #fff;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Секция FAQ */
.faq {
  padding: 100px 0;
  background-color: var(--color-mint);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: white;
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  color: var(--color-indigo);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-coral);
  transition: transform 0.3s ease;
}

.faq-answer {
  background-color: #f9f9f9;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

details.faq-item summary {
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item[open] .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Секция контактов */
.contact {
  padding: 100px 0;
  background-color: #fff;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h2 {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-indigo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.2rem;
}

.contact-text h4 {
  margin-bottom: 5px;
  color: var(--color-indigo);
}

.contact-map {
  flex: 1 1 500px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Футер */
footer {
  background-color: var(--color-indigo);
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-coral);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-coral);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Cookie уведомление */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-text {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
}

.cookie-btn {
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.cookie-accept {
  background-color: var(--color-indigo);
  color: white;
  border: none;
}

.cookie-decline {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #666;
}

/* Стили для страниц политик */
.policy-page {
  padding: 100px 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  margin-bottom: 30px;
  text-align: center;
}

.policy-container h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--color-indigo);
}

.policy-container p, .policy-container ul {
  margin-bottom: 20px;
}

.policy-container ul {
  padding-left: 20px;
}

.policy-container ul li {
  margin-bottom: 10px;
}

/* Страница благодарности */
.thank-you {
  padding: 150px 0;
  text-align: center;
}

.thank-you-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-coral);
  margin-bottom: 30px;
}

.thank-you h1 {
  margin-bottom: 20px;
}

.thank-you p {
  margin-bottom: 30px;
  color: #666;
}

/* Анимации */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
  }
  
  .mobile-menu-checkbox:checked ~ .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu li {
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .services, .testimonials, .order, .specialists, .gallery, .faq, .contact {
    padding: 70px 0;
  }
  
  .order-form-container {
    padding: 30px;
  }
  
  .contact-map {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .services, .testimonials, .order, .specialists, .gallery, .faq, .contact {
    padding: 50px 0;
  }
  
  .service-card, .testimonial-card, .specialist-card {
    max-width: 100%;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .policy-container {
    padding: 20px;
  }
}

/* Стили для страниц с одним блоком контента */
.single-block-page {
  padding: 100px 0;
  background-color: var(--color-sand);
}

.single-block-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-block-container h1 {
  margin-bottom: 30px;
  text-align: center;
  color: var(--color-indigo);
}

.single-block-container p {
  margin-bottom: 20px;
  line-height: 1.8;
}
