/* ==========
   БАЗА
   ========== */

:root {
    --accent: #523b96;
    --accent-soft: #f4f0ff;
    --text-main: #222222;
    --text-muted: #666666;
    --border-soft: #e6e6e6;
    --bg-page: #ffffff;
    --bg-section-alt: #faf7ff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--bg-page);
    line-height: 1.6;
}

/* Ограничение ширины контента */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 16px 56px;
}

/* ==========
   ШАПКА И НАВИГАЦИЯ
   ========== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
}

.nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.nav .logo {
    font-weight: 600;
    font-size: 1rem;
    margin-right: auto;
    text-decoration: none;
    color: var(--text-main);
}

.nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 999px;
}

.nav a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ==========
   HERO-БЛОК
   ========== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    padding: 40px 0 32px; /* отступ сверху/снизу — только padding */
    align-items: center;
    margin-top: 0;        /* важно: никакого margin-top */
}

.hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 0 0 16px;
}

.hero p {
    margin: 0 0 20px;
    max-width: 620px;
    color: var(--text-muted);
}

/* CTA-блок */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero__image img {
    width: 100%;
    display: block;
    border-radius: 32px;
    object-fit: cover;
}

.hero__kicker {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 8px;
}

.hero__content h1 {
    font-size: 2rem;
    margin: 0 0 16px;
}

.hero__content p {
    margin: 0 0 16px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}



/* ==========
   КНОПКИ И ССЫЛКИ
   ========== */

a {
    color: var(--accent);
}

a:hover {
    color: #3c2d72;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease,
        box-shadow 0.1s ease;
}

.btn:hover {
    background: #3c2d72;
    border-color: #3c2d72;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(82, 59, 150, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--accent);
}

/* ==========
   СЕКЦИИ
   ========== */

.section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-soft);
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.section p {
    margin-top: 0;
}

