/* ========== БАЗОВЫЕ СТИЛИ И УТИЛИТЫ ========== */
.modern-page {
  --modern-blue: var(--color-blue, #0036A7);
  --modern-blue-dark: var(--color-blue-dark, #002b84);
  --modern-red: var(--color-red, #D62718);
  --modern-green: #079707;
  --modern-text: var(--color-dark, #101828);
  --modern-muted: var(--color-muted, #475467);
  --modern-border: var(--color-border, #E4EAF4);
  --modern-soft: var(--color-bg, #F4F7FF);
  --modern-shadow: var(--shadow-card, 0 18px 44px rgba(0, 54, 167, 0.12));
  background: var(--modern-soft);
  color: var(--modern-text);
}

.desktop-break {
  display: block;
}

.mobile-break {
  display: none;
}

/* ========== HERO ========== */
.modern-hero {
  padding: var(--hero-offset-desktop, 80px) 0 0;
  background: #f4f7ff;
}

.modern-hero__grid {
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 76px 70px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 34%,
      rgba(255, 255, 255, 0.38) 56%,
      rgba(255, 255, 255, 0.05) 100%),
    url("/img/main-hero-school.png") center right / 112% auto no-repeat;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
}

.modern-hero__content {
  max-width: 720px;
  padding-left: 0;
}

.modern-hero__title {
  max-width: 680px;
  margin: 0 0 24px;
  color: #101828;
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.modern-hero__title-accent {
  color: var(--modern-red);
}

.modern-hero__text {
  max-width: 600px;
  margin: 0;
  color: var(--color-body, #344054);
  font-size: 20px;
  line-height: 1.65;
  text-wrap: pretty;
}

.modern-hero__buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.modern-hero__buttons .modern-btn,
.modern-hero__buttons .find-tutor__btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-hero__buttons .modern-btn--primary,
.modern-hero__buttons .find-tutor__btn {
  background: var(--modern-blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 63, 159, 0.25);
}

.modern-hero__buttons .modern-btn:hover,
.modern-hero__buttons .modern-btn:focus-visible,
.modern-hero__buttons .find-tutor__btn:hover,
.modern-hero__buttons .find-tutor__btn:focus-visible {
  background: var(--modern-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 57, 166, 0.3);
  text-decoration: none;
}

.modern-hero__buttons .modern-btn:active,
.modern-hero__buttons .find-tutor__btn:active {
  background: var(--modern-blue-dark);
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 57, 166, 0.2);
}

.modern-hero__diagnostic {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 60px;
  width: 280px;
  padding: 20px 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 100%, rgba(213, 43, 30, 0.1) 0, rgba(213, 43, 30, 0) 46%),
    rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
  transition: var(--motion-card, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease);
}

.modern-hero__diagnostic:hover,
.modern-hero__diagnostic:focus-within {
  border-color: rgba(0, 54, 167, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 22px 48px rgba(0, 54, 167, 0.13));
}

.modern-hero__diagnostic-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #079707;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  float: right;
}

.modern-hero__diagnostic-title {
  display: block;
  margin-bottom: 8px;
  color: #101828;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.modern-hero__diagnostic-text {
  margin: 0 0 16px;
  color: var(--color-body, #344054);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.modern-hero__diagnostic-btn {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid var(--modern-blue);
  border-radius: 14px;
  background: var(--modern-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 57, 166, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-hero__diagnostic-btn:hover,
.modern-hero__diagnostic-btn:focus-visible {
  background: var(--modern-blue-dark);
  border-color: var(--modern-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 57, 166, 0.28);
}

.modern-hero__diagnostic-btn:active {
  background: var(--modern-blue-dark);
  border-color: var(--modern-blue-dark);
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 57, 166, 0.2);
}

.modern-hero__card {
  display: none;
}

/* ========== ПОПУЛЯРНЫЕ ПРЕДМЕТЫ ========== */
.modern-section {
  padding: 64px 0 0;
}

.modern-label {
  display: none;
}

.modern-title {
  margin: 0 0 48px;
  color: #101828;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.modern-subjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.modern-subject {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1.5px solid var(--modern-border);
  box-shadow: 0 14px 34px rgba(0, 57, 166, 0.06);
  text-decoration: none;
  transition: var(--motion-card, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease);
}

.modern-subject:hover,
.modern-subject:focus-visible {
  border-color: var(--modern-blue);
  background: #f8faff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 22px 48px rgba(0, 54, 167, 0.13));
  text-decoration: none;
}

.modern-subject h3 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.modern-subject p {
  margin: 0;
  color: var(--modern-muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ========== КАК МЫ РАБОТАЕМ ========== */
#how-work {
  padding: 64px 0 0;
}

.modern-how-banner {
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding: 76px 70px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(0, 57, 166, 0.92) 0%,
      rgba(0, 57, 166, 0.76) 32%,
      rgba(0, 57, 166, 0.34) 58%,
      rgba(0, 57, 166, 0.04) 100%),
    url("/img/how-we-work-banner.png") center right / cover no-repeat;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

.modern-how-banner__content {
  max-width: 660px;
}

.modern-how-banner__label {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #D52B1E;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-how-banner__title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.modern-how-banner__subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
  text-wrap: pretty;
}

.modern-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.modern-step {
  padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1.5px solid var(--modern-border);
  box-shadow: 0 16px 40px rgba(0, 57, 166, 0.08);
  transition: var(--motion-card, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease);
}

.modern-step:hover,
.modern-step:focus-within {
  border-color: rgba(0, 54, 167, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 22px 48px rgba(0, 54, 167, 0.13));
}

.modern-step span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--modern-blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.modern-step h3 {
  margin: 0 0 10px;
  color: #101828;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.modern-step p {
  margin: 0;
  color: var(--modern-muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ========== ПОЧЕМУ ВЫБИРАЮТ ========== */
.modern-benefits-section {
  padding: 64px 0 0;
}

.modern-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 43, 30, 0.07) 0, rgba(213, 43, 30, 0) 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 247, 255, 0.96) 100%);
  border: 1.5px solid rgba(232, 236, 244, 0.9);
  box-shadow: var(--modern-shadow);
}

.modern-benefits-left {
  max-width: 560px;
  padding-left: 0;
}

.modern-benefits-left .modern-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 100px;
  background: #eff3ff;
  color: var(--modern-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-benefits-left .modern-title {
  margin: 0 0 16px;
  color: #101828;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.modern-benefits-left .modern-text {
  margin: 0 0 28px;
  color: var(--modern-muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.modern-benefits-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modern-benefits-actions .modern-btn,
.modern-benefits-actions .find-tutor__btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--modern-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(0, 57, 166, 0.25);
}

.modern-benefits-actions .modern-btn:hover,
.modern-benefits-actions .modern-btn:focus-visible,
.modern-benefits-actions .find-tutor__btn:hover,
.modern-benefits-actions .find-tutor__btn:focus-visible {
  background: var(--modern-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 57, 166, 0.3);
  text-decoration: none;
}

.modern-benefits-actions .modern-btn:active,
.modern-benefits-actions .find-tutor__btn:active {
  background: var(--modern-blue-dark);
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 57, 166, 0.2);
}

.modern-benefits-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.12);
}

.modern-benefits-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: cover;
}

.modern-benefits-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
}

.modern-benefits-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.modern-benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  min-height: 160px;
  height: 100%;
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid var(--modern-border);
  box-shadow: 0 16px 38px rgba(0, 57, 166, 0.08);
  transition: var(--motion-card, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease);
  color: var(--modern-blue);
}

.modern-benefit__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
}

.modern-benefit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--modern-blue) 0%, #5E6AD2 55%, var(--modern-red) 100%);
  opacity: 0.85;
}

