/*
 * Публичный сайт — точечные улучшения над клоном MODX-дизайна (style.css).
 * Подключается последним в assets.json — переопределяет легаси без правки partials.
 */

/* Верхняя строка меню и «Наши адреса»: Manrope вместо Gotham Pro 14px. */
.top-menu,
.top-menu__list > li > a,
.top-menu__list .uk-nav-dropdown > li > a,
.header-top__adress,
.header-top__adress-link,
.header-top__adress-drop-adress,
.header-top__adress-drop-time {
  font-family: Manrope, "GothamPro", sans-serif;
}

.top-menu__list > li > a,
.header-top__adress-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Верхняя строка (меню + «Наши адреса» + кабинет) — всегда одна линия
   с 960px. Иначе uk-grid переносит кабинет вниз, когда «Сведения об
   организации» не влезает (ноутбук ~1280 при масштабе 125%). */
@media (min-width: 960px) {
  .header-top .uk-container > .uk-grid {
    flex-wrap: nowrap;
    align-items: center;
  }

  .header-top .uk-container > .uk-grid > .uk-width-auto:last-child {
    flex-shrink: 0;
  }

  /* Меню и «Наши адреса» — одна строка: адрес внутри списка, связка не сжимается и не отрывается. */
  .header-top .uk-visible\@m.uk-flex {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
  }

  .top-menu__list {
    flex-wrap: nowrap;
  }

  .top-menu__list > .top-menu__adress,
  .top-menu__list > .top-menu__adress .header-top__adress {
    flex: 0 0 auto;
    align-items: center;
  }

  .top-menu__list > .top-menu__adress .header-top__adress {
    margin-left: 0;
  }

  .top-menu__list > li > a,
  .header-top__adress-link {
    white-space: nowrap;
  }

  /* Галочка выпадающего меню не должна опускать подпись.
     Flex + иконка icomoon сдвигали «О нас» / «Статьи» / «Сведения» на 2px ниже соседних пунктов. */
  .top-menu__list .main-menu__parent > a,
  .header-top__adress-link {
    display: block;
    padding-right: 15px;
    line-height: 15px;
  }

  .top-menu__list .main-menu__parent > a::after,
  .header-top__adress-link::after {
    position: absolute;
    top: 50%;
    right: 0;
    margin: -4px 0 0;
    line-height: 8px;
  }

  /* Улицы в одну линию: два адреса рядом, текст не складывается столбиком. */
  .header-top__adress-drop {
    left: auto;
    right: 0;
  }

  .header-top__adress-drop-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: max-content;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }

  .header-top__adress-drop-adress {
    white-space: nowrap;
  }

  .header-top__adress-drop-time {
    white-space: normal;
  }

  .header-top__adress-drop-group,
  .header-top__adress-drop-group:not(:last-child) {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    box-sizing: border-box;
  }

  .header-top__adress-drop-group:not(:last-child) {
    border-bottom: 0;
    border-right: 2px solid #F8F8F8;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .top-menu__list > li {
    margin-right: 12px;
  }
}

.top-menu__list .uk-nav-dropdown > li > a,
.header-top__adress-drop-adress {
  font-weight: 600;
}

.header-top__adress-drop-time {
  font-weight: 500;
}

/* Поиск в шапке — та же рамка, что у #dashboardSearchForm в CRM. */
.header-search__input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: Manrope, "GothamPro", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search__input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  outline: none;
}

:root {
  --ps-shadow-sm: 0 2px 10px rgba(57, 44, 112, 0.08);
  --ps-shadow-md: 0 8px 24px rgba(57, 44, 112, 0.14);
  --ps-shadow-lg: 0 16px 40px rgba(57, 44, 112, 0.18);
  --ps-radius-sm: 6px;
  --ps-radius-md: 10px;
  --ps-radius-lg: 14px;
  --ps-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --ps-tint-violet: #f6f2fc;
  --ps-tint-pink: #fdf3fa;
  --ps-brand-violet: #392c70;
}

