﻿/* wwwroot/styles/offers-common.css */

/* ============================================
   ОБЩИЕ СТИЛИ ДЛЯ БЛОКОВ АКЦИЙ
   ============================================ */

.main-offers-section {
    margin: 80px 0;
    width: 100%;
}

.main-offers-title {
    color: var(--text-color-black-100, #1c1f26);
    text-align: center;
    font-family: 'OpenRunde-Bold', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: -0.011em;
    margin-bottom: 40px;
}

.offers-tabs {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.offers-block {
    width: 100%;
}

.offers-block__header {
    margin-bottom: 24px;
}

.offers-block__description {
    color: var(--text-color-black-80, #494c51);
    text-align: center;
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
    margin-bottom: 12px;
}

/* ============================================
   БЛОК-ХЕДЕР (ЗАГОЛОВОК + КНОПКА "ВСЕ...")
   ============================================ */

.block-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.block-title {
    color: var(--text-color-black-80, #494c51);
    font-family: 'OpenRunde-Bold', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* Кнопка "Все специалисты", "Все услуги" */
.all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-color-blue-40, #d4dade);
    border-radius: 16px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    height: 40px;
    white-space: nowrap;
}

    .all-link:hover {
        background: var(--background-color-blue-50, #c9d0d6);
    }

    .all-link span {
        color: var(--text-color-black-60, #77797d);
        font-family: 'OpenRunde-Medium', sans-serif;
        font-size: 16px;
        font-weight: 500;
    }

    .all-link img {
        width: 20px;
        height: 20px;
    }

/* ============================================
   ПРОМОКОД
   ============================================ */

.promo-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.promo-code {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.promo-code__label {
    color: var(--text-color-black-60, #77797d);
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.promo-code__value {
    color: var(--text-color-black-80, #494c51);
    font-family: 'OpenRunde-Bold', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.promo-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Кнопка "Каталог аптеки" */
.catalog-link {
    background: var(--background-color-blue-40, #d4dade);
    border-radius: 16px;
    padding: 8px 16px;
    width: 292px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 8px;
}

    .catalog-link:hover {
        background: var(--background-color-blue-50, #c9d0d6);
    }

    .catalog-link span {
        color: var(--text-color-black-60, #77797d);
        font-family: 'OpenRunde-Medium', sans-serif;
        font-size: 16px;
        font-weight: 500;
        white-space: nowrap;
    }

    .catalog-link img {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

/* ============================================
   ПРИМЕЧАНИЕ
   ============================================ */

.offers-note {
    margin-top: 24px;
    text-align: center;
    color: var(--text-color-black-60, #77797d);
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 14px;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 1200px) {
    .main-offers-section {
        margin: 60px 0;
    }

    .main-offers-title {
        font-size: 28px;
    }

    .promo-code__value {
        font-size: 20px;
    }

    .catalog-link {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .main-offers-section {
        margin: 40px 0;
    }

    .main-offers-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .offers-tabs {
        gap: 60px;
    }

    .promo-info {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .promo-code {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-link {
        width: 100%;
        justify-content: center;
    }

    .block-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .pharmacy-tab {
        font-size: 13px;
        padding: 6px 12px;
    }

    .promo-code__value {
        font-size: 16px;
    }
}
