html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  border: 0;
  margin: 0;
  padding: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--black-500);
  background: #fff;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  font-family: "Times New Roman", serif;
  background: #eeeae4;
}

.app {
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  font-family: "Times New Roman", serif;
  display: flex;
  overflow: hidden;
}

.app header, .app footer, .app content {
  width: 100%;
}

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

* {
  box-sizing: border-box;
}

.dark {
  background: var(--black-500);
}

.dark > * {
  color: #fff;
}

.blue {
  background: var(--blue-500);
}

.hover:hover {
  opacity: .7;
  transition: all .2s;
}

button {
  font: inherit;
  cursor: pointer;
  background: unset;
  border: unset;
  padding: unset;
}

.home_text {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.wrapper {
  width: 100%;
}

.flex {
  display: flex;
}

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

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.withPadding {
  padding: 0 clamp(20px, 4vw, 48px);
}

main {
  flex: 1;
  width: 100%;
  min-width: 0;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 14px 20px;
  background: #fff;
  color: var(--blue-500);
  z-index: 100;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
}

.page-eyebrow {
  margin-bottom: 20px;
  color: var(--blue-500);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.button {
  color: #fff;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 100%;
  width: 343px;
  min-height: 56px;
  padding: 16px 24px;
  line-height: 1.4;
  font-size: 16px;
  transition: all .1s;
  position: relative;
  overflow: hidden;
}

/* .button:after {
  content: "";
  filter: blur(30px);
  background: #ffffffb3;
  border-radius: 800px;
  width: 100%;
  height: 253px;
  position: absolute;
  top: 67px;
  left: 0;
} */

.button.blue {
  background: var(--blue-500);
}

.button:hover {
  opacity: .8;
}

.subtitle {
  color: var(--black-500);
  text-align: center;
  font-size: 40px;
}

:root {
  --black-500: #313131;
  --blue-500: #c2d5aa;
  --yellow-500: #f9f871;
  --black-400: #313131cc;
  --black-300: #31313180;
  --black-200: #31313133;
  --black-100: #f6f6f6;
  --blue-400: #8290ff;
  --blue-300: #b0b7f1;
  --font-family: "Times New Roman", serif;
  --second-family: "Times New Roman", serif;
  --third-family: "Times New Roman", serif;
}

/* @font-face {
  font-family: Lack;
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/lack-regular.otf") format("opentype"), url("../fonts/lack-regular.woff") format("woff");
}

@font-face {
  font-family: Manrope;
  font-weight: 400;
  font-style: normal;
  src: url("../fonts/manrope-regular.ttf") format("truetype");
}

@font-face {
  font-family: SF Pro;
  font-weight: "medium";
  font-style: normal;
  src: url("../fonts/SF-Pro-Display-Medium.otf") format("opentype");
}

@font-face {
  font-family: SF Pro;
  font-weight: "semibold";
  font-style: normal;
  src: url("../fonts/SF-Pro-Display-Semibold.otf") format("opentype");
} */

/* Shared navigation: the desktop breakpoint also lives in main.js. */
.header {
  padding: 24px 0 30px;
  background: #eeeae4;
}

.header > .container:first-child {
  gap: 24px;
  width: calc(100% - 32px);
  max-width: 1288px;
  padding: 24px 30px;
  border: 1px solid #fff3;
  border-radius: 8px;
  background: #fff;
}

.header__nav ul {
  align-items: center;
  gap: 26px;
}

.header__nav a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  white-space: nowrap;
}

.header__nav a[aria-current="page"],
.sidebar__item a[aria-current="page"] {
  color: var(--blue-500);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.header__location {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.4;
}

.header__location img {
  flex: 0 0 18px;
  width: 18px;
}

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

.header__social {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  transition: background-color .2s;
}

.header__social:hover {
  background: #f3f1ec;
}

.header__social img {
  filter: brightness(.25);
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header__phone {
  font-size: 19px;
  white-space: nowrap;
}

.header__mob,
.header__socials.special,
.header__mobile-block {
  display: none;
}

.header__mob {
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
}

.header__mob img {
  filter: brightness(.25);
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .header > .container:first-child {
    backdrop-filter: blur(70px);
  }
}

.about__text_last {
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.45;
}

.documents-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 48px);
}

.documents-list > br {
  display: none;
}

.list-element {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 1199px) {
  .header {
    padding: 16px 0 0;
  }

  .header > .container:first-child {
    width: calc(100% - 40px);
    max-width: 850px;
    padding: 12px 20px;
    gap: 20px;
  }

  .header__nav,
  .header__location,
  .header__socials {
    display: none;
  }

  .header__mob,
  .header__socials.special {
    display: flex;
  }

  .header__phone {
    margin-right: auto;
  }

  .header__mobile-block {
    display: flex;
    justify-content: center;
    padding: 12px 20px 16px;
  }

  .header__location.special {
    display: flex;
    max-width: none;
    font-size: 14px;
  }
}

@media (max-width: 599px) {
  .header > .container:first-child {
    padding: 8px 12px;
    gap: 12px;
  }

  .header__phone {
    font-size: 21px;
  }

  .header__socials.special {
    display: none;
  }

  .header__location.special {
    max-width: 310px;
    font-size: 13px;
  }

  .documents-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 28px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .documents-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer {
  margin-top: auto;
  padding: 0 0 28px;
  background: #eeeae4;
}

.footer .container {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr);
  gap: 48px;
  max-width: 1120px;
  padding: 24px 8px 0;
  border-top: 1px solid #c7c2b9;
}

.footer__occupation {
  font-size: 29px;
  line-height: 1.2;
}

.footer__name {
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.3;
}

.footer__contacts {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 28px;
  margin-bottom: 20px;
}

.footer__phone,
.footer__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.footer__phone {
  white-space: nowrap;
}

.footer__phone img,
.footer__address img {
  flex: 0 0 18px;
  width: 18px;
}

.footer__copyright {
  color: #625f59;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer__copyright a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer {
    padding: 0 20px 24px;
  }

  .footer .container {
    padding: 24px 0 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer__occupation {
    font-size: 28px;
  }

  .footer__name {
    font-size: 22px;
  }

  .footer__contacts {
    flex-direction: column;
    gap: 16px;
  }

  .footer__phone,
  .footer__address {
    font-size: 17px;
  }
}

.banner {
  margin-top: -1px;
  padding-top: 50px;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
  background-color: #eeeae4;
}

@media only screen and (width <= 850px) {
  .banner {
    padding-top: 0;
  }
}

.banner__top {
  z-index: 2;
  flex-direction: column;
  display: flex;
  position: relative;
}

@media (width >= 900px) {
  .banner__top {
    min-height: 850px;
    margin-top: -150px;
    margin-bottom: 80px;
  }

  .banner__box {
    max-width: 50%;
    margin-top: 26px;
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (width >= 1200px) {
  .banner__box {
    margin-top: 66px;
  }
}

.banner__prof {
  margin-bottom: 24px;
  font-size: 56px;
}

@media (width >= 900px) {
  .banner__prof {
    margin-top: 160px;
    font-size: 90px;
  }
}

@media (width >= 1200px) {
  .banner__prof {
    margin-top: 160px;
    font-size: 120px;
  }
}

.banner__name {
  font-family: var(--second-family);
  font-size: 30px;
  font-weight: 400;
}

@media (width >= 900px) {
  .banner__name {
    margin-top: 36px;
    font-size: 40px;
  }
}

@media (width >= 1200px) {
  .banner__name {
    margin-top: 56px;
    font-size: 60px;
  }
}

.banner__img {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 30px;
  border-radius: 12px;
}

@media (width >= 900px) {
  .banner__img {
    margin-top: 0;
    margin-bottom: 0;
    display: block;
  }
}

.banner__button {
  width: 100%;
  margin-top: 40px;
  display: block;
}

.banner__button.mobile {
  margin-top: 0;
  display: flex;
}

@media (width >= 900px) {
  .banner__button.mobile {
    display: none;
  }
}

.banner__button.desktop {
  display: none;
}

@media (width >= 900px) {
  .banner__button.desktop {
    max-width: 373px;
    margin-top: 88px;
    display: flex;
  }
}

.banner__facts {
  flex-direction: column;
  gap: 24px;
  margin-top: 72px;
  display: flex;
}

@media (width >= 900px) {
  .banner__facts {
    flex-direction: row;
  }
}

.banner .fact {
  backdrop-filter: blur(70px);
  border-radius: 8px;
  flex-grow: 1;
  flex-basis: 0;
  padding: 32px;
  background-color: white;
}

@media (width >= 900px) {
  .banner .fact {
    padding: 56px 48px;
  }
}

.banner .fact__title {
  /* color: var(--yellow-500); */
  margin-bottom: 16px;
  font-size: 40px;
  display: block;
}

@media (width >= 900px) {
  .banner .fact__title {
    margin-bottom: 24px;
  }
}

.banner .fact__text {
  font-size: 24px;
  line-height: 140%;
}

.banner__leftGrid {
  height: 100%;
  position: absolute;
  top: 0;
  right: 100%;
}

.banner__rightGrid {
  height: 100%;
  position: absolute;
  top: 0;
  left: 100%;
}

/* Home-specific sizing keeps the shared header and footer untouched. */
.banner {
  color: #000;
}

.banner > .container {
  padding: 16px;
}

.banner__top picture {
  display: block;
}

.banner__img {
  height: auto;
}

.banner .button {
  min-height: 0;
  height: 88px;
  padding: 0;
  gap: 0;
  line-height: 1;
  font-size: 25px;
  background: var(--blue-500);
  box-shadow: none;
}

.banner__button {
  align-items: center;
  justify-content: center;
}

.banner .fact {
  min-width: 0;
}

@media (max-width: 599px) {
  .banner__prof {
    font-size: clamp(44px, 12vw, 56px);
  }

  .banner__name {
    font-size: clamp(28px, 7.5vw, 30px);
  }
}

/* About: a large unframed portrait on the left, biography on the right. */
.about {
  background: #eeeae4;
}

.about > .container {
  max-width: 1480px;
  padding: 0 32px 0 0;
}

.about__blocks {
  display: grid;
  grid-template-columns: minmax(0, .4fr) minmax(0, .6fr);
  gap: 12px;
  align-items: start;
}

.about__portrait {
  position: sticky;
  top: 24px;
  align-self: start;
}

.about__paper {
  min-width: 0;
  padding: 44px 0 28px;
}

.about__name {
  margin-bottom: 30px;
  font-size: clamp(36px, 3.8vw, 56px);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.about__lead,
.about__text {
  margin-bottom: 22px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
}

.about__documents {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 46px;
  margin-top: 28px;
  padding: 12px 18px;
  border: 1px solid var(--blue-500);
  border-radius: 6px;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
  transition: background-color .2s, color .2s;
}

.about__documents:hover {
  color: #fff;
  background: var(--blue-500);
}

.about__quote {
  padding: 0 0 0 20px;
  border-left: none;
  font-size: 20px;
  line-height: 1.5;
}

.about__quote cite {
  display: block;
  margin-top: 12px;
  color: #68655f;
  font-size: 16px;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .about__blocks {
    grid-template-columns: minmax(0, .36fr) minmax(0, .64fr);
    align-items: start;
    gap: 24px;
  }


  .about__paper {
    padding-top: 28px;
  }

  .about__name {
    font-size: clamp(34px, 4vw, 42px);
  }

  .about__lead,
  .about__text {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  .about > .container {
    padding: 0 20px;
    max-width: 600px;
  }

  .about__blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }


  .about__paper {
    padding: 0 0 40px;
  }

  .about__name {
    font-size: clamp(32px, 8vw, 42px);
    margin-bottom: 24px;
  }

  .about__lead,
  .about__text {
    font-size: 19px;
    line-height: 1.5;
  }
}

.reviews {
  padding: 30px 0 40px;
}

.reviews__title {
  color: #fff;
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .reviews__title {
    text-align: center;
    max-width: 800px;
    margin: 90px auto;
    padding: 0;
    font-size: 80px;
  }
}

.results {
  background: var(--black-100);
  padding: 30px 0 40px;
  position: relative;
  overflow: hidden;
}

@media (width >= 900px) {
  .results {
    padding: 80px 0;
  }
}

.results .swiper-wrapper {
  transition: height .35s;
}

.results__title {
  margin-bottom: 42px;
}

@media (width >= 900px) {
  .results__title {
    margin-top: 20px;
    margin-bottom: 72px;
    font-size: 80px;
  }
}

.results:before {
  content: "";
  background: url("../img/background-vertical.svg") center / contain no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 10%;
  left: 0;
}

@media (width >= 900px) {
  .results:before {
    background-image: url("../img/background.svg");
    background-repeat: no-repeat;
    background-size: contain;
    top: 15%;
  }
}

.results .container {
  z-index: 4;
  position: relative;
}

.results .swiper {
  width: 100%;
  min-height: 620px;
}

@media only screen and (width <= 450px) {
  .results .swiper {
    min-height: 660px;
  }
}

.results .swiper .swiper-scrollbar {
  --swiper-scrollbar-border-radius: 10px;
  --swiper-scrollbar-top: auto;
  --swiper-scrollbar-bottom: 4px;
  --swiper-scrollbar-left: auto;
  --swiper-scrollbar-right: 4px;
  --swiper-scrollbar-sides-offset: 1%;
  --swiper-scrollbar-bg-color: #0000001a;
  --swiper-scrollbar-drag-bg-color: var(--blue-500);
  --swiper-scrollbar-size: 4px;
}

.results .slider {
  width: 100%;
}

.results .slider__slide {
  padding: 10px 10px 24px;
}

.results .slider__videoBox {
  border-radius: 8px;
  justify-content: center;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.results .slider__slideBox {
  background: #fff;
  border-radius: 8px;
  flex-direction: column;
  align-items: start;
  margin: 0 10px;
  padding: 16px;
  display: flex;
  overflow: hidden;
}

.results .slider__name {
  color: var(--blue-500);
  margin-top: 24px;
  font-size: 24px;
}

.results .slider__text {
  margin-top: 16px;
  padding-bottom: 10px;
  font-size: 16px;
  line-height: 150%;
}

.results .slider__text p {
  margin-bottom: 10px;
  display: block;
}

.results .slider__text b {
  color: var(--blue-500);
  font-weight: bold;
}

.results .slider__btn {
  color: var(--blue-500);
  border-bottom: 1px dashed var(--blue-500);
  cursor: pointer;
  display: inline-block;
}

.results .slider__btn:hover {
  opacity: .8;
}

.results .slider__more {
  opacity: 0;
  height: 0;
  transition: height .35s, opacity .25s;
  overflow: hidden;
}

.results .slider__video {
  object-fit: cover;
  border-radius: 8px;
  min-width: 280px;
  height: 442px;
}

.results .slider__video::-webkit-media-controls {
  display: none !important;
}

.results .slider__button {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 180px;
  left: calc(50% - 28px);
  overflow: hidden;
}

.results .slider__button img {
  width: 100%;
}

@media not screen and (width <= 900px) {
  .results .slider__button {
    display: none;
  }
}

@media screen and (width >= 900px) {
  .results .slider__button {
    display: block;
  }
}

.results .slider__button.hidden {
  display: none;
}

.prices {
  padding: 30px 0 40px;
}

@media (width >= 900px) {
  .prices {
    padding: 80px 0;
  }
}

.prices__title {
  color: #fff;
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .prices__title {
    margin-top: 20px;
    margin-bottom: 70px;
    font-size: 80px;
  }
}

.prices__subtitle {
  color: var(--yellow-500);
  margin-bottom: 16px;
  font-size: 24px;
}

@media (width >= 900px) {
  .prices__subtitle {
    margin-bottom: 32px;
    font-size: 48px;
    line-height: 56px;
  }
}

.prices__info {
  backdrop-filter: blur(70px);
  background: linear-gradient(221deg, #ffffff0d 0% 100%);
  border-radius: 8px;
  padding: 32px 24px;
  font-size: 16px;
  line-height: 150%;
  box-shadow: inset -20px 3px 36px #ffffff0d;
}

@media (width >= 900px) {
  .prices__info {
    justify-content: space-between;
    gap: 20px;
    padding: 56px 48px;
    display: flex;
  }
}

.prices__box:nth-of-type(2) {
  display: block;
}

@media (width >= 900px) {
  .prices__box:nth-of-type(2) {
    flex-direction: column;
    align-items: end;
    display: flex;
  }
}

.prices__button {
  width: 100%;
  max-width: 343px;
  display: block;
}

@media (width >= 900px) {
  .prices__button {
    width: 343px;
  }
}

.prices__text {
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .prices__text {
    max-width: 720px;
  }
}

.prices__price {
  color: var(--yellow-500);
  background: #ffffff1a;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 18px 24px;
  font-size: 20px;
  display: inline-block;
}

@media (width >= 900px) {
  .prices__price {
    margin-bottom: 52px;
  }
}

.photos {
  padding: 30px 0 40px;
}

@media (width >= 900px) {
  .photos {
    padding: 0 0 80px;
  }
}

.photos__title {
  color: #fff;
  margin-bottom: 42px;
}

@media (width >= 900px) {
  .photos__title {
    margin-top: 100px;
    margin-bottom: 72px;
    font-size: 80px;
  }
}

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

@media (width >= 600px) {
  .photos__grid {
    flex-direction: row;
    justify-content: stretch;
  }
}

@media (width >= 900px) {
  .photos__grid {
    gap: 24px;
  }
}

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

@media (width >= 900px) {
  .photos__column {
    gap: 24px;
  }
}

.photos__column:last-of-type {
  display: none;
}

@media (width >= 900px) {
  .photos__column:last-of-type {
    display: flex;
  }
}

.photos__item {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.photos__item:hover > .photos__description {
  opacity: 1;
}

.photos__photo {
  width: 100%;
}

.photos__name {
  color: var(--yellow-500);
  text-align: center;
  font-size: 16px;
}

.photos__text {
  text-align: center;
  font-size: 14px;
  line-height: 120%;
}

.photos__description {
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  opacity: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  transition: all .5s;
  display: flex;
  position: absolute;
  inset: 0;
}

.videos {
  background: var(--black-100);
  padding: 30px 0 40px;
}

@media (width >= 900px) {
  .videos {
    padding: 80px 0;
  }
}

.videos__title {
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .videos__title {
    margin-top: 20px;
    margin-bottom: 70px;
    font-size: 80px;
  }
}

.videos__video {
  width: 100%;
  margin-bottom: 16px;
}

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

@media (width >= 900px) {
  .videos__slider {
    justify-content: space-between;
    gap: 20px;
    display: flex;
  }
}

.videos__slide {
  margin-bottom: 40px;
}

.lecturer {
  background: var(--black-100);
  padding: 30px 0 40px;
  position: relative;
  overflow: hidden;
}

@media (width >= 900px) {
  .lecturer {
    padding: 0 0 80px;
  }
}

.lecturer:before {
  content: "";
  background: url("/static/image/background-vertical.svg") center / contain no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 15%;
  left: 0;
}

@media (width >= 900px) {
  .lecturer:before {
    background-image: url("/static/image/background.svg");
    background-repeat: no-repeat;
    background-size: contain;
    top: 60%;
  }
}

.lecturer.dark {
  background: var(--black-500);
}

.lecturer.dark:before {
  display: none;
}

.lecturer.dark .lecturer__title {
  color: #fff;
}

.lecturer__title {
  z-index: 2;
  overflow-wrap: break-word;
  hyphens: none;
  text-align: center;
  margin: 0 auto 40px;
  font-size: 36px;
  position: relative;
}

@media (width >= 900px) {
  .lecturer__title {
    text-align: center;
    margin: 100px auto 72px;
    font-size: 80px;
  }
}

.lecturer__info {
  z-index: 2;
  flex-direction: column;
  gap: 24px;
  display: flex;
  position: relative;
}

@media (width >= 900px) {
  .lecturer__info {
    flex-direction: row;
    justify-content: space-between;
  }
}

.lecturer__item {
  border: 1px solid var(--black-300);
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 160px;
  padding: 0 25px;
  display: flex;
}

@media (width >= 900px) {
  .lecturer__item {
    max-width: 376px;
  }
}

.lecturer__avatar {
  width: 100%;
  max-width: 280px;
}

.signup {
  padding: 30px 0 40px;
}

@media (width >= 900px) {
  .signup {
    padding: 80px 0;
  }
}

.signup__title {
  color: #fff;
  margin-bottom: 32px;
  font-size: 40px;
}

@media (width >= 900px) {
  .signup__title {
    text-align: left;
    flex: 1;
    padding-right: 20px;
    font-size: 80px;
    line-height: 90px;
  }
}

.signup__small {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

@media (width >= 900px) {
  .signup__small {
    font-size: 24px;
  }

  .signup__form {
    flex: 1;
  }
}

.signup__container {
  flex-direction: column;
  gap: 56px;
  display: flex;
}

.signup__box {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

@media (width >= 900px) {
  .signup__box {
    flex-direction: row;
    justify-content: stretch;
  }
}

.signup__input {
  color: #fff;
  background: none;
  border: 1px solid #fff6;
  border-radius: 8px;
  width: 100%;
  height: 88px;
  margin-bottom: 16px;
  padding: 10px 16px;
  font-size: 16px;
}

.signup__input::placeholder {
  color: #fff;
  opacity: .6;
}

@media (width >= 900px) {
  .signup__input {
    margin-bottom: 24px;
  }
}

.signup__submit {
  width: 100%;
  color: var(--black-500);
  background: #fff;
}

.signup__social {
  backdrop-filter: blur(70px);
  height: 64px;
  color: var(--yellow-500);
  background: linear-gradient(221deg, #ffffff0d 0% 100%);
  border: 1px solid #fff3;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 18px;
  font-size: 16px;
  display: flex;
  box-shadow: inset -20px 3px 36px #ffffff0d;
}

.signup__social-icon {
  width: 27px;
  margin-right: 8px;
}

.signup__social.mobile {
  display: flex;
}

@media (width >= 600px) {
  .signup__social.mobile {
    display: none;
  }
}

@media (width >= 900px) {
  .signup__social {
    backdrop-filter: blur(70px);
    background: linear-gradient(221deg, #ffffff0d 0% 100%);
    height: 88px;
    padding: 0 43px;
    font-size: 32px;
    box-shadow: inset -20px 3px 36px #ffffff0d;
  }
}

.signup p {
  color: #fff;
  margin-top: 10px;
  font-size: 12px;
  line-height: normal;
}

.signup p a {
  text-decoration: underline;
}

.mentoring .signup__title {
  text-align: center;
  font-size: 34px;
}

@media (width >= 375px) {
  .mentoring .signup__title {
    font-size: 40px;
  }
}

@media (width >= 900px) {
  .mentoring .signup__title {
    font-size: 80px;
  }
}

.mentoring .signup__box {
  flex-direction: column;
}

.mentoring .signup__form {
  max-width: 648px;
  margin: 0 auto;
}

.sidebar[hidden] {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.sidebar__underlay {
  position: absolute;
  inset: 0;
  background: #242a2766;
  backdrop-filter: blur(5px);
}

.sidebar__side {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  height: 100dvh;
  padding: 72px 28px max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: -8px 0 48px #0002;
}

.sidebar__close {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  background: #313131;
}

.sidebar .closeIcon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

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

.sidebar__item a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
}

.sidebar__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 1.5;
}

.sidebar__address img {
  flex: 0 0 20px;
  width: 20px;
}

.sidebar__socials {
  display: flex;
  gap: 16px;
}

.sidebar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e8e5df;
  border-radius: 8px;
}

.sidebar__social img {
  filter: brightness(.25);
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tile {
  width: 100%;
  height: 100%;
  transform: translate;
  grid-template: repeat(6, 1fr) / repeat(4, 1fr);
  justify-content: stretch;
  display: grid;
  position: absolute;
  bottom: 0;
  left: 0;
}

.tile__block {
  border: 1px solid #000;
}

.mb {
  margin-top: -1px;
  padding-top: 50px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.mb__top {
  z-index: 2;
  flex-direction: column;
  display: flex;
  position: relative;
}

@media (width >= 900px) {
  .mb__top {
    margin-top: -150px;
    margin-bottom: 80px;
  }

  .mb__box {
    max-width: 50%;
    margin-top: 26px;
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (width >= 1200px) {
  .mb__box {
    margin-top: 66px;
  }
}

.mb__box.wider {
  max-width: 100%;
}

@media (width >= 900px) {
  .mb__box.wider {
    max-width: 60%;
  }
}

.mb__title {
  margin-bottom: 24px;
  font-size: 32px;
}

@media (width >= 375px) {
  .mb__title {
    font-size: 38px;
  }
}

@media (width >= 600px) {
  .mb__title {
    font-size: 70px;
  }
}

@media (width >= 900px) {
  .mb__title {
    margin-top: 160px;
    font-size: 70px;
  }
}

@media (width >= 1200px) {
  .mb__title {
    font-size: 96px;
  }
}

.mb__subtitle {
  font-family: var(--second-family);
  font-size: 24px;
  font-weight: 400;
}

@media (width >= 900px) {
  .mb__subtitle {
    margin-top: 36px;
    font-size: 40px;
  }
}

@media (width >= 1200px) {
  .mb__subtitle {
    margin-top: 56px;
    font-size: 40px;
  }
}

.mb__img {
  width: 100%;
  margin-top: 80px;
  margin-bottom: 30px;
}

@media (width >= 900px) {
  .mb__img {
    margin-top: 0;
    margin-bottom: 0;
    display: block;
  }
}

.mb__img.mentor {
  margin-top: 10px;
}

.mb__button {
  width: 100%;
  margin-top: 40px;
  display: block;
}

.mb__button.mobile {
  margin-top: 0;
  display: inline-block;
}

@media (width >= 900px) {
  .mb__button.mobile {
    display: none;
  }
}

.mb__button.desktop {
  display: none;
}

@media (width >= 900px) {
  .mb__button.desktop {
    max-width: 226px;
    margin-top: 0;
    display: inline-block;
  }
}

.mb__facts {
  flex-direction: column;
  gap: 24px;
  margin-top: 72px;
  display: flex;
}

@media (width >= 900px) {
  .mb__facts {
    flex-direction: row;
  }
}

.mb .fact {
  backdrop-filter: blur(70px);
  background: linear-gradient(221deg, #ffffff0d 0% 100%);
  border: 1px solid #fff3;
  border-radius: 8px;
  flex-grow: 1;
  flex-basis: 0;
  padding: 32px;
  box-shadow: inset -20px 3px 36px #ffffff0d;
}

@media (width >= 900px) {
  .mb .fact.flex {
    align-items: center;
  }

  .mb .fact.flex.fact__title {
    line-height: 50px;
  }

  .mb .fact {
    padding: 46px 48px;
  }
}

.mb .fact__title {
  color: var(--yellow-500);
  margin-bottom: 16px;
  font-size: 36px;
  display: block;
}

@media (width >= 375px) {
  .mb .fact__title {
    font-size: 40px;
  }
}

@media (width >= 900px) {
  .mb .fact__title {
    margin-bottom: 24px;
  }
}

.mb .fact__text {
  font-size: 20px;
  line-height: 140%;
}

@media (width >= 375px) {
  .mb .fact__text {
    font-size: 24px;
  }
}

.mb__group {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

@media (width >= 900px) {
  .mb__group {
    flex-direction: column;
    order: -1;
    gap: 24px;
    width: 40%;
    display: flex;
  }

  .mb__group .fact__title {
    font-size: 48px;
  }
}

.mb__leftGrid {
  height: 100%;
  position: absolute;
  top: 0;
  right: 100%;
}

.mb__rightGrid {
  height: 100%;
  position: absolute;
  top: 0;
  left: 100%;
}

.about-mentor {
  padding: 30px 0 40px;
  position: relative;
  overflow: hidden;
}

.about-mentor.margin-neg {
  margin-top: -60px;
}

@media (width >= 900px) {
  .about-mentor {
    padding: 0 0 80px;
  }
}

.about-mentor__title {
  color: #fff;
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .about-mentor__title {
    margin-top: 100px;
    margin-bottom: 70px;
    font-size: 80px;
  }
}

.about-mentor__photo {
  z-index: 10;
  grid-area: photo;
  width: 100%;
  max-width: 360px;
  position: relative;
}

.about-mentor__facts {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

.about-mentor__fact {
  align-items: center;
  gap: 12px;
  display: flex;
}

@media (width >= 900px) {
  .about-mentor__fact {
    gap: 24px;
  }
}

.about-mentor__icon {
  backdrop-filter: blur(40px);
  background: linear-gradient(221deg, #ffffff0d 0% 100%);
  border: .57px solid #fff3;
  border-radius: 5px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  position: relative;
  box-shadow: inset -11px 2px 21px #ffffff0d;
}

.about-mentor__icon:after {
  content: "";
  background-image: url("../img/check.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

@media (width >= 900px) {
  .about-mentor__icon {
    width: 56px;
    height: 56px;
  }
}

.about-mentor__text {
  font-size: 16px;
  line-height: 24px;
}

@media (width >= 900px) {
  .about-mentor__text {
    font-size: 24px;
  }
}

.about-mentor__blocks {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  display: flex;
}

@media (width >= 900px) {
  .about-mentor__blocks {
    flex-direction: row;
    align-items: flex-start;
  }
}

.about-mentor__want {
  backdrop-filter: blur(70px);
  background: linear-gradient(221deg, #ffffff0d 0% 100%);
  border: 1px solid #fff3;
  border-radius: 8px;
  margin-top: 40px;
  padding: 40px 20px;
  box-shadow: inset -20px 3px 36px #ffffff0d;
}

@media (width >= 900px) {
  .about-mentor__want {
    width: 100%;
    max-width: 648px;
    padding: 56px 20px;
  }
}

.about-mentor__want .button {
  max-width: 302px;
  margin: 0 auto;
}

.about-mentor__sub {
  text-align: center;
  color: var(--yellow-500);
  margin-bottom: 32px;
  font-size: 32px;
}

@media (width >= 900px) {
  .about-mentor__sub {
    font-size: 44px;
  }
}

.who {
  background: var(--black-100);
  padding: 30px 0 40px;
  position: relative;
  overflow: hidden;
}

@media (width >= 900px) {
  .who {
    padding: 0 0 80px;
  }
}

.who__title {
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .who__title {
    margin-top: 100px;
    margin-bottom: 70px;
    font-size: 80px;
  }
}

.who__box {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

.who__item {
  border: 1px solid var(--blue-300);
  border-radius: 8px;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  display: flex;
}

@media (width >= 900px) {
  .who__item {
    gap: 32px;
    padding: 32px 56px;
  }
}

.who__number {
  color: var(--blue-500);
  font-size: 32px;
}

.who__text {
  font-size: 16px;
  line-height: 150%;
}

@media (width >= 900px) {
  .who__text {
    font-size: 24px;
  }
}

.what {
  padding: 30px 0 40px;
  position: relative;
  overflow: hidden;
}

@media (width >= 900px) {
  .what {
    padding: 0 0 80px;
  }
}

.what__title {
  color: #fff;
  margin-bottom: 40px;
}

@media (width >= 900px) {
  .what__title {
    margin-top: 100px;
    margin-bottom: 70px;
    font-size: 80px;
  }
}

.what__box {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

@media (width >= 900px) {
  .what__box {
    flex-direction: row;
  }

  .what__box:first-of-type .what__item {
    width: 33.3%;
  }

  .what__box:nth-of-type(2) .what__item {
    width: 50%;
  }
}

.what__item {
  backdrop-filter: blur(70px);
  background: linear-gradient(221deg, #ffffff0d 0% 100%);
  border: 1px solid #fff3;
  border-radius: 8px;
  flex-direction: column;
  gap: 24px;
  padding: 32px 16px;
  display: flex;
  box-shadow: inset -20px 3px 36px #ffffff0d;
}

@media (width >= 900px) {
  .what__item {
    padding: 40px;
  }
}

.what__number {
  color: var(--yellow-500);
  font-size: 48px;
}

@media (width >= 900px) {
  .what__number {
    font-size: 80px;
  }
}

.what__text {
  color: #fff;
  font-size: 16px;
  line-height: 150%;
}

@media (width >= 900px) {
  .what__text {
    font-size: 24px;
  }
}

.what__wrapper {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

.popup {
  color: #fff;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  font-family: "Times New Roman", serif !important;
}

@media only screen and (width <= 650px) {
  .popup {
    align-items: flex-start;
  }
}

.popup.js-visible {
  opacity: 1;
  visibility: visible;
}

.popup__overlay {
  z-index: 2;
  background: #313131;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.popup__close {
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
}

@media only screen and (width <= 650px) {
  .popup__close {
    border: none;
  }
}

.popup__close:hover {
  opacity: .8;
}

.popup__close:after, .popup__close:before {
  content: "";
  background: #fff;
  width: 18px;
  height: 2px;
  margin: auto;
  position: absolute;
  inset: 0;
}

.popup__close:before {
  transform: rotate(45deg);
}

.popup__close:after {
  transform: rotate(-45deg);
}

.popup__content {
  z-index: 3;
  padding-top: 90px;
  position: relative;
}

@media only screen and (width <= 650px) {
  .popup__content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.popup__title {
  text-align: center;
  font-size: 80px;
}

@media only screen and (width <= 650px) {
  .popup__title {
    font-size: 32px;
  }
}

.popup__text {
  text-align: center;
  max-width: 600px;
  margin: 80px auto 50px;
  font-size: 24px;
  line-height: 140%;
}

@media only screen and (width <= 650px) {
  .popup__text {
    margin-top: 24px;
    font-size: 16px;
  }
}

.popup .form {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.popup .form__item {
  margin-bottom: 24px;
}

.popup .form__item input {
  color: #fff;
  background: #313131;
  border: 1px solid #b0b7f1;
  border-radius: 12px;
  width: 100%;
  height: 88px;
  padding-left: 40px;
  padding-right: 40px;
  font-size: 16px;
}

.popup .form__item input::placeholder {
  color: #fff;
}

.popup .form button {
  max-width: 100%;
  margin-top: 0;
}

.popup .form p {
  color: #fff;
  margin-top: 10px;
  font-size: 12px;
  line-height: normal;
}

.popup .form p a {
  text-decoration: underline;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 40px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: default;
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  user-select: none;
}

.lightbox .close-btn:hover {
  opacity: 0.7;
}

.list-element {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list-element:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.list-element img {
  transition: filter 0.3s ease;
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.list-element:hover img {
  filter: brightness(1.05);
}

/* Services: the photo owns its column, leaving all three cards unobstructed. */
.services {
  padding: 16px 0 32px;
  background: #eeeae4;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, .31fr) minmax(0, .69fr);
  align-items: end;
  gap: 16px;
  max-width: 1680px;
  padding: 0 24px 0 0;
}

.services-portrait {
  position: sticky;
  top: 24px;
  align-self: start;
}

.services-content {
  min-width: 0;
  align-self: stretch;
  padding: 0 0 20px;
}

.services-header {
  margin-bottom: 26px;
  text-align: center;
}

.services-header h1 {
  font-size: clamp(48px, 5.5vw, 72px);
  line-height: 1.1;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.service-card {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid #d5d1ca;
  border-radius: 9px;
  background: #faf8f4;
  box-shadow: 0 2px 12px #665a4808;
}

.service-card h2 {
  margin-bottom: 24px;
  font-size: clamp(25px, 2.2vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.12;
  overflow-wrap: break-word;
  hyphens: none;
}

.service-card ul {
  display: grid;
  gap: 10px;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  font-size: clamp(14px, .97vw, 16px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: .45em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #7485b0;
  border-top: 1.5px solid #7485b0;
  transform: rotate(45deg);
}

@media (min-width: 768px) and (max-width: 1199px) {
  .services-layout {
    grid-template-columns: minmax(0, .33fr) minmax(0, .67fr);
    align-items: start;
    gap: 28px;
    padding-right: 28px;
  }


  .services-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .service-card h2 {
    font-size: 28px;
    hyphens: none;
  }

  .service-card li {
    font-size: 17px;
  }

  .service-card ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
  }
}

@media (max-width: 899px) {
  .service-card ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .services {
    padding: 0 0 40px;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 20px;
    max-width: 600px;
  }


  .services-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .services-content {
    padding: 0;
  }

 .services-header {
    margin-bottom: 24px;
  }

  .services-header h1 {
    font-size: 48px;
  }

  .service-card {
    padding: 26px 24px;
  }

  .service-card h2 {
    font-size: 28px;
    hyphens: none;
  }

  .service-card li {
    font-size: 17px;
  }
}

/* Background spans the section; portraits keep their original proportions. */
.about,
.services {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #eeeae4 url("../image/portrait-background-desktop.PNG") left bottom / 100% auto no-repeat;
}
.about__paper,
.services-content {
  position: relative;
  z-index: 1;
}
.portrait-visual {
  position: relative;
  top: auto;
  align-self: end;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  z-index: 0;
}
.portrait-visual::before { content: none; }
.portrait-visual__picture {
  position: absolute;
  inset: 0;
  display: block;
}
.portrait-visual__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.services { padding-bottom: 0; }
.services-layout { align-items: end; }
.services-content { padding-bottom: 32px; }
@media (max-width: 767px) {
  .about,
  .services {
    background-image: url("../image/portrait-background-mobile.PNG");
    background-position: left top;
  }
  .portrait-visual {
    max-width: 480px;
    margin: 0 auto;
  }
}
/* Portrait height follows the image, so enlargement never cuts off the head. */
.about, .services { background-position: left top; }
.about__blocks { align-items: start; gap: 32px; }
.about__portrait, .services-portrait {
  position: relative;
  top: auto;
  align-self: start;
  aspect-ratio: auto;
  overflow: clip;
  margin: 0;
}
.about__portrait .portrait-visual__picture,
.services-portrait .portrait-visual__picture {
  position: relative;
  inset: auto;
  display: block;
  width: 125%;
  height: auto;
  margin-left: -5%;
}
.portrait-visual__photo {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
.services-layout { align-items: start; gap: 24px; }
.services-header { margin-bottom: 24px; }
.services-content { padding: 12px 0 32px; }
.service-card { padding: 24px 20px; }
@media (min-width: 1200px) {
  .services-header {
    margin-left: 33%;
    max-width: none;
    text-align: left;
    padding-left: 16px;
  }
  .services-portrait { margin-top: -80px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .services-layout { grid-template-columns: minmax(260px, .4fr) minmax(0, .6fr); }
  .service-card ul { grid-template-columns: 1fr; }
  .about__blocks { grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr); gap: 24px; }
}
@media (max-width: 767px) {
  .about__blocks, .services-layout { gap: 20px; }
  .about__portrait, .services-portrait { width: 100%; max-width: 440px; margin: 0 auto; }
  .about__paper { padding-top: 0; }
  .services-content { padding-top: 0; }
}
/* One bottom edge for the artwork and the portrait at every width. */
.about, .services {
  background-position: left bottom;
  padding-bottom: 0;
}
.about__blocks, .services-layout { align-items: end; }
.about__portrait, .services-portrait {
  align-self: end;
  margin-top: 0;
}
.about__portrait .portrait-visual__picture,
.services-portrait .portrait-visual__picture {
  margin-bottom: 0;
  line-height: 0;
}
@media (min-width: 768px) {
  .about > .container, .services-layout { max-width: 1680px; }
  .about__blocks, .services-layout {
    grid-template-columns: minmax(0, .36fr) minmax(0, .64fr);
    gap: 24px;
  }
  .services-header { margin-left: 36%; }
}
@media (max-width: 767px) {
  /* In a stacked layout the artwork belongs to the photo, above the text. */
  .about, .services { background-image: none; }
  .about__portrait, .services-portrait {
    overflow: visible;
    isolation: isolate;
  }
  .about__portrait::before, .services-portrait::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto auto 0 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: url("../image/portrait-background-mobile.PNG") center bottom / auto 100% no-repeat;
    pointer-events: none;
  }
  .about__portrait .portrait-visual__picture,
  .services-portrait .portrait-visual__picture {
    width: 100%;
    margin-left: 0;
  }
}
.header > .container:first-child { border-color: #d5d1ca; }
@media (max-width: 1199px) {
  .header { padding-bottom: 24px; }
  .header > .container:first-child { flex-wrap: wrap; row-gap: 12px; }
  .header__mobile-block.container {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #e8e5df;
    background: transparent;
  }
  .header__location.special { text-align: center; justify-content: center; }
}
@media (max-width: 359px) {
  .header__phone { font-size: 18px; }
}
/* Keep page artwork flush with the viewport and the footer. */
body:has(.about) main,
body:has(.services) main { display: flex; flex-direction: column; }
.about, .services { flex: 1; }
.about { display: flex; flex-direction: column; }
.about > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.about__blocks { flex: 1; }
.services-header.container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .about > .container, .services-layout {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
  }
  .about__portrait .portrait-visual__picture { margin-left: -8%; }
  .services-portrait .portrait-visual__picture { margin-left: 0; }
  .about, .services {
    background-image: linear-gradient(to bottom, #eeeae4 0, #eeeae400 180px), url("../image/portrait-background-desktop.PNG");
    background-size: 100% 100%, 100% auto;
    background-position: left top, left bottom;
  }
}
@media (max-width: 767px) {
  .about > .container, .services-layout { padding-left: 0; }
  .about__paper, .services-content { padding-left: 20px; }
  .about__portrait, .services-portrait { margin-left: 0; margin-right: auto; }
  .about__portrait .portrait-visual__picture { margin-left: -7%; }
  .services-portrait .portrait-visual__picture { margin-left: 0; }
  .about__portrait::before, .services-portrait::before {
    background-image: linear-gradient(to bottom, #eeeae4, #eeeae400 120px), url("../image/portrait-background-mobile.PNG");
    background-size: 100% 100%, auto 100%;
  }
}
/* Bound the composition on wide monitors and keep text at the top. */
.about__paper, .services-content { align-self: start; }
.services { display: flex; flex-direction: column; }
.services-layout { flex: 1; }
@media (min-width: 768px) {
  .about > .container, .services-layout {
    width: 100%;
    max-width: 1680px;
    margin-left: 0;
    margin-right: auto;
  }
  .about__blocks, .services-layout {
    grid-template-columns: minmax(0, .32fr) minmax(0, .68fr);
    align-items: end;
    gap: 32px;
  }
  .about__portrait .portrait-visual__picture,
  .services-portrait .portrait-visual__picture { width: 112%; }
  .about__paper { padding-top: 28px; }
  .about__name { font-size: clamp(36px, 3.4vw, 54px); }
}
@media (min-width: 1200px) {
  .services-container { align-items: stretch; gap: 16px; }
  .service-card {
    min-height: 620px;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 18px #665a480a;
  }
  .service-card h2 {
    min-height: 3.45em;
    margin-bottom: 28px;
    font-size: clamp(26px, 2vw, 32px);
    line-height: 1.15;
  }
  .service-card ul { gap: 14px; }
  .service-card li { font-size: 16px; line-height: 1.5; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .about__blocks, .services-layout {
    grid-template-columns: minmax(240px, .36fr) minmax(0, .64fr);
    gap: 24px;
  }
  .service-card { padding: 28px 24px; }
}
/* Fill the available width without shrinking the portraits. */
@media (min-width: 768px) {
  .about > .container, .services-layout {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: clamp(24px, 2.2vw, 48px);
  }
  .about__blocks, .services-layout {
    grid-template-columns: minmax(0, min(36vw, 620px)) minmax(0, 1fr);
    gap: clamp(24px, 2vw, 40px);
  }
  .about__portrait .portrait-visual__picture,
  .services-portrait .portrait-visual__picture { width: 120%; }
  .about__paper, .services-content { width: 100%; min-width: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .about__blocks, .services-layout {
    grid-template-columns: minmax(240px, .36fr) minmax(0, .64fr);
    gap: 24px;
  }
}
/* Match the outside gutter before the portrait and after the content. */
@media (min-width: 768px) {
  .about > .container, .services-layout {
    padding-left: clamp(24px, 3vw, 64px);
    padding-right: clamp(24px, 3vw, 64px);
  }
}
@media (max-width: 767px) {
  .about > .container, .services-layout {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about__paper, .services-content { padding-left: 0; }
}
/* Photo at the viewport edge; equal gutters around the content column. */
@media (min-width: 768px) {
  .about, .services { --content-gutter: clamp(24px, 3vw, 72px); }
  .about > .container, .services-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: var(--content-gutter);
  }
  .about__blocks, .services-layout {
    grid-template-columns: minmax(0, clamp(280px, 32vw, 560px)) minmax(0, 1fr);
    gap: var(--content-gutter);
  }
  .about__paper, .services-content {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .about__portrait, .services-portrait { margin-left: 0; }
  .about__portrait .portrait-visual__picture { margin-left: -8%; }
  .services-portrait .portrait-visual__picture { margin-left: 0; }
}
@media (min-width: 1400px) {
  .services-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 700px; }
  .service-card ul { gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1399px) {
  .services-container { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 32px 28px; }
  .service-card h2 { min-height: 0; }
  .service-card ul { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .about > .container, .services-layout { padding-left: 0; padding-right: 20px; }
  .about__paper, .services-content { padding-left: 20px; }
}
/* Center a bounded content block in the space to the right of the photo. */
@media (min-width: 768px) {
  .about > .container, .services-layout { padding-right: 0; }
  .about__blocks, .services-layout { column-gap: 0; }
  .about__paper, .services-content {
    width: calc(100% - 2 * var(--content-gutter));
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about__paper { max-width: 1200px; }
  .services-content { max-width: 1000px; }
}
/* Preserve the large portrait and prevent narrow service cards. */
@media (min-width: 1200px) {
  .about__blocks, .services-layout {
    grid-template-columns: minmax(0, min(36vw, 620px)) minmax(0, 1fr);
  }
  .about__portrait .portrait-visual__picture,
  .services-portrait .portrait-visual__picture { width: 125%; }
}
@media (min-width: 768px) {
  .services-content {
    max-width: 1320px;
    container-type: inline-size;
  }
  .services-container { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 32px 28px; }
  .service-card h2 { min-height: 0; }
}
@container (min-width: 860px) {
  .services-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 700px; }
  .service-card h2 { min-height: 3.45em; }
}
.about__documents,
.about__documents:hover {
  background: #fff;
  color: #000;
  border-color: #d5d1ca;
}
@media (min-width: 768px) {
  .services-content { width: calc(100% - 48px); }
  .service-card { padding: 36px 30px; }
}
@container (min-width: 860px) {
  .service-card { min-height: 760px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
