:root {
  /* Триада цветовая схема */
  --primary-color: #ff6b00;
  --secondary-color: #0076ff;
  --tertiary-color: #8a00ff;
  
  /* Оттенки и вариации основных цветов */
  --primary-dark: #d85600;
  --primary-light: #ff8d3f;
  --secondary-dark: #005dc7;
  --secondary-light: #3d97ff;
  --tertiary-dark: #6e00cc;
  --tertiary-light: #a54aff;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #cccccc;
  --light: #f8f8f8;
  --white: #ffffff;
  
  /* Фоновые градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color), var(--tertiary-light));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Закругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Размеры контейнера */
  --container-width: 1200px;
  --container-padding: 1.5rem;
  
  /* Типографика */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --line-height: 1.6;
}

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

html {
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

h5 {
  font-size: 1.4rem;
}

h6 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

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

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

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
}

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

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--gray);
}

/* Кнопки */
.button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

.button--primary {
  background: var(--gradient-primary);
  color: var(--white);
}

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

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

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

.button--small {
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
}

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

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

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

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.header__logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

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

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

.header__menu li {
  margin-left: 2rem;
}

.header__menu a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.3rem;
}

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

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

.header__menu a:hover::after {
  width: 100%;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1100;
}

.header__burger span {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: var(--transition-normal);
}

/* Hero секция */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: 0;
  padding: 0;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* Истории успеха */
.success-stories {
  background-color: var(--light);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--gray-light);
  border-radius: var(--radius-sm);
}

.timeline__item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline__item:nth-child(odd) .timeline__content {
  margin-left: auto;
  transform: translateX(2rem);
}

.timeline__item:nth-child(even) .timeline__content {
  margin-right: auto;
  transform: translateX(-2rem);
}

.timeline__content {
  width: 45%;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition-normal);
}

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

.timeline__content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline__item:nth-child(odd) .timeline__content::before {
  left: -3rem;
  transform: translate(-50%, -50%);
}

.timeline__item:nth-child(even) .timeline__content::before {
  right: -3rem;
  transform: translate(50%, -50%);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.card-image {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
  margin: 0 auto;
}

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

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

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

/* Testimonials */
.testimonials {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./image/testimonial-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.testimonials__slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}

.testimonials__track {
  display: flex;
  overflow: hidden;
  transition: var(--transition-slow);
}

.testimonial-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 0 1rem;
  transition: var(--transition-normal);
}

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

.testimonial-card__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.testimonial-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__content {
  text-align: center;
}

.testimonial-card__content p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card__content p::before,
.testimonial-card__content p::after {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.4;
  position: absolute;
}

.testimonial-card__content p::before {
  top: -1.5rem;
  left: -1rem;
}

.testimonial-card__content p::after {
  bottom: -2.5rem;
  right: -1rem;
}

.testimonial-card__content h4 {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.testimonial-card__position {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 0;
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.testimonials__prev,
.testimonials__next {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1.2rem;
  margin: 0 1rem;
}

.testimonials__prev:hover,
.testimonials__next:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.testimonials__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonials__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray-light);
  cursor: pointer;
  transition: var(--transition-normal);
}

.testimonials__dot.active,
.testimonials__dot:hover {
  background-color: var(--primary-color);
}

/* Community */
.community {
  background-color: var(--light);
}

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

.image-container {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

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

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

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

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

.benefit-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-align: center;
}

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

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

.community__cta {
  text-align: center;
  background-color: var(--secondary-light);
  padding: 3rem;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.community__cta h3 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* Resources */
.resources {
  background-color: var(--white);
}

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

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

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

.resource-card .card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 0;
}

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

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

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

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

.resource-card .link {
  margin-top: auto;
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-normal);
}

.resource-card .link:hover {
  border-bottom-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Contact */
.contact {
  background-color: var(--light);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact__info {
  padding: 3rem;
  background-color: var(--secondary-color);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__detail {
  margin-bottom: 2rem;
}

.contact__detail h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact__detail p {
  margin-bottom: 1rem;
}

.contact__map {
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.contact__form {
  padding: 3rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-normal);
}

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

.form-toggle {
  display: flex;
  align-items: center;
}

.form-toggle input {
  width: auto;
  margin-right: 0.8rem;
}

.form-toggle label {
  margin-bottom: 0;
  font-weight: 400;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.footer__info p {
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.footer__links h4,
.footer__legal h4,
.footer__social h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer__links ul,
.footer__legal ul,
.footer__social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li,
.footer__legal li,
.footer__social li {
  margin-bottom: 0.8rem;
}

.footer__links a,
.footer__legal a,
.footer__social a {
  color: var(--gray-light);
  transition: var(--transition-normal);
}

.footer__links a:hover,
.footer__legal a:hover,
.footer__social a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Cookie Popup */
.cookie-popup {
  transition: var(--transition-normal);
}

.cookie-popup button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  font-weight: 600;
}

.cookie-popup button:hover {
  background-color: var(--primary-dark);
}

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

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

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

.success-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.privacy-content,
.terms-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.fade-in {
  animation: fadeIn 1s ease;
}

@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%;
  }
}

.morph-animation {
  animation: morphing 8s ease-in-out infinite;
}

/* Адаптивный дизайн */
@media screen and (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .hero__title {
    font-size: 3.5rem;
  }
}

@media screen and (max-width: 992px) {
  :root {
    --container-width: 720px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero__title {
    font-size: 3rem;
  }
  
  .hero__subtitle {
    font-size: 1.3rem;
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .contact__container {
    grid-template-columns: 1fr;
  }
  
  .timeline__content {
    width: 80%;
    margin: 0 auto !important;
    transform: none !important;
  }
  
  .timeline::before {
    left: 0;
  }
  
  .timeline__item:nth-child(odd) .timeline__content::before,
  .timeline__item:nth-child(even) .timeline__content::before {
    left: -3rem;
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --container-width: 540px;
    --container-padding: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__subtitle {
    font-size: 1.2rem;
  }
  
  .header__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    z-index: 1000;
  }
  
  .header__menu.active {
    right: 0;
  }
  
  .header__menu li {
    margin: 1.5rem 0;
  }
  
  .header__burger {
    display: flex;
  }
  
  .header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero__buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .resources__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --container-width: 100%;
  }
  
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .timeline__content {
    width: 95%;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .community__benefits {
    grid-template-columns: 1fr;
  }
  
  .contact__form,
  .contact__info {
    padding: 1.5rem;
  }
}