/* ========================================================================== */
/* Шрифты (Fonts)                                                           */
/* ========================================================================== */

@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: auto;
}
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: auto;
}

/* ========================================================================== */
/* Переменные (CSS Variables)                                               */
/* ========================================================================== */

:root {
    /* Colors */
    --color-primary: #14274E;
    --color-primary-light: #2E5AB4;
    --color-white: #FFF;
    --color-light-gray: #F5F6F9;
    --color-medium-gray: #686767;
    --color-dark-gray: #5E5E5E;
    --color-border: #E0E0E0;
    --blue: #14274e; /* Legacy */

    /* Gradients */
    --gradient-text: linear-gradient(333deg, var(--color-primary) 38.4%, var(--color-primary-light) 238.57%);
    --gradient-calculator: linear-gradient(208deg, var(--color-white) -43.39%, var(--color-light-gray) 47.61%);
}

/* ========================================================================== */
/* Общие стили и сброс (Global)                                             */
/* ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gilroy', sans-serif;
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    color: var(--color-dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--blue);
    font-weight: 600;
}

h1 { font-size: 2.986rem; line-height: 1.2; }
h2 { font-size: 2.488rem; line-height: 1.2; }
h3 { font-size: 2.074rem; line-height: 1.3; }

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-medium-gray);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: inline-block;
}

/* ========================================================================== */
/* Общие компоненты (Buttons, Forms etc.)                                   */
/* ========================================================================== */

.btn {
    padding: 12px 20px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-text);
    color: var(--color-white);
    font-size: 20px;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    flex: 1;
    height: 60px;
    min-height: 60px; /* Гарантируем минимальную высоту */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: var(--color-white);
    height: 60px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Gilroy', sans-serif;
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--color-dark-gray);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
}

/* ========================================================================== */
/* Шапка сайта (Header)                                                     */
/* ========================================================================== */

.header-fixed {
    background-color: transparent;
    flex-flow: column;
    align-items: center;
    margin-top: 1.5rem;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    min-height: 4.5rem;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: #ffffffdb;
    border-radius: 8px;
    border: 1px solid #14142b0f;
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-link .logo-image {
    height: 35px; /* Примерная высота лого */
}

.nav-menu-desktop {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-medium-gray);
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #1f2c3d;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s;
    border-radius: 10%;
}
.account-button:hover {
    background-color: #1f2c3d;
}
.account-button img {
    width: 38px;
    height: 38px;
}

/* --- Мобильное меню (бургер) --- */
.burger-menu {
    display: none; /* Скрыт на десктопе */
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1002;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-line:nth-child(3) { bottom: 0; }

.burger-menu.active .burger-line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger-menu.active .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-line:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 95%;
    height: auto;
    padding-bottom: 25px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: #ffffffdb;
    border-radius: 10px;
    border: 1px solid #14142b0f;
    z-index: 998; /* Ниже хедера, но выше контента */
    padding-top: 8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-link-mobile {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    text-decoration: none;
    width: 100%;
    text-align: center;
    padding: 20px 0;
}
.mobile-menu-nav .nav-link-mobile:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
    max-width: 70%;
}

/* --- Адаптивность шапки --- */
@media (max-width: 991px) {
    .nav-menu-desktop {
        display: none;
    }
    .burger-menu {
        display: block;
    }
    .header-fixed {
        padding-left: 3%;
        padding-right: 3%;
    }
}


/* ========================================================================== */
/* Основной контент (Main Content & Calculator)                             */
/* ========================================================================== */

.main-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 150px; /* Отступ от шапки */
}

.container {
    width: 100%;
    max-width: 1250px;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 90px;
    width: 100%;
}

.text-content {
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.text-content h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.text-content p {
    font-size: 20px;
    font-weight: 400;
}

.calculator {
    width: 100%;
    max-width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 10px;
    background: var(--gradient-calculator);
}

.calculator h2 {
    font-size: 32px;
    text-align: left;
}

.inputs-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    position: relative; /* Необходимо для абсолютного позиционирования дочерних элементов (label) */
    border-radius: 5px;
    padding: 0 20px;
    background-color: white;
    height: 60px;
}

.input-group label {
    position: absolute;
    top: 14%;
    left: 2.5%;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-medium-gray);
}

.input-field-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5px;
    padding-top: 22px; /* Отступ, чтобы поле ввода не накладывалось на label */
}

