@font-face {
  font-family: "Okta Neue";
  font-display: swap;
  src: url(../fonts/OktaNeue-ExtraLight.woff2) format("woff2");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Okta Neue";
  font-display: swap;
  src: url(../fonts/OktaNeue-Light.woff2) format("woff2");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Okta Neue";
  font-display: swap;
  src: url(../fonts/OktaNeue-Normal.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Okta Neue";
  font-display: swap;
  src: url(../fonts/OktaNeue-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Okta Neue";
  font-display: swap;
  src: url(../fonts/OktaNeue-SemiBold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-family: inherit;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  font-family: "Okta Neue";
  font-size: 16px;
  --color-blue: #6c81c7;
  --color-text: #5a617b;
  --color-text-secondary: #7c7c7c;
  --shadow: 0 0 87.1px 0 #dee5f2;
  --transition: 0.3s ease;
  color: var(--color-text-secondary);
  font-weight: 300;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  padding-block: 3rem;
}

body::before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;

  /* F-6-1: 4 MB SVG → AVIF 130 KB / WebP 848 KB. SVG fallback для очень старых браузеров. */
  background: url(../img/abstraction.svg) top/cover no-repeat;
  background-image: image-set(
    url(../img/abstraction.avif) type("image/avif"),
    url(../img/abstraction.webp) type("image/webp"),
    url(../img/abstraction.svg)
  );
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.not-found {
  width: 50%;
  margin: 0 auto;
  gap: 1rem;
}

.not-found h1 {
  font-size: 26vw;
  line-height: 24vw;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section:not(:first-of-type) {
  margin-top: 3.75rem;
}

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

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.header {
  max-width: 1440px;
  margin: 0 auto;
}

.main {
  padding-block: 3rem;
}

.accent {
  color: var(--color-blue);
  font-weight: 200;
}

.center {
  text-align: center;
}

.title-xl {
  font-size: 5.6rem;
  text-transform: uppercase;
  font-weight: 100;
  color: var(--color-text);
}

.title-lg {
  font-size: 4rem;
  text-transform: uppercase;
  font-weight: 100;
  color: var(--color-text);
}

.title-md {
  font-size: 3rem;
  font-weight: 100;
  text-transform: uppercase;
  color: var(--color-text);
}

.title-sm {
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 200;
  color: var(--color-blue);
}

.text-sm {
  font-size: 0.88rem;
}

.text-xs {
  font-size: 0.75rem;
}

.btn {
  padding: 0.88rem 1.88rem;
  padding-top: 0.8rem;
  background-color: var(--color-blue);
  color: white;
  border-radius: 100px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-transform: uppercase;
  width: fit-content;
  cursor: pointer;
  transition: var(--transition);
}

.btn.white {
  background-color: white;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}

@media (any-hover: hover) {

  .btn:hover {
    opacity: 0.8;
  }

  .btn.white:hover {
    opacity: 1;
    background-color: #d8deef85;
  }
}

.maintenance-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
}

.maintenance-screen .title-lg {
  margin: 0 0 1.5rem;
}

.maintenance-screen-text {
  max-width: 560px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.maintenance-screen-text p {
  margin: 0 0 0.5rem;
}

.maintenance-screen-text p:last-child {
  margin-bottom: 0;
}

.burger {
  width: 50px;
  aspect-ratio: 1;
  background-color: transparent;
  border: none;
  display: none;

  /* F-1-2: SVG paths используют stroke="currentColor" — задаём цвет через color. */
  color: var(--color-blue);
}

.burger .close {
  display: none;
}

.menu-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-blue);
}

.menu-list a {
  transition: var(--transition);
  text-decoration: underline;
  text-decoration-color: transparent;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card-item {
  background-color: white;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card-item .btn.white {
  margin-top: -0.75rem;
  width: 166px;
}

.card-image-ar1{
  aspect-ratio: 1.5 !important;
}

.card-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  object-fit: cover;
  object-position: top;
}

.card-info {
  width: 100%;
}

.card-title {

  /*
   * Фиксированная высота под 3 строки, чтобы карточки в одной сетке
   * не «прыгали» при разной длине названия. Длиннее 3 строк — обрезаем
   * с многоточием через line-clamp.
   */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: calc(1.6rem * 1.25 * 3);
  margin-bottom: 0.5rem;
}

.card-item-mentor .card-title {

  /* В mentor-карточке нет card-details — резервируем меньше места под заголовок. */
  -webkit-line-clamp: 2;
  min-height: calc(1.6rem * 1.25);
}

.card-details {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px;
}

.card-details > span {
  text-wrap: nowrap;
}

.card-details .dots {
  width: 100%;
  border-bottom: 1px dashed #c7c7c7;
}

.contact-us {
  background-color: white;
  padding: 5.7rem;
  margin-top: 50px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.contact-us-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-us-form-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-us-form textarea,
.contact-us-form input {
  width: 100%;
  border: 1px solid #d8deef;
  border-radius: 10px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 1rem;
}

.contact-us-form textarea::placeholder,
.contact-us-form input::placeholder {
  font-weight: 200;
}

.contact-us-form textarea:focus,
.contact-us-form input:focus {
  outline: none;
  border-color: #7c7c7c;
}

/* Adapter: Fluent Forms 6.2.2 в .contact-us (AR-6, Этап 9). */
/* stylelint-disable selector-class-pattern -- Fluent Forms public CSS uses snake_case classes (ff_submit_btn_wrapper). */
.contact-us .fluentform,
.contact-us .frm-fluent-form {
  width: 100%;
}

.contact-us .frm-fluent-form fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border: none;
  padding: 0;
  margin: 0;
}

.contact-us .frm-fluent-form .ff-el-group {
  margin: 0;
}

.contact-us .frm-fluent-form .ff-el-group:has(textarea),
.contact-us .frm-fluent-form .ff_submit_btn_wrapper {
  grid-column: 1 / -1;
}

.contact-us .frm-fluent-form .ff_submit_btn_wrapper {
  display: flex;
  justify-content: center;
}

.contact-us .frm-fluent-form .ff-el-form-control {
  width: 100%;
  border: 1px solid #d8deef;
  border-radius: 10px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 1rem;
  background-color: #fff;
}

.contact-us .frm-fluent-form .ff-el-form-control::placeholder {
  font-weight: 200;
}

.contact-us .frm-fluent-form .ff-el-form-control:focus {
  outline: none;
  border-color: #7c7c7c;
  box-shadow: none;
}

.contact-us .frm-fluent-form button[type="submit"].ff-btn-submit {
  padding: 0.88rem 1.88rem;
  padding-top: 0.8rem;
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 100px;
  font-size: 1rem;
  border: none;
  text-transform: uppercase;
  width: fit-content;
  cursor: pointer;
  transition: var(--transition);
}

/* В модалке форма всегда в одну колонку (эталон: .modal-wrapper .contact-us-form-row { grid-template-columns: 1fr }). */
.modal .contact-us .frm-fluent-form fieldset,
.modal .contact-us-form-row {
  grid-template-columns: 1fr;
}

@media (any-hover: hover) {

  .contact-us .frm-fluent-form button[type="submit"].ff-btn-submit:hover {
    opacity: 0.8;
    background-color: var(--color-blue);
    color: #fff;
  }

  .menu-list a:hover {
    text-decoration-color: var(--color-blue);
  }
}

/* Adapter: Fluent Forms 6.2.2 в .faq (R-12.2, Этап 11). */
.faq .fluentform,
.faq .frm-fluent-form {
  width: 100%;
}

.faq .frm-fluent-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border: none;
  padding: 0;
  margin: 0;
}

.faq .frm-fluent-form .ff-el-group {
  margin: 0;
}

.faq .frm-fluent-form .ff_submit_btn_wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.faq .frm-fluent-form .ff-el-form-control {
  width: 100%;
  border: 1px solid #d8deef;
  border-radius: 10px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 1rem;
  background-color: #fff;
}

.faq .frm-fluent-form .ff-el-form-control::placeholder {
  font-weight: 200;
}

.faq .frm-fluent-form .ff-el-form-control:focus {
  outline: none;
  border-color: #7c7c7c;
  box-shadow: none;
}

.faq .frm-fluent-form button[type="submit"].ff-btn-submit {
  padding: 0.88rem 1.88rem;
  padding-top: 0.8rem;
  background-color: var(--color-blue);
  color: #fff;
  border-radius: 100px;
  font-size: 1rem;
  border: none;
  text-transform: uppercase;
  width: fit-content;
  cursor: pointer;
  transition: var(--transition);
}

@media (any-hover: hover) {

  .faq .frm-fluent-form button[type="submit"].ff-btn-submit:hover {
    opacity: 0.8;
    background-color: var(--color-blue);
    color: #fff;
  }
}

/* stylelint-enable selector-class-pattern */

.header:has(.header-logo) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  height: 50px;
}

.header-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer {
  font-size: 0.75rem;
  font-weight: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.footer .menu {
  width: 100%;
}

.footer .menu-list {
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--color-text);
}

.footer-contact-link,
.footer-contact-address {
  font-style: normal;
  transition: var(--transition);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  font-size: 0.95rem;
}

.footer-social a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: var(--transition);
}

