/* ========== Стили для страницы цен ========== */

.hero {
    margin-top: 50px;
}

/* Преимущества (копия с главной) */
.advantages__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.advantages__card {
    width: 200px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: default;
}
.advantages__card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.advantages__card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}
.advantages__text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.advantages__hover-text {
    display: none;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}
.advantages__card:hover .advantages__hover-text {
    display: block;
}

/* Блок цен (price-diplom) */
.price-diplom {
    padding: 60px 0;
    background: #f9f9f9;
}
.price-diplom .title {
    margin-bottom: 40px;
}

/* Layout с сайдбаром справа */
.price-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.price-content {
    flex: 1;
    min-width: 0; /* для корректного сжатия */
}
.price-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 25px 15px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.price-sidebar__list {
    list-style: none;
}
.price-sidebar__item {
    margin-bottom: 20px;
}
.price-sidebar__item-title {
    font-weight: 700;
    font-size: 16px;
    color: #123e93;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 2px solid #FF6A00;
    padding-bottom: 5px;
}
.price-sidebar__sublist {
    list-style: none;
    padding-left: 10px;
}
.price-sidebar__sublist li {
    margin-bottom: 8px;
}
.price-sidebar__sublist a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 3px 0;
}
.price-sidebar__sublist a:hover {
    color: #FF6A00;
}

/* Сами категории цен */
.price-diplom__wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    scroll-margin-top: 80px;
}
.price-diplom__wrapper-left,
.price-diplom__wrapper-right {
    flex: 1;
}
.price-diplom__wrapper-left-text {
    font-weight: 700;
    font-size: 18px;
    color: #123e93;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #FF6A00;
    padding-bottom: 8px;
}
.price-diplom__wrapper-left-text--left {
    text-align: left;
}
.price-diplom__wrapper-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.price-diplom__wrapper-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
}
.price-diplom__wrapper-item:hover {
    background-color: #f5f5f5;
}
.price-diplom__wrapper-item--acitve {
    background-color: #fff3e0;
    border-left: 4px solid #FF6A00;
}
.price-diplom__wrapper-item-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
.price-diplom__wrapper-item-price {
    font-weight: 700;
    color: #FF6A00;
    font-size: 18px;
}
.slider-price {
    position: relative;
    margin-bottom: 20px;
}
.price-diplom__wrapper-right-img {
    width: 100%;
    max-width: 225px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto 20px;
}
.ds-none {
    display: none !important;
}
.slider-price__btn-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.slider-price__btn-span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.2s;
}
.slider-price__btn-span:hover {
    background: #FF6A00;
}
.slider-price__btn-span--active {
    background: #FF6A00;
    transform: scale(1.2);
}
.btn900 {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(45deg, #FF8C00, #FF6A00);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255,106,0,0.3);
    border: none;
}
.btn900:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255,106,0,0.5);
}
.btn900:active {
    transform: translateY(0);
}

/* Чередование порядка колонок для категорий */
.price-diplom__wrapper:nth-child(even) .price-diplom__wrapper-left {
    order: 2;
}
.price-diplom__wrapper:nth-child(even) .price-diplom__wrapper-right {
    order: 1;
}

/* Адаптивность */
@media (max-width: 992px) {
    .price-layout {
        flex-direction: column;
    }
    .price-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
    }
    .price-diplom__wrapper {
        flex-direction: column;
    }
    .price-diplom__wrapper:nth-child(even) .price-diplom__wrapper-left {
        order: 1;
    }
    .price-diplom__wrapper:nth-child(even) .price-diplom__wrapper-right {
        order: 2;
    }
    .price-diplom__wrapper-left-text {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .price-diplom__wrapper-item {
        flex-wrap: wrap;
    }
    .price-diplom__wrapper-item-title {
        width: 100%;
        margin-bottom: 5px;
    }
    .price-diplom__wrapper-item-price {
        width: 100%;
        text-align: left;
    }
}

.content-block {
    padding: 50px 0;
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}
.content-block p {
    margin-bottom: 20px;
}
/* ========== Блок с текстом и обтекающей картинкой ========== */
.content-block {
    padding: 60px 0;
    background-color: #fff;
}
.content-block__text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}
.content-block__text p {
    margin-bottom: 20px;
}
.content-block__float-img {
    float: left;
    margin: 0 25px 20px 0;
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.content-block__float-img:hover {
    transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-block__float-img {
        float: none;
        display: block;
        margin: 0 auto 25px;
        max-width: 100%;
    }
    .content-block__text {
        text-align: left;
    }
}
@media (max-width: 480px) {
    .content-block {
        padding: 40px 0;
    }
}
/* Мобильные устройства (до 576px) */
@media (max-width: 576px) {
    /* Преимущества: две карточки в ряд */
    .advantages__grid {
        gap: 15px;
    }
    .advantages__card {
        width: calc(50% - 15px); /* с учётом gap */
        min-width: 140px;         /* чтобы не сжимались слишком сильно */
        padding: 20px 10px;
    }
    .advantages__card img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    /* Существующие стили для блока с текстом */
    .content-block__float-img {
        float: none;
        display: block;
        margin: 0 auto 25px;
        max-width: 100%;
        /* Добавляем квадратную форму */
        width: 200px;
        object-fit: cover;  /* обрезает лишнее, сохраняя центр */
        border-radius: 10px; /* можно скруглить, как у блока */
    }
}
/* Скрываем боковое меню на мобильных устройствах */
@media (max-width: 768px) {
    .price-sidebar {
        display: none;
    }
    .price-content {
        flex: 1 1 100%; /* контент занимает всю ширину */
    }
}