﻿/* Shared page styles are connected by MasterPage.master. */

.promo-page {
  --subject-hero-image: url("/img/landing-heroes/podgotovka-k-vpr-hero.jpg");
}

.promo-page .subject-hero__title {
  max-width: 720px;
}

.promo-page .subject-final-cta {
  margin-top: 0;
}

.promo-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.promo-fit-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  min-height: 170px;
  padding: 28px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 57, 166, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.86)),
    #ffffff;
  box-shadow: 0 18px 46px rgba(0, 57, 166, 0.08);
}

.promo-fit-card::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(0, 57, 166, 0.08);
  pointer-events: none;
}

.promo-fit-card span {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #0039a6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.promo-fit-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #000000;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.24;
}

.promo-fit-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.62;
}

.promo-seo-section {
  background: #f4f7ff;
}

.promo-related-section {
  background: #f4f7ff;
  padding-top: 76px;
}

.promo-related-section .subject-section__head {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.promo-related-section__head {
  margin-bottom: 34px;
}

.promo-related-section__head h2 {
  margin: 0 0 14px;
  color: #000000;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.12;
}

.promo-related-section__head p {
  max-width: 620px;
  margin: 0 auto;
  color: #344054;
  font-size: 18px;
  line-height: 1.55;
}

.promo-seo-section .subject-section__head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.promo-seo-section .subject-section__head h2,
.promo-related-section .subject-section__head h2 {
  text-align: center;
}

.promo-seo__content {
  max-width: 920px;
  margin: 0 auto;
  color: #000000;
  font-size: 17px;
  line-height: 1.75;
}

.promo-seo__content.is-collapsed {
  position: relative;
  max-height: 7em;
  overflow: hidden;
}

.promo-seo__content.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, rgba(244, 247, 255, 0), #f4f7ff 88%);
  pointer-events: none;
}

.promo-seo__more {
  display: block;
  min-height: 44px;
  margin: 18px auto 0;
  padding: 0 22px;
  border: 1.5px solid rgba(0, 57, 166, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #0039a6;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.promo-seo__more:hover,
.promo-seo__more:focus-visible {
  border-color: #0039a6;
  background: #0039a6;
  color: #ffffff;
}

.promo-seo__more:focus-visible {
  outline: 3px solid rgba(0, 57, 166, 0.16);
  outline-offset: 3px;
}

.promo-seo__content h2,
.promo-seo__content h3 {
  margin: 30px 0 12px;
  color: #000000;
  font-weight: 900;
  line-height: 1.2;
}

.promo-seo__content h2:first-child,
.promo-seo__content h3:first-child {
  margin-top: 0;
}

.promo-seo__content p {
  margin: 0 0 16px;
}

.promo-seo__content ul,
.promo-seo__content ol {
  margin: 14px 0 18px;
  padding-left: 24px;
}

.promo-seo__content ul {
  list-style-type: disc;
}

.promo-seo__content li + li {
  margin-top: 8px;
}

.promo-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.promo-related__column {
  padding: 26px;
  border: 1.5px solid rgba(0, 57, 166, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 57, 166, 0.06);
}

.promo-related__column--empty {
  background: #f8fbff;
}

.promo-related__column h2 {
  margin: 0 0 18px;
  color: #000000;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.promo-related__column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promo-related__empty {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.promo-related__column a {
  position: relative;
  display: block;
  padding: 12px 38px 12px 14px;
  border: 1px solid rgba(0, 57, 166, 0.1);
  border-radius: 12px;
  background: #f8fbff;
  color: #0039a6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.promo-related__column a::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: currentColor;
  font-weight: 900;
}

.promo-related__column a:hover,
.promo-related__column a:focus-visible {
  border-color: rgba(213, 43, 30, 0.22);
  background: #ffffff;
  color: #d52b1e;
  text-decoration: none;
}

@media screen and (max-width: 680px) {
  .promo-fit-grid,
  .promo-fit-card,
  .promo-related {
    grid-template-columns: 1fr;
  }

  .promo-fit-card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .promo-seo__content {
    font-size: 15px;
  }

  .promo-related-section {
    padding-top: 52px;
  }

  .promo-related-section__head h2 {
    font-size: 30px;
  }

  .promo-related-section__head p {
    font-size: 16px;
  }

  .promo-related__column {
    padding: 20px;
    border-radius: 16px;
  }
}