/* ---------------------------------------------------------------------- *
 * Ритм секций главной — чередование фона + мягкий градиент к белому.
 * `section.contacts-section` (не просто `.contacts-section`) — этот же класс
 * реюзается на отдельной странице /contacts/ как обычный `<div>` (без
 * своего фона/паджинга на проде, там уже фон даёт `.inner-page`) — тег в
 * селекторе разделяет full-bleed секцию на главной от контентного блока
 * на /contacts/ (иначе на /contacts/ фон/паджинг «протекали» — баг 2026-08-26).
 * ---------------------------------------------------------------------- */

.main-about,
.articles {
  background: linear-gradient(180deg, var(--ps-tint-violet) 0%, #fff 100%);
}

.advantage,
section.contacts-section {
  background: linear-gradient(180deg, var(--ps-tint-pink) 0%, #fff 100%);
}

.list-1,
.main-review,
.gallery,
.main-teacher {
  background-color: #fff;
}

.main-about,
.advantage,
.articles,
section.contacts-section,
.main-teacher {
  padding-top: 48px;
  padding-bottom: 48px;
}

.advantage,
.articles,
section.contacts-section,
.main-review {
  border-top: 1px solid rgba(57, 44, 112, 0.07);
}

/*
 * Те же секции (.main-about, .advantage, .articles, .list-1, .main-review,
 * .gallery) переиспользуются как контентные блоки ВНУТРИ .inner-page
 * (/o-nas/, /o-nas/pravila-czentra/, /uslugi-i-tseny/ — те же куски HTML,
 * что и на главной). Там уже есть свой фон/паджинг от .inner-page —
 * full-bleed градиент/паджинг/border-top главной там протекает и выглядит
 * как баг (тот же класс проблемы, что был у .contacts-section, 2026-08-26).
 * Сбрасываем «ритм секций главной» только когда секция вложена в .inner-page;
 * там же, где эти классы используются как full-bleed «хвост» страницы
 * (.main-teacher, .main-review в service-reviews.html — рендерятся ВНЕ
 * .inner-page) — правило не действует, там оформление остаётся штатным.
 */
.inner-page .main-about,
.inner-page .advantage,
.inner-page .articles,
.inner-page .list-1,
.inner-page .main-review,
.inner-page .gallery {
  background: none;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

.main-about .main-about__content {
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-md);
}

.main-about .main-about__content-image {
  border-radius: var(--ps-radius-md);
}

/* ---------------------------------------------------------------------- *
 * Плитки услуг — базовая глубина, скругление, блик.
 * drop-shadow не обрезается overflow:hidden (в отличие от box-shadow).
 * ---------------------------------------------------------------------- */

.tile .tile__item {
  margin-bottom: 12px;
}

/* Мозаика направлений: один короткий шов по обеим осям.
   32px на десктопе раздувал сетку — карточки выглядели отдельно стоящими. */
.tile.display-animation .uk-grid.uk-grid-small {
  margin-left: -12px;
}

.tile.display-animation .uk-grid.uk-grid-small > * {
  padding-left: 12px;
}

.tile.display-animation .tile__item {
  margin-bottom: 12px;
}

.tile__item {
  border-radius: var(--ps-radius-md) !important;
  transition:
    transform 0.25s var(--ps-ease),
    filter 0.25s var(--ps-ease);
  will-change: transform;
  filter: drop-shadow(0 4px 14px rgba(57, 44, 112, 0.18));
}

a.tile__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

a.tile__item .tile__item-title {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .tile__item:hover,
  .tile__item:focus-visible {
    transform: translateY(-6px);
    filter: drop-shadow(0 18px 36px rgba(57, 44, 112, 0.28));
  }

  a.tile__item:hover .tile__item-title,
  a.tile__item:focus-visible .tile__item-title {
    transform: translateY(-5px);
  }

  a.tile__item:hover .tile__item-title::after,
  a.tile__item:focus-visible .tile__item-title::after {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Тёмный оверлей + «Подробнее» — в оригинале (style.css) только на
 * ширинах ≥1220px. Дублируем без привязки к ширине, но только для
 * устройств с настоящим hover (мышь) — чтобы эффект работал и при узком
 * окне десктоп-браузера, но не «залипал» после тапа на тач-экранах. */
@media (hover: hover) {
  a.tile__item::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    margin: auto;
    background-color: #000;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.2s linear;
  }

  a.tile__item .tile__item-title::after {
    content: "Подробнее";
    display: block;
    transition: all 0.2s linear;
    font-size: 12px;
    text-transform: none;
    font-weight: 400;
    margin-top: 10px;
    transform: translateY(100%);
    opacity: 0;
  }

  a.tile__item:hover::after,
  a.tile__item:focus-visible::after {
    opacity: 0.6;
  }

  a.tile__item:hover .tile__item-title::after,
  a.tile__item:focus-visible .tile__item-title::after {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------- *
 * Карточки преимуществ — из плоского списка в плитки с hover.
 * ---------------------------------------------------------------------- */

.advantage__list .advantage__item {
  background: #fff;
  border-radius: var(--ps-radius-md);
  padding: 28px 22px 24px;
  box-shadow: var(--ps-shadow-sm);
  transition: transform 0.25s var(--ps-ease), box-shadow 0.25s var(--ps-ease);
  height: 100%;
}

.advantage__list .advantage__item-img {
  margin-top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ps-tint-violet);
}

@media (hover: hover) {
  .advantage__list .advantage__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ps-shadow-md);
  }
}

/* Сортировка статей и новостей: кнопка и список как у остальных меню сайта. */
.info_filter > .sort,
.info_filter > .total {
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #4a4a4a;
}

.info_filter > .sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.custom-select-trigger {
  width: auto;
  min-width: 210px;
  padding: 8px 36px 8px 14px;
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #2e2550;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.custom-select-trigger:after {
  right: 14px;
  border-bottom-color: #922c88;
  border-right-color: #922c88;
}

.custom-options {
  margin-top: 6px;
  padding: 6px 0;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 48px -18px rgba(46, 37, 96, 0.28);
  overflow: hidden;
}

.custom-option {
  margin: 0;
  padding: 10px 16px;
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #4a4a4a;
  border-radius: 0;
  white-space: nowrap;
}

.custom-option:first-of-type,
.custom-option:last-of-type {
  border-radius: 0;
}

.custom-option:hover,
.custom-option.selection {
  color: #922c88;
  background: #f5eefb;
}

/* Звёзды отзывов: ровная скруглённая форма вместо рваного клипарта. */
.review-slider__rate-list {
  align-items: center;
  gap: 3px;
}

.review-slider__rate-list > li {
  display: flex;
  margin-right: 0;
}

.review-slider__rate-list svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}

.review-slider__rate-list svg path {
  fill: #e8a317;
  d: path("M9.61 2.68 Q10.00 1.60 10.39 2.68 L11.69 6.25 Q12.09 7.33 13.24 7.37 L17.03 7.50 Q18.18 7.54 17.27 8.25 L14.28 10.59 Q13.38 11.30 13.69 12.40 L14.74 16.05 Q15.05 17.16 14.10 16.51 L10.95 14.39 Q10.00 13.75 9.05 14.39 L5.90 16.51 Q4.95 17.16 5.26 16.05 L6.31 12.40 Q6.62 11.30 5.72 10.59 L2.73 8.25 Q1.82 7.54 2.97 7.50 L6.76 7.37 Q7.91 7.33 8.31 6.25 Z");
}

/* Дата и счётчик — две одинаковые плашки. Иконка и число внутри одной. */
.articles-info-list,
.news-item__item-info-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.articles-info-list .article-info-listitem,
.news-item__item-info-list-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px !important;
  border-radius: 999px;
  background: #f6f2fc;
  color: #392c70;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.articles-info-list .article-info-listitem > svg,
.news-item__item-info-list-item > svg {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  transform: translateY(-1px);
}

.articles-info-list .article-info-listitem > svg path,
.news-item__item-info-list-item > svg path {
  fill: currentColor;
}

/* ---------------------------------------------------------------------- *
 * Вкладки категорий статей (/stati/) — плоские прямоугольники → чипы-пилюли.
 * ---------------------------------------------------------------------- */

.parents-menu-articles ul.hr li > a {
  border-radius: var(--ps-radius-lg);
  transition:
    transform 0.2s var(--ps-ease),
    box-shadow 0.2s var(--ps-ease),
    background-color 0.2s ease;
}

.parents-menu-articles ul.hr li.active > a {
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
}

@media (hover: hover) {
  .parents-menu-articles ul.hr li:not(.active) > a:hover {
    transform: translateY(-2px);
    background: #e2deea;
    box-shadow: var(--ps-shadow-sm);
  }
}

/* ---------------------------------------------------------------------- *
 * Единый hover-лифт для остальных карточек.
 * ---------------------------------------------------------------------- */

.news-item__item,
.review-slider__item,
.slider-1__item-container {
  border-radius: var(--ps-radius-md);
  transition: transform 0.25s var(--ps-ease), box-shadow 0.25s var(--ps-ease);
}

/* Каталог /novosti/ и /stati/, плюс блок «Полезные статьи» (.articles__list).
   У новостей картинка-заглушка скрыта, поэтому полоска и фон вместо фото. */
#pdopage.block-news .news-item__item,
.articles__list .news-item__item {
  border: 1px solid #efe8f6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(57, 44, 112, 0.06);
}

#pdopage.block-news .news-item__item-content,
.articles__list .news-item__item-content {
  padding: 16px 18px 18px;
}

#pdopage.block-news .news-item__item-info,
.articles__list .news-item__item-info {
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid #efe8f6;
}

#pdopage.block-news .news-item__item-info-date,
.articles__list .news-item__item-info-date {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fdf3fa;
  font-size: 13px;
  font-weight: 700;
}

#pdopage.block-news .news-item__item-text,
.articles__list .news-item__item-text {
  padding: 12px 0 0;
}

#pdopage.block-news .news-item__item-text-title,
.articles__list .news-item__item-text-title {
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #2e2560;
}

#pdopage.block-news .news-item__item-text-desc,
.articles__list .news-item__item-text-desc {
  color: #5c5670;
}

#pdopage.block-news .news-item__item-image {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #392c70, #922c88 58%, #c938bb);
}

