/*
  AllEnglishStudy — Russian About page
  Scoped CSS for the Russian version only.
*/

.aes-about-ru-page,
.aes-about-ru-page * {
  box-sizing: border-box;
}

.aes-about-ru-page {
  --aes-ru-yellow: #f4cf63;
  --aes-ru-pink: #e7a7df;
  --aes-ru-green: #98d978;
  --aes-ru-teal: #79d7d1;
  --aes-ru-text: #111111;
  --aes-ru-page: #ffffff;
  --aes-ru-line-strong: #b7d9a1;

  max-width: 980px;
  margin: 0 auto;
  padding: 34px 28px 52px;
  direction: ltr;
  text-align: left;
  color: var(--aes-ru-text);
  background: var(--aes-ru-page);
  font-family: Arial, "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

.aes-about-ru-page h1,
.aes-about-ru-page h2,
.aes-about-ru-paragraph {
  margin-top: 0;
}

.aes-about-ru-page h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.aes-about-ru-page h2 {
  margin-bottom: 16px;
  font-size: clamp(25px, 2.8vw, 33px);
  line-height: 1.25;
  font-weight: 700;
}

.aes-about-ru-paragraph {
  margin-bottom: 10px;
  font-size: inherit;
  line-height: inherit;
}

.aes-about-ru-paragraph:last-child {
  margin-bottom: 0;
}

.aes-about-ru-page strong {
  font-weight: 700;
}

.aes-about-ru-lead {
  font-size: inherit;
  line-height: inherit;
}

.aes-about-ru-page .aes-about-brand {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: Georgia, "Times New Roman", serif;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
  word-spacing: 0;
}

.aes-about-ru-page .aes-brand-all {
  color: #ff9a00;
}

.aes-about-ru-page .aes-brand-english {
  color: #43ad36;
}

.aes-about-ru-page .aes-brand-study {
  color: #d46c56;
}

.aes-about-ru-opening,
.aes-about-ru-text,
.aes-about-ru-founder {
  position: relative;
  margin: 0 0 26px;
  padding: 20px 26px;
}

.aes-about-ru-opening {
  padding-top: 22px;
}

.aes-about-ru-outline::before,
.aes-about-ru-outline::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* LTR contour: top + right */
.aes-about-ru-outline-top-right::before {
  top: 0;
  right: 0;
  width: 42%;
  border-top: 3px solid var(--aes-ru-teal);
}

.aes-about-ru-outline-top-right::after {
  top: 0;
  right: 0;
  height: 72%;
  border-right: 3px solid var(--aes-ru-teal);
}

/* LTR contour: bottom + left */
.aes-about-ru-outline-bottom-left::before {
  left: 0;
  bottom: 0;
  width: 42%;
  border-bottom: 3px solid var(--aes-ru-green);
}

.aes-about-ru-outline-bottom-left::after {
  left: 0;
  bottom: 0;
  height: 72%;
  border-left: 3px solid var(--aes-ru-green);
}

.aes-about-ru-text strong:first-of-type {
  text-decoration: underline;
  text-decoration-color: var(--aes-ru-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.aes-about-ru-text strong:nth-of-type(2) {
  text-decoration: underline;
  text-decoration-color: var(--aes-ru-pink);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.aes-about-ru-founder {
  min-height: 220px;
  display: flow-root;
}

.aes-about-ru-founder-photo {
  float: left;
  width: 180px;
  height: 180px;
  margin: 6px 22px 12px 0;
  padding: 6px;
  border: 3px solid var(--aes-ru-line-strong);
  object-fit: cover;
  object-position: center;
  background: #ffffff;
}

.aes-about-ru-founder-alexander .aes-about-ru-founder-photo {
  border-color: var(--aes-ru-teal);
}

.aes-about-ru-founder-anna .aes-about-ru-founder-photo {
  border-color: var(--aes-ru-pink);
}

.aes-about-ru-founder-alexander.aes-about-ru-outline-top-right::before,
.aes-about-ru-founder-alexander.aes-about-ru-outline-top-right::after {
  border-color: var(--aes-ru-yellow);
}

.aes-about-ru-founder-anna.aes-about-ru-outline-bottom-left::before,
.aes-about-ru-founder-anna.aes-about-ru-outline-bottom-left::after {
  border-color: var(--aes-ru-pink);
}

@media (max-width: 760px) {
  .aes-about-ru-page {
    padding: 28px 18px 42px;
    font-size: 17px;
    line-height: 1.66;
  }

  .aes-about-ru-opening,
  .aes-about-ru-text,
  .aes-about-ru-founder {
    margin-bottom: 24px;
    padding: 18px 16px;
  }

  .aes-about-ru-outline-top-right::before,
  .aes-about-ru-outline-bottom-left::before {
    width: 58%;
  }

  .aes-about-ru-outline-top-right::after,
  .aes-about-ru-outline-bottom-left::after {
    height: 56%;
  }

  .aes-about-ru-founder-photo {
    float: none;
    display: block;
    width: min(240px, 82vw);
    height: min(240px, 82vw);
    margin: 0 auto 18px;
  }
}

@media (max-width: 430px) {
  .aes-about-ru-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .aes-about-ru-opening,
  .aes-about-ru-text,
  .aes-about-ru-founder {
    padding: 16px 12px;
  }

  .aes-about-ru-page h1 {
    font-size: 32px;
  }

  .aes-about-ru-page h2 {
    font-size: 25px;
  }
}

/*
  AllEnglishStudy — Russian Methodology page
  Scoped CSS for the Russian version only.
*/

.aes-methodology-ru-page,
.aes-methodology-ru-page * {
  box-sizing: border-box;
}

.aes-methodology-ru-page {
  --aes-methodology-ru-orange: #ff9a00;
  --aes-methodology-ru-green: #53b83c;
  --aes-methodology-ru-study: #c96854;
  --aes-methodology-ru-yellow: #f4cf63;
  --aes-methodology-ru-teal: #79d7d1;
  --aes-methodology-ru-rose: #e7a7df;
  --aes-methodology-ru-text: #111111;
  --aes-methodology-ru-muted: #4d4d4d;

  position: relative;
  isolation: isolate;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 28px 52px;
  direction: ltr;
  text-align: left;
  color: var(--aes-methodology-ru-text);
  background: #ffffff;
  font-family: Arial, "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.82;
}

.aes-methodology-ru-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.aes-methodology-ru-block {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  padding: 20px 26px;
  background: rgba(255, 255, 255, 0.94);
}

.aes-methodology-ru-hero {
  padding-top: 24px;
}

.aes-methodology-ru-closing {
  margin-bottom: 0;
}

.aes-methodology-ru-paragraph {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.aes-methodology-ru-brand {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  letter-spacing: -0.035em;
  word-spacing: 0;
  margin: 0 0.18em 0 0;
}

.aes-methodology-ru-brand-all {
  color: var(--aes-methodology-ru-orange);
}

.aes-methodology-ru-brand-english {
  color: var(--aes-methodology-ru-green);
}

.aes-methodology-ru-brand-study {
  color: var(--aes-methodology-ru-study);
}

.aes-methodology-ru-highlight {
  font-weight: 700;
  color: var(--aes-methodology-ru-study);
  border-bottom: 2px solid rgba(201, 104, 84, 0.38);
}

.aes-methodology-ru-outline::before,
.aes-methodology-ru-outline::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 42px;
  pointer-events: none;
  opacity: 0.75;
}

.aes-methodology-ru-outline-top-left::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--aes-methodology-ru-orange);
  border-left: 3px solid var(--aes-methodology-ru-orange);
}

.aes-methodology-ru-outline-top-left::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid rgba(83, 184, 60, 0.62);
  border-bottom: 2px solid rgba(83, 184, 60, 0.62);
}

.aes-methodology-ru-outline-bottom-right::before {
  right: 0;
  bottom: 0;
  border-right: 3px solid var(--aes-methodology-ru-teal);
  border-bottom: 3px solid var(--aes-methodology-ru-teal);
}

.aes-methodology-ru-outline-bottom-right::after {
  top: 0;
  left: 0;
  border-top: 2px solid rgba(244, 207, 99, 0.85);
  border-left: 2px solid rgba(244, 207, 99, 0.85);
}

.aes-methodology-ru-principle {
  position: relative;
  z-index: 1;
  margin: 28px 0;
  padding: 24px 28px 26px;
  text-align: center;
  background: #ffffff;
}

.aes-methodology-ru-principle::before,
.aes-methodology-ru-principle::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.aes-methodology-ru-principle::before {
  inset: 0;
  border-top: 3px solid var(--aes-methodology-ru-green);
  border-bottom: 3px solid var(--aes-methodology-ru-study);
}

.aes-methodology-ru-principle::after {
  width: 70px;
  height: 70px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(16deg);
  border: 3px solid rgba(255, 154, 0, 0.28);
}

.aes-methodology-ru-principle-label {
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--aes-methodology-ru-muted);
  letter-spacing: 0.02em;
}