/* Альтернативный фон (можно добавить через class="section section--alt") */
.section--alt {
    background: var(--bg-section-alt);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

/* ==========
   СПИСКИ, КАРТОЧКИ
   ========== */

.section ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.section li + li {
    margin-top: 8px;
}

/* ==========
   БЛОК "С ЧЕМ Я РАБОТАЮ"
   ========== */

.section__title-center {
    text-align: center;
    margin-bottom: 28px;
}

.service-card {
    text-align: left;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.service-card ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.service-card li + li {
    margin-top: 4px;
}

/* адаптив для планшета/мобилки */


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 40px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ==========
   БЛОК "СТОИМОСТЬ"
   ========== */

.price-subtitle {
    text-align: center;
    margin-top: 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

.price-list {
    max-width: 720px;
    margin: 0 auto;
    padding-left: 20px;
    line-height: 1.6;
}

.price-list li + li {
    margin-top: 8px;
}

.price-cta {
    text-align: center;
    margin-top: 32px;
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
}

/* ==========
   КАРТОЧКИ ТАРИФОВ
   ========== */

.tariffs {
    max-width: 1024px;
    margin: 0 auto;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.tariff-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    padding: 24px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.tariff-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.tariff-card__duration {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tariff-card__price {
    margin: 0 0 16px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
}

.tariff-card__text {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.tariff-card__cta {
    margin-top: auto;
}

.tariff-card__cta .btn {
    width: 100%;
}

/* текст под карточками */
.tariffs-note {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* адаптив для планшетов и телефонов */
@media (max-width: 960px) {
    .tariffs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tariffs-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========
   ИНФО-ПЛАШКА ПОД ТАРИФАМИ
   ========== */

.tariffs-info {
    max-width: 720px;
    margin: 8px auto 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: #f3f3f7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tariffs-info__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ff4b4b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.tariffs-info__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--accent);
    text-align: center;
}

/* ==========
   ОБРАЗОВАНИЕ
   ========== */

.section-education {
    background: #f4f0ff;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.education-inner {
    max-width: 960px;
    margin: 0 auto;
}

.education-quote {
    max-width: 760px;
    margin: 0 auto 16px;
    font-style: italic;
    text-align: center;
}

.education-note {
    text-align: center;
    font-weight: 600;
    margin: 8px 0 4px;
}

.education-arrow {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
}

/* Аккордеоны */

.education-accordions {
    max-width: 760px;
    margin: 0 auto;
}

.edu-item {
    margin-bottom: 8px;
    background: transparent;
    border-radius: 0;
    border: none;
}

/* строка-заголовок */
.edu-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 1rem;
}

.edu-item:first-of-type summary {
    border-radius: 4px 4px 0 0;
}

.edu-item:last-of-type summary {
    border-radius: 0 0 4px 4px;
}

/* убираем треугольчик браузера */
.edu-item summary::-webkit-details-marker {
    display: none;
}

/* плюс / крестик справа */
.edu-item summary::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    margin-left: 12px;
}

.edu-item[open] summary::after {
    content: "×";
}

/* тело аккордеона */

.edu-body {
    padding: 20px 20px 24px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-top: none;
}

.edu-body h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.edu-body ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.edu-body li + li {
    margin-top: 12px;
}

/* адаптив */

@media (max-width: 600px) {
    .edu-item summary {
        padding: 14px 16px;
    }

    .edu-body {
        padding: 16px;
    }
}

/* ==========
   ГАЛЕРЕЯ СЕРТИФИКАТОВ
   ========== */

.section-certificates {
    background: #f8f8f8;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.cert-grid {
    max-width: 960px;
    margin: 16px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cert-thumb {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #ffffff;
}

.cert-thumb img {
    height: 80px;
    width: auto;
    display: block;
}

/* Лайтбокс */

.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.cert-lightbox:target {
    display: flex;
}

.cert-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.cert-lightbox__close {
    color: #fff;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    text-decoration: none;
}

/* ===== Контакты ===== */

.section-contacts {
    padding-top: 40px;
    padding-bottom: 50px;
    text-align: center;
}

.contacts-info {
    font-size: 18px;
    margin-bottom: 20px;
}

.section__subtitle-center {
    margin-top: 25px;
    font-size: 20px;
    font-weight: 600;
}

.social-icons {
    margin: 20px auto 40px;
    display: flex;
    gap: 18px;
    justify-content: center;
}

.social-icon {
    background: #5c2fa0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

.social-icon img {
    width: 26px;
    height: 26px;
}

.social-icon:hover {
    background: #432273;
}


/* ===== Кнопки записи ===== */

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 26px;
    font-size: 16px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn-tg {
    background: #1C93E3;
}

.btn-wa {
    background: #25d366;
}

.contact-phone {
    font-size: 20px;
    margin-bottom: 25px;
}

.btn-tg:hover {
    background: #187fc7;
    color: #ffffff;
}

.btn-wa:hover {
    background: #1ebe5d;
    color: #ffffff;
}


/* ===== Предупреждение ===== */

.warning-box {
    background: #f2f2f2;
    padding: 18px 22px;
    border-radius: 6px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.warn-icon {
    font-size: 24px;
    margin-top: 2px;
}

section {
    scroll-margin-top: 60px;  /* подбираем под высоту твоего header */
}

/* --- How Work Section --- */

.how-work {
    padding-bottom: 20px;
}

.how-work .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    font-weight: 700;
    color: #2a1f4c;
}

.how-work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.how-work__item {
    text-align: center;
    padding: 10px 20px;
}

.how-work__item img {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.how-work__item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2a1f4c;
}

.how-work__item p {
    font-size: 16px;
    line-height: 1.55;
    color: #333;
}


/* --- Адаптив --- */

@media (max-width: 900px) {
    .how-work__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 25px;
    }
}

@media (max-width: 600px) {
    .how-work__grid {
        grid-template-columns: 1fr;
    }

    .how-work__item img {
        width: 70px;
    }
}

.centered-button {
    text-align: center;       /* Центрируем */
    margin: 40px 0 20px 0;    /* Отступ сверху 40px, снизу 20px */
}

.footer {
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.footer__note {
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}

.footer__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #6B3DF0;
    text-decoration: none;
    font-weight: 500;
}

.footer__link:hover {
    text-decoration: underline;
}

.urgent-info {
    background: #fff5f5;
    border-left: 4px solid #ff6b6b;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}

.urgent-info p {
    margin: 0;
    font-size: 15px;
    color: #444;
    text-align: center;
}

/* Аккордеон образования */

.education-accordion {
    max-width: 800px;
    margin: 30px auto 0;
}

/* Шапка блока (кнопка) */
.edu-header {
    width: 100%;
    padding: 16px 20px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
}

.edu-header span {
    text-align: left;
}

.edu-icon {
    font-size: 20px;
    transition: transform 0.25s ease;
}

/* Содержимое (анимированная часть) */
.edu-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.edu-item.is-open .edu-body {
    padding-top: 12px;
    padding-bottom: 16px;
}


/* Поворот плюса */
.edu-item.is-open .edu-icon {
    transform: rotate(45deg);  /* плюс превращается почти в крестик */
}

main {
    margin-top: 0;
}


.section-certificates {
    margin: 60px 0;
}

.cert-img {
    width: 100%;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .25s ease;
}

.cert-img:hover {
    transform: scale(1.03);
}

/* Миниатюры (thumbs) */
.cert-thumbs {
    margin-top: 20px;
    padding-bottom: 20px;
}

.cert-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    opacity: .7;
    cursor: pointer;
}

.cert-thumbs .swiper-slide-thumb-active img {
    opacity: 1;
    border: 2px solid var(--accent);
}

/* Fullscreen */
.cert-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.9);
    z-index: 9999;
}

.cert-lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
}

.cert-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 42px;
    color: white;
    cursor: pointer;
}

/* Исправляем лишний вертикальный зазор в блоке дипломов */
.section-certificates .cert-swiper,
.section-certificates .cert-swiper .swiper-wrapper,
.section-certificates .cert-swiper .swiper-slide {
    height: auto !important;
}

.section-certificates .cert-swiper {
    margin-bottom: 12px;   /* чтобы thumbs были ближе */
}

/* сами миниатюры — без лишнего отступа сверху */
.section-certificates .cert-thumbs {
    margin-top: 0;
    padding-bottom: 20px;
}

/* ===== Блок дипломов: выравнивание и высота ===== */

.section-certificates .cert-swiper {
    max-height: 650px; /* общая высота блока с большим дипломом */
}

.section-certificates .cert-swiper .swiper-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Картинка: не растягиваем по ширине, а вписываем */
.section-certificates .cert-img {
    width: auto;
    max-width: 100%;
    max-height: 600px;  /* ключевая строка — ограничиваем высоту */
    height: auto;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .25s ease;
}

.section-certificates .cert-img:hover {
    transform: scale(1.03);
}

/* ===== Стрелки навигации именно для блока дипломов ===== */

.section-certificates .cert-prev,
.section-certificates .cert-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* стрелочки Swiper рисует через :after, просто увеличим их */
.section-certificates .cert-prev::after,
.section-certificates .cert-next::after {
    font-size: 18px;
    color: #444;
}

/* чуть ближе к краям */
.section-certificates .cert-prev {
    left: 8px;
}

.section-certificates .cert-next {
    right: 8px;
}

/* Миниатюры прижмём ближе к основному слайду */
.section-certificates .cert-thumbs {
    margin-top: 8px;
    padding-bottom: 20px;
}

/* Стрелки внутри кружков для блока дипломов */
.section-certificates .cert-prev::after,
.section-certificates .cert-next::after {
    content: "";           /* глушим стандартный swiper-овский контент */
}

.section-certificates .cert-prev::before,
.section-certificates .cert-next::before {
    content: "";
    border: solid #444;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
}

.section-certificates .cert-prev::before {
    transform: rotate(135deg);   /* стрелка влево */
}

.section-certificates .cert-next::before {
    transform: rotate(-45deg);   /* стрелка вправо */
}

/* Иконки в блоке "С какими запросами..." */
.service-card__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px; /* высота области под иконку */
    margin-bottom: 16px;
}

.service-card__icon img {
    width: 60px;        /* уменьшенный размер иконки */
    height: 60px;
    object-fit: contain;
    display: block;
}

/* Убираем фон/границу старого круга вокруг иконок */
.service-card__icon {
    border: none !important;
    background: none !important;
    width: 80px;           /* фиксированный квадрат под иконку */
    height: 80px;
    margin: 0 auto 16px;   /* центрируем контейнер */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Сами картинки — аккуратный размер */
.service-card__icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

/* ======= Единый стиль белых карточек на фиолетовом фоне ======= */

/* Фоновая подложка секции */
.section--soft-bg {
    background: #f5f1ff; /* тот самый мягкий фиолетовый */
    padding: 60px 20px;
    border-radius: 16px;
}

/* Карточки в секциях (запросы, шаги работы) */
.soft-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.soft-card:hover {
    transform: translateY(-4px);
}

/* Выравнивание контента */
.soft-card h3 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.section--soft-bg {
    background: #f5f1ff;
    padding: 60px 24px;
    border-radius: 16px;
}

.soft-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.soft-card h3 {
    margin-top: 8px;
    margin-bottom: 10px;
}

/* Выравниваем карточки "С какими запросами..." по одинаковой высоте */
#services .services-grid {
    align-items: stretch; /* заставляет грид выравнивать высоту */
}

#services .service-card.soft-card {
    height: 100%;             /* карточка занимает всю высоту ячейки */
    display: flex;
    flex-direction: column;   /* контент идёт столбцом */
}

/* Немного пространства между заголовком и текстом внутри карточки */
#services .service-card.soft-card h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Единый стиль секционных заголовков */
.section__title-center,
.section-title {
    font-size: 2.0rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #221b40 !important;
    margin: 0 auto 32px !important;
    padding-top: 20px !important;
    line-height: 1.3;
}

.section--soft-bg {
    text-align: center;
}

.section--soft-bg .section-title {
    margin-left: auto;
    margin-right: auto;
}


/* Все фиолетовые секции – одинаковые отступы сверху/снизу */
.section--soft-bg {
    padding-top: 32px;
    padding-bottom: 40px;
}

/* Заголовок сразу внутри фиолетового блока */
.section--soft-bg > h2 {
    margin: 0 0 28px !important;  /* только отступ вниз до карточек */
    padding: 0 !important;        /* убираем любые паддинги у заголовка */
}

/* ===== Отзывы (карусель) ===== */

.reviews-swiper {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 40px; /* место под точки */
}

.review-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card__icon {
    text-align: center;
}

.review-card__icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.9;
}

