 .site-header-alt { background: var(--secondary-color); padding: 15px 0; box-shadow: 0 4px 8px var(--button-shadow); }
.header-wrapper-alt { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }

.logo-alt img { height: 50px; width: auto; }

.navigation-alt .nav-list-alt { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

.navigation-alt .nav-list-alt .nav-item-alt a { text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--text-color); padding: 8px 12px; transition: color 0.3s ease, transform 0.2s ease; }

.navigation-alt .nav-list-alt .nav-item-alt a:hover { color: var(--primary-color); transform: translateY(-2px); }

.menu-toggle-alt { display: none; flex-direction: column; gap: 5px; cursor: pointer; }

.menu-toggle-alt span { width: 30px; height: 3px; background: var(--text-color); transition: 0.3s ease; }

.menu-toggle-alt.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }

.menu-toggle-alt.active span:nth-child(2) { opacity: 0; }

.menu-toggle-alt.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) { .navigation-alt { display: none; } .menu-toggle-alt { display: flex; } }




/* Custom Footer Styles */
.custom-footer {
  position: relative;
  background-color: #222;       /* Dark background */
  color: #ddd;                  /* Light text */
  padding: 30px 20px;
  text-align: center;
  font-family: 'Verdana', sans-serif;
  overflow: hidden;
}

.custom-footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);  /* Subtle overlay effect */
  z-index: 1;
}

.custom-footer-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.custom-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.custom-footer-text p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px;
}

.custom-footer-links {
  display: flex;
  gap: 15px;
}

.custom-footer-link {
  padding: 8px 14px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.custom-footer-link:hover {
  background-color: #666;
}

.custom-footer-bottom {
  border-top: 1px solid rgba(221, 221, 221, 0.2);
  padding-top: 10px;
  font-size: 13px;
  opacity: 0.8;
} .hero-new { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; padding: 60px 20px; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1; }

.hero-content { position: relative; z-index: 2; max-width: 800px; text-align: center; color: var(--text-color); }

.hero-title { font-family: var(--font-secondary); font-size: 3rem; text-transform: uppercase; margin-bottom: 1rem; color: var(--primary-color); animation: fadeInDown 1s ease; }

.hero-desc { font-family: var(--font-primary); font-size: 1.2rem; margin-bottom: 2rem; line-height: 1.5; color: var(--text-color); animation: fadeInUp 1s ease; }

.hero-btn { padding: 12px 30px; font-size: 1rem; border-radius: 8px; background: var(--button-bg); color: var(--button-text); border: none; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; }

.hero-btn:hover { background: var(--button-hover-bg); transform: translateY(-3px); }

@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); } }

@media (max-width: 768px) { .hero-title { font-size: 2.5rem; } .hero-desc { font-size: 1rem; } .hero-btn { font-size: 0.9rem; padding: 10px 20px; } }

@media (max-width: 480px) { .hero-title { font-size: 2rem; } .hero-desc { font-size: 0.9rem; } .hero-btn { font-size: 0.8rem; padding: 8px 16px; } }



/* === Глобальные переменные FAQ === */
:root {
    --faq-bg: var(--background-color);
    --faq-text-color: var(--text-color);
    --faq-title-color: var(--primary-color);
    --faq-card-bg: var(--card-bg);
    --faq-border-color: var(--shadow-color);
    --faq-hover-bg: var(--button-hover-bg);
    --faq-toggle-color: var(--primary-color);
}

/* === Основные стили секции FAQ === */
.faq-section {
    background: var(--faq-bg);
    color: var(--faq-text-color);
    padding: 80px 20px;
    text-align: center;
}

/* Контейнер */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Заголовок */
.faq-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--faq-title-color);
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 1.2rem;
    color: var(--faq-text-color);
    margin-bottom: 40px;
}

