/* === About === */
.about__inner {
  display: flex;
  align-items: flex-start;
}

.about__text {
  flex: 1 1 auto;
  max-width: 680px;
  margin-right: 64px;
}

.about__lead {
  margin-top: 24px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.5;
}

.about__desc {
  margin-top: 20px;
  color: #4b5563;
  font-size: 17px;
}

.about__desc p {
  margin-bottom: 14px;
}

.about__desc p:last-child {
  margin-bottom: 0;
}

.about__facts {
  flex: 0 0 340px;
  margin-top: 50px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--soft);
}

.about__fact {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.about__fact:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.about__fact-value {
  display: block;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.about__fact-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* === Program === */
.program__list {
  display: flex;
  align-items: stretch;
  column-gap: 27px;
}

.program__item {
  flex: 0 1 calc((100% - 177px) / 3);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.program__media {
  position: relative;
  overflow: hidden;
  padding: 0 0 70%;
  background: var(--soft);
}

.program__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program__body {
  padding: 26px 28px 32px;
}

.program__break {
  position: relative;
  display: flex;
  flex: 0 0 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.program__break::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-left: 2px dashed var(--line);
}

.program__break-label,
.program__break-value {
  position: relative;
  background: var(--bg);
}

.program__break-cup {
  position: relative;
  display: flex;
  justify-content: center;
  width: 62px;
  margin-bottom: 12px;
  padding: 10px 0;
  background: var(--bg);
  color: var(--accent);
}

.program__break-cup svg {
  display: block;
  width: 40px;
  height: 44px;
  overflow: visible;
}

.program__break-label {
  margin-bottom: 10px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-transform: uppercase;
}

.program__break-value {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.program__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.program__time {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.program__title {
  margin-bottom: 10px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}

.program__text {
  color: var(--muted);
  font-size: 16px;
}

/* === Benefits === */
.benefits {
  background: var(--soft);
}

.benefits__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 27px;
}

.benefits__item {
  position: relative;
  display: flex;
  flex: 0 1 calc(33.333% - 18px);
  flex-direction: column;
  margin-bottom: 58px;
  padding: 48px 28px 28px;
  border-radius: var(--radius);
  background: #fff;
}

.benefits__number {
  position: absolute;
  top: -46px;
  left: 28px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 88px;
  font-weight: 600;
  line-height: 1;
}

.benefits__title {
  margin-bottom: 10px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.benefits__text {
  color: var(--muted);
  font-size: 15px;
}

/* === Price === */
.price {
  background: var(--dark);
  color: #fff;
}

.price .section__title {
  color: #fff;
}

.price .section__kicker {
  color: #ffa15c;
}

.price__head {
  margin-bottom: 44px;
  text-align: center;
}

.price__steps {
  position: relative;
  isolation: isolate;
  display: flex;
  column-gap: 24px;
  margin-bottom: 44px;
  --step_dot-a: calc(100% / 6 + 30px);
  --step_dot-b: calc(100% / 2 - 48px);
  --step_dot-c: calc(100% / 2 + 38px);
  --step_dot-d: calc(100% * 5 / 6 - 40px);
}

.price__steps::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 30px;
  left: calc(100% / 6);
  width: calc(100% / 3 * 2);
  border-top: 2px dashed rgba(255, 255, 255, 0.24);
}

.price__steps::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 26px;
  left: var(--step_dot-a);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.price__step {
  display: flex;
  flex: 1 1 calc(33.333% - 16px);
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  text-align: center;
}

.price__step-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border: 2px solid rgba(232, 89, 12, 0.5);
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.price__step-text {
  max-width: 340px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.45;
}

.price__step-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.price__step-link:hover {
  color: #ff7a33;
}

.price__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
}

.price__card {
  display: flex;
  flex: 0 1 460px;
  flex-direction: column;
  padding: 32px 40px 34px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.price__card-title {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.price__value {
  display: flex;
  align-items: baseline;
  margin: 10px 0 6px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.price__currency {
  margin-left: 8px;
  font-size: 36px;
}

.price__caption {
  color: var(--muted);
  font-size: 15px;
}

.price__list {
  margin-top: 24px;
  margin-bottom: 28px;
}

.price__item {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
  color: #4b5563;
  font-size: 16px;
}

.price__item::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.price__button {
  width: 100%;
  margin-top: auto;
  padding-top: 17px;
  padding-bottom: 17px;
}

.price__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

/* === No info === */
.noinfo__inner {
  display: flex;
  align-items: center;
}

.noinfo__text {
  flex: 1 1 auto;
}

.noinfo__list {
  margin-top: 32px;
}

.noinfo__item {
  position: relative;
  margin-bottom: 26px;
  padding-left: 30px;
}

.noinfo__item:last-child {
  margin-bottom: 0;
}

.noinfo__item::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.noinfo__item-title {
  margin-bottom: 8px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.noinfo__item-text {
  color: var(--muted);
  font-size: 16px;
}

.noinfo__aside {
  display: flex;
  flex: 0 0 320px;
  flex-direction: column;
  align-items: center;
  margin-right: 64px;
}

.noinfo__image {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* === Tasks === */
.tasks__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.tasks__inner {
  display: flex;
  align-items: flex-start;
  column-gap: 30px;
}

.tasks__nav {
  display: flex;
  flex: 0 0 400px;
  flex-direction: column;
  width: 400px;
}

.tasks__tab {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  height: 110px;
  margin-bottom: 14px;
  padding: 16px 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #16243a;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.tasks__tab:last-child {
  margin-bottom: 0;
}

.tasks__tab-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tasks__tab::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 28, 0.88) 0%, rgba(9, 17, 28, 0.7) 40%, rgba(9, 17, 28, 0.3) 72%, rgba(9, 17, 28, 0.1) 100%);
}

.tasks__tab-title {
  position: relative;
  z-index: 3;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.tasks__tab-count {
  position: relative;
  z-index: 3;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

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

.tasks__tab-check {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tasks__tab-check svg {
  display: block;
  width: 16px;
  height: 16px;
}

.tasks__tab.is_active .tasks__tab-check {
  opacity: 1;
  transform: none;
}

.tasks__panels {
  width: calc(100% - 430px);
}

.tasks__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.tasks__item {
  display: flex;
  flex: 0 1 calc(50% - 12px);
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tasks__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-right: 20px;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
}

.tasks__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.tasks__head {
  display: flex;
  align-items: baseline;
}

.tasks__number {
  margin-right: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.tasks__title {
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.tasks__text {
  margin-top: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.tasks__result {
  display: flex;
  align-items: flex-start;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--soft);
}

.tasks__result-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 2px 8px 0 0;
  color: var(--accent);
}

.tasks__result-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.tasks__result-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tasks__result-text {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* === FAQ === */
.faq {
  background: var(--soft);
}

.faq__list {
  padding: 0 32px;
  border-radius: var(--radius);
  background: #fff;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
}

.faq__question-text {
  padding-right: 24px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.faq__icon {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--soft);
  transition: background-color 0.2s;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1px;
  background: var(--dark);
}

.faq__icon::before {
  width: 11px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 11px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

.faq__question[aria-expanded="true"] .faq__icon {
  background: var(--accent);
}

.faq__question[aria-expanded="true"] .faq__icon::before,
.faq__question[aria-expanded="true"] .faq__icon::after {
  background: #fff;
}

.faq__question[aria-expanded="true"] .faq__icon::after {
  opacity: 0;
}

.faq__answer {
  padding: 0 56px 24px 0;
}

.faq__answer-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* === Contacts === */
.contacts__inner {
  display: flex;
}

.contacts__info {
  flex: 0 0 380px;
  margin-right: 48px;
}

.contacts__address {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.contacts__text {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
}

.contacts__route {
  display: flex;
  width: fit-content;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contacts__route:hover {
  color: var(--accent-dark);
}

.contacts__phone {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--dark);
  font-size: 26px;
  font-weight: 800;
}

.contacts__social {
  margin-bottom: 20px;
}

.contacts__note {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.contacts__map {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.contacts__canvas {
  display: block;
  width: 100%;
  height: 440px;
}

.contacts__map-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.contacts__map-link:hover {
  background: #fff;
}

/* === Footer === */
.footer {
  padding: 64px 0 28px;
  background: var(--dark);
  color: #fff;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  flex: 0 0 300px;
  margin-right: 56px;
}

.footer__logolink {
  display: inline-flex;
  color: #fff;
}

.footer__logo {
  display: block;
  width: auto;
  height: 54px;
}

.footer__slogan {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.45;
}

.footer__social {
  margin-top: 22px;
}

.footer__social .social__link {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer__social .social__link:hover {
  background: var(--accent);
}

.footer__col {
  flex: 0 1 auto;
  margin-right: 56px;
}

.footer__col:last-child {
  margin-right: 0;
}

.footer__col_contacts {
  flex: 0 0 300px;
  margin-left: auto;
}

.footer__title {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__item {
  margin-bottom: 10px;
}

.footer__item:last-child {
  margin-bottom: 0;
}

.footer__link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

.footer__address {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.footer__phone {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.footer__note {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.45;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.footer__policy {
  text-decoration: underline;
  transition: color 0.2s;
}

.footer__policy:hover {
  color: #fff;
}

/* === Popup === */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
}

.popup[hidden] {
  display: none;
}

body.is_locked {
  overflow: hidden;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 17, 28, 0.72);
}

.popup__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  padding: 40px;
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--dark);
  cursor: pointer;
  transition: background-color 0.2s;
}

.popup__close:hover {
  background: #eee8e2;
}

.popup__cross {
  display: block;
}

.popup__title {
  margin-bottom: 10px;
  padding-right: 40px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
}

.popup__subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.popup__success-title {
  margin-bottom: 10px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
}

.popup__success-text {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}

.popup__success-button {
  width: 100%;
}

/* === Form === */
.form__field {
  display: block;
  margin-bottom: 16px;
}

.form__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.15);
}

.form__input.is_error {
  border-color: #e03131;
}

.form__check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  cursor: pointer;
}

.form__checkbox {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0;
  accent-color: var(--accent);
}

.form__checktext {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form__link {
  color: var(--accent);
  text-decoration: underline;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}

.form__submit {
  width: 100%;
  padding: 17px 32px;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body.is_locked {
  overflow: hidden;
}

/* === Page === */
.page__article {
  max-width: 820px;
}

.page__title {
  margin-bottom: 24px;
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.page__content {
  color: #4b5563;
  font-size: 17px;
}

.page__content p {
  margin-bottom: 16px;
}

.page__content a {
  color: var(--accent);
  text-decoration: underline;
}
