:root {
  --font-family: "Montserrat", 'Inter', sans-serif;
  --second-family: "Russo One", sans-serif;
  --third-family: "Ruslan Display", sans-serif;
  --font3: "Rajdhani", sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(225deg, #5278a3 0%, #023268 47.6%, #000 100%);
  font-family: var(--font-family);
  color: #fff;
  padding-top: 199px; /* высота фиксированной шапки */
}

.fancy-heading-section {
  position: relative;
  min-height: 300px; /* или подгони под контент */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.blur-heading {
  position: absolute;
  font-size: 160px;
  font-weight: 800;
  color: white;
  opacity: 0.07;
  filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
}

.sharp-heading {
  font-size: 48px;
  font-weight: 800;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  z-index: 1;
  position: relative;
}

.sharp-heading.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Шапка */
header {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  height: 110px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1270px;
  height: 110px;
  background: rgba(44, 87, 135, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 0 40px;
  gap: 60px;
}

@media (max-width: 1280px) {
  .header-inner {
    width: 90%;
    padding: 0 20px;
    gap: 20px;
  }
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap; /* <- Это предотвращает переносы строк */
}

.nav a:hover {
  color: #fff;
  background: rgba(217, 217, 217, 0.1);
}

.nav-link.price-link {
  background: rgba(12, 59, 112, 0.49);
  color: #fff;               /* белый текст */
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
  border-top: 2px solid rgba(217, 217, 217, 0.8);
  border-bottom: 1px solid rgba(217, 217, 217, 0.5);
  border-left: 1px solid rgba(217, 217, 217, 0.8);
  border-right: 1px solid rgba(217, 217, 217, 0.8);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 150px;
  left: 0;
  right: 0;
  background: #2c5787;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  z-index: 999;
  border-radius: 0 0 20px 20px;
}

.mobile-menu a {
  margin: 10px 0;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }
}

/* === HERO SECTION (адаптивная, с изображением справа) === */

.hero {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  padding: 120px 60px 80px 60px; /* добавили нижний отступ */
  overflow-x: hidden;
  box-sizing: border-box;
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  box-sizing: border-box;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 64px;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.hero-subtitle {
  margin-top: 40px; /* увеличили отступ от стрелок */
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: #b1b1b1;
  line-height: 1.4;
}

.hero-button-wrapper {
  position: relative;
  display: inline-block;
  margin-top: 100px; /* ЕЩЁ больше отступ от текста до стрелок и кнопки */
  z-index: 2;
}

.animated-arrows {
  position: absolute;
  left: 50%;
  bottom: 100%; /* стрелки над кнопкой */
  transform: translateX(-50%) translateY(-20px); /* немного выше */
  width: 30px;
  height: 60px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.arrow {
  width: 30px;
  height: auto;
  opacity: 0;
  animation: fade-arrow 2s infinite ease-in-out;
  fill: white;
  filter: brightness(0) invert(1);
}

.arrow-top {
  animation-delay: 0s;
  margin-bottom: 8px;
  transform: rotate(180deg) !important;
}

.arrow-bottom {
  animation-delay: 1s;
  transform: rotate(0deg) !important;
}

@keyframes fade-arrow {
  0%, 100% {
    opacity: 0;
    transform: translateY(5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-button {
  margin-top: 20px;
  width: 315px;
  height: 84px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(217, 217, 217, 0.5);
  box-shadow: 0 11px 5px rgba(0, 0, 0, 0.25);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: #17335d;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
}

.hero-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #17335d;
  z-index: 1;
  transition: width 0.6s ease;
}

.hero-button:hover::before {
  width: 100%;
}

.hero-button:hover {
  color: #ffffff;
}

.hero-button span {
  position: relative;
  z-index: 2;
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  transform: scale(0.85); /* уменьшили масштаб */
  transform-origin: center bottom;
}

/* === Адаптив === */

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-subtitle {
    font-size: 22px;
    max-width: 100%;
  }

  .hero-button {
    width: 100%;
    max-width: 340px;
    height: 72px;
    font-size: 24px;
  }

  .hero-image {
    justify-content: center;
    max-width: 90%;
    margin-top: 20px;
  }

  .hero-image img {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px 40px 20px; /* увеличили нижний отступ */
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-button {
    font-size: 20px;
    height: 60px;
  }
}

.section-why {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 623px;
  margin-top: 80px; /* увеличен отступ от предыдущей секции */
  margin-bottom: 10px; /* уменьшен отступ до следующей секции */
  background: linear-gradient(180deg, rgba(37, 80, 130, 0) 0%, rgba(43, 86, 134, 0.74) 25%, #2b5686 50%, rgba(43, 86, 134, 0.86) 75%, rgba(43, 86, 134, 0) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 40px;
  padding-left: 326px; /* важный момент */
  padding-right: 237px;
  box-sizing: border-box;
}

.section-why-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 40px;
}

.section-why-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #fff;
  line-height: 1.2;
  max-width: 1250px;
  margin-right: 27px;
}

.section-why-bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-top: 40px; /* уменьшили отступ между блоками */
}

.section-why-line {
  border: 3px solid #5ca4de;
  width: 119px;
  height: 0;
  transform: rotate(-90deg);
  flex-shrink: 0;
  margin-right: 0px;
  margin-top: 37px;
}

.section-why-desc {
  display: block;
  max-width: 1150px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #fff;
  line-height: 1.2;
}

.section-why-desc span {
  font-weight: 700;
  font-size: 32px;
  color: #5ca4de;
  font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
  .section-why {
    padding: 60px 20px;
    height: auto;
    padding-top: 40px;
    margin-top: 60px;
    margin-bottom: 20px;
  }

  .section-why-top,
  .section-why-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .section-why-text {
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 30px;
    max-width: 100%;
  }

  .section-why-line {
    transform: rotate(0deg);
    width: 60px;
    height: 3px;
    margin: 0 auto 20px auto;
  }

  .section-why-desc {
    font-size: 18px;
    line-height: 1.4;
    max-width: 100%;
    padding: 0 10px;
  }

  .section-why-desc span {
    font-size: 24px;
  }
}

.course-target-section {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  background: transparent;
  background-image: url('images/2_1.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

.course-target-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 48px;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 80px;
  text-align: center;
  position: relative;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  will-change: transform, filter, opacity;
  transform: scale(1.4);
  filter: blur(12px);
  opacity: 0.4;
}

.course-cards-container {
  display: flex;
  flex-direction: row;
  justify-content: center; /* центрируем */
  gap: 51px;
  padding: 40px; /* немного отступов */
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.course-card {
  width: 399px;
  height: 488px;
  border-bottom: 1px solid rgba(217, 217, 217, 0.5);
  border-left: 1px solid rgba(217, 217, 217, 0.5);
  border-right: 1px solid rgba(217, 217, 217, 0.5);
  border-top: 2px solid rgba(217, 217, 217, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: #17335d;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 59px;
  box-sizing: border-box;
  padding-bottom: 40px; /* отступ снизу */
}

@media (max-width: 768px) {
  .course-target-section {
    height: auto;
    padding: 40px 20px;
    background-position: center;
    background-size: cover;
  }

  .course-target-title {
    font-size: 28px;
    transform: scale(1);
    filter: none;
    opacity: 1;
    margin-bottom: 30px;
  }

  .course-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0;
  }

  .course-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    padding: 30px 20px;
  }

  .section-why-text {
    text-align: center; /* центрируем текст */
    margin: 0 auto 20px auto; /* делаем авто-отступы по бокам */
    padding: 0 10px; /* отступы внутри */
    font-size: 18px;
    line-height: 1.5;
    max-width: 100%;
  }
}

@media (min-width: 1441px) {
  .course-target-section {
    height: 901px;
  }
}

.course-role-section {
  padding: 40px 20px;
  min-height: auto;
  background-size: cover;
}

.course-role-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.course-role-text {
  font-size: 18px;
  line-height: 1.4;
  max-width: 100%;
  text-align: center;
  padding: 0 10px;
}

.course-role-content {
  flex-direction: column;
  gap: 32px;
  width: 100%;
  align-items: center;
}

.course-card-title {
  font-size: 22px;
  margin-bottom: 20px;
}

.course-card-text {
  font-size: 16px;
}

.course-role-section {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.course-role-text {
  max-width: 500px;
  font-size: 18px;
  line-height: 1.5;
  padding: 0 10px;
  white-space: normal;
  word-break: break-word;
  margin-bottom: 20px;
}

.dynamic-blur-heading,
.sharp-heading {
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
  margin-top: 20px;
  margin-bottom: 20px;
}

.course-card-icon {
  width: 100px; /* увеличено в 2 раза */
  height: 100px;
  margin-bottom: 41px;
}

.course-card-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 28px;
  color: #5ca4de;
  margin-bottom: 66px;
  line-height: 1.2; /* уменьшено межстрочное */
}

.course-card-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  max-width: 315px;
  line-height: 1.3; /* уменьшено межстрочное */
}

.course-card-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 80%);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 0;
  filter: blur(20px);
}

.course-card {
  position: relative;
  z-index: 1;
}

.heading-wrapper {
  height: 100px;       /* зарезервируем место под увеличенный заголовок */
  margin-bottom: 40px; /* отступ до карточек */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.course-role-section {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  min-height: 945px;
  background: linear-gradient(180deg, rgba(12, 59, 112, 0) 0%, rgba(12, 59, 112, 0.74) 25%, #0c3b70 50%, rgba(12, 59, 112, 0.86) 75%, rgba(12, 59, 112, 0) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  margin-top: 40px;
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("images/bg-role-section.png");
  overflow: hidden; /* Добавлено — нужно для скрытия увеличенного текста */
}

.course-role-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1917px;
  height: 945px;
  background: linear-gradient(180deg, rgba(12, 59, 112, 0) 0%, rgba(12, 59, 112, 0.74) 25%, #0c3b70 50%, rgba(12, 59, 112, 0.86) 75%, rgba(12, 59, 112, 0) 100%);
  border-radius: 20px;
  z-index: 0;
}

.highlight-blue {
  color: #5CA4DE;
  font-weight: 600; /* если хочешь сохранить жирность */
}

/* 👇 ДОБАВЛЕНО: размытие и масштаб на фоне */
.blur-heading {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  font-size: 160px;
  font-weight: 800;
  font-family: var(--second-family);
  color: white;
  opacity: 0.06;
  filter: blur(6px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.2s linear, filter 0.2s linear;
}

/* 👇 ДОБАВЛЕНО: чёткий заголовок, появляющийся при скролле */
.sharp-heading {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 48px;
  color: #fff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 42px;
  z-index: 1;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.sharp-heading.visible {
  opacity: 1;
  transform: translateY(0);
}

.course-role-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  color: #fff;
  line-height: 1.35;
  max-width: 1920px;
  text-align: center;
  margin-bottom: 87px;
  margin-top: 0;
  align-self: center;
  display: block;
  z-index: 1;
  position: relative;
}

.dynamic-blur-heading {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 48px;
  color: #fff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 42px;
  z-index: 1;
  position: relative;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  will-change: transform, filter, opacity;
  
  /* Стартовое состояние — размытый, увеличенный, прозрачный */
  transform: scale(1.4);
  filter: blur(12px);
  opacity: 0.4;
}

.course-role-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
  width: 100%;
}

.course-role-content {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: relative;
  width: 100%;
}

.role-bot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-top: 10px;
  padding: 0 20px;
}

.role-bot-container iframe {
  width: 100%;
  height: 600px; /* увеличиваем высоту */
  border: none;
  border-radius: 20px;
  background: transparent;
}

@media (max-width: 768px) {
  .course-role-section {
    padding: 40px 20px;
    min-height: auto;
    background-position: center;
    background-size: cover;
    margin-top: 20px;
  }

  .dynamic-blur-heading {
    font-size: 28px;
    transform: scale(1);
    filter: none;
    opacity: 1;
    margin-bottom: 20px;
  }

  .sharp-heading {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 1;
    transform: translateY(0);
  }

  .course-role-text {
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .course-role-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .role-bot-container {
    padding: 0;
    margin-top: 20px;
  }

  .role-bot-container iframe {
    height: 700px;
    max-width: 100%;
  }

  .course-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
  }

  .course-card-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .course-card-text {
    font-size: 16px;
    line-height: 1.4;
    max-width: 90%;
  }
}

@media (max-width: 360px) {
  .role-bot-container iframe {
    height: 600px; /* уменьшили ещё чуть-чуть */
  }

  .course-card-title {
    font-size: 16px; /* был 18px → ещё уменьшили */
    margin-bottom: 8px;
    line-height: 1.2;
  }

  .course-card-text {
    font-size: 13px; /* текст пунктов еще меньше */
    line-height: 1.4;
    max-width: 95%;
  }

  .course-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .course-role-content {
    gap: 12px; /* минимизируем пробелы между блоками */
  }

  /* И дополнительно: чуть уменьшим внутренние паддинги у самого iframe контейнера */
  .role-bot-container {
    padding: 0;
    margin-top: 10px;
  }
}

.course-start-section {
  width: 100%;
  background: linear-gradient(180deg, rgba(37, 80, 130, 0) 0%, rgba(43, 86, 134, 0.74) 25%, #2b5686 50%, rgba(43, 86, 134, 0.86) 75%, rgba(43, 86, 134, 0) 100%);
  margin-top: 22px;
  padding-top: 60px; /* 🔼 стало меньше */
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.course-start-heading {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 48px;
  color: #fff;
  margin-bottom: 65px;
}

.course-start-text {
  font-family: var(--font-family);
  color: #fff;
  line-height: 1.35;
  margin-bottom: 86px;
  max-width: 960px;
}

.course-start-text p {
  margin: 0;
  padding: 0;
}

.course-start-line1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.course-start-line2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.course-start-line3 {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.highlight-date {
  font-weight: 600;
  font-size: 32px;
  color: #5ca4de;
}

@media (max-width: 768px) {
  .course-start-section {
    padding: 40px 20px;
    text-align: center;
  }

  .course-start-text {
    padding: 0 20px;
  }

  .course-start-line1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .course-start-line2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .course-start-line3 {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .course-start-button {
    width: 100%;
    max-width: 220px;
    height: 64px;
    font-size: 20px;
  }

  .hero-text {
    font-size: 20px;
  }

  .hero-button {
      margin-top: 30px; /* вместо большого отступа */
    }
}

/* Адаптив для max-width: 360px */
@media (max-width: 360px) {
  .course-start-section {
    padding: 30px 16px;
  }

  .course-start-text {
    padding: 0 10px;
  }

  .course-start-line1 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .course-start-line2 {
    font-size: 20x;
    margin-bottom: 10px;
  }

  .highlight-date {
    font-size: 20px;
  }

  .course-start-line3 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .course-start-button {
    width: 100%;
    max-width: 150px;
    height: 56px;
    font-size: 18px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-button {
    width: 100%;
    max-width: 220px; /* можно поставить меньше, например, 180px или 200px */
    height: 64px; /* чуть поменьше высоту */
    font-size: 20px; /* чтобы текст тоже чуть меньше */
    margin-top: 20px;
  }
}

.course-program-section {
  padding-top: 100px;
  padding-bottom: 200px;
  position: relative;
  z-index: 1;
}

.course-program-container {
  position: relative;
  height: 650px; 
  overflow: hidden; /* чтобы лишние карточки не торчали */
  display: flex;
  justify-content: center;
  align-items: start;
}

.course-program-section h2 {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 40px 0 20px;
}

.course-week-card {
  position: absolute;
  top: 120px; /* отступ от верха */
  height: 515px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%) scale(0.9);
  visibility: hidden; /* <-- добавь это */
  transition: all 0.5s ease;
  z-index: 0;
  opacity: 0; 
  pointer-events: none;
}

.course-week-card.visible {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  visibility: visible; /* <-- и это */
}

.course-week-card.in-view {
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
}

.card-background {
  border-radius: 20px;
  width: 1166px;
  height: 515px;
  background: linear-gradient(180deg, #2b5686 0%, #3367a2 25%, #325e8f 50%, #244569 75%, #0a1520 100%);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.card-foreground {
  border-bottom: 2px solid rgba(217, 217, 217, 0.5);
  border-left: 2px solid rgba(217, 217, 217, 0.5);
  border-right: 2px solid rgba(217, 217, 217, 0.5);
  border-top: 4px solid rgba(217, 217, 217, 0.5);
  border-radius: 20px;
  width: 1166px;
  height: 515px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  margin-top: -27px; /* верхняя карточка: отступ от заголовка 96px, 123 - 96 = 27px */
  margin-left: -30px; /* слева 358, нижняя слева 388 — разница 30px */
  margin-right: -30px; /* справа 396, нижняя справа 366 — разница 30px */
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 40px;
  box-sizing: border-box;
}

.card-wrapper {
  position: relative;
  width: 1166px;
  height: 515px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

.week-number {
  position: absolute;
  top: 57px;
  left: 72px;
  width: 90px;
  height: 90px;
  border-radius: 20px;
  border: 1px solid #d9d9d9;
  border-top: 2px solid #d9d9d9;
  backdrop-filter: blur(4px);
  box-shadow: 0 11px 5px rgba(0, 0, 0, 0.25);
  background: rgba(23, 51, 93, 0.65);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* распределяет текст по вертикали */
  padding: 9px 0 14px; /* сверху и снизу */
  gap: 2px; /* расстояние между цифрой и словом */
}

.week-number-value {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 48px;
  color: #fff;
  line-height: 1;
}

.week-number-label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  line-height: 1;
}

.card-content {
  position: absolute;
  top: 87px;
  left: 197px; /* было 120px или 130px — сдвигаем правее */
  right: 50px;
  font-family: var(--font-family);
  color: #dfefff;
  font-size: 18px;
  line-height: 1.05;
}

.card-title {
  font-weight: 600;
  font-size: 32px;
  color: #17335d;
  margin-bottom: 36px;
  line-height: .75;
}

.card-text {
  font-weight: 300;
  font-size: 18px;
  color: #dfefff; /* вместо чисто белого — мягче */
  line-height: 1.05;
}

.practice-block {
  margin-top: 24px;
}

.practice-block .card-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.practice-block .point-icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
}

.practice-block .card-point span {
  font-weight: 400;
  font-size: 18px;
  color: #dfefff;
  line-height: 1.2;
}

.practice-block p strong {
  margin-left: 26px;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  color: #5ca4de;
  margin-bottom: 10px;
  display: inline-block;
}

.card-arrow {
  position: absolute;
  bottom: 60px;
  right: 63px;
  width: 30px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* justify-content: flex-start;
  pointer-events: none;
  z-index: 10; */
}

.arrow {
  width: 40px;
  height: 40px;
  opacity: 0;
  animation: fade-arrow 2s ease-in-out infinite;
  filter: brightness(0) invert(1);
  pointer-events: auto; /* ВАЖНО! */
  cursor: pointer;
}

.arrow-top {
  animation-delay: 0s;
  margin-bottom: 8px;
  transform: rotate(180deg) !important;
  /* scale: 2; */
}

.arrow-bottom {
  animation-delay: 1s;
  transform: rotate(0deg); /* по умолчанию вниз */
}

@keyframes fade-arrow {
  0%, 100% {
    opacity: 0;
    transform: translateY(5px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-point {
  display: flex;
  align-items: center; 
  gap: 10px;                 /* Минимальное расстояние между иконкой и текстом */
  margin-bottom: 4px;       /* Минимальный вертикальный отступ между строками */
}

.card-point span {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;        /* Минимальный читаемый межстрочный интервал */
  color: #fff;
}

.card-point img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.point-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-right: 10px; /* вот здесь регулируется отступ */
  display: block;
}

.card-icon-topright {
  position: absolute;
  top: 46px;
  right: 56px;
  width: 110px; /* или нужный размер */
  height: auto;
  z-index: 5;
}

.card-icon-topright img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-svg {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: scale(var(--scale, 1)) translateY(80px);
  animation:
    fade-in 1.5s ease-in forwards,
    float 6s ease-in-out infinite,
    pulse 4s ease-in-out infinite;
  z-index: 0;
}

.floating-svg img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.4);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(var(--scale, 1)) translateY(80px);
  }
  to {
    opacity: 0.6;
    transform: scale(var(--scale, 1)) translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) scale(var(--scale, 1));
  }
  50% {
    transform: translateY(-20px) scale(var(--scale, 1));
  }
  100% {
    transform: translateY(0) scale(var(--scale, 1));
  }
}

@keyframes pulse {
  0%, 100% {
    filter: brightness(1.1);
    transform: scale(var(--scale, 1)) translateY(0);
  }
  50% {
    filter: brightness(1.6);
    transform: scale(calc(var(--scale, 1) * 1.1)) translateY(-10px);
  }
}

@keyframes blink {
  0%, 90%, 100% {
    opacity: 0.6; /* нормальная видимость */
  }
  45% {
    opacity: 0;
  }
}

@keyframes blink-hard {
  0%, 100% {
    opacity: 0.6;
  }
  49% {
    opacity: 0.6;
  }
  50% {
    opacity: 0;
  }
  51% {
    opacity: 0;
  }
  52% {
    opacity: 0.6;
  }
}

.floating-svg.blinker {
  animation:
    fade-in 3.5s ease-in forwards,
    float 6s ease-in-out infinite,
    blink-hard 5s ease-in-out infinite;
}

@keyframes float-rotate {
  0% {
    transform: rotate(0deg) scale(var(--scale, 1)) translateY(0);
  }
  50% {
    transform: rotate(180deg) scale(var(--scale, 1)) translateY(-20px);
  }
  100% {
    transform: rotate(360deg) scale(var(--scale, 1)) translateY(0);
  }
}

.floating-svg.rotate {
  animation:
    fade-in 1.5s ease-in forwards,
    float-rotate 12s linear infinite;
}

@media (max-width: 768px) {
  .course-program-section {
    padding: 40px 20px;
  }

  .course-program-container {
    position: static;
    height: auto;
    overflow: visible;
    flex-direction: column;
    gap: 10px; /* уменьшаем gap между карточками */
    align-items: center;
  }

  .course-week-card {
    position: static;
    transform: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px; /* вместо 60px */
  }

  .card-wrapper {
    width: 100%;
    height: auto;
  }

  .card-background,
  .card-foreground {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
  }

  .card-foreground {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-content {
    position: static;
    padding: 0;
    margin-top: 16px;
  }

  .card-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .card-text,
  .card-point span {
    font-size: 15px;
    line-height: 1.4;
  }

  .week-number {
    position: static;
    margin-bottom: 12px;
    width: 70px;
    height: 70px;
  }

  .week-number-value {
    font-size: 30px;
  }

  .week-number-label {
    font-size: 12px;
  }

  .card-arrow,
  .card-icon-topright {
    display: none;
  }
}

@media (max-width: 360px) {
  .course-program-container {
    position: static;
    height: auto;
    overflow: visible;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }

  .course-week-card {
    position: static;
    transform: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
  }

  .card-wrapper {
    width: 100%;
    height: auto;
  }

  .card-background,
  .card-foreground {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
  }

  .card-foreground {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-content {
    position: static;
    padding: 0;
    margin-top: 20px;
    text-align: left;
  }

  .card-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .card-text,
  .card-point span {
    font-size: 14px;
    line-height: 1.4;
  }

  .week-number {
    position: static;
    margin-bottom: 16px;
    width: 70px;
    height: 70px;
  }

  .week-number-value {
    font-size: 28px;
  }

  .week-number-label {
    font-size: 12px;
  }

  .card-arrow,
  .card-icon-topright {
    display: none;
  }
}

.example-game-section {
  background-size: cover;
  background-position: center;
  padding: 180px 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.example-wave {
  position: absolute;
  top: 480px;
  left: 222px;
  right: 0;
  z-index: 0;
  width: auto;
  max-width: 100%;
  max-height: none;
  height: auto;
}

.example-game-heading {
  text-align: center;
  position: relative;
  margin-bottom: 80px;
}

.example-game-section .heading-wrapper {
  margin-top: -150px;
  margin-bottom: 120px;
}

.example-game-content {
  max-width: 1440px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.example-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.example-player {
  flex: 1;
  max-width: 900px;
  position: relative;
}

.player-frame {
  position: relative;
  width: 100%;
  background: #EFF7FF;
  overflow: hidden;
  /* box-shadow: 0 0 40px rgba(0,0,0,0.3); */
  border-bottom: 2px solid rgba(217, 217, 217, 0.5);
  border-left: 2px solid rgba(217, 217, 217, 0.5);
  border-right: 2px solid rgba(217, 217, 217, 0.5);
  border-top: 2px solid rgba(217, 217, 217, 0.5);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
}

.play-button {
  font-size: 48px;
  color: #555;
  background: #ddd;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.player-frame video {
  width: 100%;
  display: block;
  border: none;
}

.player-controls {
  position: relative;
  display: flex;
  align-items: center;
  background: #04356a;
  padding: 10px 16px;
  gap: 10px;
  z-index: 1;
}

@media (max-width: 768px) {
  .example-game-content {
    flex-direction: column;
    gap: 40px;
  }

  .player-frame {
    width: 100%;
  }
}


.control-btn {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  box-shadow: none; /* <--- добавь это */
}

.control-btn:focus {
  outline: none;
  box-shadow: none;
  box-shadow: none; /* <--- добавь это */
}

#progressBar {
  /* flex-grow: 1; */
  -webkit-appearance: none;
  width: 100%;
  /* appearance: none; */
  height: 10px;
  border-radius: 5px;
  background: #ccc;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  position: relative;
}

/* Хак: псевдоэлемент для заливки */
#progressBar::-webkit-slider-runnable-track {
  background: #ccc;
  height: 6px;
  border-radius: 3px;
}
#progressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  margin-top: -3px;
  box-shadow: -1000px 0 0 1000px #5ca4de; /* Цвет залитой части */
  cursor: pointer;
}

#videoTime {
  color: white;
  font-family: var(--font-family);
  font-size: 14px;
}

.volume-control {
  position: relative;
  display: flex;
  align-items: center;
}

#volumeIcon {
  width: 20px;
  height: auto;
  cursor: pointer;
}

#volumeSlider {
  width: 80px;
  margin-left: 8px;
  height: 10px;
  border-radius: 5px;
  background: #ccc;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  position: relative;
}

/* Заливка до бегунка */
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: -100vw 0 0 100vw #5ca4de; /* ← заливает область до ползунка */
  position: relative;
  z-index: 1;
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
}

/* Для Firefox: трек */
#volumeSlider::-moz-range-track {
  background: #ccc;
  height: 10px;
  border-radius: 5px;
}

.fullscreen-arrows {
  position: relative;
  width: 36px;
  height: 36px;
}

.fullscreen-arrow {
  position: absolute;
  width: 12px;
  height: auto;
  transform-origin: center;
  filter: brightness(0) invert(1);
}

/* ↖ левая нижняя */
.fullscreen-arrow.arrow-1 {
  top: 15px;
  left: 2px;
  transform: rotate(-5deg);
}

/* ↘ правая верхняя */
.fullscreen-arrow.arrow-2 {
  top: 2px;
  left: 15px;
  transform: rotate(175deg);
}

.arrow-up {
  transform: rotate(180deg);
  animation: fade-arrow-up 2s infinite ease-in-out;
}

@keyframes fade-arrow-up {
  0%, 100% {
    opacity: 0;
    transform: rotate(180deg) translateY(5px);
  }
  50% {
    opacity: 1;
    transform: rotate(180deg) translateY(0);
  }
}

.arrow-reversed {
  animation: fade-arrow-reversed 2s infinite ease-in-out;
}

@keyframes fade-arrow-reversed {
  0%, 100% {
    opacity: 0;
    transform: rotate(180deg) translateY(5px);
  }
  50% {
    opacity: 1;
    transform: rotate(180deg) translateY(0);
  }
}

.course-steps-section {
  padding: 140px 0;
  display: flex;
  flex-direction: column;
  gap: 60px; /* уменьшенный отступ между блоками */
}

/* шаг */
.step-block {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

.step-block.right {
  flex-direction: row-reverse;
  top: -10px;
  left: -10px;
}

/* отступы от краёв */
.step-block.left {
  margin-left: 320px;
}
.step-block.right {
  margin-right: 320px;
}

/* обёртка картинки */
.image-wrapper {
  position: relative;
  width: 330px;
  height: 330px;
  flex-shrink: 0;
  padding: 15px;
  box-sizing: border-box;
}

/* реальная видимая рамка */
.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #5ca4de;
  border-top: 2px solid #5ca4de;
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
}

/* сама картинка */
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

/* плашка с текстом */
.text-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 237px;
  z-index: 5;
}

