/* --- XS (до 575.98px) --- */
/* Мобильные устройства — базовые стили без медиа-запросов */


/* --- SM (≥576px) --- */
@media (min-width: 576px) {

}


/* --- MD (≥768px) --- */
@media (min-width: 768px) {
    html{
        font-size: 16px;
    }

    .h1 {
        font-size: 2rem;
    }

    .h2 {
        font-size: 1.375rem;
    }

    .text {
        font-size: 1rem;
    }

    .text-small {
        font-size: 0.5rem;
    }


    .theme-button {
        padding: 1.25rem 4.375rem;
        font-weight: 600;
        border-radius: 0.5rem;
        background-color: #E50A0A;
        border: #E50A0A;
        color: white;
        text-transform: uppercase;
        text-decoration: none;
        display: inline-block;
        width: auto;
        font-size: 14px;
        line-height: 1;
    }

    .theme-button-inverse {
        background-color: #ffffff;
        border: #ffffff;
        color: #E50A0A;
    }

    .theme-button-white {
        background-color: #ffffff;
        border: 1px solid #E50A0A;
        color: #2E2E2E;
    }



    .modal-header {
        border: none;
    }
    .modal-title {font-size: 33px;}
    .modal-sub-title {font-size: 16px;}

    .modal-dialog-centered {
        display: flex;
        align-items: center;
        min-height: calc(100% - var(--bs-modal-margin) * 2);
    }

    .section-title-container {
        margin-bottom: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .section-title {
        font-size: 32px;
        color: #E50A0A;
        font-weight: 400;
        text-transform: uppercase;
        line-height: 1;
        letter-spacing: -0.01em;
    }

    .section-titles {
        max-width: 900px;
    }

    .section-sub-title {
        margin-top: 1rem;
        font-size: 14px;
        line-height: 1.1;
        width: auto;
    }
    .brands-section  .section-sub-title {
        font-size: 16px;
        line-height: 1.2;
    }
    .promo-service .section-titles {
        max-width: 390px;
    }




    .section-default {
        margin-bottom: 100px;
    }

    .caption {
        font-weight: 400;
    }


    /* --- Header --- */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
        background: #fafafa;
    }

    .header-nav {
        height: 102px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .header-menu-left, .header-menu-right {
        gap: 20px;
    }

    .header-logo-img {
        height: 22px;
        width: auto;
    }

    /* --- Десктоп меню --- */
    .header-menu-item {
        font-size: 16px;
        color: #2E2E2E;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .header-menu-item:hover {
        color: #E50A0A;
    }

    /* --- Бургер --- */
    .header-burger {
        width: 28px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border: none;
        background: none;
        padding: 0;
        cursor: pointer;
    }

    .header-burger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #000;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .header-burger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(9px);
    }

    .header-burger.active span:nth-child(2) {
        opacity: 0;
    }

    .header-burger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
    }

    /* --- Оверлей --- */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }


    /* --- Выпадающее меню "Услуги" --- */
    .services-menu {
        position: fixed;
        top: 80px; /* ниже шапки */
        left: 0;
        width: 60%;
        min-width:  555px;
        height: auto;
        background: #fff;
        z-index: 1000;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        border-radius: 1rem;
        overflow: hidden;
        height: 300px;
    }

    .services-menu.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .services-menu-inner {
        display: flex;
        height: 100%;
    }

    .services-list {
        flex: 1 1 50%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .services-item {
        color: #2E2E2E;
        font-size: 14px;
        font-weight: 400;
        text-transform: uppercase;
        text-decoration: none;
        margin-bottom: 10px;
        transition: color 0.3s ease;
    }

    .services-item:hover {
        color: #E50A0A;
    }

    .services-image {
        flex: 1 1 50%;
        background-color: #f9f9f9;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .services-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* затемнение фона */
    .services-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .services-overlay.active {
        opacity: 1;
        visibility: visible;
    }



    /* --- Мобильное меню --- */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70vh;
        max-height: 600px;
        background: #fff;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
        border-bottom: 1px solid #eee;
        overflow-y: auto;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu.open {
        transform: translateY(0);
    }

    /* --- Шапка внутри меню --- */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #184378;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        color: #222;
    }

    /* --- Список --- */
    .mobile-menu-list {
        list-style: none;
        padding: 1rem 1.5rem;
        margin: 0;
    }

    .mobile-menu-list li {
        margin-bottom: 1rem;
    }

    .mobile-menu-list a,
    .submenu-toggle {
        font-size: 1.1rem;
        font-weight: 500;
        color: #222;
        text-decoration: none;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .mobile-menu-list a:hover,
    .submenu-toggle:hover {
        color: #184378;
    }

    /* --- Подменю --- */
    .submenu {
        list-style: none;
        margin: 0.5rem 0 1rem 1rem;
        padding: 0;
        display: none;
    }

    .submenu li {
        margin-bottom: 0.5rem;
    }

    .submenu a {
        font-size: 1rem;
        color: #555;
    }

    .submenu-icon {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .has-submenu.open .submenu-icon {
        transform: rotate(180deg);
    }


    .promo-section {
    }

    .promo-left,
    .promo-right {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .promo-image-wrap {
        width: 100%;
    }

    .promo-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 1rem;
    }

    .promo-text {
        padding: 1.5rem 0;
        font-size: 2rem;
        line-height: 1;
        color: #2E2E2E;
        font-weight: 400;
        width: 90%;
    }

    .promo-content {
        margin-top: 2rem;
        gap: 2rem;
    }

    .promo-info-text {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        color: #2E2E2E;
        line-height: 1;
        width: auto;
    }

    .promo-button {
        padding: 1.25rem 4.375rem;
        font-weight: 600;
        border-radius: 0.5rem;
        background-color: #E50A0A;
        border: #E50A0A;
        font-size: 1.375rem;
        text-transform: uppercase;
    }

    .promo-small-image {height: 100%;display: flex;align-content: center;justify-content: center;margin: auto;}

    .promo-small-image img {
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
        display: block;
    }


    .promo-service {
        padding: 0;
    }

    .promo-service-item {
        position: relative;
        display: block;
        overflow: hidden;
        border-radius: 1rem;
        text-decoration: none;
        height: 300px;
    }

    .promo-service-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    .promo-service-item:hover .promo-service-image {
        transform: scale(1.05);
    }

    .promo-service-item-end {
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .promo-service-image-end {
        width: 70%;
    }


    .promo-service-content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        padding: 1.25rem;
    }

    .promo-service-title {
        font-size: 22px;
        margin: 0;
        align-self: flex-start;
        text-transform: uppercase;
        max-width: 190px;
    }

    /* Кружок со стрелкой */
    .promo-service-icon {
        align-self: flex-end;
    }

    .promo-service-icon-img {
        width: 2rem;
        height: 2rem;
    }


    .loyalty-section {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 1.25rem;
        color: #fff;
        position: relative;
        border-radius: 1rem;
        background-image: url(/local/templates/generemio/img/loyalty-bg.jpg);
    }

    .loyalty-items {
    }

    .loyalty-item {
        min-width: 0;
        min-height: 250px;
        margin-bottom: 1rem;
        background-color: white; /* полупрозрачный слой */
        border-radius: 1rem;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: flex-start; /* инфо прижато к низу */
        padding: 20px;
        border: none;
        flex-direction: column;
        justify-content: flex-end;
    }

    .loyalty-item:last-child {
        margin-bottom: 0;
    }

    .loyalty-info {
        width: 65%;
    }

    .loyalty-title {
        font-size: 22px;
        margin-bottom: 0.5rem;
        color: #E50A0A;
    }

    .loyalty-text {
        font-size: 16px;
        line-height: 1.2;
        margin: 0;
        color: #2E2E2E;
    }

    #howItWork .modal-body {
        width: 80%;
        font-size: 14px;
    }

    #howItWork .modal-body-footer {

        display: flex;

        gap: 3rem;
    }

    #howItWork .modal-body p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    #howItWork .modal-body .h2{
        font-size: 22px;
    }
    #howItWork .modal-body p {
        font-size: 14px;
    };


    .about-section .section-sub-title {
        max-width: 80%;
        line-height: 1.2;
        margin-bottom: 8px;
        font-size: 22px;
    }
    .about-section .caption {
        max-width: 465px;
        line-height: 1.2;
        margin-bottom: 30px;
        font-size: 16px;
    }

    .about-section .section-title-container {margin-bottom: 1.25rem;}
    .about-section .section-titles {
    }
    .about-section .section-sub-title {
        max-width: 895px;
        font-size: 22px;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .about-slogan {
        width: 320px;
        max-width: 100%;
    }


    .team-section {
    }

    .team-title {
        font-size: 2rem;
        font-weight: 700;
        color: #184378;
    }

    .team-subtitle {
        font-size: 1.1rem;
        color: #555;
        margin: 0;
    }

    /* --- СЛАЙДЕР --- */
    .team-swiper {
        overflow: visible; /* чтобы выглядывал следующий слайд */
    }

    .team-slide {
        width: 25%; /* 4 в контейнере */
    }

    .team-member {
        position: relative;
        overflow: hidden;
        border-radius: 1rem;
        margin-bottom: 0.5rem;
    }

    .team-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    .team-member:hover .team-image {
        transform: scale(1.05);
    }

    .team-icon {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        width: 2.25rem;
        height: 2.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .team-icon img {
        width: 2rem;
        height: 2rem;
    }

    .team-member:hover .team-icon {
        filter: brightness(0.5) invert(1);
    }

    .team-position {font-size: 22px;color: #E50A0A;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}

    .team-name {font-weight: 400;font-size: 16px;}


    .modal-dialog-team-detail {
        width: auto;
        max-width: min(90vw, 800px);
    }

    .modal-team-member {
        position: relative;
        overflow: hidden;
        height: 222px;
    }

    .modal-team-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    .modal-team-position {

        font-size: 2rem;

        color: #E50A0A;

        margin-bottom: 0;
    }

    .modal-team-name {margin-bottom: 0.5rem;font-size: 16px;color: #2E2E2E;}

    .modal-team-description {max-width: 410px;margin-bottom: 15px;font-size: 16px;}


    .brands-section {
    }

    .brands-accordion {
    }

    .brands-item {
    }

    .brands-header {
        width: 100%;
        background: none;
        border: none;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        cursor: pointer;
        border-bottom: 1px solid #e1e1e1;
        transition: color 0.3s ease;
    }

    .brands-header:hover {
        color: #184378;
    }

    .brands-info {
        display: flex;
        flex-direction: column;
    }

    .brands-title {
        font-size: 22px;
        font-weight: 400;
        color: #E50A0A;
    }

    .brands-subtitle {
        font-size: 16px;
        color: #777;
    }

    .brands-icon {
        font-size: 1.5rem;
        color: #2E2E2E80;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .brands-item.open .brands-icon {
        transform: rotate(45deg);
    }

    /* тело аккордеона */
    .brands-body {
        display: none; /* изначально скрыто */
        padding: 1rem 0;
        color: #444;
        line-height: 1.6;
        font-size: 16px;
    }

    /* --- картинка справа --- */
    .brands-image-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 400px;
        overflow: hidden;
    }

    .brands-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        visibility: hidden;
        transform: translateX(40px);
        transition: opacity 0.6s ease,
        transform 0.8s cubic-bezier(0.25, 1, 0.3, 1),
        visibility 0s linear 0.4s;
        border-radius: 0.75rem;
    }

    .brands-image.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition: opacity 0.6s ease,
        transform 0.8s cubic-bezier(0.25, 1, 0.3, 1),
        visibility 0s;
    }


    .reviews-section {
    }

    .reviews-title {
        font-size: 2rem;
        font-weight: 700;
        color: #184378;
    }

    .reviews-subtitle {
        font-size: 1.1rem;
        color: #666;
    }

    /* --- Слайд --- */
    .review-card {
        background-color: transparent;
        border-radius: 1rem;
        overflow: hidden;
        min-height: 555px;
        border: none;
    }

    .review-image-wrap {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .review-image {
        width: 100%;
        height: 555px;
        object-fit: cover;
        display: block;
        border-radius: 1rem;
    }

    .review-content {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 2rem;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .review-top {
        margin-bottom: 2rem;
    }

    .review-name {
        font-weight: 600;
        font-size: 22px;
        color: #222;
    }

    .review-stars img {
        width: 1.25rem;
        height: 1.25rem;
        margin-left: 0.25rem;
    }

    /* Текст отзыва */
    .review-text {
        font-size: 16px;
        color: #444;
        line-height: 1.2;
    }

    /* --- Навигация --- */
    .reviews-nav {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        display: flex;
        gap: 1rem;
        z-index: 10;
    }

    .reviews-nav button {
        border: none;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
    }

    .reviews-nav img {
        width: 1.8rem;
    }


    .media-section {
    }

    /* --- Общая сетка --- */
    .media-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch; /* обе колонки растягиваются на одинаковую высоту */
    }

    .media-column {
        display: flex;
        flex-direction: column;
    }

    /* --- Левая половина --- */
    .media-column-left {
        justify-content: space-between;
    }

    .media-title {
        font-size: 2rem;
        font-weight: 400;
        color: #E50A0A;
        text-transform: uppercase;
    }

    .media-image-wrap {
    }

    .media-image {
        width: 50%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.6s ease;
    }

    .media-image-wrap:hover .media-image {
        transform: scale(1.05);
    }

    /* --- Правая половина --- */
    .media-column-right {
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 2rem;
    }

    .media-card {
        background-color: #E50A0A;
        color: #fff;
        border-radius: 1rem;
        padding: 1.25rem 18% 1.25rem 1.25rem;
    }


    .media-card-title {
        color: #FAFAFA;
        font-size: 1.375rem;
        font-weight: 400;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    .media-card-subtitle {
        color: #FAFAFA;
        font-size: 1rem;
        font-weight: 400;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    .media-card-text {
        color: #FAFAFA;
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .media-card-btn {
        display: inline-block;
        background-color: #fff;
        color: #b71526;
        text-decoration: none;
        padding: 0.6rem 1.2rem;
        border-radius: 0.5rem;
        font-weight: 600;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .media-card-btn:hover {
        background-color: #184378;
        color: #fff;
    }

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


    .site-footer {
        color: #2E2E2E;
        font-weight: 400;
    }

    .footer-section a {
        color: #2E2E2E;
        text-decoration: none;
    }

    /* --- Общие блоки --- */
    .footer-about,
    .footer-contacts,
    .footer-nav,
    .footer-map {
        height: 322px;
    }

    .footer-title {
        font-size: 20px;
        font-weight: 500;
        color: #E50A0A;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    /* --- 1 колонка (логотип, реквизиты, политика) --- */
    .footer-about {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .footer-logo {
        width: 150px;
        max-width: 90%;
        height: auto;
        margin-bottom: 1rem;
    }

    .footer-info p {
        margin: 0;
        font-size: 16px;
        color: #555;
        line-height: 1.4;
    }

    .footer-about-bottom {
        margin-top: auto;
        font-size: 8px;
    }

    .footer-link {
        display: block;
        color: #777;
        text-decoration: none;
        margin-bottom: 0.25rem;
        transition: color 0.3s ease;
    }

    .footer-link:hover {
        color: #184378;
    }

    .text-muted {
        opacity: 0.5;
        font-size: 8px;
    }

    .footer-contacts p {
        line-height: 1.2;
        font-size: 16px;
    }

    /* --- Списки контактов и навигации --- */
    .footer-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-list li {
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .footer-list a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 16px;
    }

    .footer-list a:hover {
        color: #184378;
    }

    .footer-map {
    }

    .footer-map-inner {
        width: 100%;
        height: 100%;
        min-height: 300px;
        overflow: hidden;
    }

    .footer-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }





    .service-order-button {
        width: 100%;
    }

    .breadcrumbs {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        color: #2E2E2E80;
        font-size: 16px;
        margin-bottom: 23px;
    }

    .breadcrumb-link {
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .breadcrumb-link:hover {
        color: #2E2E2E; /* фирменный цвет */
    }

    .breadcrumb-separator {
        margin: 0 0.5rem;
        color: #aaa;
    }

    .breadcrumb-current {
        color: #2E2E2E80;
        font-weight: 400;
    }

    .services-nav {

    }


    .services-nav-button {
        text-transform: none;
        width: auto;
        padding: 15px 17px;
        line-height: 1;
        border: 1px solid #E50A0A;
        background: transparent;
        color: #2E2E2E;
        font-weight: 400;
        font-size: 22px;
    }
    .services-nav-button.selected {
        background: #E50A0A;
        color: #ffffff;
    }
    .service-prices {

    }
    /* Категория */
    .price-category {
        margin-bottom: 3rem;
    }
    .price-sub-section-container {
        margin-bottom: 70px;
    }

    .price-sub-section {
        font-weight: 400;
        font-size: 22px;
        color: #E50A0A;
        text-transform: uppercase;
        margin-top: 0px;
    }

    .price-sub-sub-section {
        font-weight: 500;
        font-size: 16px;
        color: #E50A0A;
        text-transform: uppercase;
        margin-top: 5px;
    }
    .price-item-order {border: none;}
    .service-order-button {
        width: 100%;
    }
    .price-item {
        padding: 15px 0;
        border-bottom: 1px solid #2E2E2E80;
    }
    .price-item + .price-sub-sub-section {
        margin-top: 55px;
    }

    .price-row {
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 1rem;
        flex-direction: row;
    }

    /* Название услуги */
    .price-item-name {
        flex: 1;
        min-width: 200px;
        font-weight: 400;
        font-size: 16px;
        color: #E50A0A;
        text-transform: uppercase;
        letter-spacing: -0.01em;
    }

    /* Блок уровней цен */
    .price-levels {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 2rem;
    }

    /* Одна колонка мастера */
    .price-level {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 105px;
    }

    .price-role {
        font-size: 16px;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        color: #2E2E2E;
        line-height: 1.2;
    }
    .price-item-sub-item .price-role {
        opacity: 0;
        height: 0;
    }

    .price-value {
        white-space: nowrap;
        font-weight: 400;
        font-size: 14px;
        color: #E50A0A;
    }

    /* --- Кнопка под блоком --- */
    .price-button-wrap {
        display: flex;
        justify-content: flex-end;
        margin-top: 1rem;
    }

    /* выравнивание кнопки по ширине от "Стилист" до правого края */
    .price-button {
        width: calc(3 * 80px + 2 * 2rem); /* 3 колонки по 80px + 2 промежутка по 2rem */
        text-align: center;
    }

    .price-item-sub-item {
        border-bottom: none;
        padding: 5px 0;
    }
    .price-item-sub-item-last {
        border-bottom: 1px solid #2E2E2E80;
        padding: 5px 0 15px 0;
    }
    .price-item-sub-item .price-item-name{font-style: italic;}
    .price-item-has-sub-items {
        border-bottom: none;
        padding: 15px 0 5px 0;
    }
    .price-item-has-sub-items .price-value{
        opacity: 0;
        height: 0;
    }
    .price-item-has-sub-items .price-role {display: block;}

    .cert-image {
        height: 336px;
    }




}


/* --- LG (≥992px) --- */
@media (min-width: 992px) {

    .price-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 1rem;
        flex-direction: row;
    }
    .price-item-name {
        flex: 1;
        min-width: 200px;
        font-weight: 400;
        font-size: 16px;
        color: #E50A0A;
        text-transform: uppercase;
        letter-spacing: -0.01em;
    }
    .price-levels {
        display: flex ;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 2rem;
    }
    .price-level {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        min-width: 105px;
    }
    .price-role {
        font-size: 16px;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        color: #2E2E2E;
        line-height: 1.2;
    }
    .price-value {
        white-space: nowrap;
        font-weight: 400;
        font-size: 14px;
        color: #E50A0A;
    }
}


/* --- XL (≥1200px) --- */
@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 20px;
    }
}


/* --- XXL (≥1400px) --- */
@media (min-width: 1400px) {
    .container,
    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 1360px;
    }
}


/* --- MAX-WIDTH версии (для mobile-first переопределений) --- */

/* ниже 992px */
@media (max-width: 991.98px) {
    .media-grid {
        /* grid-template-columns: 1fr; */
    }

    .media-column-right {
        grid-template-rows: auto;
    }

    .footer-about {
        height: auto;
    }


}
Á