:root {
  --brand-primary: #5199ff;
  --brand-bg: #fcf8f2;
  --brand-dark: #1a1a1a;
  --brand-muted: #6c757d;
  --brand-radius: 30px;
  --text-base: 1rem;
  --text-problem: 1.125rem;
  --text-line: 1.6;
  --heading-section: 1.5rem;
  --heading-sub: 1.125rem;
  --heading-hero: clamp(1.625rem, 4vw, 2.125rem);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: var(--text-base);
  line-height: var(--text-line);
  color: var(--brand-dark);
  overflow-x: clip;
}

.section-text {
  font-size: var(--text-base);
  line-height: var(--text-line);
}

.section-title {
  font-size: var(--heading-section);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: var(--heading-sub);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: var(--heading-hero);
  font-weight: 700;
  line-height: 1.25;
}

.btn-brand,
.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  border-width: 1px;
  border-style: solid;
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  box-sizing: border-box;
}

.btn-brand:not(.btn-sm):not(.btn-lg),
.btn-outline-brand:not(.btn-sm):not(.btn-lg) {
  min-height: 2.75rem;
  padding: 0.65rem 1.75rem;
}

.btn-brand.btn-lg,
.btn-outline-brand.btn-lg {
  min-height: 3.25rem;
  padding: 0.85rem 2rem;
}

.btn-brand.btn-sm,
.btn-outline-brand.btn-sm {
  min-height: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
}

.btn-brand {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  border-radius: var(--brand-radius);
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: #3d85eb;
  border-color: #3d85eb;
  color: #fff;
}

.btn-outline-brand {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background-color: transparent;
  border-radius: var(--brand-radius);
}

.btn-outline-brand:hover,
.btn-outline-brand.active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Ряды кнопок действий — одинаковая высота и отступы */
.btn-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}

.btn-action-row .btn {
  flex: 0 1 auto;
}

.section-cream {
  background-color: var(--brand-bg);
}

.hero-section {
  padding: 3rem 0;
}

.hero-photo {
  border-radius: 0.5rem;
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.photo-shape-wrap {
  display: block;
  width: 100%;
}

.photo-shape-wrap .photo-shape-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-shape-wrap--rectangle .photo-shape-img {
  border-radius: 0.5rem;
  max-height: 520px;
}

.photo-shape-wrap--oval {
  max-width: 22rem;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 50%;
  overflow: hidden;
}

.photo-shape-wrap--oval .photo-shape-img {
  border-radius: 0;
}

.photo-shape-wrap--circle {
  width: min(20rem, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.photo-shape-wrap--circle .photo-shape-img {
  border-radius: 0;
  object-fit: cover;
  object-position: center center;
}

/* Блок «Обо мне» — главная и /about/ */
.about-hero-layout {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.about-photo-col {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.about-photo-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-inline: auto;
  box-sizing: border-box;
}

.about-photo-wrap .about-photo,
.about-photo-wrap .photo-shape-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.about-photo-wrap.photo-shape-wrap--circle {
  width: 220px;
  max-width: 70vw;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.about-photo-wrap.photo-shape-wrap--oval {
  width: 220px;
  max-width: 70vw;
  aspect-ratio: 3 / 4;
  border-radius: 50%;
}

.about-photo-wrap.photo-shape-wrap--rectangle {
  width: 100%;
  max-width: 360px;
}

.about-photo-wrap.photo-shape-wrap--rectangle .about-photo,
.about-photo-wrap.photo-shape-wrap--rectangle .photo-shape-img {
  position: static;
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: 0.5rem;
}

@media (max-width: 767.98px) {
  .about-hero-layout {
    overflow-x: clip;
  }

  .about-photo-wrap.photo-shape-wrap--circle,
  .about-photo-wrap.photo-shape-wrap--oval {
    width: min(220px, 70vw);
  }

  html[data-site-theme]:not([data-site-theme="classic"]) .about-photo-wrap {
    outline-offset: 2px;
  }
}

.format-section-hint {
  max-width: 36rem;
}

.format-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.format-card-body {
  padding: 1.5rem 1.5rem 0.5rem;
  background: #fff;
  flex-grow: 1;
}

.format-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
  background: #fff;
}

.format-card-title {
  font-size: var(--heading-sub);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.service-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.courses-novinka-banner-section {
  padding: 1rem 0 0.25rem;
  overflow-x: clip;
}

.courses-novinka-banner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #faf4eb 0%, #fcf8f2 48%, #f5efe6 100%);
  border: 1px solid rgba(196, 168, 130, 0.35);
  box-shadow: 0 8px 28px rgba(120, 90, 50, 0.08);
  max-width: 100%;
}

.courses-novinka-banner__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
  min-width: 0;
}

.courses-novinka-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.courses-novinka-banner__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.25rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd978 0%, #ffb84d 100%);
  color: #5c3d00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(255, 184, 77, 0.35);
}

.courses-novinka-banner__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--brand-dark);
}

