:root {
  /* Основные цвета */
  --primary-color: #FF5252;
  --secondary-color: #00E5FF;
  --tertiary-color: #FFAB00;
  --dark-color: #232323;
  --light-color: #F8F8F8;
  --text-color: #333333;
  --text-color-light: #FFFFFF;
  --background-color: #FFFFFF;
  
  /* Акцентные цвета */
  --accent-1: #00E676;
  --accent-2: #651FFF;
  --accent-3: #FF3D00;
  
  /* Цвета кнопок */
  --btn-primary-bg: #FF5252;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #FF8A80;
  --btn-secondary-bg: #232323;
  --btn-secondary-text: #FFFFFF;
  --btn-secondary-hover: #444444;
  
  /* Цвета форм */
  --input-bg: #F5F5F5;
  --input-border: #E0E0E0;
  --input-focus: #00E5FF;
  
  /* Тени */
  --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  /* Анимации */
  --animation-speed: 0.3s;
  --animation-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --animation-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--animation-speed) var(--animation-smooth);
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

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

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

section {
  padding: 80px 0;
  position: relative;
}

/* Кнопки */
.btn, button, input[type="submit"] {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: all var(--animation-speed) var(--animation-bounce);
  margin: 10px 5px;
  z-index: 1;
}

.btn::after, button::after, input[type="submit"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: height 0.3s var(--animation-bounce);
  z-index: -1;
}

.btn:hover::after, button:hover::after, input[type="submit"]:hover::after {
  height: 100%;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 6px 6px 0 var(--dark-color);
}

.btn-primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--dark-color);
  color: var(--btn-primary-text);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  box-shadow: 6px 6px 0 var(--primary-color);
}

.btn-secondary:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--primary-color);
  color: var(--btn-secondary-text);
  text-decoration: none;
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background-color);
  box-shadow: var(--shadow-small);
  transition: all 0.3s var(--animation-smooth);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo a {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--dark-color);
  text-decoration: none;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
}

.logo a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-desktop a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
  text-decoration: none;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s var(--animation-bounce);
}

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

.nav-desktop a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark-color);
  transition: all 0.3s var(--animation-smooth);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--background-color);
  z-index: 999;
  padding: 100px 20px 20px;
  transition: transform 0.4s var(--animation-smooth);
  transform: translateX(-100%);
}

.nav-mobile.active {
  transform: translateX(0);
  display: block;
}

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

.nav-mobile li {
  margin-bottom: 20px;
}

.nav-mobile a {
  color: var(--dark-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-medium);
}

/* Hero секция */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
}

.hero-content h1 {
  color: var(--text-color-light);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s var(--animation-bounce) forwards;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-content p {
  color: var(--text-color-light);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s var(--animation-bounce) 0.2s forwards;
  opacity: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--animation-bounce) 0.4s forwards;
  opacity: 0;
}

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

/* Services секция */
.services {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
  position: relative;
  color: var(--dark-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background-color);
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--primary-color);
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--primary-color);
}

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

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

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

.card-content {
  padding: 25px;
  flex-grow: 1;
  text-align: center;
}

.card-content h3 {
  color: var(--dark-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card-content p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

/* Portfolio секция */
.portfolio {
  background-color: var(--background-color);
  position: relative;
}

.portfolio-gallery {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--dark-color);
  box-shadow: 12px 12px 0 var(--tertiary-color);
}

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

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--animation-smooth);
}

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

.gallery-content {
  padding: 30px;
  background-color: var(--background-color);
  width: 100%;
  text-align: center;
}

.gallery-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.gallery-content p {
  color: var(--text-color);
  font-size: 1.1rem;
}

/* About секция */
.about {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-image {
  flex: 1 1 400px;
  border: 3px solid var(--dark-color);
  box-shadow: 12px 12px 0 var(--secondary-color);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--animation-smooth);
}

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

.about-text {
  flex: 1 1 500px;
  padding: 20px;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Team секция */
.team {
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

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

/* Research секция с таймлайном */
.research {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
}

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

.timeline-item {
  position: relative;
  width: 100%;
  padding: 50px 0;
}

.timeline-dot {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--accent-2);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: 25px;
  background-color: var(--background-color);
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--accent-1);
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
}

.timeline-content:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--accent-1);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  left: calc(50% + 40px);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.timeline-content p {
  color: var(--text-color);
  margin-bottom: 15px;
}

.timeline-content img {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border: 2px solid var(--dark-color);
}

/* Statistics секция */
.statistics {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  position: relative;
  overflow: hidden;
}

.statistics .section-title,
.statistics .section-subtitle {
  color: var(--text-color-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 3px solid var(--text-color-light);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
}

.stat-item:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-color-light);
  font-family: 'Inter', sans-serif;
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-bottom: 0;
}

/* Community секция */
.community {
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

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

.community-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--light-color);
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--accent-3);
  overflow: hidden;
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
}

.community-item:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--accent-3);
}

.community-item .image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.community-item .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--animation-smooth);
}