.input-field-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Gilroy', sans-serif;
    font-size: 28px;
    font-weight: 300;
    width: 80%;
}

.input-field-wrapper span {
    font-size: 20px;
    font-weight: 600;
    color: #B0B0B0;
}

.swap-icon {
    position: absolute;
    top: 50%;
    left: 50%; /* Центрируем иконку */
    transform: translate(-50%, -50%);
    width: 50px;
    height: 45px;
    border-radius: 5px;
    background: var(--gradient-text);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.presets-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background-color: transparent;
}

.preset-btn {
    flex: 1;
    padding: 10px 20px;
    background: var(--color-white);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark-gray);
}
.preset-btn:hover {
    border-color: #efefef;
    color: var(--color-primary);
}
.preset-btn.active {
    background-color: var(--color-white);
    font-weight: 600;
    border: 1px solid var(--color-border);
}

/* Новый контейнер для выпадающего списка */
.select-group {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 5px;
    background-color: white;
    display: flex;
    align-items: center;
    /* Добавляем рамку, чтобы соответствовать другим полям */
    border: 1px solid transparent; 
}

#duration-select {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 20px; /* Отступы: верх, право (для стрелки), низ, лево */
    border-radius: 5px;
    border: none; /* Убираем рамку с самого select, она теперь на родителе */
    font-weight: 600;
    color: var(--color-primary);
    font-size: 16px;
    font-family: 'Gilroy', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent; /* Фон задает родитель */
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2314274E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Применяем стили фокуса к родительскому контейнеру */
.select-group:has(#duration-select:focus) {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(46, 90, 180, 0.15);
}

.price-hint {
    position: absolute;
    left: 67%; 
    top: 10%;   /* Прижимаем к верху, чтобы не смешиваться со стрелкой */
    font-size: 14px;
    font-weight: 500;
    color: var(--color-medium-gray);
    pointer-events: none; /* Makes sure clicks go through to the select element */
    transition: opacity 0.2s ease;
}

.summary {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}
.summary-row span:first-child {
    text-transform: lowercase;
}
.summary-row span:last-child {
    font-weight: 500;
    color: var(--color-primary);
}
.summary-row.total span {
    font-size: 20px;
    font-weight: bold;
}

.buttons-wrapper {
    display: flex;
    gap: 15px;
}

/* ========================================================================== */
/* Стили для страницы авторизации                                           */
/* ========================================================================== */

.login-container {
    width: 100%;
    max-width: 450px;
    margin: auto;
    padding: 40px;
    background: var(--gradient-calculator);
    border-radius: 10px;
    border: var(--color-border) 1px solid;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: var(--color-primary);
}

/* Стили для полей ввода с "плавающей" меткой */
.login-form-group {
    position: relative;
    margin-bottom: 25px;
}
/* ========================================================================== */
/* Стили для личного кабинета пользователя (User Account)                 */
/* ========================================================================== */

/* --- Статусы для карточек --- */
.status-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}
.status-active { 
    background-color: #e0f8e9; 
    color: #28a745; 
}
.status-blocked { 
    background-color: #f8d7da; 
    color: #dc3545; 
}

/* --- Блок с кнопками управления картой --- */
.card-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Создает сетку 2x2 */
    gap: 10px;
}

.card-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    padding: 10px;
}


/* --- Форма смены пароля --- */
#change-password-form .form-group {
    position: relative; /* Необходимо для позиционирования кнопки "Показать" */
    margin-bottom: 20px;
}

#change-password-form label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

#change-password-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 80px; /* Оставляем место для кнопки "Показать" */
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 16px;
}

/* --- Кнопка "Показать/Скрыть" пароль --- */
.password-toggle {
    position: absolute;
    right: 1px;
    bottom: 1px;
    height: calc(100% - 2px);
    border: none;
    background: #f5f6f9;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 500;
}

/* --- Кнопки действий в форме --- */
#change-password-form .form-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* --- Стили для неактивной кнопки --- */
.btn:disabled {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    background-image: none; /* Убираем градиент у неактивной кнопки */
}
.login-form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background-color: var(--color-white);
    font-size: 16px;
    font-family: 'Gilroy', sans-serif;
    color: var(--color-dark-gray);
    transition: border-color 0.2s ease;
}

