/* =================
   БАЗОВЫЕ СТИЛИ
   ================= */

:root {
  /* Цветовая палитра */
  --primary-color: #d4af7a;
  --primary-dark: #c19b63;
  --primary-light: #e6c994;
  --accent-color: #8a6d62;
  --accent-light: #a3836f;
  
  --neutral-100: #ffffff;
  --neutral-200: #faf9f7;
  --neutral-300: #f5f4f2;
  --neutral-400: #e5e4e2;
  --neutral-500: #c0bfbc;
  --neutral-600: #8e8d89;
  --neutral-700: #5c5b57;
  --neutral-800: #3a3936;
  --neutral-900: #1a1917;
  
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(212, 175, 122, 0.1) 0%, rgba(138, 109, 98, 0.2) 100%);
  
  /* Типографика */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Отступы */
  --container-padding: 20px;
  --section-padding: 100px;
  --border-radius: 12px;
  --border-radius-large: 20px;
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(26, 25, 23, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 25, 23, 0.12);
  --shadow-lg: 0 8px 32px rgba(26, 25, 23, 0.16);
  --shadow-xl: 0 16px 64px rgba(26, 25, 23, 0.20);
  
  /* Анимации */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--neutral-700);
  background-color: var(--neutral-100);
  overflow-x: hidden;
}

/* =================
   УТИЛИТЫ
   ================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================
   КНОПКИ
   ================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.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: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--neutral-100);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--neutral-100);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--neutral-100);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: 24px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =================
   СЕКЦИИ
   ================= */

section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(212, 175, 122, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* =================
   ШАПКА
   ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

.logo-icon {
  font-size: 28px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--neutral-700);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--neutral-700);
}

.contact-phone i {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  transition: var(--transition);
}

/* =================
   ГЕРОЙ-СЕКЦИЯ
   ================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    var(--gradient-hero),
    url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=1080&w=1920') center/cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--neutral-100);
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 24px;
  animation: fadeInDown 1s ease 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  margin-bottom: 40px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 80px;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 60px;
  animation: fadeIn 1s ease 1s both;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-light);
}

.feature-text {
  font-size: 14px;
  opacity: 0.9;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-element {
  position: absolute;
  font-size: 24px;
  opacity: 0.3;
  animation: float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* =================
   О НАС
   ================= */

.about {
  background: var(--neutral-200);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  background: var(--neutral-100);
  padding: 40px 30px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--neutral-100);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 16px;
}

/* =================
   УСЛУГИ
   ================= */

.services {
  background: var(--neutral-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--neutral-100);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card.featured {
  background: var(--gradient-primary);
  color: var(--neutral-100);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.service-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent-color);
  color: var(--neutral-100);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 122, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--neutral-100);
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.service-content p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-card.featured .service-features li::before {
  color: var(--neutral-100);
}

.service-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

.service-card.featured .service-price {
  color: var(--neutral-100);
}

/* =================
   ПРОЦЕСС РАБОТЫ
   ================= */

.process {
  background: var(--neutral-200);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: var(--neutral-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 16px;
}

/* =================
   ПОРТФОЛИО
   ================= */

.portfolio {
  background: var(--neutral-100);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.8));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  color: var(--neutral-100);
}

.portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* =================
   КОМАНДА
   ================= */

.team {
  background: var(--neutral-200);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.team-member {
  background: var(--neutral-100);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.member-photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-member:hover .member-photo img {
  transform: scale(1.1);
}

.member-info {
  padding: 30px;
  text-align: center;
}

.member-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 8px;
}

.member-role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 12px;
}

.member-experience {
  color: var(--neutral-600);
  font-size: 14px;
  margin-bottom: 16px;
}

.member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.member-specialties span {
  background: rgba(212, 175, 122, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* =================
   ОТЗЫВЫ
   ================= */

.testimonials {
  background: var(--neutral-100);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--neutral-100);
  padding: 50px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-lg);
  display: none;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 18px;
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  text-align: center;
  margin-bottom: 30px;
  color: var(--neutral-700);
  line-height: 1.7;
}

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

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 4px;
}

.author-info p {
  color: var(--neutral-600);
  font-size: 14px;
}

/* =================
   КОНТАКТЫ
   ================= */

.contact {
  background: var(--neutral-200);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrapper {
  position: sticky;
  top: 100px;
}

.contact-form {
  background: var(--neutral-100);
  padding: 40px;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--neutral-600);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--neutral-700);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--neutral-400);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
  background: var(--neutral-100);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.1);
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(212, 175, 122, 0.05);
  border-radius: var(--border-radius);
  font-size: 14px;
  color: var(--neutral-600);
}