.community-item:hover .image-container img {
  transform: scale(1.05);
}

.community-item h3 {
  padding: 20px 20px 10px 20px;
  font-size: 1.5rem;
  color: var(--dark-color);
  text-align: center;
}

.community-item p {
  padding: 0 20px 20px 20px;
  color: var(--text-color);
  text-align: center;
}

/* External Resources секция */
.external-resources {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

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

.resource-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background-color: var(--background-color);
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--secondary-color);
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
  text-decoration: none;
  height: 100%;
}

.resource-item:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--secondary-color);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.resource-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  text-align: center;
}

.resource-item p {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 0;
}

/* Behind the Scenes секция */
.behind-scenes {
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.scenes-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.scene-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid var(--dark-color);
  box-shadow: 12px 12px 0 var(--accent-2);
  overflow: hidden;
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
}

.scene-item:hover {
  transform: translate(6px, 6px);
  box-shadow: 6px 6px 0 var(--accent-2);
}

.scene-item .image-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.scene-item .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--animation-smooth);
}

.scene-item:hover .image-container img {
  transform: scale(1.05);
}

.scene-item h3 {
  padding: 25px 25px 10px 25px;
  font-size: 1.8rem;
  color: var(--dark-color);
  text-align: center;
}

.scene-item p {
  padding: 0 25px 25px 25px;
  color: var(--text-color);
  text-align: center;
  font-size: 1.1rem;
}

/* Media секция */
.media {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.media-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

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

.media-quote {
  background-color: var(--background-color);
  padding: 30px;
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--tertiary-color);
  transition: transform 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
  height: 100%;
}

.media-quote:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--tertiary-color);
}

.media-quote p {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 20px;
  font-style: italic;
}

.media-quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact секция */
.contact {
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1 1 400px;
}

.info-item {
  margin-bottom: 30px;
}

.info-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.info-item p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-map {
  margin-top: 30px;
  border: 3px solid var(--dark-color);
  box-shadow: 8px 8px 0 var(--primary-color);
  overflow: hidden;
}

.info-map img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--animation-smooth);
}

.info-map:hover img {
  transform: scale(1.05);
}

.contact-form {
  flex: 1 1 500px;
  padding: 30px;
  border: 3px solid var(--dark-color);
  box-shadow: 12px 12px 0 var(--secondary-color);
  background-color: var(--light-color);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--dark-color);
  background-color: var(--background-color);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  transition: border-color 0.3s var(--animation-smooth), transform 0.3s var(--animation-bounce);
}

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

.contact-form .btn-primary {
  width: 100%;
  margin-top: 10px;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--text-color-light);
  padding: 80px 0 30px;
  position: relative;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-logo a {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-color-light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-info p {
  color: var(--text-color-light);
  opacity: 0.8;
  font-size: 1rem;
}

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

.footer h3 {
  color: var(--text-color-light);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: var(--text-color-light);
  opacity: 0.8;
  transition: opacity 0.3s var(--animation-smooth), color 0.3s var(--animation-smooth);
  text-decoration: none;
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
  text-decoration: none;
}

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

.footer-bottom p {
  color: var(--text-color-light);
  opacity: 0.6;
  font-size: 0.9rem;
  margin: 0;
}

/* Cookie popup */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 15px;
  z-index: 9999;
  text-align: center;
}

.cookie-popup p {
  margin-bottom: 10px;
}

#accept-cookies {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s var(--animation-smooth);
}

#accept-cookies:hover {
  background-color: #f0f0f0;
}

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

.success-content {
  max-width: 600px;
  padding: 50px 30px;
  background-color: var(--background-color);
  border: 3px solid var(--dark-color);
  box-shadow: 12px 12px 0 var(--accent-1);
  animation: bounceIn 0.8s var(--animation-bounce) forwards;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.success-content p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Privacy and Terms pages */
.page-content {
  padding-top: 100px;
}

.page-content .container {
  max-width: 800px;
}

.page-content h1 {
  margin-bottom: 30px;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-content p {
  margin-bottom: 20px;
}

.page-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-content ul li {
  margin-bottom: 10px;
}

/* Анимированные иконки */
.icon-article,
.icon-culture,
.icon-education,
.icon-museum {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  transition: transform 0.3s var(--animation-bounce), background-color 0.3s var(--animation-smooth);
}

.resource-item:hover .icon-article,
.resource-item:hover .icon-culture,
.resource-item:hover .icon-education,
.resource-item:hover .icon-museum {
  transform: scale(1.1);
  background-color: var(--accent-2);
}

.icon-article::before,
.icon-article::after,
.icon-culture::before,
.icon-culture::after,
.icon-education::before,
.icon-education::after,
.icon-museum::before,
.icon-museum::after {
  content: '';
  position: absolute;
  background-color: var(--background-color);
  transition: transform 0.3s var(--animation-bounce);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    left: 60px !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-grid {
    flex-direction: column;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .btn, button, input[type="submit"] {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 40px 0;
  }
}