.modern-benefit:hover,
.modern-benefit:focus-within {
  border-color: rgba(0, 57, 166, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 22px 48px rgba(0, 54, 167, 0.13));
}

.modern-benefit__icon {
  width: 58px;
  height: 58px;
  padding: 13px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--modern-blue);
  font-size: 32px;
}

.modern-benefit h3 {
  margin: 0;
  color: #101828;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}

.modern-benefit p {
  width: 100%;
  margin: 0;
  color: var(--modern-muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ========== ОТЗЫВЫ ========== */
.modern-feedback {
  padding: 64px 0 0;
  background: #f4f7ff;
}

.modern-feedback .modern-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 100px;
  background: #eff3ff;
  color: #0039A6;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modern-feedback .modern-title {
  margin: 0 0 12px;
  color: #101828;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  max-width: 600px;
}

.modern-feedback__subtitle {
  margin: 0 0 36px;
  color: var(--modern-muted);
  font-size: 16px;
  line-height: 1.5;
}

.modern-feedback__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.modern-feedback__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-radius: 24px;
  background: #0039A6;
  color: #ffffff;
  text-align: center;
  position: sticky;
  top: 100px;
}

.modern-feedback__rating-score {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.modern-feedback__rating-stars {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: #FFD700;
}

.modern-feedback__rating-label {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.4;
}

.feedback__item {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px solid #e5eaf5;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
  height: auto;
}

.feedback__stars {
  color: #D52B1E;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.feedback__text {
  margin: 0 0 16px;
  color: #101828;
  font-size: 14px;
  line-height: 1.55;
}

.feedback__author strong {
  display: block;
  color: #101828;
  font-size: 14px;
  font-weight: 700;
}

.feedback__author span {
  color: var(--modern-muted);
  font-size: 12px;
}

.feedback__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.feedback__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0039A6;
  border-radius: 50%;
  background: #ffffff;
  color: #0039A6;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.feedback__arrow:hover,
.feedback__arrow:focus-visible {
  background: var(--modern-blue);
  border-color: var(--modern-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 57, 166, 0.18);
}

.feedback__arrow:active {
  background: var(--modern-blue-dark);
  border-color: var(--modern-blue-dark);
  color: #ffffff;
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 57, 166, 0.12);
}

.feedback__pagination {
  display: flex;
  gap: 8px;
}

.feedback__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d0d5e0;
  border-radius: 50%;
  opacity: 1;
}

