:root {
  /* Ретро-биоморфная цветовая схема (раздельно-дополнительная) */
  --primary-color: #FF5E3A; /* Основной оранжево-красный */
  --primary-dark: #E04527; /* Темнее основного */
  --primary-light: #FF8A6E; /* Светлее основного */
  
  --secondary-color: #3CAEA3; /* Дополнительный бирюзовый */
  --secondary-dark: #2D8C83; /* Темнее дополнительного */
  --secondary-light: #65D2C7; /* Светлее дополнительного */
  
  --accent-color: #F9C80E; /* Акцентный желтый */
  --accent-dark: #D9AC0D; /* Темнее акцентного */
  --accent-light: #FFDA6A; /* Светлее акцентного */
  
  --neutral-dark: #2B2D42; /* Темный нейтральный */
  --neutral: #8D99AE; /* Средний нейтральный */
  --neutral-light: #EDF2F4; /* Светлый нейтральный */
  
  /* Шрифты */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Радиусы и тени */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  
  /* Анимации */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Размеры контейнеров */
  --container-width: 1280px;
  --card-min-width: 280px;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--body-font);
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: bold;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.container {
  max-width: var(--container-width);
  width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Секции */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  background: var(--primary-color);
  margin: 0.75rem auto 0.5rem;
  border-radius: 50px;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

section:hover .section-title::after {
  transform: scaleX(1.5);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--neutral);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Кнопки */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--body-font);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-normal);
}

.scrolled .header-content {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  transition: var(--transition-normal);
}

.scrolled .logo img {
  transform: scale(0.85);
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.desktop-nav a {
  font-weight: 500;
  color: var(--neutral-dark);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neutral-dark);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transform: translateY(-110%);
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 1rem;
}

.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  color: var(--neutral-dark);
  border-bottom: 1px solid var(--neutral-light);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
  margin-left: 0;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid,
.testimonials-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Resources Section */
.resources {
  background-color: var(--neutral-light);
  position: relative;
  overflow: hidden;
}

.resources::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.resources-carousel {
  position: relative;
  margin: 3rem 0;
  z-index: 1;
}

.carousel-container {
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: var(--transition-slow);
}

.carousel-item {
  min-width: calc(33.333% - 1.33rem);
  flex: 1;
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-buttons button {
  background-color: var(--secondary-color);
  color: white;
}

.carousel-buttons button:hover {
  background-color: var(--secondary-dark);
}

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

/* External Resources Section */
.external-resources {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.external-resources::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

/* Clientele Section */
.clientele {
  background: linear-gradient(135deg, white 0%, var(--neutral-light) 100%);
}

.accordion-container {
  margin-top: 3rem;
}

.accordion {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: white;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--neutral-light);
  cursor: pointer;
  transition: var(--transition-normal);
}

.accordion-header:hover {
  background-color: var(--primary-light);
  color: white;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.accordion.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-normal);
}

.accordion.active .accordion-content {
  max-height: 500px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
}

.image-container {
  flex: 0 0 300px;
  height: 180px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  align-self: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.accordion:hover .image-container img {
  transform: scale(1.05);
}

.text-container {
  flex: 1;
}

/* Insights Section */
.insights {
  background-color: white;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Contact Section */
.contact {
  background-color: var(--neutral-light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--primary-light);
  opacity: 0.05;
  border-radius: 0 0 0 50%;
  z-index: 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 3rem;
  margin-top: 3rem;
  z-index: 1;
  position: relative;
}

.contact-info {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

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

.info-item .icon {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 250px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral);
  border-radius: var(--border-radius-sm);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 94, 58, 0.2);
}

/* Footer */
.footer {
  background-color: var(--neutral-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  margin-bottom: 1.5rem;
  max-width: 150px;
  height: auto;
}

.footer-links h3,
.footer-social h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h3::after,
.footer-social h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: var(--neutral-light);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--neutral-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.social-links a:hover {
  color: white;
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--neutral);
}

/* Success Page */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--neutral-light);
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease-out;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Terms & Privacy Pages */
.terms-page,
.privacy-page {
  padding-top: 100px;
  min-height: 100vh;
  background-color: white;
}

.terms-content,
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.terms-content h1,
.privacy-content h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.terms-content h2,
.privacy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Биоморфный дизайн */
.bio-shape {
  position: relative;
}

.bio-shape::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphing 8s ease-in-out infinite;
  opacity: 0.05;
  z-index: -1;
}

/* Для страницы about */
.about-page {
  padding-top: 100px;
}

.team-section {
  background-color: white;
}

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

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

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

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.member-position {
  color: var(--neutral);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Медиа-запросы */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .carousel-item {
    min-width: calc(50% - 1rem);
  }
  
  .content-wrapper {
    flex-direction: column;
  }
  
  .image-container {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .header-content {
    height: 70px;
  }
  
  .scrolled .header-content {
    height: 60px;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .carousel-item {
    min-width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo, 
  .footer-links {
    align-items: center;
  }
  
  .footer-links h3::after,
  .footer-social h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Активный класс для мобильного меню */
.menu-open {
  overflow: hidden;
}

.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Дополнительные анимации и эффекты */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

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

@keyframes slideIn {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

textarea {
  resize: none;
}

.privacy-section {
  padding-top: 20px;
  padding-bottom: 20px;
}