.form-privacy i {
  color: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--neutral-100);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-100);
  flex-shrink: 0;
}

.contact-details h4 {
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--neutral-700);
  margin-bottom: 4px;
}

.contact-details small {
  color: var(--neutral-600);
  font-size: 12px;
}

/* =================
   ФУТЕР
   ================= */

.footer {
  background: var(--neutral-800);
  color: var(--neutral-300);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.footer-brand p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--neutral-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-300);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--neutral-100);
  transform: translateY(-2px);
}

.footer-links h4 {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--primary-color);
  width: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--neutral-700);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

/* =================
   КНОПКА "НАВЕРХ"
   ================= */

.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--neutral-100);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =================
   АНИМАЦИИ
   ================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================
   МЕДИА-ЗАПРОСЫ
   ================= */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .header-actions {
    gap: 16px;
  }
  
  .hero-actions {
    flex-wrap: wrap;
  }
  
  .hero-features {
    gap: 40px;
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-wrapper {
    position: static;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --section-padding: 60px;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-100);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  
  .nav.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }
  
  .nav-link {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--neutral-300);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .contact-phone {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .feature-item {
    width: 200px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card.featured {
    transform: none;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .floating-button {
    bottom: 20px;
    right: 20px;
  }
  
  .scroll-top {
    bottom: 90px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .btn-large {
    padding: 16px 24px;
    font-size: 15px;
  }
  
  .contact-form {
    padding: 24px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
}

/* =================
   УТИЛИТЫ ДЛЯ ПЕЧАТИ
   ================= */

@media print {
  .header,
  .floating-button,
  .scroll-top {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  
  section {
    padding: 40px 0;
    break-inside: avoid;
  }
}

/* =================
   СТИЛИ ДЛЯ ЮРИДИЧЕСКИХ СТРАНИЦ
   ================= */

/* Основной контейнер документа */
.legal-document {
  padding: 120px 0 80px;
  background: var(--neutral-200);
}

/* Заголовок документа */
.document-header {
  text-align: center;
  margin-bottom: 60px;
}

.document-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 16px;
}

.document-subtitle {
  color: var(--neutral-600);
  font-size: 16px;
}

/* Основной контент */
.document-content {
  background: var(--neutral-100);
  border-radius: var(--border-radius-large);
  padding: 60px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

/* Секции документа */
.document-section {
  margin-bottom: 40px;
}

.document-section:last-child {
  margin-bottom: 0;
}

.section-number {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--neutral-100);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 600;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.section-content {
  line-height: 1.8;
  color: var(--neutral-700);
}

.section-content h4 {
  font-weight: 600;
  color: var(--neutral-800);
  margin: 24px 0 12px 0;
}

.section-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.section-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.section-content li {
  margin-bottom: 8px;
}

.section-content strong {
  color: var(--neutral-800);
}

/* Таблица цен */
.price-table {
  background: var(--neutral-200);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 30px 0;
}

.price-table h4 {
  text-align: center;
  margin-bottom: 20px !important;
  font-family: var(--font-display);
  color: var(--primary-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-400);
}

.price-row:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 18px;
}

/* Контактная информация */
.contact-info-box {
  background: rgba(212, 175, 122, 0.1);
  border: 2px solid var(--primary-light);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 40px 0;
}

.contact-info-box h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--neutral-800);
  margin-bottom: 16px;
}

/* Хлебные крошки */
.breadcrumb {
  padding: 100px 0 20px;
  background: var(--neutral-200);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--neutral-600);
}

.breadcrumb-list a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--primary-dark);
}

/* Кнопка возврата */
.back-to-home {
  text-align: center;
  margin-top: 40px;
}

/* Выделенные блоки */
.highlight-box {
  background: rgba(212, 175, 122, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.warning-box {
  background: rgba(231, 76, 60, 0.05);
  border-left: 4px solid #e74c3c;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.warning-box ul {
  margin-top: 10px;
}

/* Медиа-запросы для юридических страниц */
@media (max-width: 768px) {
  .legal-document {
    padding: 100px 0 60px;
  }
  
  .document-content {
    padding: 30px 20px;
  }
  
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-number {
    align-self: flex-start;
  }
  
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .document-content {
    padding: 20px 16px;
  }
  
  .document-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .price-table {
    padding: 20px;
  }
  
  .contact-info-box {
    padding: 20px;
  }
}