/* ==========================================================================
   0. Общие стили и шрифты
=============================================================================
*/

/* Подключение шрифта Gravity для основного текста */
@font-face {
  font-family: "Gravity";
  src: url("fonts/gravity/Gravity-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gravity";
  src: url("fonts/gravity/Gravity-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gravity";
  src: url("fonts/gravity/Gravity-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gravity";
  src: url("fonts/gravity/Gravity-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gravity";
  src: url("fonts/gravity/Gravity-UltraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Подключение шрифта Hack для кода */
@font-face {
  font-family: "Hack";
  src: url("fonts/hack/Hack-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("fonts/hack/Hack-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("fonts/hack/Hack-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Hack";
  src: url("fonts/hack/Hack-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Базовые настройки */
:root {
  font-size: 100%;
  --primary-color: #ffffed;
  --text-color: #e0e0e0;
  --bg-color: #151515;
  --header-bg: #151515;
  --footer-bg: #151515;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Основной шрифт для всего сайта - Gravity */
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
  font-weight: 300; /* Light по умолчанию */
}

body {
  /* основная структура страницы */
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Стрелка в начало страницы */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0; /* скрываем возможный текстовый контент */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
  z-index: 1000;
}

/* Иконка (SVG) через псевдоэлемент */
.scroll-top::before {
  content: "";
  display: block;
  width: 3rem; /* размер иконки, подберите под свой дизайн */
  height: 3rem;
  margin: auto; /* центрирование внутри кнопки */
  background-image: url("../img/arrow_up.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease; /* плавный подъём */
}

/* Видимое состояние кнопки */
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Подсветка при наведении */
.scroll-top:hover {
  background-color: #555;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3); /* тень для "подсветки" */
}

/* Подъём иконки при наведении на кнопку */
.scroll-top:hover::before {
  transform: translateY(-0.5rem); /* приподнимаем на 0.5rem */
}

/* Шапка */
header {
  /* фиксированная шапка сайта */
  background-color: var(--header-bg);
  backdrop-filter: blur(1rem);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1rem; /* Увеличиваем высоту для надежности */
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-color) 15%,
    var(--primary-color) 85%,
    transparent 100%
  );
  transform: translateZ(0); /* Исправляет рендеринг в некоторых браузерах */
  -webkit-transform: translateZ(0);
  will-change: transform; /* Оптимизация для анимации */
  pointer-events: none; /* Чтобы не мешала кликам */
}

.header-container {
  /* контейнер содержимого шапки */
  max-width: 0rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  /* блок логотипа */
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  /* иконка логотипа */
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
}

.logo-text {
  /* текст названия */
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--primary-color);
}

.header-nav {
  /* навигационное меню */
  display: flex;
  gap: 3rem;
}

.nav-link {
  /* ссылка в меню */
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.6rem;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.nav-link:hover {
  /* наведение на ссылку */
  border-radius: 0.5rem;
  background-color: #456377;
}

.mobile-menu-btn {
  /* кнопка мобильного меню */
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  /* полоски кнопки */
  width: 2.5rem;
  height: 0.3rem;
  background-color: var(--primary-color);
  border-radius: 0.3rem;
}

.mobile-menu {
  /* выпадающее меню */
  display: none;
  flex-direction: column;
  background-color: var(--header-bg);
  padding: 2rem;
  margin-top: 1rem;
}

.mobile-link {
  /* ссылка в мобильном меню */
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.6rem;
  padding: 1rem 0;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

.mobile-link:hover {
  /* наведение на мобильную ссылку */
  color: var(--primary-color);
}

/* Кнопка переключения языка */
.language-btn {
  /* кнопка переключения языка */
  background: none;
  border: 0.15rem solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-family: "Gravity", sans-serif;
  margin-left: 5rem;
}

.language-btn:hover {
  /* наведение на кнопку языка */
  background-color: rgba(255, 255, 237, 0.1);
  transform: scale(1.05);
}

.language-btn:active {
  /* нажатие на кнопку языка */
  transform: scale(0.95);
}

/* Подвал */
footer {
  /* подвал сайта */
  background-color: var(--footer-bg);
  backdrop-filter: blur(1rem);
  padding: 4rem 0 2rem;
  margin-top: auto;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; /* ← ВВЕРХУ подвала */
  left: 0;
  width: 100%;
  height: 0.15rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary-color) 15%,
    var(--primary-color) 85%,
    transparent 100%
  );
  opacity: 0.5;
}

.footer-container {
  max-width: 120rem;
  padding: 0 2rem;
  display: flex;
  gap: 6rem; /* отступ между новым столбцом и сеткой */
  align-items: flex-start; /* выравниваем по верху */
}
.footer-logo-column {
  flex: 0 0 30rem; /* фиксированная ширина 30rem */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 3rem; /* больше чем в шапке */
  height: 3rem;
  border-radius: 0.8rem;
}

.footer-logo .logo-text {
  font-size: 2rem; /* большой шрифт */
  font-weight: bold;
  color: var(--primary-color);
}

.footer-slogan {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 6rem;
  font-weight: 300;
}

.footer-copyright {
  font-size: 1rem;
  color: var(--text-color-light);
  opacity: 0.7;
  flex: 0 0 auto;
}
.footer-copyright-and-links {
  padding: 0 2rem;
}
.footer-links {
  text-align: right;
  list-style: none;
}
.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
  margin-bottom: rem;
}
.footer-links a:hover {
  color: var(--primary-color);
}
/* Существующая сетка из 3 столбцов */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  flex: 1; /* занимает оставшееся пространство */
}
.footer-column h3 {
  /* заголовок колонки */
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-column ul {
  /* список колонки */
  list-style: none;
}

.footer-column li {
  /* пункт списка */
  margin-bottom: 0.5rem;
}

.footer-column a {
  /* ссылка в подвале */
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  /* наведение на ссылку */
  color: var(--primary-color);
}

/* Адаптивность для шапки и подвала */
/* планшеты и мобильные */
@media (max-width: 76.8rem) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Скрываем кнопку языка в шапке — она есть только в выпадающем меню */
  #language-toggle {
    display: none;
  }

  /* Футер — вертикальная стопка */
  .footer-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
  }

  .footer-logo-column {
    flex: none;
    width: 100%;
  }

  .footer-slogan {
    margin-bottom: 0;
  }

  /* Три колонки — по 2 в ряд */
  .footer-container > .footer-column {
    display: inline-block;
    width: calc(50% - 0.5rem);
    vertical-align: top;
    margin-bottom: 1.5rem;
  }

  /* Копирайт и ссылки — по центру */
  .footer-copyright-and-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    text-align: center;
  }

  .footer-links {
    text-align: center;
    display: flex;
    gap: 2rem;
    justify-content: center;
  }
}

/* Кнопка языка в мобильном меню — квадратная */
.mobile-language-btn {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  margin: 1.2rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  font-size: 1.3rem;
}

/* маленькие экраны */
@media (max-width: 48rem) {
  :root {
    font-size: 55%;
  }

  .header-container {
    padding: 0 1rem;
  }

  .logo-text {
    font-size: 2rem;
  }

  .logo-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
  }
}

/* очень маленькие экраны */
@media (max-width: 36rem) {
  :root {
    font-size: 50%;
  }

  /* Кнопка переключения языка на мобильных */
  .language-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
    border-width: 0.12rem;
  }

  .header-nav {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
  }
}

/* большие мониторы */
@media (min-width: 120rem) {
  :root {
    font-size: 70%;
  }
}

/* ==========================================================================
   1. Страница HOME
========================================================================== */

/* ===== BACKGROUND CODE (Hidden Behind Screen) ===== */
#code-background {
  position: fixed;
  top: 10rem;
  left: 2rem;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  padding: 0;
  overflow: hidden;
  max-width: 50%;
  max-height: 50%;
}