.courses-novinka-banner__subtitle {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--brand-muted);
}

.courses-novinka-banner__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.courses-novinka-banner__fact {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(196, 168, 130, 0.18);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--brand-dark);
}

.courses-novinka-banner__fact--price {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(76, 175, 110, 0.14) 0%, rgba(255, 255, 255, 0.82) 100%);
  border-color: rgba(76, 175, 110, 0.28);
}

.courses-novinka-banner__fact-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.courses-novinka-banner__fact-text strong {
  font-weight: 600;
}

.courses-novinka-banner__price-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-left: 0.15rem;
  font-weight: 700;
  color: #2f7a4b;
}

.courses-novinka-banner__popular {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e8734a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  vertical-align: middle;
}

.courses-novinka-banner__cta {
  align-self: flex-start;
  margin-top: 0.15rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f08a5d 0%, #e8734a 100%);
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(232, 115, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.courses-novinka-banner__cta--mobile {
  display: none;
}

.courses-novinka-banner__cta--desktop {
  grid-column: 1;
}

.courses-novinka-banner__cta:hover,
.courses-novinka-banner__cta:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(232, 115, 74, 0.42);
  filter: brightness(1.03);
}

.courses-novinka-banner__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.courses-novinka-banner__image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(80, 60, 40, 0.14);
}

.courses-novinka-banner__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(196, 168, 130, 0.22);
}

.courses-novinka-banner__perk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.courses-novinka-banner__perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 168, 130, 0.25);
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .courses-novinka-banner__main {
    grid-template-columns: minmax(0, 1fr);
  }

  .courses-novinka-banner__media {
    order: -1;
    grid-column: 1;
  }

  .courses-novinka-banner__content {
    order: 0;
    grid-column: 1;
  }

  .courses-novinka-banner__cta--desktop {
    display: none;
  }

  .courses-novinka-banner__cta--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.95rem 1.25rem;
    font-size: 1.08rem;
    text-align: center;
  }

  .courses-novinka-banner__image {
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center 20%;
  }
}

@media (max-width: 575.98px) {
  .courses-novinka-banner {
    padding: 0.9rem;
    gap: 0.85rem;
  }

  .courses-novinka-banner__subtitle {
    font-size: 0.86rem;
  }

  .courses-novinka-banner__facts {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .courses-novinka-banner__fact {
    font-size: 0.8rem;
  }

  .courses-novinka-banner__cta--mobile {
    min-height: 3.5rem;
    font-size: 1.12rem;
  }

  .courses-novinka-banner__image {
    max-height: 190px;
  }
}

.service-card-desc {
  min-height: 3.5rem;
}

.service-card-pricing {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1rem;
}

.service-card-pricing .service-price {
  min-height: 1.75rem;
}

.service-card--selected {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  box-shadow: 0 6px 24px rgba(196, 168, 130, 0.25);
}

.service-price {
  color: var(--brand-primary);
  font-size: var(--heading-sub);
  font-weight: 700;
}

.about-intro {
  max-width: 48rem;
}

.about-intro-block {
  max-width: 52rem;
}

.about-lead {
  font-size: var(--text-problem);
}

.about-emphasis {
  color: var(--brand-primary);
}

.about-highlight {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-left: 4px solid var(--brand-primary);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(81, 153, 255, 0.12);
}

.about-block {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.about-list {
  padding-left: 1.25rem;
}

.about-category {
  font-size: var(--text-problem);
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
}

.about-category:first-of-type {
  margin-top: 0.75rem;
}

.format-gallery-img {
  max-height: 420px;
  object-fit: cover;
}

.format-selected-hint {
  background: #fff9f5;
  border-color: var(--brand-color, #c4a882) !important;
  color: #4a4a4a;
}

.format-field-highlight {
  animation: format-field-pulse 2.2s ease;
}

@keyframes format-field-pulse {
  0%,
  100% {
    box-shadow: none;
  }
  20%,
  60% {
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.45);
    border-radius: 0.375rem;
  }
}

.gallery-img {
  max-height: 70vh;
  object-fit: contain;
  background: #f5f5f5;
}

.problem-accordion .accordion-button,
.problem-title {
  font-size: var(--text-problem);
  line-height: 1.45;
}

.problem-text {
  font-size: var(--text-problem);
  line-height: var(--text-line);
}

.diploma-btn-wrap {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .diploma-btn-wrap {
    text-align: left;
  }
}

.diploma-view-btn {
  min-width: 220px;
}

.problem-accordion .accordion-button:not(.collapsed) {
  background-color: var(--brand-bg);
  color: var(--brand-dark);
  box-shadow: none;
}

.problem-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--brand-primary);
}