.feedback__pagination .swiper-pagination-bullet-active {
  background: #0039A6;
  width: 24px;
  border-radius: 4px;
}


/* ========== ПОЛЕЗНЫЕ МАТЕРИАЛЫ ========== */
.useful-articles {
  padding: 76px 0;
  background:
    radial-gradient(circle at 92% 0, rgba(213, 43, 30, 0.12) 0, rgba(213, 43, 30, 0) 34%),
    linear-gradient(135deg, #061A47 0%, #08246F 58%, #061A47 100%);
  color: #dbe5f7;
}

.useful-articles .title {
  text-align: left;
  margin: 0 0 36px;
}

.useful-articles .title {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.useful-articles__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.useful-articles__item {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(2, 12, 35, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.useful-articles__item:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(2, 12, 35, 0.22);
}

.useful-articles__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.useful-articles__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.useful-articles__desc {
  padding: 18px 20px 20px;
}

.useful-articles__section {
  padding: 4px 12px;
  border-radius: 100px;
  background: #eff3ff;
  color: #0039A6;
  font-size: 12px;
  font-weight: 700;
}

.useful-articles__title {
  display: block;
  margin-bottom: 8px;
  color: #101828;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.useful-articles__title:hover {
  color: #0039A6;
  text-decoration: none;
}

.useful-articles__desc p {
  margin: 0;
  color: var(--modern-muted);
  font-size: 13px;
  line-height: 1.45;
}

.useful-articles__more-articles {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  min-height: 48px;
  margin: 32px auto 0;
  border: 2px solid #ffffff;
  border-radius: 16px;
  background: #ffffff;
  color: #0039A6;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.useful-articles__more-articles:hover,
.useful-articles__more-articles:focus-visible {
  background: #f5f8ff;
  border-color: #ffffff;
  color: var(--modern-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 12, 35, 0.16);
  text-decoration: none;
}

.useful-articles__more-articles:active {
  background: #eef4ff;
  border-color: #ffffff;
  color: var(--modern-blue-dark);
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(2, 12, 35, 0.12);
}

/* ========== ПОПУЛЯРНЫЕ ВОПРОСЫ ========== */
.popular-issues {
  padding: 64px 0 56px;
  background: #f4f7ff;
  background-image: none;
}

.popular-issues .title {
  text-align: left;
  margin: 0 0 36px;
  color: #101828;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.popular-issues__container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  background-image: none !important;
  background-position: initial;
  background-size: initial;
  background-repeat: initial;
}

.popular-issues__item {
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid var(--modern-border);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 57, 166, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.popular-issues__item:hover {
  border-color: rgba(0, 57, 166, 0.24);
  box-shadow: 0 16px 36px rgba(0, 57, 166, 0.1);
}

.popular-issues__item.active {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgba(0, 57, 166, 0.32);
}

.popular-issues__accordion {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: #101828;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.popular-issues__accordion:focus,
.popular-issues__accordion:focus-visible {
  outline: none;
}

.popular-issues__accordion::before,
.popular-issues__accordion::after {
  display: none !important;
  content: none !important;
}

.popular-issues__question {
  text-align: left;
  flex: 1;
  text-wrap: balance;
}

.popular-issues__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: 50%;
  background: #edf4ff;
  transition: transform 0.2s ease;
}

.popular-issues__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.popular-issues__icon-up {
  display: none;
}

.popular-issues__item.active .popular-issues__icon {
  transform: rotate(0deg);
}

.popular-issues__icon-right {
  transform: rotate(90deg);
}

.popular-issues__item.active .popular-issues__icon-right {
  display: none;
}

.popular-issues__item.active .popular-issues__icon-up {
  display: block;
}

.popular-issues__answer {
  display: none;
  padding: 0 84px 20px 20px;
  margin: 0;
  color: var(--modern-muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}

.popular-issues__item.active .popular-issues__answer {
  display: block;
  padding: 0 84px 20px 20px;
}

.popular-issues__find-tutor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  min-height: 52px;
  margin: 0 auto;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--modern-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(0, 57, 166, 0.25);
}

.popular-issues__find-tutor:hover,
.popular-issues__find-tutor:focus-visible {
  background: var(--modern-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 57, 166, 0.3);
  text-decoration: none;
}

.popular-issues__find-tutor:active {
  background: var(--modern-blue-dark);
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 57, 166, 0.2);
}

/* ========== АДАПТИВ ========== */
@media screen and (max-width: 960px) {
  .modern-section {
    padding: 32px 0 0;
  }

  .modern-title {
    margin-bottom: 28px;
  }

  .modern-subjects {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .modern-how-banner {
    min-height: 320px;
    padding: 42px 34px;
  }

  .modern-steps {
    grid-template-columns: 1fr;
  }

  .modern-benefits-section {
    padding: 48px 0 0;
  }

  .modern-benefits-grid {
    gap: 32px;
    margin-bottom: 36px;
  }

  .modern-benefits-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .modern-feedback {
    padding: 48px 0 0;
  }

  .modern-feedback__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modern-feedback__rating {
    flex-direction: row;
    gap: 16px;
    padding: 20px 24px;
    position: static;
  }

  .modern-feedback__rating-score {
    font-size: 36px;
    margin-bottom: 0;
  }

  .modern-feedback__rating-stars {
    margin-bottom: 0;
  }

  .modern-feedback__rating-label {
    text-align: left;
  }

  .useful-articles {
    padding: 56px 0;
  }

  .popular-issues {
    padding: 48px 0 0;
  }

  .useful-articles__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media screen and (max-width: 680px) {
  .desktop-break {
    display: none;
  }

  .mobile-break {
    display: block;
  }

  .modern-hero {
    padding: var(--hero-offset-mobile, 76px) 0 var(--hero-offset-bottom-mobile, 32px);
  }

  .modern-hero__grid {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 24px 16px;
    gap: 16px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  }

  .modern-hero__content {
    max-width: 100%;
    padding-left: 0;
  }

  .modern-hero__title {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 8px;
    max-width: 100%;
  }

  .modern-hero__text {
    font-size: 14px;
    line-height: 1.45;
    color: #3a4a5c;
    max-width: 100%;
  }

  .modern-hero__buttons {
    margin-top: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .modern-hero__buttons .modern-btn,
  .modern-hero__buttons .find-tutor__btn {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }

  .modern-hero__visual {
    display: block;
    position: relative;
    width: 100%;
  }

  .modern-hero__diagnostic {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background:
      radial-gradient(circle at 100% 100%, rgba(213, 43, 30, 0.08) 0, rgba(213, 43, 30, 0) 44%),
      rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.04);
  }

  .modern-hero__diagnostic-badge {
    float: right;
    font-size: 10px;
    margin-bottom: 6px;
    padding: 4px 10px;
    background: #e6f7ee;
    color: #0c7e45;
  }

  .modern-hero__diagnostic-title {
    font-size: 14px;
    margin-bottom: 4px;
    text-align: left;
  }

  .modern-hero__diagnostic-text {
    font-size: 12px;
    margin-bottom: 12px;
    clear: both;
    text-align: left;
    color: var(--modern-muted);
  }

  .modern-hero__diagnostic-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    border: 2px solid var(--modern-blue);
    border-radius: 14px;
    background: var(--modern-blue);
    color: #ffffff;
  }

  .modern-hero__diagnostic-btn:hover {
    background: var(--modern-blue-dark);
    color: #ffffff;
  }

  .modern-section {
    padding: 32px 0 0;
  }

  .modern-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .modern-subjects {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modern-subject {
    width: 100%;
    padding: 16px;
    flex-direction: column;
    gap: 0;
    border-radius: 16px;
  }

  .modern-subject__content {
    display: flex;
    flex-direction: column;
  }

  .modern-subject h3 {
    font-size: 15px;
    margin-bottom: 2px;
  }

  .modern-subject p {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #how-work {
    padding: 40px 0 0;
  }

  .modern-how-banner {
    min-height: 280px;
    padding: 24px 16px;
    border-radius: 24px;
    background:
      linear-gradient(90deg,
        rgba(0, 57, 166, 0.94) 0%,
        rgba(0, 57, 166, 0.76) 100%),
      url("/img/how-we-work-banner.png") center right / cover no-repeat;
  }

  .modern-how-banner__title {
    font-size: 28px;
  }

  .modern-how-banner__subtitle {
    font-size: 14px;
  }

  .modern-step {
    padding: 20px 16px;
  }

  .modern-benefits-section {
    padding: 40px 0 0;
  }

  .modern-benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .modern-benefits-left .modern-title {
    font-size: 24px;
  }

  .modern-benefits-left .modern-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .modern-benefits-photo {
    order: -1;
  }

  .modern-benefits-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modern-benefit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    min-height: auto;
  }

  .modern-benefit__header {
    gap: 12px;
    min-height: 54px;
  }

  .modern-benefit__icon {
    width: 54px;
    height: 54px;
    padding: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .modern-benefit h3 {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
  }

  .modern-benefit p {
    width: 100%;
    margin: 0;
    font-size: 14px;
  }

  .modern-feedback {
    padding: 40px 0 0;
  }

  .modern-feedback .modern-title {
    font-size: 24px;
  }

  .modern-feedback__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .modern-feedback__grid {
    gap: 16px;
  }

  .modern-feedback__rating {
    padding: 16px 20px;
    gap: 12px;
    border-radius: 18px;
  }

  .modern-feedback__rating-score {
    font-size: 32px;
  }

  .feedback__item {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .feedback__text {
    font-size: 13px;
  }

  .useful-articles {
    padding: 48px 0;
  }

  .popular-issues {
    padding: 40px 0 40px;
  }

  .useful-articles .title,
  .popular-issues .title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .useful-articles__container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .useful-articles__desc {
    padding: 14px 16px 16px;
  }

  .useful-articles__title {
    font-size: 16px;
  }

  .popular-issues__accordion {
    font-size: 15px;
    padding: 14px 16px;
    grid-template-columns: 1fr 40px;
  }

  .popular-issues__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .popular-issues__answer {
    font-size: 13px;
    padding: 0 16px 14px;
  }

  .popular-issues__item.active .popular-issues__answer {
    padding: 0 16px 14px;
  }

  .popular-issues__find-tutor {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .useful-articles__more-articles {
    width: 100%;
  }
}

.modern-section,
.modern-benefits-section,
.modern-feedback,
.useful-articles,
.popular-issues {
  padding-top: var(--section-gap);
}

.modern-title,
.useful-articles .title,
.popular-issues .title,
.modern-feedback .modern-title {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.modern-hero__grid,
.modern-how-banner {
  padding-left: var(--inner-padding-desktop);
  padding-right: var(--inner-padding-desktop);
}

@media screen and (max-width: 680px) {

  .modern-hero__grid,
  .modern-how-banner {
    padding-left: var(--inner-padding-desktop);
    padding-right: var(--inner-padding-desktop);
  }

  .modern-title,
  .useful-articles .title,
  .popular-issues .title,
  .modern-feedback .modern-title {
    max-width: 100%;
  }
}

@media screen and (max-width: 680px) {
  .feedback__arrow {
    display: none;
  }

  .feedback__controls {
    justify-content: center;
    margin-top: 16px;
  }
}
.feedback__controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
}

.feedback__arrow {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
}

.feedback__pagination,
.feedback__pagination.swiper-pagination {
  width: auto !important;
  position: static !important;
  display: flex !important;
  justify-content: center !important;
}