.aes-methodology-ru-principle-text {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.28;
  font-weight: 700;
  color: var(--aes-methodology-ru-text);
}

.aes-methodology-ru-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

.aes-methodology-ru-circle {
  width: 180px;
  height: 180px;
  border: 4px solid var(--aes-methodology-ru-teal);
  border-radius: 50%;
  top: 36px;
  right: -72px;
}

.aes-methodology-ru-square {
  width: 132px;
  height: 132px;
  border: 4px solid var(--aes-methodology-ru-yellow);
  transform: rotate(18deg);
  left: -58px;
  top: 350px;
}

.aes-methodology-ru-star {
  right: 40px;
  bottom: 92px;
  font-size: 118px;
  line-height: 1;
  color: var(--aes-methodology-ru-rose);
  transform: rotate(-12deg);
  font-family: Georgia, "Times New Roman", serif;
}

@media (max-width: 700px) {
  .aes-methodology-ru-page {
    padding: 28px 18px 42px;
    font-size: 16.5px;
    line-height: 1.78;
  }

  .aes-methodology-ru-block {
    margin-bottom: 18px;
    padding: 18px 18px;
  }

  .aes-methodology-ru-outline::before,
  .aes-methodology-ru-outline::after {
    width: 56px;
    height: 30px;
  }

  .aes-methodology-ru-principle {
    margin: 22px 0;
    padding: 22px 18px;
  }

  .aes-methodology-ru-decoration {
    opacity: 0.11;
  }
}

