:root {
  /* Цветовая схема "Пастельная" */
  --primary-color: #83c5be;
  --primary-dark: #5c9792;
  --primary-light: #a8d5d1;
  --secondary-color: #e9c46a;
  --secondary-dark: #d7b145;
  --secondary-light: #f5dea0;
  --accent-color: #e76f51;
  --accent-dark: #d05a3b;
  --accent-light: #f19780;
  --neutral-color: #f8f9fa;
  --neutral-dark: #e5e5e5;
  --neutral-light: #ffffff;
  --text-color: #264653;
  --text-light: #546a76;
  --text-dark: #1a323d;
  --text-white: #ffffff;
  --success-color: #70b77e;
  --warning-color: #e9c46a;
  --error-color: #e76f51;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
  --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-overlay: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  
  /* Размеры контейнеров */
  --container-width: 1200px;
  --container-padding: 2rem;
  
  /* Радиусы */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Отступы */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  margin-bottom: var(--space-md);
  line-height: 1.3;
  color: var(--text-dark);
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  font-weight: 400;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
  object-fit: cover;
}

ul {
  list-style: none;
}

/* Утилиты */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

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

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Колонки */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
  gap: var(--space-lg);
}

.column {
  padding: 0 1rem;
  flex: 1;
}

.column.is-one-third {
  flex: 0 0 calc(33.333% - 2rem);
}

.column.is-two-thirds {
  flex: 0 0 calc(66.666% - 2rem);
}

.reverse-mobile {
  flex-direction: row;
}

/* Кнопки */
.btn, button, input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.secondary-btn {
  background: var(--gradient-secondary);
  color: var(--text-dark);
  box-shadow: var(--box-shadow);
}

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

.text-btn {
  background: transparent;
  color: var(--primary-color);
  padding: 0.5rem 0;
  position: relative;
  font-weight: 600;
}

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

.text-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.text-btn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Хедер и навигация */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--neutral-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo a h1 {
  margin: 0;
  font-size: 1.5rem;
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
}

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

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

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--neutral-light);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: var(--text-color);
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}

/* Hero секция */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  color: var(--text-white);
  background-color: #264653;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

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

.hero-content {
  max-width: 650px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--text-white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--text-white);
}

/* Секция видение и миссия */
.vision-mission {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

.vision-block, .mission-block {
  background: var(--neutral-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  height: 100%;
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.5s ease;
}

.vision-block:hover, .mission-block:hover {
  transform: perspective(1000px) rotateY(5deg);
}

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

.image-container img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

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

/* История */
.history {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-dark);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
  margin-bottom: var(--space-lg);
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 15px;
  right: -10px;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-content {
  padding: var(--space-lg);
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  position: relative;
}

.timeline-content h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

/* Услуги */
.services {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
}

.card {
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 calc(33.333% - var(--space-lg));
  min-width: 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

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

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin: var(--space-md) 0;
}

/* Исследования и анализ */
.research {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-dark);
}

.research-content {
  padding: var(--space-lg);
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.research-content h3 {
  color: var(--primary-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.research-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.research-content li {
  margin-bottom: var(--space-sm);
  position: relative;
}

.research-content li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

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

.research-visual img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.research-visual img:hover {
  transform: scale(1.05);
}

.caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* Почему мы */
.why-us {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

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

.feature-card {
  padding: var(--space-lg);
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.icon-container {
  margin-bottom: var(--space-md);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  overflow: hidden;
}

.icon-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Истории успеха */
.success-stories {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-dark);
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.testimonial-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 5px solid var(--primary-light);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-dark);
}

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

.testimonial-controls button {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-controls button:hover {
  background: var(--primary-dark);
}

/* Полезные ресурсы */
.external-resources {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

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

.resource-item {
  background: var(--neutral-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.resource-item h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-md);
}

.resource-item ul {
  padding-left: var(--space-md);
}

.resource-item li {
  margin-bottom: var(--space-sm);
  position: relative;
}

.resource-item li:before {
  content: "→";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* FAQ */
.faq {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-dark);
}

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

.faq-item {
  margin-bottom: var(--space-md);
  background: var(--neutral-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--gradient-primary);
  color: var(--text-white);
}

.faq-question h3 {
  margin: 0;
  color: var(--text-white);
  font-size: 1.2rem;
}

.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: var(--space-lg);
  max-height: 500px;
}

/* Новости */
.news {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

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

.news-item {
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-item:hover {
  transform: translateY(-10px);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.news-content h3 {
  margin-bottom: var(--space-xs);
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

/* Случаи из практики */
.case-studies {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-dark);
}

.case-studies-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.case-study {
  display: flex;
  gap: var(--space-lg);
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: var(--space-lg);
  align-items: center;
}

.case-study.reverse {
  flex-direction: row-reverse;
}

.case-study-content {
  flex: 1;
}

.case-study-content h3 {
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.case-study-image {
  flex: 1;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Награды */
.accolades {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

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

.accolade-item {
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.accolade-item:hover {
  transform: translateY(-10px);
}

.accolade-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  border: 5px solid var(--primary-light);
  transition: transform 0.3s ease;
}

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

.accolade-item h3 {
  margin-bottom: var(--space-sm);
}

/* Инсайты */
.insights {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-dark);
}

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

.insight-item {
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insight-item:hover {
  transform: translateY(-10px);
}

.insight-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.insight-content h3 {
  margin-bottom: var(--space-xs);
}

.insight-author {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

/* Контакт */
.contact {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

.contact-container {
  display: flex;
  gap: var(--space-xl);
}

.contact-info, .contact-form {
  flex: 1;
  background: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: var(--space-lg);
}

.contact-info h3, .contact-form h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary-dark);
}

.contact-info p {
  margin-bottom: var(--space-md);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

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

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--neutral-dark);
  border-radius: var(--border-radius-sm);
  font-family: 'Lato', sans-serif;
  transition: border-color 0.3s ease;
}

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

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-bottom: var(--space-md);
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: var(--neutral-dark);
  border-radius: var(--border-radius-sm);
}

.checkbox-container:hover input ~ .checkmark {
  background-color: var(--primary-light);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary-color);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

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

.footer-column h3 {
  color: var(--neutral-light);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--space-xs);
  display: inline-block;
}

.footer-column p, .footer-column a {
  color: var(--neutral-dark);
}

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

.footer-column ul {
  margin-bottom: var(--space-md);
}

.footer-column li {
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  color: var(--neutral-dark);
  transition: color 0.3s ease;
  position: relative;
}

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

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

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--neutral-light);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-color);
}

/* Успешная отправка */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-primary);
}

.success-container {
  background: var(--neutral-light);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  max-width: 600px;
}

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

/* Страницы условий и приватности */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xxl);
}

.privacy-page .container, .terms-page .container {
  background: var(--neutral-light);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

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

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

/* Медиа запросы */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 var(--space-lg);
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav.active {
    display: block;
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.6rem;
  }
  
  .columns {
    flex-direction: column;
  }
  
  .column.is-one-third, .column.is-two-thirds {
    flex: 0 0 100%;
  }
  
  .reverse-mobile {
    flex-direction: column-reverse;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .timeline:after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-marker {
    left: 20px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    left: 20px;
  }
  
  .case-study, .case-study.reverse {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.4rem;
  }
  
  .btn, button, input[type="submit"] {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}