.footer-text {
  max-width: 760px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-text p {
  margin: 0;
}

.footer-personal-data {
  font-size: 0.75rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  color: var(--color-blue);
  transition: var(--transition);
}

@media (any-hover: hover) {

  .footer-contact-link:hover,
  .footer-personal-data:hover,
  .footer-social a:hover {
    color: var(--color-blue);
    text-decoration-color: var(--color-blue);
  }
}

.quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 200;
  color: var(--color-text);
  line-height: 1.45;
  padding-block: 2rem;
}

.quote-text {
  font-style: italic;
  margin: 0;
}

.quote-text::before {
  content: "« ";
  color: var(--color-blue);
}

.quote-text::after {
  content: " »";
  color: var(--color-blue);
}

.quote-author {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}

.pagination-list {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-list .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--color-blue);
  border: 1px solid #d8deef;
  background-color: #fff;
  transition: var(--transition);
}

.pagination-list .page-numbers.current {
  background-color: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

.pagination-list .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
}

@media (any-hover: hover) {

  .pagination-list a.page-numbers:hover {
    background-color: #d8deef85;
  }
}

.empty-state {
  font-size: 1rem;
  color: var(--color-text-secondary);
  padding-block: 2.5rem;
}

.overlay {
  background-color: #5a617b3b;
  background-color: #7c7c7c8d;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-wrapper {
  max-width: 400px;
  width: 100%;
  position: relative;
  transform: translateY(0.75rem) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-wrapper {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {

  .overlay,
  .modal,
  .modal-wrapper {
    transition-duration: 0.01ms !important;
  }

  .modal-wrapper {
    transform: none;
  }

  .modal.is-open .modal-wrapper {
    transform: none;
  }
}

.modal-wrapper .contact-us {
  box-shadow: none;
  padding: 3.5rem 2rem 2rem 2rem;
}

.modal-wrapper .contact-us-close-btn {
  position: absolute;
  width: 24px;
  aspect-ratio: 1;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.modal-wrapper .contact-us-close-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(45deg);
}

.modal-wrapper .contact-us-title {
  font-size: 1.9rem;
}

.modal-wrapper .contact-us-form-row {
  grid-template-columns: 1fr;
}

.event-gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.event-gallery-list li {
  border-radius: 14px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--shadow);
}

.event-gallery-list img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mentors-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

@media screen and (max-width: 1470px) {

  .container,
  .header {
    margin-inline: 2rem;
  }
}

@media screen and (max-width: 1280px) {

  body,
  .main {
    padding-block: 2.3rem;
  }

  .menu-list {
    font-size: 1rem;
  }

  .title-xl {
    font-size: 4.5rem;
  }

  .title-lg {
    font-size: 3rem;
  }

  .title-md {
    font-size: 2.25rem;
  }

  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1024px) {

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-image {
    aspect-ratio: 1.3;
  }

  .contact-us {
    padding: 4rem;
  }

  .contact-us-form {
    gap: 0.5rem;
  }

  .contact-us-form .btn {
    margin-top: 0.5rem;
  }

  .contact-us-form-row {
    gap: 0.5rem;
  }

  .title-xl {
    font-size: 3.5rem;
  }

  .title-lg {
    font-size: 2.2rem;
  }

  .title-md {
    font-size: 1.75rem;
  }

  .title-sm {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 768px) {

  html {
    scroll-behavior: auto;
    scroll-padding-top: calc(70px + env(safe-area-inset-top, 0px));
  }

  .event-gallery-list {
    grid-template-columns: 1fr;
  }

  body {
    padding-block: 1.8rem;
  }

  body::before {
    background-size: contain;
  }

  .not-found {
    width: 100%;
  }

  .main {
    margin-top: 70px;
  }

  .container {
    margin-inline: 1.5rem;
  }

  .header {
    width: 100%;
    padding: 1rem 1.5rem;
    position: fixed;
    background-color: white;
    top: 0;
    left: 0;
    z-index: 200;
    margin: 0;
  }

  .header::after {
    content: "";
    display: inline-block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/abstraction.svg) top/cover no-repeat;
    background-image: image-set(
      url(../img/abstraction.avif) type("image/avif"),
      url(../img/abstraction.webp) type("image/webp"),
      url(../img/abstraction.svg)
    );
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .header .menu {
    height: 100%;
    padding-left: 1.5rem;
    padding-top: 87px;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    opacity: 0;
    transition: var(--transition);
    background-color: white;
    border-bottom-right-radius: 1rem;
  }

  .header .menu-list {
    flex-direction: column;
    font-size: 1.5rem;
    align-items: flex-start;
  }

  .header .menu-list li {
    width: 100%;
  }

  .header .menu-list li:not(:last-of-type) {
    border-bottom: 1px solid #d8deef;
  }

  .header .menu-list a {
    display: inline-block;
    padding: 1.5rem;
    width: 100%;
  }

  .header:has(.burger.active) .menu {
    transform: none;
    opacity: 1;
  }

  .burger {
    display: inline-block;
    position: relative;
    z-index: 200;
  }

  .burger.active svg {
    display: none;
  }

  .burger.active .close {
    display: inline-block;
    transform: scale(0.8);
  }

  .card-list {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .card-item {
    max-width: 560px;
    padding-inline: 1rem;
  }

  .card-image {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .contact-us {
    padding: 2rem;
  }

  .contact-us-form-row {
    grid-template-columns: 1fr;
  }

  .contact-us .frm-fluent-form fieldset {
    grid-template-columns: 1fr;
  }

  .footer .menu {
    display: none;
  }
}

@media screen and (max-width: 480px) {

  .container {
    margin-inline: 0.75rem;
  }

  .card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-details {
    align-items: center;
    gap: 0.25rem;
  }

  .header {
    padding: 0.75rem;
  }

  .header .menu {
    padding: 0;
    width: 100%;
    padding-top: 78px;
  }

  .header .menu-list {
    font-size: 1.5rem;
  }

  .main {
    margin-top: 2rem;
  }

  .title-xl {
    font-size: 2.5rem;
  }

  .title-lg {
    font-size: 1.8rem;
  }

  .title-md {
    font-size: 1.6rem;
  }

  .title-sm {
    font-size: 1.2rem;
  }

  .contact-us {
    padding: 1rem;
  }

  .modal-wrapper .contact-us {
    box-shadow: none;
    padding: 2.5rem 1rem 1rem 1rem;
  }

  .modal-wrapper .contact-us-title {
    font-size: 1.5rem;
  }
}
