:root {
  /* Пастельная цветовая схема */
  --primary-color: #b8e0d2;
  --primary-dark: #8fc1b5;
  --secondary-color: #d6eadf;
  --accent-color: #eac4d5;
  --accent-dark: #d8a5bb;
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --text-dark: #222222;
  --background-light: #f9f9f9;
  --background-card: rgba(255, 255, 255, 0.7);
  --background-glassmorphism: rgba(255, 255, 255, 0.15);
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --success-color: #95d5b2;
  --error-color: #ff8896;
  --warning-color: #ffd166;
  --info-color: #a0c4ff;

  /* Размеры */
  --header-height: 80px;
  --border-radius: 12px;
  --container-padding: 5%;
  --card-padding: 2rem;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
  overflow-x: hidden;
}

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

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

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

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

/* Заголовки секций */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--text-dark);
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

/* Кнопки */
.btn, 
button,
input[type='submit'] {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before, 
button::before,
input[type='submit']::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-speed) ease;
}

.btn:hover::before, 
button:hover::before,
input[type='submit']:hover::before {
  opacity: 1;
}

.btn:hover, 
button:hover,
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.btn:active, 
button:active,
input[type='submit']:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px var(--shadow-color);
}

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

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.btn-secondary::before {
  background: var(--accent-dark);
}

.btn + .btn {
  margin-left: 1rem;
}

/* Гласморфизм */
.glassmorphism {
  background: var(--background-glassmorphism);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
}

/* Объемные элементы UI */
.card {
  background: var(--background-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-dark);
}

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  margin: 0 auto;
}

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

.card-content {
  padding: var(--card-padding);
  text-align: center;
  width: 100%;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color var(--transition-speed) ease;
}

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

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav ul li {
  margin-left: 2rem;
}

.desktop-nav ul li a {
  color: var(--text-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.desktop-nav ul li a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999;
  padding-top: var(--header-height);
  text-align: center;
}

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

.mobile-nav ul li {
  margin: 2rem 0;
}

.mobile-nav ul li a {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 600;
}

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

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

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

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Mission Section */
.mission {
  padding: 6rem 0;
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.mission-text {
  flex: 1;
  min-width: 300px;
}

.mission-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.mission-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  margin: 0 auto;
}

.progress-indicators {
  margin-top: 2rem;
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.progress-bar {
  height: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 5px;
  position: relative;
  transition: width 1s ease-in-out;
}

.progress::after {
  content: attr(data-percentage);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background-color: var(--background-light);
}

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

/* Innovation Section */
.innovation {
  padding: 6rem 0;
}

.innovation-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.innovation-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.innovation-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  margin: 0 auto;
}

.innovation-text {
  flex: 1;
  min-width: 300px;
}

/* Resources Section */
.resources {
  padding: 6rem 0;
}

.resources-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

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

.resource-card {
  background: var(--background-card);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 8px 20px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-dark);
}

.resource-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Team Section */
.team {
  padding: 6rem 0;
  background-color: var(--background-light);
}

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

.team .card-image {
  height: 300px;
}

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

/* Partners Section */
.partners {
  padding: 6rem 0;
}

.partners-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

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

.partner-item {
  text-align: center;
  padding: 1.5rem;
  transition: transform var(--transition-speed) ease;
}

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

.partner-item img {
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.partner-item h3 {
  font-size: 1.2rem;
}

/* Community Section */
.community {
  padding: 6rem 0;
  background-color: var(--background-light);
}

.community-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.community-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.community-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  margin: 0 auto;
}

.community-text {
  flex: 1;
  min-width: 300px;
}

/* History Section */
.history {
  padding: 6rem 0;
}

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

.history-text {
  flex: 1;
  min-width: 300px;
}

.history-timeline {
  flex: 1;
  min-width: 300px;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--background-light);
}

.year {
  font-weight: 700;
  margin-right: 1rem;
  color: var(--accent-dark);
}

/* Careers Section */
.careers {
  padding: 6rem 0;
  background-color: var(--background-light);
}

.careers-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.careers-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.careers-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  margin: 0 auto;
}

.careers-text {
  flex: 1;
  min-width: 300px;
}

/* Accordion */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--background-card);
  overflow: hidden;
}

.accordion-header {
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
}

.accordion-item.active .accordion-header::after {
  content: '-';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
  padding: 0 1rem;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1rem;
}

/* Media Section */
.media {
  padding: 6rem 0;
}

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

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

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--text-white);
  font-size: 0.9rem;
}

.media-text {
  flex: 1;
  min-width: 300px;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--background-light);
}

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

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.animated-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.location {
  background-image: url('./image/icon-location.jpg');
}

.phone {
  background-image: url('./image/icon-phone.jpg');
}

.email {
  background-image: url('./image/icon-email.jpg');
}

.clock {
  background-image: url('./image/icon-clock.jpg');
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

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

.contact-form {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.8);
  font-family: 'Source Sans Pro', sans-serif;
  transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(234, 196, 213, 0.3);
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  color: var(--text-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
}

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

.footer-links,
.footer-services,
.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

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

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

.social-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

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

.newsletter h3 {
  margin-top: 2rem;
}

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

.newsletter input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Source Sans Pro', sans-serif;
}

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

/* Cookie Consent */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--text-white);
  padding: 1rem;
  z-index: 9999;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cookie-content p {
  margin: 0;
  padding-right: 2rem;
}

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

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

.success-container {
  max-width: 600px;
  padding: 3rem;
  border-radius: var(--border-radius);
  background-color: var(--background-card);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

/* About, Privacy, Terms Pages */
.page-content {
  padding: 100px 0 4rem;
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    padding-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn + .btn {
    margin-left: 0;
  }
  
  .newsletter form {
    flex-direction: column;
  }
}

/* Animations and Effects */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* 3D Effect for cards */
.card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-content {
  transform: translateZ(20px);
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Background Patterns */
.bg-pattern {
  position: relative;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./image/pattern.jpg');
  background-size: 200px;
  opacity: 0.05;
  z-index: -1;
}

/* Read More Link */
.read-more {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 0.5rem;
  position: relative;
  padding-right: 20px;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-speed) ease;
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

.read-more:hover {
  text-decoration: underline;
}