.step-block.right .text-overlay {
  left: auto;
  right: 237px;
}

/* задняя плашка (тень) */
.text-shadow {
  position: absolute;
  width: 601px;
  height: 177px;
  border-radius: 20px;
  border-bottom: 2px solid #5ca4de;
  border-left: 2px solid #5ca4de;
  border-right: 2px solid #5ca4de;
  border-top: 4px solid #5ca4de;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 11px 5px rgba(0, 0, 0, 0.25);
  opacity: 0.5;
  z-index: 1;
  top: 0;
  left: 0;
}

.step-block.right .text-shadow {
  top: 10px;
  left: 10px;
}

/* передняя плашка */
.text-foreground {
  width: 601px;
  height: 177px;
  border-radius: 20px;
  background: rgba(217, 217, 217, 0.5);
  backdrop-filter: blur(6.5px);
  border: 1px solid rgba(217, 217, 217, 0.7);
  border-top: 2px solid rgba(217, 217, 217, 0.7);
  padding: 24px 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* 👈 выравнивание текста по левому краю */
}

.text-foreground h3 {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  color: #5ca4de;
  margin-bottom: 2px;
  line-height: 1.2;
  text-align: left;
}

.text-foreground p {
  font-family: var(--font-family);
  font-weight: 400; /* или даже 300, если шрифт позволяет */
  font-size: 18px;
  color: #17335d;
  line-height: 1.35;
  text-align: left;
}

