:root {
  /* Пастельная цветовая схема */
  --primary-color: #8ECAE6;
  --primary-dark: #5FADC7;
  --secondary-color: #FFB5A7;
  --secondary-dark: #F69A8E;
  --accent-color: #B8E0D2;
  --accent-dark: #95C9B8;
  --text-color: #4A4A4A;
  --text-light: #6B6B6B;
  --text-dark: #2A2A2A;
  --background-color: #F9F9F9;
  --background-alt: #F2F2F2;
  --white: #FFFFFF;
  --black: #000000;
  --gray-light: #EAEAEA;
  --gray: #C4C4C4;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  
  /* Размеры */
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;
  
  /* Тени */
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 8px var(--shadow-color);
  --shadow-lg: 0 8px 16px var(--shadow-color);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Шрифты */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */
  
  /* Z-индексы */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

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

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Утилиты */
.text-center {
  text-align: center;
}

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

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-1 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-3 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-4 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

/* Кнопки */
.btn,
button,
input[type='submit'] {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-md);
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover,
button:hover,
input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active,
button:active,
input[type='submit']:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-tertiary {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-tertiary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  z-index: var(--z-index-fixed);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo {
  display: block;
}

.logo img {
  height: 60px;
  width: auto;
  transition: all var(--transition-normal);
}

.scrolled .logo img {
  height: 50px;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0 0.75rem;
}

.nav-list li:last-child {
  margin-right: 0;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
  font-size: var(--font-size-md);
  padding: 0.5rem;
  transition: all var(--transition-normal);
  position: relative;
}

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

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

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

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-out;
}

.hero p {
  margin-bottom: 2rem;
  font-size: var(--font-size-xl);
  color: var(--white);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeIn 1s ease-out 0.4s both;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 0;
}

.services::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--primary-color);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.1;
  z-index: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: var(--font-size-lg);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.service-carousel {
  position: relative;
  z-index: 1;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-right: 2rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  width: calc(100% - 2rem);
  max-width: 900px;
}

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

.card-image {
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: relative;
}

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

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

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

.card-content {
  padding: 2rem;
  width: 100%;
  text-align: center;
}