.code-display {
  position: relative;
  width: auto;
  height: auto;
}

#code-text {
  color: #2d5a3d;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: pre;
  text-align: left;
  transition: opacity 0.5s ease;
  padding: 0;
  margin: 0;
}

/* Курсор мигающий */
.cursor {
  display: inline-block;
  width: 0.8rem;
  height: 2rem;
  background-color: #547c55;
  margin-left: 0.2rem;
  animation: blink 1s infinite;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Остальной контент поверх фона */
header,
.main-content,
footer {
  position: relative;
  z-index: 1;
}

/* Основная часть */
/* Основной контент */
.main-content-container {
  flex: 1;
  margin-top: 1rem;
  padding: 5em 5rem;
}

/* Герой секция */
.hero-section {
  margin-top: 4rem; /* отступ сверху */
  max-width: 50rem; /* ширина как у текста */
}

.hero-container {
  display: block;
  gap: 6rem;
  align-items: center;
}

/* Левый блок с текстом */
.hero-text {
  flex: 1;
  text-align: left;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.5rem;
  color: var(--text-color-light);
  line-height: 1.4;
  margin-bottom: 3rem;
  max-width: 60rem;
}

/* Кнопка скачать IDE */
.download-btn {
  background-color: #a0c7cf;
  color: #151515;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
}

.download-btn:hover {
  background-color: #6b8ea3;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.5rem rgba(69, 99, 119, 0.4);
}

/* Блок с плитками */
.stats-section {
  flex: 0 0 40rem;
  padding: 3.5rem 0rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  background-color: #3a3a3a;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 1;
  size: 2rem;
  pointer-events: none;
}

.stat-icon-in {
  transform: scale(1.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  pointer-events: none;
}

.stat-label {
  font-size: 1.5rem;
  color: var(--text-color-light);
  font-weight: 400;
  pointer-events: none;
}

/* Большой логотип справа */
.large-logo {
  position: fixed;
  top: 38%;
  right: -5%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  width: 60rem; /* Большой размер */
  height: 60rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* opacity: 0.80; */
  transition: opacity 0.4s ease;
}

/* Состояния с разной прозрачностью */
.large-logo.scroll-25 {
  opacity: 0.4;
}
.large-logo.scroll-50 {
  opacity: 0.2;
}

.large-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Для SVG можно менять цвет через фильтры */
  /* filter: opacity(0.2); */
}

/* Анимация плавающего эффекта */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2rem) rotate(2deg);
  }
}

/* Делаем hero-section относительной, чтобы логотип позиционировался внутри него */
.hero-section {
  position: relative;
  margin-top: 4rem;
  max-width: 50rem;
  overflow: hidden; /* Обрезаем выходящую часть */
}

/* Поднимаем основной контент над логотипом */
.hero-container {
  display: block;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Секция "Для кого RaximCodex" */
.for-whom-section {
  padding: 8rem 5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Сетка 2x2 */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  max-width: 120rem;
  width: 100%;
  margin: 0 auto;
}

/* Заголовочная ячейка (верхняя левая) */
.whom-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding-right: 3rem;
}

.whom-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 2rem;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
}

/* Общие стили для карточек */
.whom-card {
  background-color: #637a7f; /* Заданный цвет для всех карточек */
  border-radius: 1.2rem;
  padding: 2rem 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
}

.whom-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
}

.card-content {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--primary-color);
  pointer-events: none;
  font-weight: 400;
}

/* Заголовки в карточках */
.whom-card h3 {
  font-size: 3.4rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-align: left;
}

/* Списки с галочками */
.whom-list {
  list-style: none;
  text-align: left;
}