#pdopage.block-news .news-item__item-image > img {
  display: none;
}

#pdopage.block-news .news-item__item-image2 img,
.articles__list .news-item__item-image2 img {
  display: block;
  width: 100%;
  height: auto;
  /* Яндекс Браузер рисует свою белую кнопку на img при наведении.
     Клик остаётся на ссылке-карточке. */
  pointer-events: none;
}

#pdopage.block-news .news-item__item-image-tags,
.articles__list .news-item__item-image-tags {
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #922c88;
}

#pdopage.block-news .news-item__item-image-tags p,
.articles__list .news-item__item-image-tags p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Сама новость и статья: колонка для чтения, фото видно и на компьютере. */
.inner-page .img-article.mobile {
  display: block;
  width: fit-content;
  max-width: min(480px, 100%);
  margin: 4px 0 18px;
  border-radius: 16px;
  overflow: hidden;
}

.inner-page .img-article.mobile img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
}

.inner-page .articles-info {
  max-width: 760px;
  align-items: center;
  gap: 14px;
}

.inner-page .articles-info__date {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f6f2fc;
  color: #392c70;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.inner-page [itemprop="articleBody"] {
  max-width: 760px;
  color: #3a3450;
  font-size: 17px;
  line-height: 1.7;
}

.inner-page [itemprop="articleBody"] > p {
  margin: 0 0 14px;
}