/*
  AllEnglishStudy — Russian Contact page
  Scoped CSS for the Russian version only.
*/

.aes-contact-ru-page,
.aes-contact-ru-page * {
  box-sizing: border-box;
}

.aes-contact-ru-page {
  --aes-contact-ru-orange: #ff9a00;
  --aes-contact-ru-yellow: #f4cf63;
  --aes-contact-ru-teal: #79d7d1;
  --aes-contact-ru-rose: #e7a7df;
  --aes-contact-ru-study: #c96854;
  --aes-contact-ru-text: #111111;

  position: relative;
  isolation: isolate;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 28px 52px;
  direction: ltr;
  text-align: left;
  font-size: 18px;
  line-height: 1.82;
  color: var(--aes-contact-ru-text);
}

.aes-contact-ru-panel {
  position: relative;
  z-index: 1;
  padding: 28px 34px 30px;
  background: rgba(255, 255, 255, 0.96);
}

.aes-contact-ru-title {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.8vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.aes-contact-ru-content {
  max-width: 880px;
}

.aes-contact-ru-paragraph {
  margin: 0 0 16px;
  font-size: inherit;
  line-height: inherit;
}

.aes-contact-ru-paragraph:last-child {
  margin-bottom: 0;
}

.aes-contact-ru-thanks {
  font-weight: 700;
}

.aes-contact-ru-email {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  margin-left: 0.18em;
  color: var(--aes-contact-ru-study);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 104, 84, 0.38);
}

.aes-contact-ru-email:hover,
.aes-contact-ru-email:focus {
  border-bottom-color: var(--aes-contact-ru-study);
}

/* One frame for the whole text block */
.aes-contact-ru-outline::before,
.aes-contact-ru-outline::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.aes-contact-ru-outline::before {
  top: 0;
  left: 0;
  width: 34%;
  height: 40%;
  border-top: 3px solid var(--aes-contact-ru-orange);
  border-left: 3px solid var(--aes-contact-ru-orange);
}

.aes-contact-ru-outline::after {
  right: 0;
  bottom: 0;
  width: 34%;
  height: 40%;
  border-right: 3px solid var(--aes-contact-ru-teal);
  border-bottom: 3px solid var(--aes-contact-ru-teal);
}

.aes-contact-ru-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
}

.aes-contact-ru-circle {
  width: 172px;
  height: 172px;
  border: 4px solid var(--aes-contact-ru-teal);
  border-radius: 50%;
  top: 56px;
  right: -54px;
}

.aes-contact-ru-square {
  width: 126px;
  height: 126px;
  border: 4px solid var(--aes-contact-ru-yellow);
  transform: rotate(17deg);
  left: -42px;
  bottom: 62px;
}

.aes-contact-ru-star {
  right: 74px;
  bottom: 34px;
  font-size: 96px;
  line-height: 1;
  color: var(--aes-contact-ru-rose);
  transform: rotate(-10deg);
  font-family: Georgia, "Times New Roman", serif;
}

@media (max-width: 700px) {
  .aes-contact-ru-page {
    padding: 28px 18px 42px;
    font-size: 16.5px;
    line-height: 1.78;
  }

  .aes-contact-ru-panel {
    padding: 22px 18px 24px;
  }

  .aes-contact-ru-outline::before,
  .aes-contact-ru-outline::after {
    width: 46%;
    height: 22%;
  }

  .aes-contact-ru-decoration {
    opacity: 0.08;
  }

  .aes-contact-ru-circle {
    width: 120px;
    height: 120px;
    right: -58px;
  }

  .aes-contact-ru-square {
    width: 92px;
    height: 92px;
    left: -42px;
  }

  .aes-contact-ru-star {
    display: none;
  }
}