.whom-list li {
  font-size: 1.7rem;
  color: #e0e0e0;
  line-height: 1.4;
  margin-bottom: 1rem;
  padding-left: 3.5rem;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.check-icon {
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: #ffffed;
  font-size: 1.8rem;
  font-weight: bold;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Декоративные элементы для карточек */
.whom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whom-card:hover::before {
  opacity: 0.5;
}

/* Границы для табличного вида (опционально) */
.for-whom-grid {
  position: relative;
}

/* Секция "Ключевые особенности" */
.features-section {
  padding: 6rem 5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-container {
  max-width: 140rem;
  width: 100%;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: 4.5rem;
  color: #ffffed;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.features-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
}

/* Сетка карточек */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

/* Карточки особенностей */
.feature-card {
  border-radius: 1.2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.feature-card-1 {
  background-color: #3a3a3a;
}

.feature-card-2 {
  background-color: #637a7f;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
  background-color: #444;
}

.feature-card-1:hover {
  background-color: #444;
}

.feature-card-2:hover {
  background-color: #769399;
}
/* Иконка в карточке */
.feature-icon {
  width: 6rem;
  height: 6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Заголовок карточки */
.feature-title {
  font-size: 2.2rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 0rem;
  line-height: 2;
  pointer-events: none;
}

/* Описание карточки */
.feature-description {
  font-size: 1.5rem;
  color: #e0e0e0;
  line-height: 1.4;
  font-weight: 300;
  opacity: 0.9;
  pointer-events: none;
}

/* ===== Секция "Готовы начать?" ===== */
.cta-section {
  padding: 6rem 0rem;
  position: relative;
  z-index: 1;
  max-width: 120rem;
  margin: 0 auto;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30rem;
}

.cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
}

.cta-content {
  flex: 1;
  max-width: 60rem;
}

.cta-title {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.3rem;
  color: #e0e0e0;
  line-height: 1.5;
  font-weight: 300;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

/* ===== ОБЕ КНОПКИ: БАЗА ===== */
/* ===== ОБЩИЕ СТИЛИ ДЛЯ ОБЕИХ КНОПОК ===== */
.cta-btn-download,
.cta-btn-demo {
  display: inline-flex;
  align-items: center; /* вертикальное центрирование */
  justify-content: flex-start;
  padding: 1rem 3rem;
  font-size: 1.7rem;
  line-height: 1.2; /* фиксированная высота строки, меньше размера иконки */
  border-radius: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box; /* border внутри padding */
  border-style: solid;
  transition: all 0.3s ease;
}

/* ===== ИКОНКИ В КНОПКАХ ===== */
.cta-icon-img {
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 1rem;
  object-fit: contain;
  transition: transform 0.2s ease;
  /* Принудительно убираем baseline-смещение */
  vertical-align: middle;
  flex-shrink: 0; /* иконка не сжимается */
}

/* ===== КНОПКА "СКАЧАТЬ СЕЙЧАС" ===== */
.cta-btn-download {
  background-color: #a0c7cf;
  color: #151515;
  border: none; /* обводка отсутствует */
}

.cta-btn-download:hover {
  background-color: #6b8ea3;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.5rem rgba(69, 99, 119, 0.4);
}

.cta-btn-download:hover .cta-icon-img,
.cta-btn-demo:hover .cta-icon-img {
  transform: translateY(-0.2rem);
}

/* ===== КНОПКА "ЗАПРОСИТЬ ДЕМО" ===== */
.cta-btn-demo {
  background-color: transparent;
  color: var(--text-color);
  border-width: 0.2rem;
  border-color: var(--text-color);
  padding: calc(1rem - 0.2rem) 2.7rem; /* компенсация границы */
}

/* Перекрашиваем иконку в цвет #a0c7cf (если монохромная SVG) */
.cta-btn-demo .cta-icon-img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(8%) saturate(1157%)
    hue-rotate(149deg) brightness(92%) contrast(86%);
}

.cta-btn-demo:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.5rem rgba(160, 199, 207, 0.3);
  background-color: rgba(160, 199, 207, 0.05);
}

/* ===== Адаптивность для планшетов и мобильных ===== */
@media (max-width: 768px) {
  .cta-section {
    padding: 4rem 2rem;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .cta-content {
    max-width: 100%;
  }

  .cta-actions {
    align-items: center;
  }

  .cta-btn-download {
    padding-left: 0; /* центрирование иконки + текста */
  }

  .cta-btn-demo {
    padding: 0.8rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .cta-title {
    font-size: 2.8rem;
  }

  .cta-description {
    font-size: 1.6rem;
  }

  .cta-btn-download,
  .cta-btn-demo {
    font-size: 1.6rem;
  }
}
/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .features-section {
    padding: 6rem 3rem;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .features-section {
    padding: 4rem 2rem;
  }

  .features-header h2 {
    font-size: 3rem;
  }

  .features-subtitle {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 2.5rem 2rem;
  }

  .feature-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 2rem;
  }

  .feature-title {
    font-size: 2rem;
  }

  .feature-description {
    font-size: 1.5rem;
  }
}

/* Для очень больших экранов */
@media (min-width: 1400px) {
  .features-grid {
    gap: 3rem;
  }

  .feature-card {
    padding: 2.5rem 2rem;
  }
}
/* Адаптивность */
@media (max-width: 76.8rem) {
  .for-whom-section {
    padding: 6rem 3rem;
  }

  .whom-header h2 {
    font-size: 3rem;
  }

  .header-subtitle {
    font-size: 1.8rem;
  }

  .whom-card {
    padding: 3rem 2.5rem;
  }

  .whom-card h3 {
    font-size: 2.2rem;
  }

  .whom-list li {
    font-size: 1.6rem;
  }
}

@media (max-width: 48rem) {
  .for-whom-section {
    padding: 4rem 2rem;
  }

  /* На мобильных превращаем сетку 2x2 в вертикальный стек */
  .for-whom-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  /* Заголовок на всю ширину */
  .whom-header {
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .whom-header h2 {
    font-size: 2.5rem;
  }

  .header-subtitle {
    font-size: 1.6rem;
  }

  /* Карточки на всю ширину */
  .whom-card {
    padding: 2.5rem 2rem;
  }

  .whom-card h3 {
    font-size: 2rem;
  }

  .whom-list li {
    font-size: 1.5rem;
    padding-left: 3rem;
  }

  .check-icon {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.6rem;
  }
}

/* Для очень больших экранов */
@media (min-width: 120rem) {
  .for-whom-section {
    padding: 10rem 5rem;
  }

  .whom-header h2 {
    font-size: 4rem;
  }

  .header-subtitle {
    font-size: 2.2rem;
  }

  .whom-card h3 {
    font-size: 2.6rem;
  }

  .whom-list li {
    font-size: 1.8rem;
  }
}
/* Скрываем на мобильных устройствах */
@media (max-width: 48rem) {
  .large-logo {
    display: none; /* Полностью скрываем на мобильных */
  }

  .hero-section {
    overflow: visible; /* Убираем обрезку на мобильных */
  }
}
/* Адаптивность для контента главной страницы */
@media (max-width: 48rem) {
  .empty-main {
    margin-top: 7rem;
    padding: 1rem;
  }
}

/* ===== FEATURES PAGE STYLES ===== */

/* Сетка карточек 3x2 для Features страницы */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 110rem;
  margin: 0 auto;
}

.feature-card {
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 20rem;
}

.feature-card-1 {
  background-color: #3a3a3a;
}

.feature-card-2 {
  background-color: #637a7f;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.feature-card-1:hover {
  background-color: #444;
}

.feature-card-2:hover {
  background-color: #769399;
}

.feature-icon {
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 2rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-description {
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.4;
  font-weight: 300;
  opacity: 0.9;
}

/* ===== Секция "Живая лекция" и "AI-ассистент на базе GPT-4" ===== */
.lecture-ai-section {
  padding: 8rem 5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  background-color: rgba(21, 21, 21, 0.5);
}

.lecture-ai-container {
  max-width: 140rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.lecture-block,
.ai-block {
  padding: 2rem;
}

.lecture-title,
.ai-title {
  font-size: 2.2rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.lecture-description,
.ai-description {
  font-size: 1.5rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
}

.lecture-list,
.ai-list {
  list-style: none;
}

.lecture-list li,
.ai-list li {
  font-size: 1.5rem;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 3rem;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.lecture-list .check-icon,
.ai-list .check-icon {
  position: absolute;
  left: 0;
  top: 0;
  color: #ffffed;
  font-size: 1.6rem;
  font-weight: bold;
}

/* Карусель в центре */
.carousel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.carousel-item {
  font-size: 3rem;
  color: #ffffed;
  font-weight: 300;
}

.carousel-icon {
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.carousel-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 0.8rem;
  background-color: #a0c7cf;
  color: #151515;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.carousel-btn:hover {
  background-color: #6b8ea3;
  transform: translateY(-0.3rem);
  box-shadow: 0 0.5rem 1.5rem rgba(69, 99, 119, 0.4);
}

/* ===== Секция "Поддержка 30+ языков программирования" ===== */
.languages-section {
  padding: 8rem 5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.languages-container {
  max-width: 120rem;
  margin: 0 auto;
}

.languages-header {
  text-align: center;
  margin-bottom: 4rem;
}

.languages-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.languages-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.language-card {
  background-color: #3a3a3a;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-card:nth-child(2n) {
  background-color: #637a7f;
}

.language-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.language-card:nth-child(2n):hover {
  background-color: #769399;
}

.language-card:hover {
  background-color: #444;
}

.language-icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.language-name {
  font-size: 1.8rem;
  color: #ffffed;
  font-weight: 400;
}

/* ===== Адаптивность для Features ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .languages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .lecture-ai-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .lecture-ai-section {
    padding: 4rem 2rem;
  }

  .languages-section {
    padding: 4rem 2rem;
  }

  .languages-header h2 {
    font-size: 2.5rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .language-card {
    padding: 1.5rem 1rem;
    min-height: 12rem;
  }

  .language-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
  }

  .language-name {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   2. Страница FEATURES
========================================================================== */

/* ===== BACKGROUND CODE (Hidden Behind Screen) ===== */
#code-background {
  position: fixed;
  top: 10rem;
  left: 2rem;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  padding: 0;
  overflow: hidden;
  max-width: 50%;
  max-height: 50%;
}

.code-display {
  position: relative;
  width: auto;
  height: auto;
}

#code-text {
  color: #2d5a3d;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: pre;
  text-align: left;
  transition: opacity 0.5s ease;
  padding: 0;
  margin: 0;
}

/* Cursor animation */
.cursor {
  display: inline-block;
  width: 0.8rem;
  height: 2rem;
  background-color: #547c55;
  margin-left: 0.2rem;
  animation: blink 1s infinite;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Content above background */
header,
.main-content,
footer {
  position: relative;
  z-index: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-top: 1rem;
  padding: 2rem 5rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 8rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.features-container {
  max-width: 120rem;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.features-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.features-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 70rem;
  margin: 0 auto;
}

/* Features Grid 3x2 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 110rem;
  margin: 0 auto;
}

.feature-card {
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 22rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card-1 {
  background-color: #3a3a3a;
}

.feature-card-2 {
  background-color: #637a7f;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.feature-card-1:hover {
  background-color: #444;
}

.feature-card-2:hover {
  background-color: #769399;
}

.feature-icon {
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 2.2rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-description {
  font-size: 1.5rem;
  color: #e0e0e0;
  line-height: 1.5;
  font-weight: 300;
  opacity: 0.9;
}

/* ===== LECTURE & AI SECTION ===== */
.lecture-ai-section {
  padding: 8rem 0 12rem 0;
  margin-top: 6rem;
  position: relative;
  z-index: 1;
  overflow: hidden; /* скрывает соседние слайды */
}

.lecture-ai-container {
  display: flex;
  position: relative;
  transition: transform 0.6s ease-in-out;
  transform: translateX(0);
  width: 100%;
}

.lecture-ai-slide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4rem;
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  pointer-events: auto;
  padding: 0 12rem;
  position: relative;
  min-height: 50vh;
  box-sizing: border-box;
}

.slide-number-top {
  position: absolute;
  bottom: 5rem;
  left: 12rem;
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 5.4rem;
  color: #a0c7cf;
  font-weight: bold;
  letter-spacing: 0.1rem;
  z-index: 100;
  display: block;
}

.slide-number {
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.2rem;
  color: #a0c7cf;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1rem;
}

.lecture-title,
.ai-title {
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 2.2rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.lecture-description,
.ai-description {
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.5rem;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.lecture-list,
.ai-list {
  list-style: none;
}

.lecture-list li,
.ai-list li {
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 2;
  margin-bottom: 0.5rem;
  padding-left: 3.5rem;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.lecture-list .check-icon,
.ai-list .check-icon {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: #ffffed;
  font-size: 1.8rem;
  font-weight: bold;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lecture-block,
.ai-block {
  flex: 1;
  padding: 0;
}

/* Carousel Section within Slides */
.lecture-ai-slide .carousel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 0.8;
  min-width: 200px;
}

.carousel-item {
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 3rem;
  color: #ffffed;
  font-weight: 300;
  line-height: 1;
}

.carousel-icon {
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

.carousel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Bottom Carousel Buttons - Under Carousel Section */
.carousel-buttons-wrapper {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 100;
  width: auto;
}

.carousel-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 0.8rem;
  background-color: #a0c7cf;
  color: #151515;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background-color: #6b8ea3;
  transform: translateY(-0.3rem);
  box-shadow: 0 0.8rem 2rem rgba(69, 99, 119, 0.4);
}

.carousel-btn:active {
  transform: translateY(-0.1rem);
}

/* ===== LANGUAGES SECTION ===== */
.languages-section {
  padding: 8rem 0;
  margin-top: 6rem;
  position: relative;
  z-index: 1;
}

.languages-container {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.languages-header {
  text-align: center;
  margin-bottom: 5rem;
}

.languages-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.languages-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.language-card {
  background-color: #3a3a3a;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-card:nth-child(2n) {
  background-color: #637a7f;
}

.language-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.language-card:nth-child(2n):hover {
  background-color: #769399;
}

.language-card:nth-child(2n-1):hover {
  background-color: #444;
}

.language-icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.language-name {
  font-size: 1.8rem;
  color: #ffffed;
  font-weight: 400;
  line-height: 1.3;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .main-content {
    padding: 2rem 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .languages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .lecture-ai-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .carousel-section {
    order: 2;
  }

  .lecture-block {
    order: 1;
  }

  .ai-block {
    order: 3;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 2rem 1.5rem;
  }

  .features-section {
    padding: 4rem 0;
    margin-top: 2rem;
  }

  .languages-section {
    padding: 4rem 0;
    margin-top: 2rem;
  }

  /* ===== CAROUSEL MOBILE FIX ===== */
  .lecture-ai-section {
    padding: 4rem 0 6rem 0;
    margin-top: 2rem;
    overflow: hidden;
  }

  /* Слайды вертикально, без огромных боковых отступов */
  .lecture-ai-slide {
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 2rem;
    min-height: auto;
    align-items: stretch;
  }

  /* Номер слайда в потоке, не абсолютный */
  .slide-number-top {
    position: static;
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    display: block;
  }

  /* Иконка — в аккуратном блоке по центру */
  .lecture-ai-slide .carousel-section {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex: none;
  }

  .carousel-icon {
    width: 6rem;
    height: 6rem;
  }

  /* Кнопки навигации — статичный блок, не абсолютный */
  .carousel-buttons-wrapper {
    position: static;
    transform: none;
    margin: 2rem auto 0;
    justify-content: center;
    display: flex;
    gap: 1.5rem;
  }

  .carousel-btn {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.2rem;
  }

  /* Текстовые блоки */
  .lecture-ai-container {
    gap: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-header h2 {
    font-size: 2.5rem;
  }

  .feature-card {
    min-height: 18rem;
    padding: 2rem;
  }

  .feature-icon {
    width: 5rem;
    height: 5rem;
  }

  .feature-title {
    font-size: 1.8rem;
  }

  .feature-description {
    font-size: 1.3rem;
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .languages-header h2 {
    font-size: 2.5rem;
  }

  .language-card {
    padding: 2rem 1.5rem;
    min-height: 13rem;
  }

  .language-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
  }

  .language-name {
    font-size: 1.5rem;
  }

  .lecture-title,
  .ai-title {
    font-size: 1.8rem;
  }

  .lecture-description,
  .ai-description {
    font-size: 1.3rem;
  }

  .lecture-list li,
  .ai-list li {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1.5rem;
  }

  .features-header h2 {
    font-size: 2rem;
  }

  .features-subtitle {
    font-size: 1.2rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
    min-height: 16rem;
  }

  .feature-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .feature-description {
    font-size: 1.2rem;
  }

  .languages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .languages-header h2 {
    font-size: 2rem;
  }

  .languages-subtitle {
    font-size: 1.2rem;
  }

  .language-card {
    padding: 1.5rem 1rem;
    min-height: 12rem;
  }

  .language-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.75rem;
  }

  .language-name {
    font-size: 1.3rem;
  }

  .lecture-ai-container {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .lecture-title,
  .ai-title {
    font-size: 1.6rem;
  }

  .lecture-description,
  .ai-description {
    font-size: 1.1rem;
  }

  .lecture-list li,
  .ai-list li {
    font-size: 1rem;
    padding-left: 2.5rem;
  }

  .carousel-item {
    font-size: 2rem;
  }

  .carousel-icon {
    width: 6rem;
    height: 6rem;
  }

  .carousel-btn {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   3. Страница Download
========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem; /* 20px */
}

.down-section {
  padding: 15rem 0; /* 60px */
}

.page-download h1 {
  font-size: 3.5rem; /* 56px */
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
  color: #ffffed;
}

h2 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.5rem; /* 24px */
  color: #ffffed;
}

/* ===== BACKGROUND CODE (Hidden Behind Screen) ===== */
#code-background {
  position: fixed;
  top: 10rem;
  left: 2rem;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  padding: 0;
  overflow: hidden;
  max-width: 50%;
  max-height: 50%;
}

.code-display {
  position: relative;
  width: auto;
  height: auto;
}

#code-text {
  color: #2d5a3d;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: pre;
  text-align: left;
  transition: opacity 0.5s ease;
  padding: 0;
  margin: 0;
}

.subtitle {
  text-align: center;
  font-size: 1.5rem; /* 24px */
  color: #e0e0e0;
  max-width: 70rem; /* 1120px */
  margin: 0 auto;
  opacity: 0.8;
  line-height: 2;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Карточки ОС */
.os-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); /* 280px */
  gap: 2rem; /* 32px */
  margin-bottom: 3.75rem; /* 60px */
}

.card {
  background-color: #3a3a3a;
  border-radius: 1rem; /* 16px */
  padding: 1.5rem; /* 24px */
  box-shadow: 0 1.25rem 2.5rem -0.625rem rgba(0, 0, 0, 0.1); /* 20px 40px -10px */
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  min-height: 12.5rem; /* 200px */
}

.card:hover {
  transform: translateY(-0.3125rem); /* -5px */
  box-shadow: 0 1.875rem 3.125rem -0.75rem rgba(0, 0, 0, 0.15); /* 30px 50px -12px */
}

.card h2 {
  font-size: 1.8rem; /* ≈28.8px */
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 1rem; /* 16px */
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #f2ffed;
  text-align: left;
}

.os-details {
  display: flex;
  justify-content: left;
  gap: 0.625rem; /* 10px */
  margin-bottom: 0.5rem; /* 8px */
  font-weight: 300;
  font-family: "Gravity", sans-serif;
  color: #e0e0e0;
}

.os-version {
  color: #e0e0e0;
  opacity: 0.8;
  font-weight: 300;
  font-family: "Gravity", sans-serif;
  margin-bottom: 1rem; /* 16px */
}

/* Кнопка "Скачать" */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a0c7cf;
  color: #1e1e1e;
  text-decoration: none;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  border-radius: 1rem; /* 16px */
  font-weight: 700;
  font-family: "Gravity", sans-serif;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  gap: 0.5rem; /* 8px */
}

.btn img {
  height: 1.5rem; /* 24px */
  width: auto;
  object-fit: contain;
}

.btn:hover {
  background: #b6e2eb;
}

/* Логотип ОС внутри карточки */
.occardpic {
  position: absolute;
  bottom: 2rem;
  right: -1.1rem;
  width: 9rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.occardpic img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Убираем любые hover-эффекты, если они были */
  pointer-events: none;
}

/* Контейнер для веб-версии — центрируем карточку */
.web-version {
  display: flex;
  justify-content: center; /* горизонтальное центрирование */
  margin-bottom: 3.75rem;
}

/* Карточка: иконка слева, текст справа, без фона */
.web-card {
  display: flex;
  align-items: center;
  gap: 1rem; /* увеличенный отступ между иконкой и текстом */
  padding: 1rem 2rem;
  max-width: 55rem; /* чтобы не растягивалась на всю ширину */
  width: 100%;
  /* Фона нет! Только тень для лёгкого отделения (можно убрать) */
  /* background: transparent; /* уже по умолчанию */
  box-shadow: none; /* если не хотите даже тени, удалите эту строку */
}

/* Иконка — крупная, подстраивается под контейнер */
.web-icon {
  width: 8rem; /* 160px — увеличено по вашему желанию */
  height: 8rem;
  object-fit: contain; /* сохраняет пропорции, не обрезается */
  flex-shrink: 0; /* не сжимается при нехватке места */
}

/* Блок с текстом и кнопкой */
.web-content {
  display: flex;
  flex-direction: column;
}

/* Заголовок */
.web-content h3 {
  font-family: "Gravity", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffed;
  margin: 0;
}

/* Описание */
.web-content p {
  font-family: "Gravity", sans-serif;
  font-size: 1.2rem;
  color: #e0e0e0;
  margin: 0;
  line-height: 1.5;
}

/* Кнопка */
.web-content .btn {
  align-self: flex-start; /* чтобы кнопка не растягивалась на всю ширину */
  margin-top: 0.5rem;
}

/* Требования */
.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.875rem; /* 30px */
}

.req-card {
  background: #637a7f;
  border-radius: 1rem; /* 16px */
  padding: 1.5rem; /* 24px */
  box-shadow: 0 0.625rem 1.875rem -0.3125rem rgba(0, 0, 0, 0.05); /* 10px 30px -5px */
  position: relative;
  min-height: 22rem; /* 352px – подбираем под содержимое, можно и 20rem */
}

.req-card:nth-child(2n) {
  background: #a0c7cf;
}

.req-card h3 {
  margin-top: 1rem;
  font-family: "Gravity", sans-serif;
  font-size: 2rem; /* 32px */
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #f2ffed;
  text-align: left;
}

.req-card h4 {
  margin-top: 1rem;
  font-family: "Gravity", sans-serif;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e1e1e;
  text-align: left;
}

.req-card ul {
  list-style: none;
}

.req-card li {
  font-family: "Gravity", sans-serif;
  font-size: 1.1rem; /* 17.6px */
  color: #e0e0e0;
  line-height: 1.5;
  font-weight: 400;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.req-card:nth-child(2n) li {
  color: #1e1e1e;
}

.req-card li img {
  height: 1.2rem; /* 19.2px */
  width: auto;
  object-fit: contain;
}

/* Изображение в углу карточки требований */
.reqcardpic {
  position: absolute;
  bottom: 6rem;
  right: -1rem;
  width: 10.1rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reqcardpic img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Процесс установки */
.process {
  background: #3a3a3a;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem; /* 40px */
}

.step {
  text-align: center;
  padding: 1rem;
}

.step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 14.5rem; /* 232px */
  border-radius: 1rem;
  background: #a0c7cf;
  color: #1e1e1e;
  font-family: "Gravity", sans-serif;
  font-weight: 700;
  font-size: 2rem; /* 32px */
  padding: 1.5rem;
}

.step h4 {
  font-family: "Gravity", sans-serif;
  font-size: 1.8rem; /* 28.8px */
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: #1e1e1e;
}

.step p {
  font-family: "Gravity", sans-serif;
  color: #1e1e1e;
  font-weight: 400;
  font-size: 1.4rem; /* 22.4px */
}

/* Что включено */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem; /* 30px */
  margin-top: 2.5rem;
}

.feature {
  background: #637a7f;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.625rem 1.875rem -0.3125rem rgba(0, 0, 0, 0.05);
  min-height: 19rem; /* 304px */
}

.feature:nth-child(2n) {
  background: #3a3a3a;
}

.feature h4 {
  font-family: "Gravity", sans-serif;
  font-size: 1.8rem;
  color: #ffffed;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1rem;
}

.feature ul {
  list-style: none;
}

.feature li {
  font-family: "Gravity", sans-serif;
  color: #ffffed;
  font-weight: 300;
  line-height: 1;
  font-size: 1.3rem; /* 20.8px */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature li img {
  height: 1.3rem;
  width: auto;
  object-fit: contain;
}

/* Футер (адаптация) */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3.75rem 0 1.875rem; /* 60px 0 30px */
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* 40px */
  margin-bottom: 2.5rem;
}

.footer-col h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.7rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.875rem; /* 30px */
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .occardpic {
    width: 3.75rem; /* 60px */
    height: 3.75rem;
  }

  .reqcardpic {
    width: 3.75rem;
    height: 3.75rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .btn img {
    height: 1.2rem;
  }
}

@media (max-width: 480px) {
  .requirements {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .occardpic {
    position: static; /* На очень маленьких экранах возвращаем в поток */
    margin-top: 1rem;
    width: 3.125rem; /* 50px */
    height: 3.125rem;
  }

  .reqcardpic {
    position: static;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   4. Страница Pricing
========================================================================== */

/* ===== BACKGROUND CODE ===== */
#code-background {
  position: fixed;
  top: 10rem;
  left: 2rem;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  padding: 0;
  overflow: hidden;
  max-width: 50%;
  max-height: 50%;
}

.code-display {
  position: relative;
  width: auto;
  height: auto;
}

#code-text {
  color: #2d5a3d;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  line-height: 1.4;
  white-space: pre;
  text-align: left;
  transition: opacity 0.5s ease;
  padding: 0;
  margin: 0;
}

.cursor {
  display: inline-block;
  width: 0.8rem;
  height: 2rem;
  background-color: #547c55;
  margin-left: 0.2rem;
  animation: blink 1s infinite;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

header,
.main-content,
footer {
  position: relative;
  z-index: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-top: 1rem;
  padding: 2rem 5rem;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 8rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.pricing-container {
  max-width: 120rem;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 5rem;
}

.pricing-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.pricing-subtitle {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 70rem;
  margin: 0 auto;
}

/* ===== PRICING GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 120rem;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  border-radius: 1.2rem;
  padding: 3rem 2.5rem;
  text-align: left;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.pricing-card-basic {
  background-color: #3a3a3a;
}
.pricing-card-recommended {
  background-color: #637a7f;
  border: 2px solid #a0c7cf;
}
.pricing-card-enterprise {
  background-color: #3a3a3a;
}

.pricing-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.pricing-card-basic:hover {
  background-color: #444;
}
.pricing-card-recommended:hover {
  background-color: #769399;
}
.pricing-card-enterprise:hover {
  background-color: #444;
}

.pricing-badge {
  display: inline-block;
  background-color: rgba(160, 199, 207, 0.15);
  color: #a0c7cf;
  padding: 0.5rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  width: fit-content;
  border: 1px solid rgba(160, 199, 207, 0.3);
}

.pricing-badge-recommended {
  background-color: #a0c7cf;
  color: #151515;
  font-weight: 400;
  border-color: #a0c7cf;
}

.pricing-title {
  font-size: 2.2rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pricing-description {
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.5;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-amount {
  font-size: 3rem;
  color: #ffffed;
  font-weight: 400;
}

.price-period {
  font-size: 1.2rem;
  color: #e0e0e0;
  opacity: 0.8;
  font-weight: 300;
}

.pricing-volume {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  font-weight: 300;
}

.pricing-volume strong {
  color: #ffffed;
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 3.5rem;
  position: relative;
  display: flex;
  align-items: flex-start;
  font-weight: 300;
}

.pricing-features .check-icon {
  position: absolute;
  left: 0;
  top: 0;
  color: #a0c7cf;
  font-size: 1.8rem;
  font-weight: bold;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-support {
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 300;
}

.pricing-support strong {
  color: #ffffed;
  font-weight: 400;
}

.pricing-btn {
  width: 100%;
  padding: 1.4rem 2rem;
  border-radius: 0.8rem;
  border: none;
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffed;
  background-color: #456377;
  font-family:
    "Gravity",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.pricing-btn:hover {
  background-color: #5a7a8f;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.5rem 1.5rem rgba(69, 99, 119, 0.3);
}

.pricing-btn-recommended {
  background-color: #a0c7cf;
  color: #151515;
}

.pricing-btn-recommended:hover {
  background-color: #6b8ea3;
  color: #ffffed;
}

.pricing-btn-enterprise {
  background-color: #a0c7cf;
  color: #151515;
}

.pricing-btn-enterprise:hover {
  background-color: #6b8ea3;
  color: #ffffed;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
  padding: 8rem 0;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.comparison-container {
  max-width: 120rem;
  margin: 0 auto;
}

.comparison-header {
  text-align: center;
  margin-bottom: 5rem;
}

.comparison-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.comparison-header p {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  opacity: 0.8;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1.2rem;
  overflow: hidden;
}

.comparison-table th {
  padding: 2rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffed;
  text-align: center;
  font-family:
    "Gravity",
    -apple-system,
    sans-serif;
}

.comparison-table th:first-child {
  text-align: left;
}
.comparison-table th.th-basic {
  background-color: #3a3a3a;
}
.comparison-table th.th-recommended {
  background-color: #637a7f;
  color: #a0c7cf;
}
.comparison-table th.th-enterprise {
  background-color: #3a3a3a;
}
.comparison-table th.th-feature {
  background-color: #2a2a2a;
  font-size: 1.4rem;
  color: #e0e0e0;
}

.comparison-table td {
  padding: 1.5rem 2.5rem;
  font-size: 1.4rem;
  color: #e0e0e0;
  font-weight: 300;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table td:first-child {
  text-align: left;
  color: #e0e0e0;
}

.comparison-table tr:nth-child(odd) td {
  background-color: rgba(255, 255, 255, 0.02);
}
.comparison-table tr:nth-child(even) td {
  background-color: rgba(0, 0, 0, 0.1);
}
.comparison-table tr:nth-child(odd) td:nth-child(3) {
  background-color: rgba(99, 122, 127, 0.15);
}
.comparison-table tr:nth-child(even) td:nth-child(3) {
  background-color: rgba(99, 122, 127, 0.1);
}

.check-yes {
  color: #a0c7cf;
  font-size: 1.8rem;
  font-weight: bold;
}
.check-no {
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.8rem;
}
.check-partial {
  color: #e0a060;
  font-size: 1.4rem;
  font-weight: 300;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 8rem 0;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.faq-container {
  max-width: 90rem;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 5rem;
}

.faq-header h2 {
  font-size: 3.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.faq-header p {
  font-size: 1.5rem;
  color: #e0e0e0;
  font-weight: 300;
  opacity: 0.8;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #3a3a3a;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:nth-child(even) {
  background-color: #2f4a50;
}

.faq-question {
  width: 100%;
  padding: 2rem 2.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family:
    "Gravity",
    -apple-system,
    sans-serif;
  font-size: 1.6rem;
  color: #ffffed;
  font-weight: 400;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #a0c7cf;
}

.faq-icon {
  font-size: 2rem;
  color: #a0c7cf;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  padding: 0 2.5rem;
}

.faq-item.open .faq-answer {
  max-height: 20rem;
  padding: 0 2.5rem 2rem 2.5rem;
}

.faq-answer p {
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.8;
  font-weight: 300;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 2rem;
  margin-top: 8rem;
  position: relative;
  z-index: 1;
}

.cta-container {
  max-width: 100rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 2.5rem;
  color: #ffffed;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-description {
  font-size: 1.4rem;
  color: #e0e0e0;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-btn-primary,
.cta-btn-secondary {
  padding: 1.4rem 2.5rem;
  border-radius: 0.8rem;
  border: none;
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family:
    "Gravity",
    -apple-system,
    sans-serif;
}

.cta-btn-primary {
  background-color: #a0c7cf;
  color: #151515;
}

.cta-btn-primary:hover {
  background-color: #6b8ea3;
  color: #ffffed;
  box-shadow: 0 0.5rem 1.5rem rgba(69, 99, 119, 0.3);
  transform: translateY(-0.2rem);
}

.cta-btn-secondary {
  background-color: transparent;
  color: #ffffed;
  border: 2px solid #a0c7cf;
}

.cta-btn-secondary:hover {
  background-color: #a0c7cf;
  color: #151515;
  box-shadow: 0 0.5rem 1.5rem rgba(69, 99, 119, 0.3);
  transform: translateY(-0.2rem);
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  right: 5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pricing-card-recommended {
    grid-column: 1 / -1;
    max-width: 60%;
    margin: 0 auto;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 2rem 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-recommended {
    grid-column: 1;
    max-width: 100%;
  }

  .pricing-header h2,
  .comparison-header h2,
  .faq-header h2 {
    font-size: 2.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }
  .cta-section {
    padding: 4rem 1.5rem;
    margin-top: 4rem;
  }
  .cta-title {
    font-size: 2rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem 1rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1.5rem;
  }

  .pricing-header h2,
  .comparison-header h2,
  .faq-header h2 {
    font-size: 2rem;
  }

  .price-amount {
    font-size: 2.4rem;
  }
}