.highlight-blue {
  font-weight: 600;
  color: #fff;
}

/* Смещение подложки первой (левой) плашки */
.step-block.left .text-shadow {
  top: 10px;
  left: 10px;
}

/* Смещение подложки второй (правой) плашки */
.step-block.right .text-shadow {
  top: 10px;
  left: -10px;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 237px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  transform-origin: center;
  z-index: 5;
}

.step-block.right .text-overlay {
  left: auto;
  right: 237px;
}

/* Анимация при наведении — масштаб без смещения */
.image-wrapper:hover .text-overlay {
  transform: translateY(-50%) scale(1.3);
  z-index: 10;
}

@media (max-width: 768px) {
  .course-steps-section {
    padding: 60px 20px;
    gap: 40px;
  }

  .step-block {
    flex-direction: column !important;
    align-items: center;
    margin: 0;
    gap: 24px;
  }

  .step-block.left,
  .step-block.right {
    margin: 0;
    top: 0;
    left: 0;
  }

  .image-wrapper {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 10px;
  }

  .image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 20px;
  }

  .text-overlay {
    position: static;
    transform: none;
    margin: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: auto;
    left: auto;
  }

  .image-wrapper:hover .text-overlay {
    transform: none; /* отключаем анимацию наведения */
  }

  .text-foreground {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    text-align: left;
    background: rgba(217, 217, 217, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    height: auto;
  }

  .text-foreground h3,
  .text-foreground p {
    text-align: left;
  }

  .text-shadow {
    display: none; /* отключаем тень */
  }

  .step-block.right .text-overlay,
  .step-block.left .text-overlay {
    right: auto;
    left: auto;
  }
}