.review-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--heading-sub);
  flex-shrink: 0;
}

.booking-section {
  position: relative;
  background-image: linear-gradient(rgba(252, 248, 242, 0.92), rgba(252, 248, 242, 0.92)),
    url('/static/images/tild3730-6162-4161-b666-363865313539__form_bg___filter.jpg');
  background-size: cover;
  background-position: center;
}

.booking-section .card,
#booking .card {
  position: relative;
}

#booking {
  scroll-margin-top: 5.5rem;
}

.hp-field-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  background: #2b2b2b;
  color: #ccc;
  font-size: var(--text-base);
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand-primary);
}

.page-hero {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-title {
  font-size: var(--heading-hero);
  font-weight: 700;
  line-height: 1.25;
}

.page-lead {
  max-width: 42rem;
}

.page-breadcrumb {
  font-size: 0.875rem;
}

.page-breadcrumb a {
  color: var(--brand-muted);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--brand-primary);
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--heading-sub);
  color: var(--brand-dark) !important;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-dark);
}

.site-brand:hover {
  color: var(--brand-dark);
}

.site-brand__text {
  font-weight: 700;
  font-size: var(--heading-sub);
  line-height: 1.2;
  white-space: nowrap;
}

.navbar-brand.site-brand {
  padding: 0;
  margin-right: 0;
}