.inner-page [itemprop="articleBody"] h2 {
  margin: 28px 0 12px;
  color: #2e2560;
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.inner-page [itemprop="articleBody"] h2:first-child {
  margin-top: 8px;
}

.inner-page [itemprop="articleBody"] img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(480px, 100%);
  max-height: 240px;
  border-radius: 16px;
}

@media (hover: hover) {
  .news-item__link:hover .news-item__item,
  .news-item__item:hover,
  .review-slider__item:hover,
  .slider-1__item-container:hover {
    transform: translateY(-6px);
    box-shadow: var(--ps-shadow-lg);
  }
}

.specialists-list-card .teacher-slider__img {
  border-radius: var(--ps-radius-sm);
}

.specialists-list-card .teacher-slider__img img {
  transition: transform 0.4s var(--ps-ease);
}

@media (hover: hover) {
  .specialists-list-card:hover .teacher-slider__img img {
    transform: scale(1.05);
  }
}

/* ---------------------------------------------------------------------- *
 * Кнопки записи — более живая реакция.
 * ---------------------------------------------------------------------- */

.button-1,
.uk-button-primary {
  transition:
    transform 0.2s var(--ps-ease),
    box-shadow 0.2s var(--ps-ease),
    background-color 0.2s ease,
    border-color 0.2s ease;
}

