:root {
  /* Цветовая схема "Пастельная" */
  --color-primary: #ffb5a7;
  --color-primary-dark: #e29b8d;
  --color-secondary: #a0c4ff;
  --color-secondary-dark: #839fd6;
  --color-accent: #9bf6ff;
  --color-accent-dark: #7bd6e0;
  --color-neutral: #f7ede2;
  --color-neutral-dark: #e7d9c9;
  --color-text: #352e27;
  --color-text-light: #6e6256;
  --color-text-white: #ffffff;
  --color-background: #fefefe;
  --color-background-alt: #f9f9f9;
  --color-border: #e0e0e0;
  --color-error: #ff7b7b;
  --color-success: #9fe6a0;

  /* Тени */
  --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Радиусы */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;

  /* Отступы */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Переходы */
  --transition-quick: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Шрифты */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-huge: 3rem;

  /* Контейнер */
  --container-max-width: 1280px;
  --container-padding: 1.5rem;
}

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

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

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

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

h1 {
  font-size: var(--font-size-huge);
}

h2 {
  font-size: var(--font-size-xxl);
}

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

p {
  margin-bottom: var(--space-sm);
}

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

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

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

ul, ol {
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Секции */
section {
  padding: var(--space-xl) 0;
}

/* Заголовки секций */
.section-title {
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

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

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  font-weight: 300;
}

/* Кнопки */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-medium);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-quick);
  box-shadow: var(--shadow-small);
}

.btn:hover, 
button:hover, 
input[type='submit']:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

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

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

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(254, 254, 254, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: var(--shadow-small);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.header__logo a {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

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

.header__menu li {
  margin-left: var(--space-md);
}

.header__menu a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-quick);
  padding: 0.5rem 0;
  position: relative;
}

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

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

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

.header__burger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.header__burger span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transform: translateY(-50%);
  transition: all var(--transition-quick);
}

.header__burger::before,
.header__burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-quick);
}

.header__burger::before {
  top: 0;
}

.header__burger::after {
  bottom: 0;
}

/* Hero секция */
.hero {
  position: relative;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: var(--space-lg);
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-large);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUp 1s var(--transition-medium) forwards;
}

.hero__title {
  color: var(--color-text-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  color: var(--color-text-white);
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xl));
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Сервисы */
.services {
  background-color: var(--color-background-alt);
}

.services__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background-color: var(--color-background);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.card-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.card-content .btn {
  margin-top: auto;
}

/* Топ приложения */
.top-apps {
  background-color: var(--color-background);
}

.custom-slider {
  position: relative;
  margin-top: var(--space-lg);
}

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.slider-wrapper::-webkit-scrollbar {
  height: 8px;
}

.slider-wrapper::-webkit-scrollbar-track {
  background-color: var(--color-neutral);
  border-radius: 4px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 4px;
}

.slide {
  flex: 0 0 auto;
  width: 100%;
  max-width: 350px;
}

.rating {
  color: goldenrod;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.rating span {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

.slider-controls button {
  background-color: var(--color-neutral);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 var(--space-xs);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-lg);
}

.slider-controls button:hover {
  background-color: var(--color-neutral-dark);
}

/* Внешние ресурсы */
.external-resources {
  background-color: var(--color-background-alt);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.resource-card {
  background-color: var(--color-background);
  border-radius: var(--radius-medium);
  padding: var(--space-md);
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.resource-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.resource-card p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.resource-link {
  display: block;
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-secondary);
  font-weight: 600;
  transition: color var(--transition-quick);
}

.resource-link:hover {
  color: var(--color-secondary-dark);
}

.resource-link:not(:last-child) {
  margin-bottom: var(--space-xs);
}

/* Партнеры */
.partners {
  background-color: var(--color-background);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-neutral);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-card .card-image {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background);
  padding: var(--space-sm);
}

.partner-card .card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card .card-content {
  padding: var(--space-md);
}

/* Клиенты */
.clientele {
  background-color: var(--color-background-alt);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-background);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.client-card:hover {
  transform: translateY(-5px);
}

.client-card .card-image {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-neutral);
  padding: var(--space-sm);
}

.client-card .card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-card .card-content {
  padding: var(--space-md);
}

/* События */
.events {
  background-color: var(--color-background);
}

.events-calendar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.event-card {
  display: flex;
  background-color: var(--color-neutral);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.event-card:hover {
  transform: translateY(-5px);
}

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

.event-date .day {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  line-height: 1;
}

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

.event-date .year {
  font-size: var(--font-size-sm);
}

.event-content {
  padding: var(--space-md);
  flex-grow: 1;
}

.event-location {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

/* Контакты */
.contact {
  background-color: var(--color-background-alt);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact-form {
  background-color: var(--color-background);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-small);
  background-color: var(--color-background);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  transition: border-color var(--transition-quick);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-card {
  background-color: var(--color-background);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
}

.info-card h3 {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.info-card p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.map-container {
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

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

/* Футер */
.footer {
  background-color: var(--color-text);
  color: var(--color-text-white);
  padding: var(--space-xl) 0 var(--space-md);
}

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

.footer-logo h3 {
  color: var(--color-text-white);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
}

.footer h4 {
  color: var(--color-text-white);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.footer-navigation ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-navigation li,
.footer-social li {
  margin-bottom: var(--space-xs);
}

.footer-navigation a,
.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-quick);
  font-size: var(--font-size-md);
  display: inline-flex;
  align-items: center;
}

.footer-navigation a:hover,
.footer-social a:hover {
  color: var(--color-primary);
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.footer-newsletter form {
  display: flex;
  gap: var(--space-xs);
}

.footer-newsletter input {
  flex-grow: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-small);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-sm);
}

/* Анимации и параллакс */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-lg);
}

.success-page h1 {
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.success-page p {
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

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

.privacy-content,
.terms-content {
  background-color: var(--color-background);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
}

.privacy-content h2,
.terms-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.privacy-content h3,
.terms-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.privacy-content p,
.terms-content p {
  margin-bottom: var(--space-sm);
}

.privacy-content ul,
.terms-content ul {
  margin-bottom: var(--space-md);
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    min-width: 100%;
    padding: var(--space-sm);
    flex-direction: row;
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .event-date .day,
  .event-date .month,
  .event-date .year {
    font-size: var(--font-size-md);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }
  
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-background);
    box-shadow: var(--shadow-large);
    transition: right var(--transition-medium);
    z-index: 1001;
  }
  
  .header__menu {
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
  }
  
  .header__menu li {
    margin: var(--space-sm) 0;
  }
  
  .header__burger {
    display: block;
    z-index: 1002;
  }
  
  .header__nav.active {
    right: 0;
  }
  
  .header__burger.active span {
    transform: rotate(45deg);
  }
  
  .header__burger.active::before {
    transform: rotate(45deg);
    top: 9px;
  }
  
  .header__burger.active::after {
    transform: rotate(-45deg);
    bottom: 9px;
  }

  .hero__content {
    padding: var(--space-md);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-description {
    font-size: var(--font-size-md);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: var(--font-size-xxl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
  
  h3 {
    font-size: var(--font-size-lg);
  }
  
  .section-title::after {
    width: 60px;
  }
  
  .partners-grid,
  .clients-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .card-image {
    height: 200px;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
}