@font-face {
  font-family: 'Integral CF';
  src: url('../fonts/IntegralCF-Regular.ttf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Book.ttf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Medium.ttf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --container: 1240px;
  --primary: #729d82;
  --ink: #2a2d29;
  --header-offset: 126px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Gotham', 'Georgia', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

section[id],
footer[id] {
  scroll-margin-top: var(--header-offset);
}

#hero {
  scroll-margin-top: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 16px;
}

.advantages__title,
.about__title,
.lessons__title,
.reviews__title,
.program__title,
.tariffs__title,
.documents__title,
.videos__title {
  font-size: 35px;
  font-weight: 500;
  line-height: 30px;
}

.program__title,
.tariffs__title,
.documents__title,
.videos__title {
  line-height: 1.1;
}

.advantages__subtitle,
.lessons__subtitle,
.tariffs__subtitle,
.documents__subtitle,
.videos__subtitle {
  font-size: 16px;
  line-height: 22px;
  opacity: 0.8;
}

.advantages__header,
.lessons__header,
.tariffs__header,
.documents__head,
.videos__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.tariffs__header,
.videos__head {
  gap: 16px;
}

.documents__head {
  gap: 30px;
}

.lessons__header,
.tariffs__header,
.videos__head {
  margin-bottom: 50px;
}

.text-block > * + * {
  margin-top: 12px;
}

.text-block ul,
.text-block ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-block ul {
  list-style: disc;
}

.text-block ol {
  list-style: decimal;
}

.text-block strong,
.text-block b {
  font-weight: 700;
}

.text-block em,
.text-block i {
  font-style: italic;
}

.text-block a {
  color: var(--primary);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 30px;
  z-index: 50;
  padding: 0 20px;
  margin-bottom: -76px;
}

.site-header__bar {
  position: relative;
  max-width: var(--container);
  height: 76px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.site-header__logo {
  font-size: 20px;
  font-family: Georgia;
  color: #6c957c;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
}

.site-header__nav a {
  opacity: 0.8;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--primary);
  opacity: 1;
}

.site-header__nav a.is-active {
  font-weight: 500;
}

.site-header__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__socials a,
.footer-card--socials a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.site-header__socials a {
  background: #729d821a;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.site-header__burger span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.site-header__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.site-header__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.hero__content {
  padding-top: 246px;
  position: relative;
}

.whatsapp__link {
  position: fixed;
  bottom: 35px;
  right: max(16px, calc(50% - var(--container) / 2 + 16px));
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #51b030;
  border-radius: 50%;
  z-index: 10;
}

.hero__title {
  font-size: 70px;
  font-weight: 400;
  line-height: 60px;
  max-width: 550px;
  margin-bottom: 20px;
}

.hero__author {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 30px;
  color: #f5d5a8;
}

.hero__subtitle {
  font-size: 20px;
  margin-bottom: 80px;
}

.hero__btn {
  display: inline-block;
  padding: 16px 70px;
  border-radius: 6px;
  background: #f7b500;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 1.6px;
  color: #1c1c1c;
}

.advantages {
  padding-block: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantages__top {
  width: 100%;
}

.advantages__cards {
  width: 100%;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.adv-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(114, 157, 130, 0.1);
  transition: background-color 0.25s ease;
}

.adv-card:hover {
  background-color: var(--primary);
}

.adv-card:hover .adv-card__num,
.adv-card:hover .adv-card__title,
.adv-card:hover .adv-card__text {
  color: #fff;
}

.adv-card:hover .adv-card__icon {
  filter: brightness(0) invert(1);
}

.adv-card__num {
  position: absolute;
  top: 8px;
  left: 30px;
  font-family: 'Integral CF';
  font-size: 100px;
  line-height: 100px;
  color: #6c957c;
  opacity: 0.05;
}

.adv-card__icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 127px;
  height: 127px;
  object-fit: contain;
  transition: filter 0.25s ease;
}

.adv-card__title {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  line-height: 25px;
  margin-bottom: 16px;
  color: #373636;
}

.adv-card__text {
  position: relative;
  line-height: 18px;
  opacity: 0.8;
}

.cases {
  position: relative;
  padding-block: 20px 120px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.case-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.case-card__info {
  flex: 1 1 300px;
  min-width: 0;
  padding-left: 20px;
}

.case-card__label {
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.case-card__divider {
  display: block;
  width: 100%;
  max-width: 278px;
  height: 1px;
  margin: 18px 0;
  background: #e7e7e7;
}

.case-card__name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}

.case-card__text {
  max-width: 260px;
  line-height: 18px;
  opacity: 0.8;
}

.case-card__media {
  flex: 2 1 500px;
  display: flex;
  gap: 24px;
  max-width: 820px;
}

.case-thumb {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 393 / 250;
  border-radius: 20px;
  overflow: hidden;
}

.case-thumb img,
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-thumb__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
}

.case-thumb__badge--before {
  background: var(--primary);
  color: #fff;
}

.case-thumb__badge--after {
  background: #f7b500;
  color: #2c2c2c;
}

.case-thumb__play,
.video-card__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
}