/* === Грид для карточек === */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* === Карточки FAQ === */
.faq-item {
    background: var(--faq-card-bg);
    border-radius: 10px;
    border: 2px solid var(--faq-border-color);
    box-shadow: 0 4px 8px var(--faq-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* === Заголовки карточек === */
.faq-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--faq-text-color);
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-button {
    color: var(--faq-hover-bg);
}

/* === Иконка открытия === */
.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--faq-toggle-color);
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* === Ответы (анимация раскрытия) === */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 150px;
    opacity: 1;
    padding-bottom: 15px;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 15px;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-subtitle {
        font-size: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}


/* === Глобальные переменные для секции игр === */
:root {
    --games-bg: var(--background-color); /* Фон секции */
    --games-text-color: var(--text-color); /* Цвет текста */
    --games-title-color: var(--primary-color); /* Цвет заголовка */
    --games-card-bg: var(--card-bg); /* Фон карточек */
    --games-overlay-bg: rgba(0, 0, 0, 0.7); /* Оверлей при наведении */
    --games-btn-bg: var(--button-bg); /* Цвет кнопки */
    --games-btn-hover-bg: var(--button-hover-bg); /* Цвет кнопки при наведении */
}

/* === Общие стили для секции игр === */
.games-section {
    background: var(--games-bg);
    color: var(--games-text-color);
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

/* Контейнер */
.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок */
.games-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--games-title-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease-in-out;
}

/* Подзаголовок */
.games-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-in-out;
}

/* === Сетка карточек === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeIn 1.2s ease-in-out;
}

/* === Карточки игр === */
.game-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--games-card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px var(--shadow-color);
}

/* Изображение игры */
.game-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

/* === Оверлей (при наведении) === */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--games-overlay-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* Заголовок внутри оверлея */
.game-heading {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--games-title-color);
    margin-bottom: 10px;
}

/* Описание внутри оверлея */
.game-description {
    font-size: 1rem;
    color: var(--games-text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Кнопка в карточке */
.game-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--games-btn-bg);
    color: var(--button-text);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.game-link:hover {
    background: var(--games-btn-hover-bg);
    transform: scale(1.05);
}

/* === Анимации === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .games-section {
        padding: 60px 15px;
    }

    .games-title {
        font-size: 2rem;
    }

    .games-subtitle {
        font-size: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-heading {
        font-size: 1.3rem;
    }

    .game-description {
        font-size: 0.9rem;
    }

    .game-link {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}


/* Cookie Consent Modal Styles */
.cookie-consent-modal {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary-color);
  color: var(--text-color);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  padding: 20px;
  z-index: 1100;
  max-width: 400px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  display: none; /* Отображается через JS */
}

.cookie-consent-content {
  position: relative;
  font-family: var(--font-primary);
}

.cookie-consent-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}

.cookie-consent-modal h3 {
  margin-top: 0;
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

.cookie-consent-modal p {
  font-size: 16px;
  margin: 10px 0;
}

.cookie-consent-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent-actions .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s ease;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 4px 8px var(--button-shadow);
}

.cookie-consent-actions .btn:hover {
  background: var(--button-hover-bg);
  transform: translateY(-2px);
}

.cookie-consent-actions .btn.secondary {
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}


.about-extended {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color), var(--background-color));
  color: var(--text-color);
}

.about-extended .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-extended-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-extended-text {
  flex: 1;
}

.about-extended-title {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--primary-color);
}

