/* Дизайн-шаблон "Fincult" на основе стилей fincult.info */
/* Профессиональный деловой стиль с синей цветовой схемой */

:root {
    --btn-radius: 8px;
    --btn-radius-offer-line: 6px;
    --card-radius: 12px;
    --card-radius-xs: 12px;
    --gray-250: #f5f5f5;
    --gray-300: #e0e0e0;
    --gray-500: #757575;
    --red-500: #d32f2f;
    
    /* Основная цветовая схема Fincult */
    --theme-bg: #ffffff;
    --theme-header-title: #1a237e;
    --theme-header-text: #424242;
    --theme-title: #1a237e;
    --theme-text: #212121;
    --theme-license-title: #1a237e;
    --theme-license-text: #424242;
    --theme-license-bg: #fafafa;
    --theme-license-border: #e0e0e0;
    
    /* Карточки офферов */
    --theme-offer-bg: #ffffff;
    --theme-offer-border: #e0e0e0;
    --theme-offer-logo-bg: #f5f5f5;
    --theme-offer-title: #1a237e;
    --theme-offer-params-big: #1a237e;
    --theme-offer-params: #424242;
    
    /* UTP бейджи - желтый цвет из fincult */
    --theme-utp-bg: #FFC107;
    --theme-utp-border: #FFC107;
    --theme-utp-color: #212121;
    
    /* Кнопки - желтый цвет из fincult */
    --theme-btn-bg: #FFC107;
    --theme-btn-color: #212121;
    --theme-btn-border: #FFC107;
    --theme-btn-hover-color: #212121;
    --theme-btn-hover-bg: #FFB300;
    --theme-btn-hover-border: #FFB300;
    --theme-btn-active-color: #212121;
    --theme-btn-active-bg: #FFA000;
    --theme-btn-active-border: #FFA000;
    
    /* Прогресс одобрения - желтый цвет из fincult */
    --theme-approval-progress: #FFC107;
    --theme-approval-progress-bg: #FFF9C4;
    --theme-approval-color: #212121;
    
    /* Фильтры - желтый цвет из fincult */
    --theme-filter-bg: #FFF9C4;
    --theme-filter-color: #424242;
    --theme-filter-input-color: #212121;
    --theme-filter-input-border: #FFC107;
    --theme-filter-symbol-color: #757575;
    --theme-filter-btn-bg: #FFC107;
    --theme-filter-btn-color: #212121;
    --theme-filter-btn-border-color: #FFC107;
    --theme-range-line: linear-gradient(91.73deg, #FFC107 0%, #FFC107 100%);
    
    /* Теги - желтый цвет из fincult */
    --theme-tag-color: #212121;
    --theme-tag-bg: #ffffff;
    --theme-tag-active-bg: #FFC107;
    --theme-tag-border: #FFC107;
    
    /* Преимущества - желтый цвет из fincult */
    --theme-advantage-name: #212121;
    --theme-advantage-text: #424242;
    --theme-advantage-icon-bg: #FFF9C4;
    --theme-additional-title: #1a237e;
    --theme-additional-text: #424242;
    --theme-user-code-body: #424242;
    
    /* Футер */
    --theme-footer-bg: #f5f5f5;
    --theme-footer-text: #757575;
    --theme-footer-partner: #424242;
    --theme-footer-privacy: #757575;
    --theme-footer-privacy-link: #1976d2;
}

/* Базовые стили (копируем из leads.css, но с адаптацией) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--theme-text);
    background-color: var(--theme-bg);
}

.wrapper .lds-widget-banner-container,
.wrapper .lds-widget {
    margin-top: 20px;
}

.container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--theme-title);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    outline: none;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    color: var(--theme-btn-color);
    border: 1px solid var(--theme-btn-border);
    border-radius: var(--btn-radius);
    background: var(--theme-btn-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    color: var(--theme-btn-hover-color);
    border-color: var(--theme-btn-hover-border);
    background: var(--theme-btn-hover-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn:active {
    color: var(--theme-btn-active-color);
    border-color: var(--theme-btn-active-border);
    background: var(--theme-btn-active-bg);
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.advantages,
.additional-info,
.page-banner,
.license,
.user-code-body {
    margin-top: 24px;
    margin-bottom: 24px;
}

.user-code-body {
    color: var(--theme-user-code-body);
}

@media (min-width: 320px) {
    .container {
        max-width: 344px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 640px) {
    .container {
        max-width: 704px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .advantages,
    .additional-info,
    .page-banner,
    .license,
    .user-code-body {
        margin-top: 32px;
        margin-bottom: 32px;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1232px;
    }
    .title {
        font-size: 28px;
    }
    .advantages,
    .additional-info,
    .page-banner,
    .license,
    .user-code-body {
        margin-top: 64px;
        margin-bottom: 64px;
    }
}

/* Header */
.header {
    padding: 16px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header__logo + .header__info {
    margin-top: 16px;
}

.header__logo img {
    display: block;
}

.header__title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.header__text {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
    .header {
        min-height: 200px;
        padding: 16px 32px;
    }
    .header_empty {
        min-height: 0;
    }
    .header_empty + .offers .offers__title {
        margin-top: 20px;
    }
    .header__info {
        max-width: 408px;
    }
    .header__title {
        font-size: 24px;
    }
}

@media (min-width: 1280px) {
    .header {
        min-height: 280px;
        padding: 18px 40px;
    }
    .header_empty {
        min-height: 0;
    }
    .header_empty + .offers .offers__title {
        margin-top: 20px;
    }
    .header__info {
        max-width: 548px;
    }
    .header__logo + .header__info {
        margin-top: 24px;
    }
    .header__title {
        font-size: 36px;
    }
    .header__text {
        margin-top: 16px;
        font-size: 16px;
    }
}

@media (min-width: 1366px) {
    .header {
        max-width: 1366px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 82px;
        padding-right: 82px;
    }
}

/* Offers */
.offers__title {
    margin: 24px 0 0;
    text-align: center;
    color: var(--theme-title);
}

.offers__text {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    white-space: pre-line;
    text-align: center;
    color: var(--theme-text);
}

.offers__list {
    display: grid;
    grid-gap: 20px;
    gap: 20px;
    align-items: end;
    margin-top: 16px;
}

.offers__filter {
    margin-top: 32px;
    margin-bottom: 24px;
}

@media (min-width: 320px) {
    .offers__list_two-columns-xs {
        grid-template-columns: 1fr 1fr;
        grid-gap: 16px 7px;
        gap: 16px 7px;
    }
    .offers__list_two-columns-xs .offer__container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (min-width: 640px) {
    .offers__title {
        margin: 32px 0 0;
    }
    .offers__text {
        margin-top: 15px;
    }
    .offers__list {
        grid-template-columns: 1fr 1fr;
        grid-gap: 16px;
        gap: 16px;
    }
    .offers__list_two-columns-xs .offer__container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 1280px) {
    .offers__title {
        margin: 64px 0 0;
    }
    .offers__list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-gap: 20px 24px;
        gap: 20px 24px;
    }
    .offers__list_row {
        grid-template-columns: 1fr;
    }
    .offers__text {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Offer card */
.offer {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.offer:hover .btn {
    color: var(--theme-btn-hover-color);
    border-color: var(--theme-btn-hover-border);
    background: var(--theme-btn-hover-bg);
}

.offer:active .btn {
    color: var(--theme-btn-active-color);
    border-color: var(--theme-btn-active-border);
    background: var(--theme-btn-active-bg);
}

.offer_usp_outside .offer__usp {
    margin-left: 0;
    margin-bottom: 4px;
}

.offer_usp_outside .offer__container {
    padding-top: 16px;
}

.offer__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: var(--card-radius);
    border: 1px solid var(--theme-offer-border);
    background-color: var(--theme-offer-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.offer__wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.offer__usp {
    display: inline-block;
    margin-top: 8px;
    margin-left: 16px;
    margin-right: 16px;
    padding: 6px 14px;
    word-break: break-word;
    text-align: center;
    line-height: 1.4;
    color: #212121;
    background-color: #FFF9C4;
    border-radius: 16px;
    border: 1px solid #FFC107;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    transition: all 0.2s ease;
}

.offer__row {
    width: 100%;
}

.offer__container {
    padding: 12px 16px 0;
}

.offer__header {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr;
    grid-gap: 0 12px;
    gap: 0 12px;
}

.offer__header_no-approval .offer__img {
    grid-row: unset;
}

.offer__approval {
    align-self: end;
}

.offer__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    grid-row: 1/3;
    overflow: hidden;
    background-color: var(--theme-offer-logo-bg);
    border-radius: 8px;
}

.offer__img img {
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.offer__name {
    max-width: 238px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--theme-offer-title);
}

.offer__name_long {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: normal;
    -webkit-line-clamp: 2;
}

.offer__params {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.offer__params > *:not(:first-child) {
    margin-top: 10px;
}

.offer__item {
    display: inline-block;
    margin-right: 8px;
    line-height: 1.4;
    color: var(--theme-offer-params);
    font-size: 14px;
}

.offer__item:last-child {
    margin-right: 0;
}

.offer__item_sum .offer__item-value,
.offer__item_hr .offer__item-value {
    font-size: 22px;
    font-weight: 500;
    color: var(--theme-offer-params-big);
}

.offer__item_hr .offer__item-value {
    font-size: 16px;
}

.offer__item-betting {
    margin: 0;
    line-height: 1.4;
    color: var(--theme-offer-params);
}

.offer__item-betting + .offer__item-betting {
    margin-top: 8px;
}

.offer__item-betting_big {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--theme-offer-params-big);
}

.offer__item-value {
    margin: 0;
    font-feature-settings: "pnum" on, "lnum" on;
}

.offer__btn {
    margin: 16px;
    width: calc(100% - 32px);
}

/* Оранжевые кнопки для определенных позиций (1-я, 3-я, 6-я и 10-я) */
.btn.offer__btn.offer__btn_orange,
.offer__btn.offer__btn_orange,
.offer .btn.offer__btn_orange,
.offer .btn.offer__btn.offer__btn_orange,
a.offer .btn.offer__btn.offer__btn_orange,
a.offer.offer_usp_inside .btn.offer__btn.offer__btn_orange {
    background-color: #FF6B35 !important;
    border-color: #FF6B35 !important;
    color: #ffffff !important;
}

.btn.offer__btn.offer__btn_orange:hover,
.offer__btn.offer__btn_orange:hover,
.offer .btn.offer__btn_orange:hover,
.offer:hover .btn.offer__btn_orange,
.offer:hover .btn.offer__btn.offer__btn_orange,
a.offer:hover .btn.offer__btn.offer__btn_orange,
a.offer.offer_usp_inside:hover .btn.offer__btn.offer__btn_orange {
    background-color: #FF5722 !important;
    border-color: #FF5722 !important;
    color: #ffffff !important;
}

.btn.offer__btn.offer__btn_orange:active,
.offer__btn.offer__btn_orange:active,
.offer .btn.offer__btn_orange:active,
.offer:active .btn.offer__btn_orange,
.offer:active .btn.offer__btn.offer__btn_orange,
a.offer:active .btn.offer__btn.offer__btn_orange,
a.offer.offer_usp_inside:active .btn.offer__btn.offer__btn_orange {
    background-color: #E64A19 !important;
    border-color: #E64A19 !important;
    color: #ffffff !important;
}

/* Footer */
.footer {
    margin-top: 24px;
    padding: 32px 24px;
    text-align: center;
    background-color: var(--theme-footer-bg);
    border-top: 1px solid var(--gray-300);
}

.footer__info {
    margin: 0;
    font-size: 14px;
    color: var(--theme-footer-text);
    white-space: pre-line;
}

.footer__info p {
    margin: 0;
}

.footer__partner {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--theme-footer-partner);
}

.footer + .privacy {
    margin-top: -24px;
    padding-top: 0;
}

.privacy {
    margin-top: 24px;
    padding: 32px 24px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    color: var(--theme-footer-privacy);
    background-color: var(--theme-footer-bg);
}

.privacy a {
    color: var(--theme-footer-privacy-link);
    text-decoration: none;
}

.privacy a:hover {
    text-decoration: underline;
}

/* Адаптация для мобильных */
@media (min-width: 320px) and (max-width: 639px) {
    .offer_xs .offer__usp {
        display: block;
        margin: 8px 8px 0;
    }
    .offer_xs.offer_usp_outside .offer__usp {
        display: block;
        margin: 0 0 4px;
        padding-top: 5px;
        padding-bottom: 5px;
        line-height: 1.2;
    }
    .offer_xs .offer__approval {
        margin-top: 8px;
        font-size: 13px;
    }
    .offer_xs .offer__params > *:not(:first-child):not(.offer__block_betting) {
        margin-top: 4px;
    }
    .offer_xs .offer__item:not(.offer__item_big) {
        align-items: center;
        margin-left: 0;
    }
    .offer_xs .offer__item_sum .offer__item-value {
        font-size: 16px;
        line-height: 1.2;
        font-weight: 500;
    }
    .offer_xs .offer__name {
        grid-column: 1/3;
        grid-row: 3/4;
        margin-top: 10px;
        font-size: 12px;
        font-weight: 400;
    }
    .offer_xs .offer__name_betting {
        grid-column: 2/3;
        grid-row: 1/3;
        margin-top: 0;
    }
    .offer_xs .offer__item-betting {
        font-size: 13px;
        line-height: 16px;
    }
    .offer_xs .offer__item-betting + .offer__item-betting {
        margin-top: 4px;
    }
    .offer_xs .offer__item-betting_big {
        margin-top: 4px;
        font-size: 14px;
        line-height: 17px;
    }
    .offer_xs .offer__params > *:not(:first-child) {
        margin-top: 4px;
    }
    .offer_xs .offer__name_long {
        word-wrap: break-word;
    }
    .offer_xs .offer__btn {
        margin: 8px 4px 4px;
        padding-top: 11px;
        padding-bottom: 11px;
        font-size: 14px;
        line-height: 1.2;
    }
    .offer_xs .offer__img {
        width: 50px;
        height: 50px;
    }
}

/* Desktop line layout */
@media (min-width: 1280px) {
    .offer_line .offer__wrapper {
        display: grid;
        grid-template-rows: auto 1fr;
        justify-content: unset;
    }
    .offer_line .offer__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .offer_line .offer__container {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 15px 24px;
    }
    .offer_line .offer__header {
        min-width: 251px;
        grid-gap: 0 16px;
        gap: 0 16px;
    }
    .offer_line .offer__usp {
        margin-top: 0;
        margin-left: 0;
        transform: translateY(-6px);
    }
    .offer_line .offer__approval {
        width: 171px;
    }
    .offer_line .offer__params {
        width: 100%;
        flex-direction: row;
        margin-top: 0;
        margin-left: 64px;
    }
    .offer_line .offer__params > *:not(:first-child):not(.offer__block_betting) {
        grid-gap: 8px;
        gap: 8px;
        margin-top: 0;
        margin-left: auto;
    }
    .offer_line .offer__params .offer__block_betting {
        margin-top: 0;
    }
    .offer_line .offer__block {
        display: grid;
        align-items: center;
    }
    .offer_line .offer__block_betting {
        gap: 0;
        margin-left: auto;
    }
    .offer_line .offer__item,
    .offer_line .offer__item-betting {
        min-width: 150px;
        max-width: 330px;
    }
    .offer_line .offer__item-betting_big {
        margin-top: 0;
    }
    .offer_line .offer__header .offer__item-betting {
        margin-top: 8px;
    }
    .offer_line .offer__item_sum .offer__item-value {
        font-size: 28px;
        line-height: 1;
    }
    .offer_line .offer__btn {
        min-width: 260px;
        flex-shrink: 0;
        margin: 0 20px 0 36px;
        border-radius: var(--btn-radius-offer-line);
    }
    .offer_line.offer_usp_outside .offer__usp {
        transform: none;
    }
}