.card-content h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-content p {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.prev-btn, .next-btn {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.prev-btn span, .next-btn span {
  font-size: var(--font-size-2xl);
  line-height: 0;
  transform: translateY(1px);
}

/* Success Stories Section */
.success-stories {
  padding: 5rem 0;
  background-color: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.success-stories::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background-color: var(--secondary-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
  z-index: 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* History Section */
.history {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.history-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.history-text {
  flex: 1 1 600px;
}

.history-image {
  flex: 0 1 400px;
  text-align: center;
  position: relative;
}

.history-image::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.1;
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.history-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 30px;
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .year {
  position: absolute;
  left: -50px;
  top: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: var(--font-size-md);
  box-shadow: var(--shadow-sm);
}

.timeline-item .description {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item .description::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 10px;
  width: 15px;
  height: 15px;
  background-color: var(--white);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
}

/* Resources Section */
.resources {
  padding: 5rem 0;
  background-color: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.resources::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--secondary-color);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.1;
  z-index: 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

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

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

.resource-card .card-content {
  padding: 1.5rem;
  text-align: center;
}

.resource-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  text-align: center;
}

.resource-card .image-container {
  height: 100%;
  width: 100%;
}

.resource-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--accent-color);
  border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
  opacity: 0.1;
  z-index: 0;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-form {
  flex: 1 1 500px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--text-color);
  transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-toggle {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.form-toggle input {
  margin: 0;
}

.contact-info {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.icon {
  margin-bottom: 1rem;
}

.location-icon::before,
.phone-icon::before,
.email-icon::before,
.clock-icon::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  mask-size: cover;
  -webkit-mask-size: cover;
  opacity: 0.7;
}

.location-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.phone-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/%3E%3C/svg%3E");
}

.email-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.clock-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

/* News Section */
.news {
  padding: 5rem 0;
  background-color: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.news-date {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
}

.read-more {
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
  padding-bottom: 2px;
  display: inline-block;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Community Section */
.community {
  padding: 5rem 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background-color: var(--accent-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
  z-index: 0;
}

.community-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.community-image {
  flex: 1 1 400px;
  position: relative;
}

.community-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.community-text {
  flex: 1 1 500px;
}

.event-list {
  margin-bottom: 2rem;
}

.event-item {
  display: flex;
  margin-bottom: 1.5rem;
  background-color: var(--background-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.event-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  min-width: 80px;
  text-align: center;
}

.day {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1;
}

.month {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.event-details {
  padding: 1rem 1.5rem;
  flex-grow: 1;
}

.event-details h4 {
  margin-bottom: 0.5rem;
}

.event-details p {
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.newsletter {
  background-color: var(--background-alt);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.newsletter h3 {
  margin-bottom: 0.5rem;
}

.newsletter p {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
}

/* Press Section */
.press {
  padding: 5rem 0;
  background-color: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.press::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background-color: var(--primary-color);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  opacity: 0.1;
  z-index: 0;
}

.press-content {
  position: relative;
  z-index: 1;
}

.media-mentions {
  margin-bottom: 3rem;
}

.media-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.media-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.media-logo {
  flex-shrink: 0;
  margin-right: 1.5rem;
  width: 120px;
  text-align: center;
}

.media-logo img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.media-quote blockquote {
  font-style: italic;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-md);
}

.media-quote cite {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-style: normal;
  font-weight: 500;
}

.publications h3 {
  margin-bottom: 1.5rem;
}

.publication-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.publication-item {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.publication-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.publication-image {
  flex-shrink: 0;
  margin-right: 1rem;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.publication-details h4 {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-md);
}

.publication-details p {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  z-index: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  flex: 1 1 300px;
}

.footer-logo img {
  margin-bottom: 1rem;
}

.footer-nav {
  flex: 1 1 200px;
}

.footer-contact {
  flex: 1 1 200px;
}

.footer-social {
  flex: 1 1 200px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: var(--font-size-xl);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-nav ul a {
  color: var(--gray-light);
  transition: all var(--transition-normal);
  position: relative;
  padding-left: 15px;
}

.footer-nav ul a::before {
  content: '›';
  position: absolute;
  left: 0;
  transition: transform var(--transition-normal);
}

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

.footer-nav ul a:hover::before {
  transform: translateX(3px);
}

.footer-contact address {
  font-style: normal;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
}

.legal-links a {
  color: var(--gray-light);
  margin-left: 1.5rem;
  transition: color var(--transition-normal);
}

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

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.success-icon {
  color: var(--primary-color);
  font-size: 5rem;
  margin-bottom: 2rem;
}

.success-content {
  max-width: 600px;
}

.success-content h1 {
  margin-bottom: 1rem;
}

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

/* Privacy and Terms Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

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

.legal-section h2 {
  margin-bottom: 1.5rem;
}

.legal-section h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-section p, .legal-section ul {
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
}

/* Responsiveness */
@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
  
  h1 {
    font-size: calc(var(--font-size-5xl) * 0.9);
  }
  
  h2 {
    font-size: calc(var(--font-size-4xl) * 0.9);
  }
  
  .card {
    max-width: 700px;
  }
}

@media (max-width: 992px) {
  :root {
    --container-width: 720px;
  }
  
  h1 {
    font-size: calc(var(--font-size-5xl) * 0.8);
  }
  
  h2 {
    font-size: calc(var(--font-size-4xl) * 0.8);
  }
  
  .nav-list {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-content {
    max-width: 600px;
  }
  
  .hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  .hero p {
    font-size: var(--font-size-lg);
  }
  
  .card {
    max-width: 600px;
  }
  
  .history-content {
    flex-direction: column;
  }
  
  .history-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .community-content {
    flex-direction: column;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input, .newsletter-form button {
    width: 100%;
  }
  
  .media-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .media-logo {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-width: 540px;
  }
  
  h1 {
    font-size: calc(var(--font-size-5xl) * 0.7);
  }
  
  h2 {
    font-size: calc(var(--font-size-4xl) * 0.7);
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .hero-content {
    max-width: 500px;
  }
  
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero p {
    font-size: var(--font-size-md);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-description {
    font-size: var(--font-size-md);
  }
  
  .card {
    max-width: 100%;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-nav, .footer-contact, .footer-social {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .legal-links {
    margin-top: 1rem;
  }
  
  .legal-links a {
    margin-left: 0;
    margin-right: 1.5rem;
  }
}

@media (max-width: 576px) {
  :root {
    --container-width: 100%;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: calc(var(--font-size-5xl) * 0.6);
  }
  
  h2 {
    font-size: calc(var(--font-size-4xl) * 0.6);
  }
  
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .publication-item {
    flex-direction: column;
  }
  
  .publication-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .event-item {
    flex-direction: column;
  }
  
  .event-date {
    padding: 0.5rem 1rem;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }
  
  .day, .month {
    font-size: var(--font-size-md);
  }
}

/* Animations for scroll */
[data-scroll] {
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-scroll="in"] {
  transform: translateY(0);
  opacity: 1;
}

[data-scroll="out"] {
  transform: translateY(50px);
  opacity: 0;
}

/* Page Transitions */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-index-modal);
  background-color: var(--primary-color);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.page-transition.active {
  transform: scaleY(1);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: calc(var(--z-index-fixed) - 1);
  padding: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

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

.mobile-nav ul a {
  color: var(--text-dark);
  font-size: var(--font-size-xl);
  font-weight: 500;
  transition: color var(--transition-normal);
  display: block;
  padding: 0.5rem;
}

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

.close-nav {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.close-nav::before, .close-nav::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
}

.close-nav::before {
  transform: rotate(45deg);
}

.close-nav::after {
  transform: rotate(-45deg);
}