.review-card__text {
    margin: 0;
    line-height: 1.6;
}

.review-card__author {
    margin-top: 8px;
    text-align: center;
}

.review-card__name {
    font-weight: 600;
}

.review-card__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Точки пагинации */
.reviews-pagination {
    position: static;
    margin-top: 16px;
    text-align: center;
}

.reviews-pagination .swiper-pagination-bullet {
    background: #c4b5fd;
    opacity: 1;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: #7c3aed;
}

/* Стрелки карусели отзывов */
.reviews-prev,
.reviews-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-prev::after,
.reviews-next::after {
    font-size: 18px;
    color: #444;
}

/* аккуратные стрелки, как в дипломах */
.reviews-prev::before,
.reviews-next::before {
    content: "";
    border: solid #444;
    border-width: 0 2px 2px 0;
    padding: 5px;
}

.reviews-prev::before {
    transform: rotate(135deg);
}

.reviews-next::before {
    transform: rotate(-45deg);
}

.reviews-prev {
    left: 0;
}

.reviews-next {
    right: 0;
}

/* адаптив */
@media (max-width: 768px) {
    .review-card {
        padding: 24px 20px;
        border-radius: 20px;
    }
}

.warning-box {
    margin-bottom: 40px;
}

#services.section {
    margin-bottom: 40px; /* расстояние между блоками */
}

.warning-box {
    margin-top: 40px;
}

.section {
    margin-bottom: 40px;
}

/* Мобильная шапка и hero */
@media (max-width: 768px) {
    .header {
        padding: 8px 16px;          /* меньше воздуха сверху/снизу */
    }

    .logo {
        font-size: 1rem;            /* уменьшить логотип */
    }

    .nav {
        gap: 6px 12px;              /* уменьшить расстояние между ссылками */
    }

    .nav a {
        font-size: 0.9rem;
        padding: 4px 0;            /* убрать лишнюю высоту */
    }

    /* уменьшить отступ перед первой картинкой */
    .hero {
        padding-top: 16px;
    }
}