@media (max-width: 360px) {
  .course-steps-section {
    padding: 40px 16px;
    gap: 32px;
  }

  .course-steps-section h2 {
    font-size: 24px;
    white-space: nowrap;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* Заголовок "Пример игры" */
  .example-game-section .heading-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .example-game-heading {
    font-size: 24px;
    white-space: nowrap;
    text-align: center;
    margin-bottom: 16px;
  }

  /* Кнопка "СКАЧАТЬ ДЕМО" */
  .hero-button.course-start-button {
    padding: 0 20px;
    height: 44px;
    font-size: 18px;
    white-space: nowrap;
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-text {
    font-size: 18px;
    white-space: nowrap;
  }

  /* Контейнер под кнопку и видео */
  .example-game-content {
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    align-items: center;
  }

  .player-frame {
    width: 100%;
    max-width: 320px;
  }

  .player-frame video {
    width: 100%;
  }

  .example-game-section {
    padding: 40px 16px 80px;
  }

  .example-wave {
    top: 420px;
  }
}

/* Добавлено: отступы в секции об авторе */
.author-section {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 100px 240px 100px; /* увеличенные боковые отступы */
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 1440px) {
  .author-section {
    padding: 100px 80px; /* меньше отступы на более узких экранах */
  }
}

.author-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  position: relative;
  z-index: 1;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.author-text {
  max-width: 1000px;
  padding-left: 0;
  margin-left: 0;
}

.author-heading {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 40px;
  color: #fff;
  margin-bottom: 30px;
  padding-left: 0;
}

.author-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  padding-left: 0;
  line-height: 1.3;
}

.author-quote {
  display: flex;
  align-items: flex-start;
  margin-top: 60px;
  padding-left: 0px;
}

.quote-line {
  border: 3px solid #5ca4de;
  width: 119px;
  height: 0;
  transform: rotate(-90deg);
  flex-shrink: 0;
  margin-right: 0px;
  margin-top: 40px;
}

.author-quote p {
  display: block;
  max-width: 1150px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #5ca4de;
  line-height: 1.2;
}

.author-bg {
  position: absolute;
  bottom: 50px;
  right: 60px;
  width: 45%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.author-photo-wrapper {
  position: relative;
  width: 361px;
  height: 453px;
  margin-top: 60px;
  z-index: 2;
  flex-shrink: 0;
  align-self: flex-start;
}

.author-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: 2;
}

.author-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 361px;
  height: 453px;
  border-bottom: 2px solid #5ca4de;
  border-left: 2px solid #5ca4de;
  border-right: 2px solid #5ca4de;
  border-top: 4px solid #5ca4de;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 11px 5px 0 rgba(0, 0, 0, 0.25);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.heading-wrapper {
  margin-bottom: 40px;
  margin-top: -40px;
}