.case-thumb__play::before,
.video-card__play::before {
  content: '';
  grid-area: 1 / 1;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-card__play::before {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.case-thumb__play::after,
.video-card__play::after {
  content: '';
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  margin-left: 4px;
  border-style: solid;
  border-color: transparent transparent transparent var(--primary);
}

.case-thumb__play::after {
  border-width: 8px 0 8px 13px;
}

.video-card__play::after {
  border-width: 9px 0 9px 15px;
}

.case-thumb:hover .case-thumb__play::before,
.video-card:hover .video-card__play::before {
  transform: scale(1.08);
  background: #fff;
}

.about {
  padding: 100px 0;
  background: var(--primary) url('../img/kobey-bg.png') center / cover no-repeat;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 70px;
}

.about__media {
  flex: 0 0 auto;
  display: flex;
  gap: 30px;
}

.about__media img {
  width: 287px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
}

.about__content {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}

.about__title {
  margin-bottom: 24px;
}

.about__text {
  max-width: 515px;
  line-height: 25px;
  opacity: 0.8;
}

.lessons {
  padding: 120px 0;
  background: #efeae4;
}

.lessons__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: background 0.25s ease;
  cursor: pointer;
}

.lesson-card:hover {
  background: var(--primary);
}

.lesson-card:hover .lesson-card__title,
.lesson-card:hover .lesson-card__desc,
.lesson-card:hover .lesson-card__price {
  color: #fff;
}

.lesson-card:hover .lesson-card__desc {
  opacity: 1;
}

.lesson-card:hover .lesson-card__buy {
  background: #f7b500;
  color: #1c1c1c;
}

.lesson-card__img {
  position: relative;
  overflow: hidden;
}

.lesson-card__img::before {
  display: block;
  content: '';
  padding-top: 53%;
}

.lesson-card__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-card__body {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 30px;
}

.lesson-card__text {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lesson-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 23px;
  margin-bottom: 10px;
}

.lesson-card__desc {
  line-height: 20px;
  opacity: 0.7;
}

.lesson-card__foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lesson-card__price {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #313d65;
}

.lesson-card__buy {
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.lesson-card__buy:hover {
  opacity: 0.9;
}

.program {
  padding-top: 100px;
}

.program__card {
  display: flex;
  align-items: stretch;
  gap: 40px;
  background: rgba(114, 157, 130, 0.08);
  border-radius: 30px;
  overflow: hidden;
}

.program__body {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 50px;
}

.program__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.program__price {
  position: absolute;
  top: 50px;
  right: -100px;
  flex: none;
  padding: 11px 26px;
  border-radius: 23px;
  background: #f7b500;
  color: #373636;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  text-transform: uppercase;
  white-space: nowrap;
}

.program__modules {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.program__media {
  flex: 0 0 389px;
  align-self: stretch;
}

.program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.prog-mod {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: background 0.25s ease;
}

.prog-mod.is-open {
  background: rgba(114, 157, 130, 0.15);
}

.prog-mod__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.prog-mod__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
}

.prog-mod__icon::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.prog-mod__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.prog-mod__toggle {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 14px;
  background: rgba(114, 157, 130, 0.2);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.prog-mod__toggle::before,
.prog-mod__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.prog-mod__toggle::before {
  width: 14px;
  height: 2px;
}

.prog-mod__toggle::after {
  width: 2px;
  height: 14px;
}

.prog-mod.is-open .prog-mod__toggle {
  transform: rotate(45deg);
}

.prog-mod__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.prog-mod.is-open .prog-mod__panel {
  grid-template-rows: 1fr;
}

.prog-mod__panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px 0 76px;
  transition: padding 0.35s ease;
}

.prog-mod.is-open .prog-mod__panel-inner {
  padding-bottom: 20px;
}

.prog-mod__panel-inner ul,
.prog-mod__panel-inner ol {
  padding-left: 18px;
  gap: 8px;
}

.prog-mod__panel-inner li,
.prog-mod__panel-inner p {
  font-size: 12px;
  line-height: 20px;
  opacity: 0.8;
}

.tariffs {
  padding-block: 100px;
}

.tariffs--tight {
  padding-top: 40px;
}

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

.tariff-card {
  flex: 1 1 320px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  transition: border-color 0.25s ease, background 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

.tariff-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(114, 157, 130, 0.18);
  transform: translateY(-4px);
}

.tariff-card__price {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 20px;
}

.tariff-card__price span {
  white-space: nowrap;
}

.tariff-card__lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 18px;
}

.tariff-card__content h4 {
  font-weight: 500;
  color: var(--primary);
}

.tariff-card__content {
  margin-bottom: 18px;
}

.tariff-card__content > * + * {
  margin-top: 18px;
}

.tariff-card__content h4 + p {
  margin-top: 4px;
}

.tariff-card__content h4 + ul {
  margin-top: 12px;
}

.tariff-card__content li,
.tariff-card__content p {
  font-size: 13px;
  line-height: 20px;
  opacity: 0.8;
}

.tariff-card__content strong {
  font-weight: 700;
  opacity: 1;
}

.tariff-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariff-card__btn {
  display: block;
  text-align: center;
  border-radius: 10px;
  letter-spacing: 1px;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.tariff-card__btn--primary {
  padding: 15px;
  background: linear-gradient(90deg, #729d82, #48896e);
  color: #fff;
  font-weight: 500;
}

.tariff-card__btn--primary:hover {
  opacity: 0.92;
}

.tariff-card__btn--outline {
  padding: 13px;
  background: #fff;
  border: 1px solid var(--primary);
  color: #373636;
}

.tariff-card__btn--outline:hover {
  background: rgba(114, 157, 130, 0.08);
}

.reviews {
  --review-h: 520px;
  padding: 90px 0;
  background: var(--primary) url('../img/bg-review.png') center / cover no-repeat;
  overflow: hidden;
}

.reviews__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  margin-bottom: 40px;
}

.reviews__title {
  color: #fff;
}

.reviews__nav {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 12px;
}

.documents__nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.reviews__arrow,
.documents__arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reviews__arrow {
  background: #fff;
}

.documents__arrow {
  background: #efeae4;
}

.reviews__arrow::before,
.documents__arrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.documents__arrow::before {
  border-color: #000;
}

.reviews__arrow--prev::before,
.documents__arrow--prev::before {
  transform: rotate(135deg);
  margin-left: 4px;
}

.reviews__arrow--next::before,
.documents__arrow--next::before {
  transform: rotate(-45deg);
  margin-right: 4px;
}

.reviews__arrow:hover {
  transform: scale(1.06);
}

.reviews__arrow.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
}

.slider {
  max-width: var(--container);
  margin-inline: auto;
  overflow: visible !important;
}

.reviews__slide {
  height: auto;
}

.reviews__slide a,
.documents__slide a {
  display: block;
}

.reviews__slide img {
  width: 100%;
  height: var(--review-h, 520px);
  object-fit: contain;
  border-radius: 20px;
}

.documents {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 120px 0;
  overflow: hidden;
}

.documents__slider {
  position: relative;
}

.documents__slide {
  width: 100%;
}

.videos {
  padding: 100px 0;
  background-color: #efeae4;
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card {
  position: relative;
  aspect-ratio: 393 / 250;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease;
}

.video-card:hover::after {
  background: rgba(0, 0, 0, 0.32);
}

.footer {
  background: var(--primary) url('../img/bg-review.png') center / cover no-repeat;
  color: #fff;
}

.footer__inner {
  max-width: calc(var(--container) + 40px);
  padding-top: 80px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.footer__nav {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 38px;
}

.footer__nav a {
  line-height: 16px;
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer__nav a:hover {
  opacity: 1;
}

.footer__contacts {
  width: 100%;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-card {
  min-height: 70px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-card__icon {
  flex: none;
  display: grid;
  place-items: center;
}

.footer-card__text {
  font-weight: 500;
  line-height: 16px;
  font-style: normal;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

a.footer-card__text:hover {
  opacity: 1;
}

.footer-card--socials {
  justify-content: center;
  gap: 25px;
}

.footer-card--socials a {
  border: 1px solid #fff;
  transition: transform 0.2s ease;
}

.footer-card--socials a:hover {
  transform: translateY(-2px);
}

.footer__bottom {
  background: #6c957c;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__bottom-inner {
  max-width: calc(var(--container) + 40px);
  min-height: 56px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  line-height: 16px;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 100px;
  opacity: 0.8;
}

.footer__legal a {
  transition: opacity 0.2s ease;
}

.footer__legal a:hover {
  opacity: 0.7;
}

.footer__credits {
  opacity: 0.5;
  text-align: right;
}

.modal {
  width: min(500px, 100% - 32px);
  margin: auto;
  border: 1px solid #E9E9E9;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.modal__inner {
  position: relative;
   padding: 80px 100px;
}

.modal__title {
  font-size: 35px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 24px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__input {
  padding: 10px 15px;
  border: 1px solid #E8E8E8;
  border-radius: 5px;
  font-size: 14px;
  font: inherit;
  color: #212121;
  transition: border-color 0.2s ease;
}

textarea.modal__input {
  resize: vertical;
  min-height: 90px;
}

.modal__input::placeholder {
  color: #212121;
  opacity: 0.8;
}

.modal__input:focus {
  outline: none;
  border-color: var(--primary);
}

.modal__btn {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #F7B500;
  color: #1C1C1C;
  font: inherit;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  line-height: 18px;
  transition: opacity 0.2s ease;
}

.modal__btn:hover {
  opacity: 0.92;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(114, 157, 130, 0.12);
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1200px) {
  .hero {
    min-height: 640px;
  }

  .hero__title {
    font-size: 52px;
    line-height: 1.06;
  }

  .hero__subtitle {
    margin-bottom: 48px;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  }

  .site-header__nav.is-open {
    max-height: 70vh;
    padding: 8px 22px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__nav a {
    opacity: 1;
    padding: 13px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-header__nav a:last-child {
    border-bottom: none;
  }

  .site-header__socials {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .advantages {
    padding-block: 90px;
  }

  .advantages__cards,
  .lessons__grid,
  .videos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .case-card {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .case-card__info {
    flex: initial;
    padding-left: 0;
  }

  .case-card__divider,
  .case-card__text {
    max-width: 100%;
  }

  .case-card__media {
    flex: initial;
    max-width: none;
  }

  .videos,
  .about {
    padding: 70px 0;
  }

  .about__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .about__media {
    width: 100%;
    max-width: 604px;
  }

  .about__media img {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    aspect-ratio: 287 / 400;
  }

  .about__text {
    max-width: none;
  }

  .lessons {
    padding: 90px 0;
  }

  .program__card {
    flex-direction: column;
    gap: 0;
  }

  .program__media {
    flex: none;
    order: -1;
    width: 100%;
    height: 260px;
  }

  .program__body {
    padding: 40px;
  }

  .program__price {
    position: static;
  }

  .tariffs {
    padding-top: 70px;
  }

  .tariff-card {
    flex: 1 1 300px;
    max-width: none;
  }

  .footer__contacts {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer__nav {
    gap: 12px 26px;
  }

  .modal__inner {
  position: relative;
   padding: 30px 50px;
}
}

@media (max-width: 768px) {
  .reviews {
    --review-h: 440px;
    padding: 60px 0;
  }

  .reviews__title {
    font-size: 28px;
  }

  .reviews__arrow {
    width: 40px;
    height: 40px;
  }

  .advantages {
    padding-block: 70px;
  }

  .advantages__title {
    font-size: 28px;
    line-height: 34px;
  }

  .advantages__cards {
    margin-top: 36px;
  }

  .hero {
    min-height: 560px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 1.08;
    max-width: 100%;
  }

  .hero__author {
    font-size: 18px;
    margin-bottom: 22px;
  }

  .hero__subtitle {
    font-size: 17px;
    margin-bottom: 40px;
  }

  .footer__inner {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .footer__contacts {
    margin-top: 40px;
  }

  .footer__legal {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .advantages__cards,
  .lessons__grid,
  .videos__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .adv-card {
    min-height: 240px;
    padding: 26px 24px;
  }

  .adv-card__icon {
    width: 96px;
    height: 96px;
  }

  .adv-card__num {
    font-size: 82px;
    line-height: 82px;
  }

  .case-card {
    padding: 20px;
  }

  .case-card__media {
    flex-direction: column;
  }

  .case-thumb {
    flex: none;
    width: 100%;
  }

  .case-card__label {
    font-size: 26px;
  }

  .lessons__title,
  .videos__title {
    font-size: 28px;
    line-height: 34px;
  }

  .program__body {
    padding: 28px 20px;
  }

  .program__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .program__title {
    font-size: 26px;
  }

  .prog-mod__head {
    gap: 12px;
    padding: 14px 16px;
  }

  .prog-mod__panel-inner {
    padding: 0 16px 0 20px;
  }

  .prog-mod.is-open .prog-mod__panel-inner {
    padding-bottom: 18px;
  }

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

  .footer-card {
    padding: 14px 22px;
    gap: 16px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  .footer__credits {
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --header-offset: 116px;
  }

  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding-top: 180px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .hero__author {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .site-header {
    padding: 0 14px;
  }

  .site-header__bar {
    height: 66px;
    padding: 0 18px;
  }

  .site-header__logo {
    font-size: 18px;
  }

  .footer__inner {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .footer__logo {
    font-size: 22px;
  }

  .footer__nav {
    margin-top: 28px;
    gap: 10px 18px;
  }

  .footer__nav a {
    font-size: 13px;
  }

  .footer__contacts {
    margin-top: 32px;
  }
}