.site-logo {
  display: block;
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.site-logo--nav {
  width: 63px;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  opacity: 0.72;
  filter: saturate(0.85);
}

.navbar-brand.site-brand:hover .site-logo--nav {
  opacity: 0.85;
}

@media (max-width: 767.98px) {
  .site-logo--nav {
    width: 53px;
    height: 34px;
    max-height: 34px;
  }

  .site-brand__text {
    font-size: 1rem;
  }
}

.contacts-map-wrap {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.contacts-map-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 360px;
}

.contacts-map {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  background: #f3f3f3;
}

.contacts-map-footer {
  padding: 0.85rem 1rem;
  background: var(--brand-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contacts-map-org-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.contacts-map-org-link:hover {
  text-decoration: underline;
}

.phone-reveal__btn,
.inn-reveal__btn {
  font-size: inherit;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
  vertical-align: baseline;
}

.phone-reveal__btn:hover,
.phone-reveal__btn:focus-visible,
.inn-reveal__btn:hover,
.inn-reveal__btn:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

.phone-reveal__number,
.inn-reveal__full {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.phone-reveal__number:hover {
  text-decoration: underline;
}

.footer .phone-reveal__btn,
.footer .inn-reveal__btn {
  color: #fff;
}

.footer .phone-reveal__btn:hover,
.footer .phone-reveal__btn:focus-visible,
.footer .inn-reveal__btn:hover,
.footer .inn-reveal__btn:focus-visible {
  color: var(--brand-primary);
}

.footer-legal-info {
  color: #bbb;
  line-height: 1.5;
}

.messenger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.messenger-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.messenger-btn__icon {
  display: inline-flex;
  line-height: 0;
}

.messenger-btn--telegram {
  background: #229ed9;
}

.messenger-btn--max {
  background: #5199ff;
}

.messenger-btn--email {
  background: #6c757d;
}

.avito-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #141414;
  background: linear-gradient(135deg, #fff 0%, #f3f8ff 100%);
  border: 2px solid #00aaff;
  box-shadow: 0 4px 18px rgba(0, 170, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avito-profile-btn:hover {
  color: #141414;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 170, 255, 0.22);
}

.avito-profile-btn__logo {
  flex-shrink: 0;
  object-fit: contain;
}

.avito-profile-btn__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.avito-profile-btn__text strong {
  font-size: var(--text-problem);
  line-height: 1.3;
}

.avito-profile-btn__meta {
  color: var(--brand-primary);
  font-weight: 600;
}

.avito-profile-btn__note {
  color: var(--brand-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  .messenger-grid {
    grid-template-columns: 1fr;
  }
}

.faq-section {
  overflow: hidden;
}

.faq-carousel-stage {
  position: relative;
  padding: 0 clamp(0.5rem, 2vw, 2.5rem);
}

.faq-carousel {
  position: relative;
  padding-bottom: 0.5rem;
}

.faq-carousel-hint {
  font-size: 0.95rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-carousel-hint__mobile {
  display: none;
}

.faq-carousel-wrap {
  max-width: 100%;
}

.faq-edge-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(81, 153, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.faq-edge-nav--prev {
  left: clamp(0.35rem, 1.2vw, 1rem);
}

.faq-edge-nav--next {
  right: clamp(0.35rem, 1.2vw, 1rem);
}

.faq-edge-nav__icon {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.faq-edge-nav--prev .faq-edge-nav__icon {
  transform: rotate(-135deg);
  margin-left: 0.15rem;
}

.faq-edge-nav--next .faq-edge-nav__icon {
  transform: rotate(45deg);
  margin-right: 0.15rem;
}

.faq-edge-nav:hover,
.faq-edge-nav:focus-visible {
  border-color: var(--brand-primary);
  background: #fff;
  opacity: 1;
}

.faq-slide-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 2.5rem 2.5rem;
  min-height: 240px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.faq-slide-counter {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.faq-slide-question {
  font-size: var(--text-problem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.faq-carousel-indicators {
  position: static;
  margin: 1.25rem 0 0;
  gap: 0.55rem;
}

.faq-carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #c8daf5;
  border: 0;
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-carousel-indicators [data-bs-target]:hover {
  transform: scale(1.15);
  background-color: #9eb9e8;
}

.faq-carousel-indicators .active {
  background-color: var(--brand-primary);
  transform: scale(1.2);
}

@media (max-width: 767.98px) {
  .faq-carousel-hint__desktop {
    display: none;
  }

  .faq-carousel-hint__mobile {
    display: inline;
  }

  .faq-edge-nav {
    display: none;
  }

  .faq-slide-card {
    padding: 1.5rem 1.25rem 2.5rem;
    min-height: 260px;
  }
}

.nav-link {
  font-weight: 500;
  font-size: var(--text-base);
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .format-card-body {
    padding: 1.25rem 1.25rem 0.5rem;
  }

  .format-card-actions {
    padding: 0 1.25rem 1.25rem;
  }

  .diploma-view-btn {
    width: 100%;
    max-width: 320px;
  }

  .problem-title,
  .problem-text {
    font-size: 1.2rem;
  }
}

address {
  font-style: normal;
}

.footer-address a,
.contacts-address a,
.contacts-phone-link {
  color: inherit;
  text-decoration: none;
}

.footer-address a:hover,
.contacts-address a:hover,
.contacts-phone-link:hover {
  text-decoration: underline;
}

.post-content a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.post-content h2,
.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.post-author-block {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.25rem;
}

.post-author-block a {
  color: var(--brand-primary);
  text-decoration: none;
}

.post-author-block a:hover {
  text-decoration: underline;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: rgba(43, 43, 43, 0.97);
  color: #f5f5f5;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  padding: 1rem 0;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-consent__text {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 52rem;
}

.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-consent__text a:hover {
  color: var(--brand-primary);
}

.legal-page-content h2 {
  font-size: var(--heading-section);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page-content ul {
  padding-left: 1.25rem;
}

.partner-card {
  height: 100%;
}

.partner-card-body {
  flex: 1 1 auto;
}

.partner-card-actions {
  margin-top: 1.25rem;
}

.partner-card-title {
  font-size: var(--heading-sub);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.partner-card-logo-wrap {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}

.partner-card-logo {
  max-height: 3.5rem;
  max-width: 12rem;
  width: auto;
  object-fit: contain;
}

.partner-card-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.contacts-neighbors {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.25rem;
}

.partner-detail-card .partner-card {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
