/* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
  --coral: #FF6F61;
  --plum: #4B2840;
  --olive: #C8D6AF;
  --graphite: #3B3B3B;
  --ivory: #FFF8F0;
  
  --shadow-light: 0 4px 20px rgba(75, 40, 64, 0.1);
  --shadow-medium: 0 8px 30px rgba(75, 40, 64, 0.15);
  --shadow-heavy: 0 12px 40px rgba(75, 40, 64, 0.2);
  
  --border-radius-sm: 12px;
  --border-radius-md: 18px;
  --border-radius-lg: 24px;
  
  --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--graphite);
  background-color: var(--ivory);
  overflow-x: hidden;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--plum);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ===== КОНТЕЙНЕРЫ И СЕТКИ ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, var(--ivory) 0%, #f8f4f0 100%);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, #ff5a4d 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: var(--olive);
  color: var(--plum);
}

.btn-secondary:hover {
  background: #b8c799;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
}

.btn-outline:hover {
  background: var(--coral);
  color: white;
}

/* ===== КАРТОЧКИ ===== */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition-fast);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  word-wrap: break-word;
  word-break: break-word;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--plum));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--coral), var(--plum));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.card h3 {
  margin-bottom: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
}

.card p {
  flex-grow: 1;
  margin-bottom: 0;
  line-height: 1.6;
  word-wrap: break-word;
  hyphens: auto;
}

/* ===== ХЕДЕР ===== */
.header {
  background: rgba(255, 248, 240, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  border-bottom: 1px solid rgba(75, 40, 64, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  transition: var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--plum);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.hero {
  background: linear-gradient(135deg, var(--ivory) 0%, #f0f4f8 50%, var(--olive) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 111, 97, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--plum), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ФОРМА ===== */
.form-section {
  background: linear-gradient(135deg, var(--plum) 0%, #5d3352 100%);
  color: white;
}

.form-section h2 {
  color: var(--plum); /* Такой же цвет как у всех заголовков */
}

.form-section p {
  color: var(--graphite);
}

.form-container {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-heavy);
  color: var(--graphite);
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-input,
.form-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e1e1e1;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: white;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.form-label {
  position: absolute;
  top: 16px;
  left: 20px;
  color: #999;
  transition: var(--transition-fast);
  pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 16px;
  background: white;
  padding: 0 8px;
  font-size: 0.9rem;
  color: var(--coral);
}

/* ОБЫЧНЫЕ РАБОЧИЕ ЧЕКБОКСЫ */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--coral);
}

.checkbox-label {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--graphite);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--coral);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--plum);
}

/* ===== ОТЗЫВЫ ===== */
.testimonials {
  background: var(--ivory);
}

.testimonial-card {
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-size: 3rem;
  color: var(--coral);
  position: absolute;
}

.testimonial-quote::before {
  top: -10px;
  left: -20px;
}

.testimonial-quote::after {
  bottom: -40px;
  right: -20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--plum);
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--plum);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--coral);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* ===== COOKIE БАННЕР ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--plum);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  z-index: 10000;
  box-shadow: var(--shadow-heavy);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .nav-links {
    display: none;
  }
  
  .brand-name {
    font-size: 1.3rem;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-container {
    padding: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .form-container {
    padding: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .testimonial-quote::before,
  .testimonial-quote::after {
    display: none;
  }
  
  .logo-container {
    gap: 8px;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-right {
  animation: fadeInRight 0.8s ease-out;
}

/* ===== УТИЛИТЫ ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

.coral-text { color: var(--coral); }
.plum-text { color: var(--plum); }
.olive-text { color: var(--olive); } 