@media (hover: hover) {
  .button-1:hover,
  .button-1:focus-visible,
  .uk-button-primary:hover,
  .uk-button-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--ps-shadow-sm);
  }
}

/* ---------------------------------------------------------------------- *
 * Инлайн-статус формы записи — см. ModxLayout.astro.
 * ---------------------------------------------------------------------- */

.ps-inline-status {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 1.4em;
}

.ps-inline-status.is-ok {
  color: #1e7e34;
}

.ps-inline-status.is-err {
  color: #c0392b;
}

/* ---------------------------------------------------------------------- *
 * Доступность: видимый focus для клавиатурной навигации.
 * ---------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ps-brand-violet);
  outline-offset: 2px;
}

/* Длинный отзыв в слайдере: в карточке шесть строк, целиком — в окне. */
.slider-2__item .review-slider__text.is-clamped > p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #922c88;
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.review-read-more:hover,
.review-read-more:focus {
  color: #6e2068;
}

.review-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.review-dialog[hidden] {
  display: none;
}

.review-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 37, 96, 0.45);
}

.review-dialog__card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 28px 28px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 48px -18px rgba(46, 37, 96, 0.28);
  font-family: Manrope, "GothamPro", sans-serif;
}

.review-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f5eefb;
  color: #2e2550;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.review-dialog__name {
  margin: 0 36px 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2e2550;
}

.review-dialog__date {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #8892a1;
}

.review-dialog__body {
  font-size: 16px;
  line-height: 1.5;
  color: #4a4a4a;
}

/* Вёрстка текстов направлений: карточки степеней, шаги, блок «когда обратиться». */
.article-sample .article-aside {
  margin: 4px 0 8px;
  padding: 12px 16px;
  background: #f6f2fc;
  border-left: 3px solid #aa96c6;
  border-radius: 0 12px 12px 0;
}

.article-sample .article-degrees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}

.article-sample .article-degree {
  margin: 0;
  padding: 14px 14px 12px;
  background: #f6f2fc;
  border-radius: 14px;
  border-top: 3px solid #392c70;
}

.article-sample .article-degree:nth-child(3n+2) {
  border-top-color: #922c88;
}

.article-sample .article-degree:nth-child(3n) {
  background: #fdf3fa;
  border-top-color: #c938bb;
}

.article-sample .article-degree__label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #2e2560;
}

.article-sample .article-degree__label a {
  font-size: 15px;
  font-weight: 700;
}

.article-sample .article-degree p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.article-sample ol.article-steps {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  counter-reset: astep;
}

.article-sample ol.article-steps > li {
  position: relative;
  list-style: none;
  margin: 0 0 16px;
  padding: 4px 0 0 52px;
}

.article-sample ol.article-steps > li::before {
  content: counter(astep);
  counter-increment: astep;
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #392c70;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}

.article-sample .article-steps__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #2e2560;
}

.article-sample ol.article-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.article-sample .article-callout {
  margin: 8px 0 22px;
  padding: 16px 18px 6px;
  background: #fdf3fa;
  border: 1px solid #f3d4ee;
  border-radius: 16px;
}

.article-sample .article-callout > h2,
.article-sample .article-callout__title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #2e2560;
}

.article-sample .article-callout ul {
  margin-top: 0;
  margin-bottom: 8px;
}

.article-sample .article-callout__note {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}

.article-sample .article-callout p {
  margin: 0 0 12px;
}

.article-story .article-callout p {
  margin: 0 0 12px;
}

/* Страница «О нас»: колонка для чтения и карточки направлений. */
.about-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #3a3450;
  font-size: 17px;
  line-height: 1.7;
}

.about-intro > p {
  margin: 0 0 14px;
}

