@font-face {
    font-family: 'Gilroy-Regular';
    src: url('../fonts/Gilroy-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gilroy-Bold';
    src: url('../fonts/Gilroy-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #28a745;
    --primary-dark: #1e7e34;
    --secondary-color: #17a2b8;
    --accent-color: #ffc107;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Gilroy-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f5f7fa;
    text-align: center;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    /* Можно подкорректировать размер */
    font-weight: 700;
    color: #222;
    /* Немного затемненный цвет для контраста */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    /* Очень маленькая и легкая тень */
    margin-bottom: 15px;
    /* Чтобы заголовки не слипались с контентом */
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    /* Можно подкорректировать размер */
    font-weight: 700;
    color: #222;
    /* Немного затемненный цвет для контраста */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    /* Очень маленькая и легкая тень */
    margin-bottom: 15px;
    /* Чтобы заголовки не слипались с контентом */
}

header {
    background: white;
    color: var(--text-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-right: 30px;
}

.logo span {
    background-color: #006b82;
    color: white;
    padding: 5px 10px;
    font-weight: 700;
    border-radius: 5px;
}

.rating-container {
    position: relative;
    display: inline-block;
}

.rating-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    background-color: #006b82;
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
}

.approved-label {
    position: absolute;
    bottom: -10px;
    right: -20px;
    background-color: yellow;
    color: black;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    transform: rotate(-10deg);
    border-radius: 3px;
}

h1 {
    color: #333;
    margin-top: 20px;
    font-weight: 900;
}

p,
.offer p {
    color: #555;
    font-weight: 300;
    text-decoration: none;
}

.offers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}

.offer {
    flex: 1 1 calc(50% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    min-height: auto;
    box-sizing: border-box;
    position: relative;
    background-color: white;
    padding-bottom: 50px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.offer img.showcaseOfferLogo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.details-toggle {
    display: inline-block;
    cursor: pointer;
    color: #999;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
}

.offer .buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.offer button {
    width: 50%;
    font-weight: 700;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.offer button:hover {
    background-color: #5ac57a;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 4px rgba(111, 220, 140, 0.9);
    }

    50% {
        box-shadow: 0 0 10px rgba(111, 220, 140, 1);
    }

    100% {
        box-shadow: 0 0 4px rgba(111, 220, 140, 0.9);
    }
}

/* .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}*/

.modal-content hr {
    width: 100%;
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.modal-content a {
    color: blue;
    text-decoration: underline;
    display: block;
    margin: 5px 0;
    font-weight: 500;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 35%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    max-width: 400px;
}

.modal-content img {
    max-width: 60%;
    /* Уменьшает размер логотипа */
    height: auto;
    /* Сохраняет пропорции */
    display: block;
    margin: 10px auto;
    /* Центрирование */
}

@media (max-width: 768px) {
    .modal-content {
        width: 85%;
        max-width: none;
        padding-bottom: 20px;
        /* Увеличь, если кнопка все еще наезжает */
    }

    .modal-content img {
        max-width: 50%;
        /* Еще меньше на мобильных */
    }

    .offer .buttons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    .offer button {
        width: 90%;
        font-size: 9px;
    }

    .details-toggle {
        display: block;
        text-align: center;
        margin-top: 5px;
    }

    .rating-text {
        font-size: 16px;
        background-color: #006b82;
        color: white !important;
        /* Устанавливаем цвет текста */
        padding: 5px 10px;
        /* Оставляем отступы */
        border-radius: 5px;
        /* Оставляем скругления */
        font-weight: bold;
        text-align: center;
        white-space: nowrap;
    }

    .offers {
        /* замените на ваш реальный класс */
        gap: 5px;
        /* если используется flex/grid */
        margin-bottom: 5px;
        /* уменьшает отступы между карточками */
    }

    .offer {
        /* замените на реальный класс карточки */
        margin-bottom: 5px;
        /* или уберите margin, если нужно вплотную */
    }
    /* .article-card img {
        height: 150px; /* Можно уменьшить высоту для мобильных 
    }*/
} 


.close {
    color: #666;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
}

.modal button {
    width: 50%;
    font-weight: 700;
    background-color: #6fdc8c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    animation: pulse 1.5s infinite;
    transition: background-color 0.3s ease;
}

.modal button:hover {
    background-color: #5ac57a;
}

.offer a {
    text-decoration: none !important;
}

.offer-divider {
    width: 80%;
    height: 1px;
    background-color: #ddd;
    border: none;
    margin: 10px auto;
}

/* .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
} */
.search-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Сделал тень чуть более выразительной */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 600px;
    margin: 20px auto;
    font-family: 'Roboto', sans-serif;
}

.search-tag {
    background-color: #f0f4f8;
    color: #333;
    padding: 12px 18px;
    border-radius: 8px;
    /* Уменьшил закругление для более прямоугольного вида */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d1d9e6;
    text-decoration: none;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    /* Добавил тень позади */
}

.search-tag:hover {
    background-color: #e0e7ef;
    border-color: #b3c2d8;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
    /* Немного увеличил тень при наведении */
}

/* статьи */
.articles-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}
.article-card img {
    width: 100%;
    height: auto; /* Высота автоматически подстраивается */
    max-height: 200px; /* Ограничение максимальной высоты */
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.article-card a {
    color: #333;
}
.article-card a:hover {
    color: #006b82;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.section-title:hover {
    transform: scale(1.05);
}

.articles-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.article-card {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 10px);
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-title {
    font-size: 18px;
    font-weight: bold;
}

.article-text {
    font-size: 14px;
    color: #333;
}

.article-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
    color: #0056b3;
}

.all-articles {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.all-articles:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* официал инфо */
.official-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    overflow-x: auto; /* Для предотвращения вылазки таблицы */
    font-size: 12px; /* Уменьшаем размер шрифта для всей информации */
}

.official-info table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed; /* Фиксированная ширина столбцов */
}

.official-info td {
    padding: 6px 10px; /* Уменьшаем отступы */
    vertical-align: top;
    word-wrap: break-word; /* Обеспечиваем перенос слов */
    font-size: 12px; /* Уменьшаем размер шрифта в ячейках */
}

.official-info td:first-child {
    width: 30%;
    font-weight: bold;
}

.official-info td a {
    color: #007bff;
    text-decoration: none;
    font-size: 12px; /* Уменьшаем размер шрифта для ссылок */
}

.official-info td a:hover {
    text-decoration: underline;
}

/* Шахматный фон для таблицы */
.official-info table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.official-info table tr:nth-child(even) {
    background-color: #eaeaea;
}

.official-info table tr td {
    border-bottom: 1px solid #ddd;
}

.official-info td[colspan="2"] {
    text-align: center;
    font-size: 14px; /* Немного увеличиваем размер шрифта для заголовков */
    font-weight: bold;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Стили для карточек, если нужно */
.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-card {
    background: #eaeaea;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
}


.infocred {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10%;
}

.infocred h1 {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}

.infocred p {
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}

.infocred ul {
    list-style-type: disc;
    padding-left: 20px;
}

.infocred ul li {
    margin-bottom: 5px;
    text-align: left;
    font-size: 12px;
}

.infocred a {
    color: inherit;
    text-decoration: none;
}

/* .modal-details-link{

} */


.modal a {
    text-decoration: none;
    /* Убираем стандартное подчеркивание */
    color: gray;
    /* Делаем ссылки серого цвета */
    font-family: 'Roboto', sans-serif;
    /* Устанавливаем шрифт Roboto */
    position: relative;
    /* Для корректного добавления символа */
    padding-left: 16px;
    /* Отступ слева для иконки */
}

.modal a::before {
    content: 'i'; /* Буква "i" вместо стандартного значка */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px; /* Размер символа */
    font-weight: bold;
    color: white; /* Белая буква */
    background-color: gray; /* Серый фон */
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Делаем круг */
    opacity: 0.6; /* Немного прозрачности */
    font-family: Arial, sans-serif; /* Используем простой шрифт для "i" */

}

/* Стили для модального вікна з зеленими акцентами */
.modal-content .benefits {
    margin: 15px 0;
    text-align: left;
}

.modal-content .benefits h3 {
    font-size: 18px;
    color: #222;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-content .benefits ul {
    list-style: none;
    padding: 0;
}

.modal-content .benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.modal-content .benefit-icon {
    color: #6fdc8c; /* Зелений акцент */
    margin-right: 8px;
    font-size: 16px;
}

.modal-content .cta-text {
    color: #555;
    font-size: 14px;
    margin: 15px 0;
    font-weight: 500;
}

.modal-content .money-button {
    width: 60%; /* Трохи ширша кнопка для акценту */
    font-weight: 700;
    background-color: #6fdc8c; /* Зелений фон */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-content .money-button:hover {
    background-color: #5ac57a; /* Темніший зелений при наведенні */
    transform: scale(1.05); /* Легке збільшення при наведенні */
}

/* Адаптивність для модального вікна */
@media (max-width: 768px) {
    .modal-content .benefits h3 {
        font-size: 16px;
    }

    .modal-content .benefits li {
        font-size: 12px;
    }

    .modal-content .cta-text {
        font-size: 12px;
    }

    .modal-content .money-button {
        width: 80%;
        font-size: 14px;
    }
}

/* 44444444444444444444444444444444444444444 */


/* Оновлення стилів для модального вікна */
.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%); /* Легкий зелений градієнт */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Стили для заголовків і ключових даних */
.modal-content p strong {
    color: #0e2213; /* Зелений колір для сум і днів */
    font-size: 22px;
    font-weight: 700;
}

.modal-content p strong#modal-days {
    margin-left: 5px;
}



