:root {
  /* Основные цвета */
  --primary-color: #1d68ff;
  --primary-dark: #0040b5;
  --primary-light: #6a9dff;
  --secondary-color: #ff4d5a;
  --secondary-dark: #c41f2c;
  --secondary-light: #ff7f89;
  --accent-color: #ffbf00;
  --accent-dark: #cc9900;
  --accent-light: #ffd54f;

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

  /* Нейтральные цвета */
  --black: #121212;
  --dark-gray: #333333;
  --medium-gray: #777777;
  --light-gray: #eeeeee;
  --white: #ffffff;

  /* Тени */
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.1);

  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Размеры шрифтов */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;

  /* Параметры */
  --header-height: 80px;
  --container-max-width: 1200px;
  --container-padding: 2rem;
  --section-spacing: 5rem;
  --card-spacing: 1.5rem;

  /* Анимации */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: 'Work Sans', sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

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

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

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

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

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

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

p {
  margin-bottom: 1.5rem;
}

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

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

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

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

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

/* Секции */
section {
  padding: var(--section-spacing) 0;
  position: relative;
}

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

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

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: var(--fs-md);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%) skewX(-15deg);
  transition: all var(--transition-medium);
}

.btn:hover:before {
  transform: translateX(100%) skewX(-15deg);
}

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

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

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

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

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

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

.btn-cookie {
  background: var(--accent-color);
  color: var(--black);
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
}

/* Формы */
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: var(--fs-md);
  color: var(--dark-gray);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(29, 104, 255, 0.2);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
}

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

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

/* Карточки */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.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: 1.5rem;
  text-align: center;
  width: 100%;
}

.card h3 {
  font-size: var(--fs-xl);
  margin-bottom: 1rem;
}

.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.date {
  color: var(--medium-gray);
  font-size: var(--fs-sm);
  margin-bottom: 0.5rem;
}

.position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.features {
  list-style-type: none;
  margin-bottom: 1.5rem;
  text-align: left;
}

.features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.features li:last-child {
  border-bottom: none;
}

.features li:before {
  content: '✓';
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Glassmorphism */
.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-glass);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: background var(--transition-medium);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

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

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-links li {
  margin: 0 1rem;
}

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

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

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

.nav-links a:hover:before {
  width: 100%;
}

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

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--dark-gray);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  padding: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  z-index: 1;
}

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

.hero-content h1 {
  font-size: var(--fs-5xl);
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  font-size: var(--fs-xl);
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

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

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

/* Services Section */
.services {
  background: var(--light-gray);
}

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

/* Team Section */
.team {
  background: var(--white);
}

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

/* Resources Section */
.resources {
  background: linear-gradient(to right, var(--primary-light), var(--primary-color));
  color: var(--white);
}

.resources .section-title {
  color: var(--white);
}

.resources .section-title:after {
  background: var(--white);
}

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

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

.resources .card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.resources .card-content {
  color: var(--white);
}

.resources .card h3 {
  color: var(--white);
}

.resources .card a {
  color: var(--white);
  text-decoration: underline;
}

.resources .card a:hover {
  color: var(--accent-light);
}

/* News Section */
.news {
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Accolades Section */
.accolades {
  background: linear-gradient(to right, var(--secondary-light), var(--secondary-color));
  color: var(--white);
}

.accolades .section-title {
  color: var(--white);
}

.accolades .section-title:after {
  background: var(--white);
}

.accolades-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--white);
}

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

.accolades .card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.accolades .card-content {
  color: var(--white);
}

.accolades .card h3 {
  color: var(--white);
}

/* Pricing Section */
.pricing {
  background: var(--light-gray);
}

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

.pricing-note {
  margin-top: 2rem;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--medium-gray);
}

/* Insights Section */
.insights {
  background: var(--white);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Contact Section */
.contact {
  background: linear-gradient(to right, var(--primary-light), var(--primary-color));
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title:after {
  background: var(--white);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.contact-form {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

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

.contact-form label {
  color: var(--white);
}

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

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

.info-item p {
  color: var(--white);
}

.info-item a {
  color: var(--white);
  text-decoration: underline;
}

.info-item a:hover {
  color: var(--accent-light);
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--light-gray);
  padding: 4rem 0 2rem;
}

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

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

.footer-logo h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav, .footer-legal, .footer-social {
  flex: 1;
  min-width: 150px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: var(--fs-lg);
}

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

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

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

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

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

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--medium-gray);
}

.modal-body {
  padding: 1.5rem;
}

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

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

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

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

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

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

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

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

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content p, .page-content ul {
  margin-bottom: 1.5rem;
}

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

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

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

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

/* Адаптивность */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
    --section-spacing: 4rem;
  }

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

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

  .hero-content h1 {
    font-size: var(--fs-4xl);
  }

  .hero-content p {
    font-size: var(--fs-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: 3rem;
  }

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

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

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

  .hero {
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: var(--fs-3xl);
  }

  .hero-content p {
    font-size: var(--fs-md);
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
  }

  .main-nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .contact-container, .footer-content {
    flex-direction: column;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --fs-xl: 1.25rem;
  }

  .hero {
    min-height: 400px;
  }

  .card-image {
    height: 200px;
  }

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