.about-intro h2 {
  margin: 28px 0 12px;
  color: #2e2560;
  font-family: Manrope, "GothamPro", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-intro .article-degree__label a {
  color: #2e2560;
  text-decoration: none;
}

.about-intro .article-degree__label a:hover {
  color: #922c88;
}

/* Прайс «Услуги и цены»: таблица внутри .inner-page получает чёрную рамку
   из общего правила .inner-page table. На страницах направлений этого класса нет. */
.inner-page .call-action__table {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 0 0 1px #efe8f6, 0 8px 24px rgba(57, 44, 112, 0.06);
}

@media (max-width: 700px) {
  .article-sample .article-degrees {
    grid-template-columns: 1fr;
  }
}

/* Одна статья-образец: ритмичное дыхание. Остальные статьи не затрагивает. */
.article-story .article-lead {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 8px 22px;
  align-items: center;
  margin: 0 0 6px;
}

.article-story .article-lead .img-article.mobile {
  margin: 0;
  max-width: 280px;
}

.article-story .article-lead .img-article.mobile img {
  max-height: 210px;
}

.article-story .article-lead p {
  margin: 0 0 12px;
}

.article-story .article-lead p:last-child {
  margin-bottom: 0;
}

.article-story .article-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.article-story .article-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6f2fc;
  color: #2e2560;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .article-story .article-lead {
    grid-template-columns: 1fr;
  }

  .article-story .article-lead .img-article.mobile {
    max-width: 320px;
  }
}

/* Памятка «Правила центра»: таблица абонемента — карточки, не чёрная сетка. */
.inner-page table.rules-table {
  width: 100%;
  margin: 8px 0 28px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.rules-table th,
.rules-table td {
  border: 1px solid #efe8f6;
  background: #fff;
  vertical-align: top;
}

.rules-table th {
  width: 280px;
  padding: 18px 16px 18px 18px;
  background: #f6f2fc;
  color: #2e2560;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: inset 3px 0 0 #392c70;
}

.rules-table td {
  padding: 12px 18px 8px 8px;
  border-left: 0;
  border-radius: 0 16px 16px 0;
}

.rules-table td ul {
  margin: 4px 0 0;
}

.rules-table td li:last-child {
  padding-bottom: 0;
}

.rules-signoff {
  margin: 28px 0 12px;
  padding: 18px 20px 8px;
  background: #f6f2fc;
  border-radius: 16px;
}

.rules-signoff p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}

/* Прайс в новости: строки без чёрной сетки. */
.inner-page .price-list table {
  width: 100%;
  margin: 0 0 28px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px #efe8f6;
  overflow: hidden;
}

.price-list th,
.price-list td {
  border: 0;
  border-bottom: 1px solid #efe8f6;
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.45;
  color: #2e2560;
}

.price-list thead th {
  background: #f6f2fc;
  color: #392c70;
  font-weight: 700;
}

.price-list th:last-child,
.price-list td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  padding-left: 16px !important;
}

.price-list tbody tr:last-child td {
  border-bottom: 0;
}

.price-list tbody tr:nth-child(even) td {
  background: #fcfafd;
}

@media (max-width: 700px) {
  .rules-table,
  .rules-table tbody,
  .rules-table tr,
  .rules-table th,
  .rules-table td {
    display: block;
    width: 100%;
  }

  .rules-table {
    border-spacing: 0;
  }

  .rules-table tr {
    margin: 0 0 12px;
  }

  .rules-table th,
  .rules-table td {
    border: 1px solid #efe8f6;
  }

  .rules-table th {
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 3px 0 #392c70;
  }

  .rules-table td {
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 4px 12px 8px;
  }
}

.article-comment-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.article-comment-hint {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.article-comment-status {
  margin-top: 14px;
  min-height: 1.2em;
}

.article-comment-status.is-ok {
  color: #1b7f4a;
}

.article-comment-status.is-err {
  color: #b42318;
}

.bottom-articles__comment-answer {
  margin-top: 14px;
  padding: 12px 0 0 16px;
  border-top: 1px solid #ece7f4;
  border-left: 3px solid #392c70;
}

@media (prefers-reduced-motion: reduce) {
  .tile__item,
  .advantage__list .advantage__item,
  .news-item__item,
  .review-slider__item,
  .slider-1__item-container,
  .parents-menu-articles ul.hr li > a,
  .button-1,
  .uk-button-primary,
  .specialists-list-card .teacher-slider__img img {
    transition: none !important;
    transform: none !important;
  }
}