@media (max-width: 768px) {
  .author-section {
    padding: 60px 20px;
  }

  .author-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    flex-wrap: wrap;
  }

  .author-text {
    max-width: 100%;
    margin-left: 0;
    padding: 0 10px;
  }

  .author-heading {
    font-size: 28px;
    padding: 0;
  }

  .author-description {
    font-size: 18px;
    line-height: 1.5;
    padding: 0;
  }

  .author-quote {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin-top: 40px;
  }

  .quote-line {
    transform: rotate(0deg);
    width: 60px;
    height: 3px;
    margin: 0 auto 16px auto;
  }

  .author-quote p {
    font-size: 18px;
    max-width: 100%;
    padding: 0 10px;
  }

  .author-photo-wrapper {
    width: 280px;
    height: auto;
    margin-top: 20px;
    align-self: center;
    padding: 0 10px;
  }

  .author-photo {
    width: 100%;
    height: auto;
  }

  .author-frame {
    width: 280px;
    height: 100%;
    top: 6px;
    left: 6px;
  }

  .author-bg {
    display: none;
  }
}

.tariff-section {
  position: relative;
  width: 100%;
  padding: 160px 40px 120px;
  text-align: center;
  overflow: visible;
  margin-bottom: 100px;
}

.tariff-bg-decor {
  position: absolute;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.tariff-title {
  font-family: var(--second-family);
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 12px;
}

.tariff-subtitle {
  font-family: var(--font-family);
  font-size: 24px;
  color: #b1b1b1;
  margin-top: 0;
  margin-bottom: 120px;
}

.tariff-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.tariff-card {
  width: 449px;
  height: auto;
  border: 1px solid rgba(217, 217, 217, 0.5);
  border-top: 2px solid rgba(217, 217, 217, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  background: #17335d;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
}

.tariff-header {
  width: calc(100% - 40px);
  max-width: 400px;
  height: 89px;
  margin-top: 20px;
  border: 1px solid #d9d9d9;
  border-top: 2px solid #d9d9d9;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  box-shadow: 0 11px 5px rgba(0, 0, 0, 0.25);
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tariff-header-text {
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  z-index: 2;
  position: relative;
  text-align: center;
}

.tariff-price {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 600;
  color: #5ca4de;
  margin-top: 24px;
  margin-bottom: 24px;
}

.tariff-description {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 100;
  color: #ffffff;
  line-height: 1.2;
  text-align: left;
  max-width: 380px;
  padding: 0 10px;
  margin: 0 auto 40px;
}

.tariff-description ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.tariff-description li {
  line-height: 1.2;
  margin: 0;
  padding: 0;
  text-indent: 0;
}

.tariff-button {
  width: 250px;
  height: 84px;
  margin-top: 20px;
  margin-bottom: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  box-shadow: 0 11px 5px rgba(0, 0, 0, 0.25);
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 600;
  color: #17335d;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.tariff-button span {
  position: relative;
  z-index: 2;
}

.tariff-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #17335d;
  z-index: 1;
  transition: width 0.6s ease;
}

.tariff-button:hover::before {
  width: 100%;
}

.tariff-button:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.tariff-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tariff-card-glow {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  pointer-events: none;
  background: rgba(92, 164, 222, 0.3);
  border-radius: 28px;
  box-shadow:
    0 0 20px 10px rgba(92, 164, 222, 0.4),
    0 0 40px 20px rgba(92, 164, 222, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.tariff-card-wrapper:hover .tariff-card-glow {
  opacity: 1;
}

.tariff-form {
  margin-top: 20px;
}

.tariff-card input[type="text"],
.tariff-card input[type="email"] {
  width: 90%;
  max-width: 280px;
  display: block;
  margin: 10px auto;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.tariff-card input[type="text"]::placeholder,
.tariff-card input[type="email"]::placeholder {
  color: #999;
}

.tariff-card input {
  width: 100%;
  margin-bottom: 10px;
}

@media (max-width: 360px) {
  .tariff-section {
    padding: 80px 20px 60px;
    margin-bottom: 60px;
  }

  .tariff-title {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .tariff-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .tariff-cards-container {
    flex-direction: column;
    gap: 40px;
  }

  .tariff-card {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .tariff-header {
    width: 100%;
    height: 89px;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
  }

  .tariff-header-text {
    font-size: 24px;
    line-height: 1.2;
  }

  .tariff-price {
    font-size: 32px;
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .tariff-description {
    font-size: 16px;
    line-height: 1.4;
    padding: 0 10px;
    max-width: 100%;
    margin-bottom: 30px;
    text-align: left;
  }

  .tariff-button {
    width: 100%;
    max-width: 260px;
    height: 60px;
    font-size: 20px;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 0;
  }
}

@media (max-width: 1440px) {
  .tariff-card {
    flex: 1 1 45%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .tariff-cards-container {
    flex-direction: column;
    align-items: center;
  }

  .tariff-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    padding: 20px;
  }

  .tariff-header {
    width: 100%;
    max-width: 300px;
    height: auto;
    padding: 12px;
  }

  .tariff-header-text {
    font-size: 24px;
  }
}

.footer {
  width: 100%;
  min-height: 199px;
  background: #042243;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-wrapper {
  width: 100%;
  max-width: 1760px;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  font-size: 20px;
  color: #fff;
  box-sizing: border-box;
}

/* ЛЕВАЯ КОЛОНКА */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px; /* уменьшено с 6px */
  line-height: 1.4; /* уменьшено */
}

.footer-left p {
  margin: 0;
  font-weight: 400;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.footer-c-icon {
  width: 20px;
  height: 20px;
}

/* ЦЕНТРАЛЬНАЯ КОЛОНКА */
.footer-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 110px;
  width: auto;
}

.footer-title {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 32px;
  color: #fff;
}

/* ПРАВАЯ КОЛОНКА */
.footer-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-email-label {
  font-weight: 600;
  color: #fff;
}

.footer-email {
  font-weight: 400;
  color: #fff;
}

.footer-icon {
  width: 48px;
  height: 48px;
}

@media (max-width: 768px) {
  .footer {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
  }

  .footer-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    align-items: center;     /* Центрируем содержимое */
    text-align: center;      /* Центрируем текст */
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;     /* Центрируем содержимое */
    text-align: center;      /* Центрируем текст */
  }

  .footer-title {
    font-size: 24px;
  }

  .footer-logo {
    height: 80px;
    width: auto;
  }

  .footer-icon {
    width: 36px;
    height: 36px;
  }

  .footer-email-label,
  .footer-email {
    font-size: 16px;
  }

  .footer-copyright {
    font-size: 14px;
    flex-wrap: wrap;
  }

  .footer-c-icon {
    width: 16px;
    height: 16px;
  }
}

.custom-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
}

.custom-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  position: relative;
}

.custom-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
  color: black;
}

.custom-modal-body iframe {
  width: 100%;
  height: 400px;
  border: none;
}