.login-form-label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--color-medium-gray);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    background-color: var(--color-white);
    padding: 0 5px;
}

.login-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Анимация метки при фокусе или вводе текста */
.login-form-input:focus + .login-form-label,
.login-form-input:not(:placeholder-shown) + .login-form-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--color-primary);
}

/* Стили для неактивного поля пароля */
.login-form-input:disabled {
    background-color: #f0f2f5;
    cursor: not-allowed;
}

.login-form-input:disabled + .login-form-label {
    background-color: #f0f2f5;
}


/* Стили для кнопок */
.login-button-container {
    position: relative;
    width: 100%;
    height: 60px; /* Высота равна высоте кнопки */
    margin-bottom: 15px;
}

.btn-login, .btn-recover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.btn-login:hover, .btn-recover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-login:active, .btn-recover:active {
    transform: translateY(0) scale(0.98);
}

/* Ссылка "Забыл пароль" */
.forgot-password-link {
    text-align: center;
    font-size: 14px;
    color: var(--color-primary-light);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Вспомогательный класс для скрытия элементов */
.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

/* Стили для модального окна уведомления */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-content {
    padding: 25px 40px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    color: var(--color-primary);
    font-weight: 500;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.notification-modal.hidden .notification-content {
    transform: scale(0.9);
}

/* --- Стили для размытия фона модального окна --- */
body.modal-open {
    overflow: hidden; /* Запрещаем прокрутку страницы */
}

.modal-backdrop {
    display: none; /* По умолчанию скрыт */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.1); /* Легкий белый фон для лучшего эффекта */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Для поддержки Safari */
    z-index: 1999; /* Должен быть ниже модального окна */
}

.modal-backdrop.active {
    display: block;
}

/* ========================================================================== */
/* Стили модального окна (Payment Modal)                                    */
/* ========================================================================== */

.payment-modal {
    display: none; /* Управляется через JS */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.payment-modal-content {
    background: var(--color-white);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-medium-gray);
}

.payment-modal h3 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--color-primary);
    font-size: 24px;
}

.payment-summary {
    background: var(--color-light-gray);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.summary-line.total {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.modal-pay-btn {
    width: 100%;
    margin-top: 10px;
}

/* ========================================================================== */
/* Cookie Consent Banner                                                    */
/* ========================================================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 700px;
    min-height: 90px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2500; /* Выше чем модальное окно оплаты */

    /* Стили фона как у хедера */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: #ffffffdb;
    border-radius: 8px;
    border: 1px solid #14142b0f;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);

    /* Анимация появления */
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.cookie-consent-banner.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s;
}

.cookie-consent__icon {
    flex-shrink: 0;
}

.cookie-consent__icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.cookie-consent__text {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-dark-gray);
    margin: 0; /* Сброс margin у <p> */
}

.cookie-consent__text a {
    font-weight: 500;
    color: var(--color-primary);
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-consent__btn-accept {
    padding: 8px 24px;
    height: auto;
    min-height: 0;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.cookie-consent__btn-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    padding: 0 5px;
    color: var(--color-medium-gray);
    transition: color 0.2s;
}

.cookie-consent__btn-close:hover {
    color: var(--color-primary);
}

/* ========================================================================== */
/* Адаптивность (Responsive)                                                */
/* ========================================================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .text-content,
    .calculator {
        width: 100%;
        max-width: 550px;
    }

    .text-content {
        text-align: center;
        align-items: center;
        gap: 10px;
    }

    .presets-wrapper {
        justify-content: center;
    }
    .preset-btn {
        max-width: 100px; /* Limit width for smaller screens */
    }
@media (max-width: 767px) {
    .main-section {
        padding-top: 100px; /* Уменьшаем отступ для мобильных */
    }
    .btn {
        padding: 10px;
        font-size: 12px;
    }
    .btn-primary {
        font-size: 16px;
        height: 60px;
    }

    .cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        left: 5%;
        right: 5%;
        bottom: 10px;
        width: 90%;
        max-width: 400px; /* Ограничим ширину на мобильных */
        padding: 15px;
    }

    .cookie-consent__actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .text-content h1 { font-size: 28px; }
    .text-content p { font-size: 14px; }
    .calculator { padding: 20px; }
    .buttons-wrapper { flex-direction: column; }
    .btn-secondary { width: 100%; }
    .presets-wrapper { gap: 5px; }
    .preset-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}}