/* Стили для бенефітів */
.modal-content .benefits {
    margin: 15px 0;
    text-align: left;
}

.modal-content .benefits h3 {
    font-size: 18px;
    color: #4f9d64;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase; /* Для акценту */
}

.modal-content .benefits ul {
    list-style: none;
    padding: 0;
}

.modal-content .benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    background: linear-gradient(90deg, #ffffff 0%, #e6f3eb 100%); /* Легкий градієнт фону */
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-content .benefit-icon {
    color: #6fdc8c; /* Зелений акцент для іконок */
    margin-right: 8px;
    font-size: 16px;
}

/* Стили для CTA-тексту */
.modal-content .cta-text {
    color: #4f9d64;
    font-size: 16px;
    margin: 15px 0;
    font-weight: 600;
    background: #e6f3eb; /* Легкий зелений фон */
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для кнопки (збережено з попереднього, але з оновленням) */
.modal-content .money-button {
    width: 60%;
    font-weight: 700;
    background-color: #6fdc8c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase; /* Для акценту */
}

.modal-content .money-button:hover {
    background-color: #5ac57a;
    transform: scale(1.05);
}

.modal-content .stavka {  /* modalka */
    color: #777;
    font-weight: 400;
    font-size: 12px; /* Зменшуємо шрифт */
    margin-top: 10px; /* Додаємо відступ зверху */
    margin-bottom: 10px; /* Додаємо відступ знизу */
}

/* Styles for offers marked as "Trend" */
.trend-offer {
    position: relative; /* For positioning the label and flame */
    box-shadow: inset 0 0 10px rgba(255, 147, 0, 0.5); /* Muted orange inner shadow */
}

/* "Trend" label */
.trend-offer::before {
    content: 'Найкраща пропозиція';
    position: absolute;
    top: -8px;
    right: 10px;
    background-color: rgba(255, 147, 0, 0.8); /* Muted orange background */
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 1;
}

/* Flame icon */
/* .trend-offer::after {
    content: '🔥'; 
    position: absolute;
    top: -20px; 
    right: -5px; 
    font-size: 30px;
    z-index: 2;
} */

/* Адаптивність */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        padding: 15px;
    }

    .modal-content p strong {
        font-size: 18px;
    }

    .modal-content .benefits h3 {
        font-size: 16px;
    }

    .modal-content .benefits li {
        font-size: 12px;
        padding: 6px 10px;
    }

    .modal-content .cta-text {
        font-size: 14px;
        padding: 8px;
    }

    .modal-content .money-button {
        width: 80%;
        font-size: 14px;
    }
}

