:root {
  --shell: 1240px;
  --text: #888888;
  --heading: #2f4058;
  --border: #d7d7d7;
  --nav: #2f2f2f;
  --nav-text: #ffffff;
  --nav-hover: #3a3a3a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: #fff url("/assets/css/images/bg.png") repeat;
  font-size: 19.0667px;
  line-height: 1.85;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #3b95c6;
  text-decoration-color: rgba(59, 149, 198, 0.35);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #1b75a6;
}

p,
ul,
ol {
  margin: 0 0 1.2rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.9rem;
  font-family: "Play", sans-serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--heading);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  overflow-wrap: anywhere;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.55rem);
}

h4 {
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  padding: 0.75rem 1rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-140%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(1rem);
}

.page-chrome {
  display: none;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.2rem 0;
}

.brand {
  display: inline-grid;
  gap: 0.05rem;
  text-decoration: none;
  color: var(--nav-text);
}

.brand--compact {
  display: none;
}

.brand__name {
  font-family: "Play", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand__place {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  padding: 0.55rem 1rem;
  color: var(--nav-text);
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
}

.nav-toggle__label {
  margin-left: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav {
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav__list a {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  color: var(--nav-text);
  font-family: "Open Sans", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__item--has-submenu > a {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.submenu-toggle {
  display: none;
  border: 0;
  background: #444;
  color: var(--nav-text);
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
}

.site-submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 265px;
  padding: 0.55rem 0;
  background: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.site-submenu a {
  display: block;
  border-radius: 0;
  padding: 0.8rem 1.15rem;
  color: var(--nav-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav__item--has-submenu:hover .site-submenu,
.site-nav__item--has-submenu:focus-within .site-submenu,
.site-nav__item--has-submenu.is-open .site-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__list a:hover {
  background: var(--nav-hover);
  color: var(--nav-text);
}

.site-nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav__lang a {
  padding: 0;
  display: block;
  line-height: 0;
}

.site-nav__lang img {
  width: 32px;
  height: 32px;
}

.brand-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.brand-strip__inner {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.15rem;
}

.brand-strip__image {
  width: auto;
  max-width: min(100%, 690px);
  height: auto;
}

.hero-section,
.content-section,
.article-section,
.contact-band {
  padding: 2rem 0;
}

.hero-card,
.content-card,
.article-card,
.contact-card {
  background: #fff;
}

.hero-card--plain,
.content-card--plain {
  border: 0;
  box-shadow: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.hero-side {
  display: grid;
  justify-items: center;
}

.hero-portrait {
  background: #fff;
}

.hero-portrait--round img {
  width: min(100%, 395px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.quote-card {
  margin-top: 1.4rem;
  color: #000;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.55;
}

.quote-card--plain {
  width: min(100%, 340px);
}

.quote-card__author {
  text-align: right;
}

.hero-copy--plain {
  padding: 0.2rem 0 0 40px;
  color: #888888;
  font-size: 19.0667px;
}

.hero-copy--plain p {
  font-size: 19.0667px;
  margin-bottom: 38.1333px;
}

.hero-copy header {
  margin-bottom: 1.6rem;
}

.hero-copy header h3 {
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
}

.content-section {
  border-top: 1px solid #f0f0f0;
}

.content-section--alt {
  background: #fff;
}

.content-card,
.article-card {
  padding: 0;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading--center {
  text-align: center;
}

.section-heading p {
  max-width: 44rem;
  margin-inline: auto;
}

.prose {
  font-size: 19.0667px;
}

.prose p {
  font-size: 19.0667px;
  margin-bottom: 38.1333px;
}

.prose::after {
  content: "";
  display: block;
  clear: both;
}

.prose h2,
.prose h3,
.prose h4,
.article-card h2,
.article-card h3,
.article-card h4 {
  text-align: center;
}

.prose h3,
.prose h4 {
  clear: both;
}

.prose ul,
.prose ol {
  clear: both;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose .first {
  font-family: "Open Sans", sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: inherit;
}

.teacher-portrait {
  float: left;
  width: 145px;
  margin: 0.2rem 0.75rem 0.55rem 0;
  border: 1px solid #bebebe;
  border-radius: 0;
  box-shadow: none;
}

.page-list {
  display: block;
  padding: 0;
  list-style: none;
}

.page-list li {
  margin: 0 0 0.35rem;
}

.page-list a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.seminar-heading,
.seminar-break,
.seminar-note {
  text-align: center;
}

.seminar-break,
.seminar-note {
  color: var(--text);
}

.seminar-list {
  list-style: none;
  padding-left: 0;
}

.feedback-panel {
  width: 100%;
}

.feedback-published,
.feedback-submit {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.feedback-submit {
  margin-bottom: 1rem;
}

.feedback-published h3,
.feedback-submit h3 {
  margin-bottom: 0.7rem;
}

.feedback-published__list:empty::before {
  content: "Одобренные отзывы пока не опубликованы.";
  display: block;
  color: var(--text);
}

.feedback-entry + .feedback-entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dedede;
}

.feedback-entry {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2e3035;
}

.feedback-entry h4 {
  color: #2f3136;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  text-align: left;
}

.feedback-entry p {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0;
  white-space: pre-line;
}

.feedback-form--composer {
  margin-top: 0.1rem;
}

.feedback-composer {
  border: 1px solid #cfd6de;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.feedback-field {
  display: grid;
  gap: 0.35rem;
}

.feedback-field span {
  font-size: 0.95rem;
  color: var(--heading);
}

.feedback-field--composer {
  gap: 0;
}

.feedback-field__hint,
.feedback-field__count {
  color: var(--text);
  font-size: 0.85rem;
}

.feedback-field__count {
  text-align: right;
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: #344154;
  background: #fff;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: #9aa3ac;
}

.feedback-field--composer textarea {
  border: 0;
  padding: 0.9rem 1rem 0.8rem;
}

.feedback-field textarea {
  resize: vertical;
  min-height: 6.5rem;
  max-height: 12rem;
  overflow-y: auto;
}

.feedback-form__honeypot {
  display: none;
}

.feedback-composer__footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.7rem 0.7rem;
  border-top: 1px solid #d8dee5;
  background: #fafbfd;
}

.feedback-field--name {
  flex: 0 1 18rem;
  min-width: 14rem;
  gap: 0;
}

.feedback-field--name input {
  border-color: #d1d7df;
  border-radius: 0.4rem;
  padding: 0.48rem 0.72rem;
  font-size: 0.92rem;
}

.feedback-submit__button {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  background: #2e9ad3;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
}

.feedback-submit__button:hover {
  background: #258abd;
}

.feedback-field input:disabled,
.feedback-field textarea:disabled {
  color: #8b95a1;
  background: #f7f8fa;
  cursor: not-allowed;
}

.feedback-submit__button:disabled {
  background: #9dbfd4;
  cursor: not-allowed;
}

.feedback-submit__note {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 0.88rem;
}

.feedback-captcha {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.feedback-captcha__widget {
  min-height: 100px;
}

.feedback-submit__status {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.feedback-submit__status:empty {
  display: none;
}

.feedback-submit__status[data-state="success"] {
  color: #1f6e43;
}

.feedback-submit__status[data-state="error"] {
  color: #ab3e34;
}

.feedback-composer__meta--under {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem 0.7rem;
}

.feedback-composer__meta--under .feedback-field__hint,
.feedback-composer__meta--under .feedback-field__count {
  font-size: 0.82rem;
}

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

.feedback-success__actions {
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-band {
  background: var(--nav);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  padding: 4.6rem 0 3rem;
}

.contact-band .section-heading,
.contact-band .section-heading h2,
.contact-band .section-heading h3,
.contact-band .contact-card h3,
.contact-band a {
  color: var(--nav-text);
}

.contact-band .section-heading {
  margin-bottom: 4.1rem;
}

.contact-band .section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
}

.contact-band .section-heading p,
.contact-card__role {
  display: none;
}

.contact-band a {
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.contact-band a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  max-width: 510px;
  margin: 0 auto;
}

.contact-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.contact-card__role {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Play", sans-serif;
  font-size: 0.9rem;
}

.contact-card h3 {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.contact-card p {
  margin-bottom: 0.55rem;
}

.contact-card a {
  color: #3da5e7;
  font-size: 0.98rem;
}

.contact-card a:hover {
  color: #77c2ef;
}

.site-footer {
  padding: 0 0 2rem;
  background: var(--nav);
  color: rgba(255, 255, 255, 0.84);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
}

.site-footer__line {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: var(--nav-text);
}

.partner-link img {
  width: 125px;
  height: auto;
}

.article-card iframe,
.article-card script {
  max-width: 100%;
}

@media (max-width: 960px) {
  .site-header__inner {
    justify-content: space-between;
    align-items: start;
  }

  .brand--compact {
    display: inline-grid;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: calc(100% + 0.75rem) 1rem auto;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: var(--nav);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    max-height: min(calc(100vh - 8rem), 34rem);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-nav__item {
    width: 100%;
    display: block;
  }

  .site-nav__list a {
    width: 100%;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
  }

  .site-nav__item--has-submenu > a {
    border-radius: 6px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-nav__item--has-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    margin-left: 0;
    border-radius: 6px;
    flex: 0 0 auto;
  }

  .site-submenu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.15rem;
    padding: 0.2rem 0 0.2rem 0.7rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .site-nav__item--has-submenu:hover .site-submenu,
  .site-nav__item--has-submenu:focus-within .site-submenu,
  .site-nav__item--has-submenu.is-open .site-submenu {
    max-height: 240px;
    opacity: 1;
    visibility: visible;
  }

  .site-submenu a {
    padding: 0.4rem 0;
    color: var(--nav-text);
  }

  .site-nav__lang {
    margin-top: 0.35rem;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feedback-form__grid {
    grid-template-columns: 1fr;
  }

  .feedback-composer__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-field--name {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .hero-side {
    justify-items: center;
  }

  .brand-strip__inner {
    padding: 0.35rem 0 0.15rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .hero-section,
  .content-section,
  .article-section,
  .contact-band {
    padding: 1.8rem 0;
  }

  .contact-band {
    padding: 3rem 0 2.5rem;
  }

  .contact-band .section-heading {
    margin-bottom: 2.5rem;
  }

  .hero-grid {
    gap: 1.4rem;
  }

  .prose,
  .prose p,
  .hero-copy--plain,
  .hero-copy--plain p {
    font-size: 16px;
  }

  .prose p,
  .hero-copy--plain p {
    margin-bottom: 24px;
  }

  .hero-copy--plain {
    padding-left: 20px;
  }

  .teacher-portrait {
    float: left;
    width: 145px;
    margin: 0.2rem 0.75rem 0.55rem 0;
  }

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

  .brand-strip__image {
    max-width: 100%;
  }
}
