/**
 * Main stylesheet for domain
 * Color palette:
 * - Midnight Lime: #002E18
 * - Electric Coral: #FF4F32
 * - Cyber Grape: #51478B
 * - Mint Cream: #E8FFF4
 * - Mellow Apricot: #F6B26B
 */

/* ===== Reset & Base Styles ===== */
:root {
  --midnight-lime: #002E18;
  --electric-coral: #FF4F32;
  --cyber-grape: #51478B;
  --mint-cream: #E8FFF4;
  --mellow-apricot: #F6B26B;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--midnight-lime);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, .button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

section {
  padding: 5rem 0;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  position: relative;
  margin-bottom: 3rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--electric-coral);
  border-radius: 2px;
}

.text-center {
  text-align: center;
}

/* Убираем линию под заголовком в секции About */
.about-section h2:after {
  display: none;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 1s forwards;
}

.slide-up {
  animation: slideUp 0.8s forwards;
}

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(5px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--midnight-lime);
  letter-spacing: 1px;
}

.logo-link span {
  color: var(--electric-coral);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  font-weight: 500;
  position: relative;
}

.nav-list a:not(.cta-button):after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-coral);
  transition: var(--transition);
}

.nav-list a:not(.cta-button):hover:after {
  width: 100%;
}

.cta-button {
  display: inline-block;
  background: var(--electric-coral);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 0 8px var(--electric-coral);
  border: none;
  text-align: center;
  transition: var(--transition);
}

.cta-button:hover {
  background: #e93e20;
  box-shadow: 0 0 12px var(--electric-coral);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 200;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--midnight-lime);
  margin-bottom: 6px;
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 46, 24, 0.8), rgba(81, 71, 139, 0.8)), 
              url('../../img/JZnyEH.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1,
.hero p {
  color: var(--mint-cream);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ===== About Us Section ===== */
.about-section {
  position: relative;
  background-color: #fff;
  text-align: center;
}

.about-content {
  display: flex;
  gap: 3rem;
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Advantages Section ===== */
.advantages-section {
  background-color: var(--mint-cream);
  position: relative;
  text-align: center;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.advantage-card {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: radial-gradient(circle, var(--mellow-apricot) 0%, var(--electric-coral) 100%);
  border-radius: 50%;
}

.advantage-icon svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.advantage-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.advantages-image {
  margin: 3rem auto;
  max-width: 600px;
  max-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantages-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Services Section ===== */
.services-section {
  background-color: #fff;
  position: relative;
  text-align: center;
}

.services-image {
  margin: 2rem auto 4rem;
  max-width: 600px;
  max-height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-package {
  border: 1px solid rgba(0, 46, 24, 0.1);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.service-package:hover {
  border-color: var(--electric-coral);
  box-shadow: 0 10px 30px rgba(255, 79, 50, 0.1);
}

.package-popular {
  position: relative;
  overflow: hidden;
  border-color: var(--electric-coral);
  box-shadow: 0 10px 30px rgba(255, 79, 50, 0.1);
}

.package-popular::before {
  content: 'Beliebt';
  position: absolute;
  top: 20px;
  right: -50px;
  background: var(--electric-coral);
  color: #fff;
  padding: 8px 60px;
  transform: rotate(45deg);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1;
}

.package-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.package-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--electric-coral);
  margin-bottom: 2rem;
}

.package-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.package-features {
  margin-bottom: 2rem;
}

.package-features li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 46, 24, 0.05);
}

.package-features li:last-child {
  border-bottom: none;
}

/* ===== Process Section ===== */
.process-section {
  background: linear-gradient(rgba(0, 46, 24, 0.9), rgba(0, 46, 24, 0.9)), 
              url('../../img/OuSMne.jpg');
  background-size: cover;
  background-position: center;
  color: var(--mint-cream);
  position: relative;
  text-align: center;
  padding: 6rem 0;
}

.process-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.process-card {
  flex: 0 0 calc(25% - 2rem);
  min-width: 250px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--electric-coral);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
}

.process-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.process-card p {
  opacity: 0.9;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background-color: #fff;
  position: relative;
  text-align: center;
}

.testimonials-slider {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
}

.testimonial-content p {
  text-align: center;
}

.testimonial-content::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  margin: auto;
  color: rgba(0, 46, 24, 0.05);
  text-align: center;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.author-info p {
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
}

/* ===== Form Section ===== */
.form-section {
  background: radial-gradient(circle at 30% 70%, var(--cyber-grape) 0%, var(--midnight-lime) 100%);
  color: var(--mint-cream);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(246, 178, 107, 0.1) 0%, rgba(255, 79, 50, 0.05) 50%, transparent 70%);
  animation: rotate 30s infinite linear reverse;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.form-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgb(255, 255, 255)1a1;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--electric-coral);
  box-shadow: 0 0 0 3px rgba(255, 79, 50, 0.2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='white'><path d='M0 0l6 6 6-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-checkbox label {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.form-checkbox a {
  color: var(--mellow-apricot);
  text-decoration: underline;
}

.form-checkbox a:hover {
  color: var(--electric-coral);
}

.form-button {
  background: var(--electric-coral);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  box-shadow: 0 0 8px var(--electric-coral);
  transition: var(--transition);
}

.form-button:hover {
  background: #e93e20;
  box-shadow: 0 0 12px var(--electric-coral);
  transform: translateY(-2px);
}

/* ===== Contact & Footer ===== */
.footer {
  background-color: var(--midnight-lime);
  color: var(--mint-cream);
  padding: 5rem 0 2rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-info {
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 1.5rem;
  font-size: 28px;
  font-weight: 700;
  color: var(--mint-cream);
}

.footer-logo span {
  color: var(--electric-coral);
}

.footer-description {
  margin-bottom: 2rem;
  opacity: 0.8;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--electric-coral);
}

.footer-nav h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-nav h3:after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--electric-coral);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--electric-coral);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--electric-coral);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transition: bottom 0.5s ease;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: 2rem;
}

.cookie-content p {
  color: #fff;
  font-size: 0.95rem;
}

.cookie-content a {
  color: var(--mellow-apricot);
  text-decoration: underline;
}

.cookie-button {
  background: var(--electric-coral);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  flex-shrink: 0;
}

/* ===== Policy Pages ===== */
.policy-page {
  padding: 5rem 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 3rem;
}

.policy-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* ===== Thank You Page ===== */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 46, 24, 0.8), rgba(81, 71, 139, 0.8)), 
              url('../../img/DgubzA.jpg');
  background-size: cover;
  background-position: center;
  color: var(--mint-cream);
}

.thank-you-content {
  max-width: 700px;
  animation: fadeIn 1s forwards;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.thank-you h1 {
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.thank-you p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.thank-you-icon {
  margin: 2rem auto;
  animation: pulse 2s infinite ease-in-out;
  display: flex;
  justify-content: center;
}

.thank-you .cta-button {
  margin-top: 1rem;
  display: inline-block;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  section {
    padding: 4rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .process-cards {
    gap: 1.5rem;
  }
  
  .process-card {
    flex: 0 0 calc(50% - 1.5rem);
  }
  
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h2 {
    margin-bottom: 2rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .nav-list li:last-child {
    margin-top: 1rem;
  }

  /* Ensure mobile containers don't create horizontal scroll */
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-button {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .form-container {
    padding: 2rem;
  }
  
  .process-card {
    flex: 0 0 100%;
  }

  .thank-you-content {
    padding: 2rem;
    margin: 0 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .testimonial-card {
    flex: 0 0 85%;
  }
  
  .package-price {
    font-size: 2rem;
  }

  .thank-you p {
    font-size: 1rem;
  }
} 