/*
 * Страница президента фонда.
 * Подключать после template.css и custom.css.
 * Все цвета берутся только из утверждённых переменных основного шаблона.
 */

.president-page {
  background: var(--ivory-50);
  color: var(--ink);
  /* font-family: var(--font-sans); */
  overflow: hidden;
}

.president-page *,
.president-page *::before,
.president-page *::after {
  box-sizing: border-box;
}

.president-page h1,
.president-page h2,
.president-page h3,
.president-page blockquote {
  font-family: var(--font-serif);
}

.president-page a {
  text-decoration: none;
}

.president-section {
  padding: clamp(3.75rem, 7vw, 7rem) 0;
  position: relative;
}

.president-section__heading {
  max-width: 920px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}

.president-section__title {
  color: var(--wine-950);
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.president-section__lead {
  color: var(--ink-muted);
  font-size: clamp(.98rem, 1.35vw, 1.15rem);
  line-height: 1.7;
}

.president-prose {
  color: var(--ink);
  font-size: clamp(.98rem, 1.15vw, 1.08rem);
  line-height: 1.78;
}

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

/* 1. Первый экран */
.president-hero {
  background: var(--wine-950);
  color: var(--ivory-50);
  min-height: 760px;
}

.president-hero::before {
  background: linear-gradient(90deg, transparent 0 24%, var(--wine-950) 53% 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.president-hero::after {
  border-bottom: 1px solid var(--brass-line);
  content: "";
  inset: auto 0 0;
  position: absolute;
  z-index: 3;
}

.president-hero__media {
  height: 100%;
  inset: 0 auto 0 0;
  position: absolute;
  width: 48%;
}

.president-hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  width: 100%;
}

.president-hero__quill {
  background-image: url('/static-pages/images/prezident-fonda/hero-quill.webp');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 100%;
  width: 100%;
  opacity: .12;
  position: absolute;
  right: 0;
  top: 0;
  width: 24%;
  z-index: 111;
}

.president-hero__breadcrumbs {
  font-size: .82rem;
  padding-top: 1.35rem;
}

.president-hero__breadcrumbs .breadcrumb-item,
.president-hero__breadcrumbs .breadcrumb-item a,
.president-hero__breadcrumbs .breadcrumb-item.active {
  color: var(--brass-light);
}

.president-hero__breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: var(--brass);
}

/* Контейнер контента: должен лежать ПОВЕРХ фото, пера и градиента
   .president-hero::before (у него z-index: 1) */
.president-hero__inner {
  position: relative;
  z-index: 2;
}

.president-hero__row {
  /* max-height: 870px; */
  /* padding: 2.25rem 0 2rem; */
}

.president-hero__heading {
  margin-bottom: 1.35rem;
}

.president-hero__crest {
  height: auto;
  width: clamp(72px, 7.2vw, 108px);
}

.president-hero__eyebrow {
  color: var(--brass-light);
  font-family: var(--font-serif);
  font-size: clamp(.9rem, 1.15vw, 1.12rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.president-hero__title {
  color: var(--ivory-50)!important;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .94;
}

.president-hero__role {
  color: var(--ivory-100);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.45;
  margin: 0 0 1.2rem;
  max-width: 660px;
}

.president-hero__rule {
  background: var(--brass);
  display: block;
  height: 1px;
  margin-bottom: 1.2rem;
  width: 58%;
}

.president-hero__intro {
  color: var(--ivory-100);
  font-size: clamp(.9rem, 1.04vw, 1rem);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.president-hero__quote {
  color: var(--brass-light);
  font-size: clamp(1rem, 1.55vw, 1.42rem);
  font-style: italic;
  line-height: 1.55;
  max-width: 680px;
}

.president-hero__actions {
  margin-top: 1.65rem;
}

.president-btn {
  border-radius: 0;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .035em;
  min-width: 190px;
  padding: .85rem 1.35rem;
  text-transform: uppercase;
}

.president-btn--outline {
  border: 1px solid var(--brass);
  color: var(--brass-light);
}

.president-btn--outline:hover,
.president-btn--outline:focus-visible {
  background: var(--brass);
  color: var(--wine-950);
}

.president-btn--gold {
  background: var(--brass-light);
  border: 1px solid var(--brass-light);
  color: var(--wine-950);
}

.president-btn--gold:hover,
.president-btn--gold:focus-visible {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--wine-950);
}

.president-hero__facts {
  border-top: 1px solid var(--brass-line);
  max-width: 650px;
  /* padding: 1.1rem 0 1.4rem; */
}

.president-hero__fact {
  align-items: center;
  display: flex;
  gap: .9rem;
  padding: .55rem 1.2rem;
}

.president-hero__fact + .president-hero__fact {
  border-left: 1px solid var(--brass-line);
}

.president-hero__fact-icon {
  align-items: center;
  color: var(--brass-light);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.75rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.president-hero__fact strong,
.president-hero__fact small {
  display: block;
}

.president-hero__fact strong {
  color: var(--brass-light);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.president-hero__fact small {
  color: var(--ivory-100);
  font-size: .75rem;
  margin-top: .2rem;
}

/* 2. Обращение */
.president-address {
  background: var(--ivory-50);
}

.president-address::before {
  background-image: url('/static-pages/images/prezident-fonda/watermark-estate.webp');
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 2rem;
  content: "";
  height: 180px;
  left: 3vw;
  opacity: .45;
  position: absolute;
  width: 360px;
}

.president-quote-card {
  background: var(--ivory-100);
  border: 1px solid var(--line);
  color: var(--wine-950);
  display: flex;
  flex-direction: column;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 600;
  justify-content: flex-start;
  line-height: 1.7;
  min-height: 330px;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.president-quote-card__mark {
  color: var(--brass);
  font-size: 5rem;
  line-height: .65;
  margin-bottom: 1.2rem;
}

.president-signature {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.35rem;
}

.president-signature img {
  height: 90px;
  object-fit: contain;
  width: 190px;
}

.president-signature p {
  color: var(--ink-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.president-signature strong,
.president-signature small {
  display: block;
}

.president-signature strong {
  color: var(--wine-950);
  font-family: var(--font-serif);
  font-size: .9rem;
  margin-bottom: .25rem;
}

/* 3. Путь */
.president-path {
  background: var(--ivory-50);
  border-top: 1px solid var(--line);
}

.president-family {
  background: var(--ivory-100);
  border-left: 4px solid var(--brass);
  color: var(--ink);
  font-size: clamp(.96rem, 1.08vw, 1.06rem);
  line-height: 1.76;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.president-family::after {
  background-image: url('/static-pages/images/prezident-fonda/watermark-turgenev.webp');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  content: "";
  height: 70%;
  opacity: .38;
  position: absolute;
  right: 0;
  width: 58%;
}

.president-family > * {
  position: relative;
  z-index: 1;
}

.president-family__title {
  color: var(--wine-950);
  font-size: clamp(1.75rem, 2.5vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.president-family__quote {
  border-left: 3px solid var(--brass);
  color: var(--wine-950);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  font-style: italic;
  line-height: 1.58;
  margin-top: 1.5rem;
  padding-left: 1.35rem;
}

/* 4. Проекты */
.president-projects {
  background: var(--ivory-100);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.president-project-card {
  background: var(--ivory-50);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}

.president-project-card:hover {
  border-color: var(--brass);
  transform: translateY(-4px);
}

.president-project-card__photo {
  aspect-ratio: 20 / 7;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.president-project-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem 1.2rem 1.25rem;
}

.president-project-card__heading {
  margin: -.15rem 0 .85rem;
}

.president-project-card__icon {
  align-items: center;
  background: var(--ivory-50);
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-dark);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.president-project-card--green .president-project-card__icon {
  color: var(--ink-muted);
}

.president-project-card h3 {
  color: var(--wine-950);
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  font-weight: 700;
  line-height: 1.2;
}

.president-project-card--green h3 {
  color: var(--ink-muted);
}

.president-project-card p {
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.62;
  margin-bottom: 1.25rem;
}

.president-card-link {
  align-self: flex-start;
  border: 1px solid var(--brass);
  color: var(--brass-dark);
  font-size: .78rem;
  margin-top: auto;
  padding: .48rem .75rem;
}

.president-card-link:hover,
.president-card-link:focus-visible {
  background: var(--wine-950);
  border-color: var(--wine-950);
  color: var(--ivory-50);
}

/* 5. Ответственность */
.president-responsibilities {
  background: var(--ivory-50);
  padding-bottom: 3.75rem;
  padding-top: 3.75rem;
}

.president-responsibilities__grid {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

/* Сетка row-cols-* в Bootstrap идёт только до 6 колонок, поэтому
   класса row-cols-xl-7 не существует и он игнорируется. Семь колонок
   на десктопе задаём сами. */
@media (min-width: 1200px) {
  .president-responsibilities__grid > .col {
    flex: 0 0 auto;
    width: calc(100% / 7);
  }
}

.president-responsibility {
  height: 100%;
  padding: 1.5rem .85rem;
  text-align: center;
}

.president-responsibilities__grid .col + .col .president-responsibility {
  border-left: 1px solid var(--line);
}

.president-responsibility__icon {
  align-items: center;
  color: var(--brass-dark);
  display: inline-flex;
  font-size: 1.8rem;
  height: 34px;
  justify-content: center;
  margin-bottom: .85rem;
  width: 38px;
}

.president-responsibility h3 {
  color: var(--wine-950);
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .55rem;
}

.president-responsibility p {
  color: var(--ink);
  font-size: .72rem;
  line-height: 1.52;
  margin: 0;
}

/* 6. Принципы */
.president-principles {
  background: var(--ivory-100);
  border-top: 1px solid var(--line);
  padding-bottom: 0;
  padding-top: 0;
}

.president-principles::after {
  background-image: url('/static-pages/images/prezident-fonda/watermark-architecture.webp');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  content: "";
  height: 90%;
  opacity: .42;
  position: absolute;
  right: 0;
  width: 26%;
}

.president-principles__panel {
  position: relative;
  z-index: 1;
}

.president-principles__intro {
  background-color: var(--ivory-50);
  /* background-image: url('/static-pages/images/prezident-fonda/principles-pen.webp'); */
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: 58% auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 480px;
  padding: clamp(2rem, 4vw, 4rem);
}

.president-principles__intro h2 {
  color: var(--wine-950);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 1.4rem;
}

.president-principles__intro p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 280px;
}

.president-principles__list {
  padding: clamp(2rem, 4vw, 4rem);
}

.president-principles__list li {
  align-items: flex-start;
  display: flex;
  gap: 1.2rem;
  padding: .7rem 0;
}

.president-principles__list li > span {
  color: var(--brass);
  flex: 0 0 48px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
}

.president-principles__list h3 {
  color: var(--wine-950);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .2rem;
  text-transform: uppercase;
}

.president-principles__list p {
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.55;
  margin: 0;
}

/* 7. Цифры */
.president-facts {
  background: linear-gradient(90deg, var(--wine-950), var(--wine-900), var(--wine-950));
  color: var(--ivory-50);
  padding: 1.6rem 0 2.2rem;
  position: relative;
}

.president-facts__title {
  align-items: center;
  color: var(--ivory-50)!important;
  display: flex;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  gap: 1.1rem;
  justify-content: center;
  margin-bottom: 1.4rem;
  text-align: center;
}

.president-facts__title > i {
  color: var(--brass);
  font-size: .72em;
}

.president-fact {
  align-items: center;
  display: flex;
  gap: 1rem;
  height: 100%;
  justify-content: center;
  padding: 1rem 1.6rem;
}

.president-facts .col + .col .president-fact {
  border-left: 1px solid var(--brass-line);
}

.president-fact__icon {
  align-items: center;
  color: var(--brass-light);
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 2rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.president-fact p,
.president-fact strong,
.president-fact span {
  display: block;
  margin: 0;
}

.president-fact strong {
  color: var(--brass-light);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.12;
}

.president-fact span {
  color: var(--ivory-100);
  font-size: .72rem;
  line-height: 1.4;
  margin-top: .25rem;
  max-width: 220px;
}
.president-fact i {
  color: var(--ivory-100);
  font-size: 1.72rem;
  line-height: 1.4;
  margin-top: .25rem;
  max-width: 220px;
}


/* 8. Завершающий блок */
.president-closing {
  background: var(--ivory-50);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  padding-top: clamp(3rem, 5vw, 5rem);
}

.president-closing h2 {
  color: var(--wine-950);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.president-message,
.president-links,
.president-faq {
  padding: 0 clamp(1.2rem, 2.6vw, 2.6rem);
}

.president-links,
.president-faq {
  border-left: 1px solid var(--line);
}

.president-message {
  /* background-image: url('/static-pages/images/prezident-fonda/message-inkwell.webp'); */
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 86px auto;
  min-height: 310px;
  padding-left: 0;
  position: relative;
}

.president-message > p,
.president-links > p {
  color: var(--ink-muted);
  font-size: .9rem;
  line-height: 1.62;
}

.president-message blockquote {
  color: var(--brass-dark);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-style: italic;
  line-height: 1.55;
  margin: 1.25rem 0 0 4.5rem;
}

.president-message__signature {
  bottom: -.5rem;
  height: 90px;
  object-fit: contain;
  position: absolute;
  right: 1rem;
  /* width: 155px; */
}

.president-links__grid {
  margin-top: 1.4rem;
}

.president-links__grid a {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--wine-950);
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  gap: .7rem;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  min-height: 100px;
  padding: .8rem;
  text-align: center;
  text-transform: uppercase;
}

.president-links__grid a > i {
  color: var(--brass-dark);
  font-size: 1.5rem;
}

.president-links__grid a:hover,
.president-links__grid a:focus-visible {
  border-color: var(--brass);
  color: var(--brass-dark);
}

.president-faq__list {
  border-top: 1px solid var(--line);
}

.president-faq details {
  border-bottom: 1px solid var(--line);
}

.president-faq summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: .84rem;
  gap: .8rem;
  justify-content: space-between;
  list-style: none;
  padding: .75rem 0;
}

.president-faq summary::-webkit-details-marker {
  display: none;
}

.president-faq summary span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brass-dark);
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  transition: transform .2s ease;
}

.president-faq details[open] summary span {
  transform: rotate(45deg);
}

.president-faq details p {
  color: var(--ink-muted);
  font-size: .8rem;
  line-height: 1.55;
  margin: 0;
  padding: 0 2rem .85rem 0;
}

/* Адаптивность */
@media (max-width: 1199.98px) {
  .president-hero {
    min-height: 720px;
  }

  .president-hero__media {
    opacity: .62;
    width: 54%;
  }

  .president-hero::before {
    background: linear-gradient(90deg, transparent 0 20%, var(--wine-950) 50% 100%);
  }

  .president-hero__quill {
    opacity: .36;
  }

  .president-responsibilities__grid .col:nth-child(5) .president-responsibility {
    border-left: 0;
  }

  .president-links {
    border-left: 0;
  }

  .president-faq {
    border-left: 0;
    margin-top: 1rem;
  }
}

@media (max-width: 991.98px) {
  .president-hero {
    min-height: auto;
  }

  .president-hero__media {
    height: 540px;
    inset: 0 0 auto;
    opacity: 1;
    width: 100%;
  }

  .president-hero__media img {
    object-position: left top;
  }

  .president-hero::before {
    background: linear-gradient(180deg, transparent 0 23%, var(--wine-950) 46% 100%);
  }

  .president-hero__quill {
    height: 470px;
    opacity: .35;
    width: 38%;
  }

  .president-hero__breadcrumbs {
    position: relative;
    z-index: 2;
  }

  .president-hero__row {
    min-height: 0;
    padding-top: 365px;
  }

  .president-hero__facts {
    max-width: none;
  }

  .president-address::before {
    display: none;
  }

  .president-quote-card {
    min-height: 0;
  }

  .president-principles__intro {
    min-height: 340px;
  }

  .president-principles__list {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 767.98px) {
  .president-section {
    padding-bottom: 3.4rem;
    padding-top: 3.4rem;
  }

  .president-hero__media {
    height: 430px;
  }

  .president-hero__media img {
    object-position: 34% top;
  }

  .president-hero::before {
    background: linear-gradient(180deg, transparent 0 18%, var(--wine-950) 38% 100%);
  }

  .president-hero__quill {
    height: 380px;
    width: 48%;
  }

  .president-hero__row {
    padding-top: 285px;
  }

  .president-hero__title {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .president-hero__crest {
    width: 68px;
  }

  .president-hero__fact {
    padding-left: .7rem;
    padding-right: .7rem;
  }

  .president-hero__fact + .president-hero__fact {
    border-left: 0;
  }

  .president-signature {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .president-signature img {
    margin-left: auto;
  }

  .president-responsibilities__grid .col:nth-child(odd) .president-responsibility {
    border-left: 0;
  }

  .president-responsibilities__grid .col:nth-child(even) .president-responsibility {
    border-left: 1px solid var(--line);
  }

  .president-facts .col:nth-child(odd) .president-fact {
    border-left: 0;
  }

  .president-message,
  .president-links,
  .president-faq {
    padding-left: 0;
    padding-right: 0;
  }

  .president-message {
    min-height: 340px;
  }
}

@media (max-width: 575.98px) {
  .president-hero__media {
    height: 385px;
  }

  .president-hero__quill {
    display: none;
  }

  .president-hero__breadcrumbs {
    font-size: .72rem;
  }

  .president-hero__row {
    padding-top: 250px;
  }

  .president-hero__heading {
    align-items: flex-start !important;
  }

  .president-hero__crest {
    margin-top: .4rem;
    width: 56px;
  }

  .president-btn {
    width: 100%;
  }

  .president-hero__facts {
    padding-bottom: 1.2rem;
  }

  .president-hero__fact {
    border-top: 1px solid var(--brass-line);
    padding: .85rem 0;
  }

  .president-quote-card {
    padding: 1.5rem;
  }

  .president-family {
    padding: 1.5rem;
  }

  .president-principles__intro {
    min-height: 310px;
    padding: 2rem 1.5rem;
  }

  .president-principles__list {
    padding: 2rem 1.25rem;
  }

  .president-principles__list li {
    gap: .75rem;
  }

  .president-principles__list li > span {
    flex-basis: 38px;
    font-size: 1.45rem;
  }

  .president-facts .col + .col .president-fact {
    border-left: 0;
    border-top: 1px solid var(--brass-line);
  }

  .president-fact {
    justify-content: flex-start;
    padding-left: 0;
  }

  .president-links__grid a {
    min-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .president-page *,
  .president-page *::before,
  .president-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