.about-extended-description {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-extended-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-extended-list li {
  font-family: var(--font-primary);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.about-extended-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 8px;
  text-transform: uppercase;
  font-family: var(--font-primary);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.about-extended-btn:hover {
  background: var(--button-hover-bg);
  transform: translateY(-3px);
}

.about-extended-image {
  flex: 1;
  text-align: center;
}

.about-extended-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.about-extended-image img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-extended-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .about-extended-title {
    font-size: 2.5rem;
  }
  .about-extended-description {
    font-size: 1rem;
  }
  .about-extended-list {
    grid-template-columns: 1fr;
  }
}


.stats-section-8 {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  overflow: hidden;
  color: var(--text-color);
}

.stats-section-8 .stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.stats-section-8 .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stats-info {
  text-align: center;
}

.stats-heading {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-transform: uppercase;
}

.stats-text {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.stats-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stats-item {
  background: var(--card-bg);
  padding: 20px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats-item:hover {
  transform: translateY(-5px);
}

.stats-number {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  color: var(--accent-color);
}

.stats-label {
  font-family: var(--font-primary);
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .stats-heading {
    font-size: 2.5rem;
  }
  .stats-text {
    font-size: 1rem;
  }
  .stats-list {
    flex-direction: column;
    gap: 20px;
  }
  .stats-item {
    width: 100%;
    max-width: 300px;
  }
}


/* === Глобальные переменные для Features === */
:root {
    --features-bg: var(--background-color); /* Фон секции */
    --features-text-color: var(--text-color); /* Цвет текста */
    --features-title-color: var(--primary-color); /* Цвет заголовка */
    --features-subtitle-color: var(--secondary-color); /* Цвет подзаголовка */
    --features-card-bg: var(--card-bg); /* Фон карточек */
    --features-card-shadow: var(--shadow-color); /* Тень карточек */
    --features-icon-bg: var(--primary-color); /* Фон иконки */
}

/* === Общие стили для секции Features === */
.features {
    background: var(--features-bg);
    color: var(--features-text-color);
    padding: 80px 20px;
    text-align: center;
}

/* Контейнер */
.features .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовки */
.features .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--features-title-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.features .section-subtitle {
    font-size: 1.2rem;
    color: var(--features-subtitle-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* === Grid Сетка === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

/* === Карточки (Feature Cards) === */
.feature-card {
    background: var(--features-card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--features-card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px var(--features-card-shadow);
}

/* === Иконки в карточках === */
.feature-card .icon {
    width: 90px;
    height: 90px;
    background: var(--features-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden; /* Обрезаем края */
    padding: 0; /* Убираем отступы */
}

.feature-card:hover .icon {
    transform: scale(1.1);
}

.feature-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет весь круг */
    border-radius: 50%; /* Делаем изображение круглым */
}

/* === Текст в карточке === */
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.5;
}

/* === Адаптивность === */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card .icon {
        width: 70px;
        height: 70px;
    }

    .feature-card .icon img {
        width: 50px;
        height: 50px;
    }

    .features .section-title {
        font-size: 2rem;
    }

    .features .section-subtitle {
        font-size: 1rem;
    }
}


.parallax-variant-3 {
  position: relative;
  overflow: hidden;
  height: 40rem;
  background-color: var(--background-color);
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.parallax-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  padding: 1rem;
  color: var(--primary-color);
}

.parallax-heading {
  font-family: var(--font-secondary);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.parallax-subtitle {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .parallax-heading {
    font-size: 2.5rem;
  }
  .parallax-subtitle {
    font-size: 1rem;
  }
}


  /* --- Переменные темы из вашего кода --- */


  /* Ограничение ширины контейнера карточек */
  .u-container-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  /* Обёртка для карточек */
  .u-cards-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  /* --- Стили карточек --- */

  .u-cards-simple {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 21.5rem);
    grid-template-areas:
      "first"
      "fourth"
      "fifth"
      "second"
      "sixth"
      "third";
    gap: 2rem;
  }

  .u-card-simple {
    position: relative;
    display: grid;
    overflow: hidden;
    width: 100%;
    border-radius: 0.625rem;
  }

  /* Градиентные оверлеи (оставляем стандартные значения) */
  .u-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
  }

  .u-card-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 50.15%, rgba(0, 0, 0, 0.8) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  }

  /* Привязка карточек к областям сетки */
  .u-card-simple--first { grid-area: first; }
  .u-card-simple--second { grid-area: second; }
  .u-card-simple--third { grid-area: third; }
  .u-card-simple--fourth { grid-area: fourth; }
  .u-card-simple--fifth { grid-area: fifth; }
  .u-card-simple--sixth { grid-area: sixth; }

  /* Общие стили для изображения и контента карточки */
  .u-card-simple__background,
  .u-card-simple__content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .u-card-simple__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .u-card-simple__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }

  /* --- Стили для контента карточки --- */
  .u-card-simple__content {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
    max-height: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
  }

  /* Заголовок карточки: используем шрифт для заголовков и делаем текст белым для читаемости на затемненном фоне */
  .u-card-simple__title {
    margin: 0;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: /online.htmlFFFFFF;
    overflow-wrap: anywhere;
    position: relative;
  }

  /* Подчёркивание заголовка – используем акцентный цвет */
  .u-card-simple__title::after {
    content: '';
    position: absolute;
    bottom: calc((1.5rem - 1rem) * -1);
    left: -1rem;
    width: calc(100% + 1.5rem);
    height: 0.3125rem;
    background-color: var(--accent-color);
  }

  /* Описание карточки: основной шрифт и белый цвет */
  .u-card-simple__description {
    margin-top: 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: /online.htmlFFFFFF;
    overflow-wrap: anywhere;
  }

  /* --- Стили для кнопки --- */
  .u-card-simple__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    background-color: var(--button-bg);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    border: 1px solid var(--button-border);
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--button-text);
    cursor: pointer;
    box-shadow: 0 4px 8px var(--button-shadow);
    transition: background-color 300ms ease;
  }

  .u-card-simple__button:hover,
  .u-card-simple__button:focus {
    background-color: var(--button-hover-bg);
  }

  .u-card-simple__button:active {
    background-color: var(--button-hover-bg);
  }

  .u-card-simple__button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -5px;
  }

  /* --- Адаптивные стили --- */
  @media screen and (min-width: 428px) {
    .u-cards-simple {
      grid-template-rows: repeat(4, 11.063rem);
      grid-template-areas:
        "first first"
        "fourth fifth"
        "second third"
        "second sixth";
    }
    .u-card-simple__content { padding: 1.5rem 1rem 1rem; }
    .u-card-simple__title { font-size: 1.25rem; }
    .u-card-simple__title::after {
      bottom: calc((1.25rem - 0.5rem) * -1);
      left: -1.25rem;
      width: calc(100% + 1.25rem);
    }
    .u-card-simple__description { margin-top: 0.875rem; font-size: 0.875rem; }
    .u-card-simple__button {
      margin-top: 0.375rem;
      padding: 0.25em 1em;
      font-size: 1rem;
    }
  }

  @media screen and (min-width: 768px) {
    .u-cards-simple { grid-template-rows: repeat(4, 21.5rem); }
    .u-card-simple__content { padding: 1.5rem 1rem 1rem; }
    .u-card-simple__title { font-size: 1.5rem; }
    .u-card-simple__description {
      margin-top: 1.25rem;
      font-size: 1rem;
      line-height: 1.5;
    }
    .u-card-simple__button { margin-top: 0.9375rem; padding: 0.5rem 1rem; }
  }

  @media screen and (min-width: 1024px) {
    .u-cards-simple {
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(2, 19rem);
      grid-template-areas:
        "first first second third"
        "fourth fifth second sixth";
    }
    .u-card-simple__button {
      width: fit-content;
      margin-top: 0.9375rem;
      padding: 0.375rem 1.25rem;
    }
  }





/* Стили формы используют переменные из темы */
.contact-form {
    background: var(--background-color);
    padding: 40px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form__content {
    background: #FFFFFF; /* Для полей ввода оставляем белый фон */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.contact-form h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-form label {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    text-align: left;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
    background: #FFFFFF;
    color: var(--text-color);
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 25px;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: var(--button-hover-bg);
    transform: scale(1.05);
}

#success-message {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 60px 15px;
    }

    .contact-form__content {
        padding: 30px;
    }

    .contact-form h2 {
        font-size: 2rem;
    }

    .contact-form label {
        font-size: 1rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

