/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff4d3d;     /* Основной цвет */
    --primary-hover: #ff4d3d;     /* Цвет при наведении */
    --text-color: #111;           /* Цвет текста */
    --border-color: #999;         /* Цвет границ */
    --bg-light: #f9f9f9;          /* Светлый фон */
}

body {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    background-color: #fff;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Верхняя часть с логотипом */
.header-image {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    min-height: 155px; /* 125px картинка + 30px отступы */
}

.header-image img {
    width: 125px;
    height: 125px;
    max-width: 125px;
    max-height: 125px;
    object-fit: contain;
}

/* Контейнер для меню и контента */
.page-container {
    display: flex;
    flex: 1;
    position: relative;
    align-items: flex-start; /* Выравнивание по верху */
}

/* Левое поле перед меню */
.left-spacer {
    width: 15vw;
    flex-shrink: 0;
}

/* Боковое меню */
.sidebar {
    width: 15vw;
    flex-shrink: 0;
    position: relative;
    padding-right: 4vw;
    padding-top: 0; /* Убрали отступ сверху */
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar li:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего пункта */
}

.sidebar a {
    text-decoration: none;
    color: var(--text-color); /* Цвет текста меню */
    display: block;
    font-size: 13px;
    transition: color 0.3s;
    line-height: 1.4;
}

.sidebar a:hover {
    color: var(--primary-color);
}

.sidebar a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.sidebar a.disabled {
    color: var(--border-color);
    cursor: default;
}

/* Оранжевая вертикальная линия */
.orange-line {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%; /* Линия занимает всю высоту меню */
    width: 2px;
    background-color: var(--primary-color);
}

/* Основной контент */
.main-content {
    flex: 1;
    padding-left: 5vw;
    padding-right: 15vw;
    padding-top: 0; /* Убрали отступ сверху, чтобы заголовок был на уровне меню */
    padding-bottom: 40px;
}

/* Блоки на главной странице */
.content-block {
    margin-bottom: 20px;
    background-color: #fff; /* Белый фон */
}

.content-block h1 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.content-block h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.content-block h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.content-block p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.content-block ul,
.content-block ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.content-block li {
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Картинки в блоках */
.intro-images {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.intro-images img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

/* Видео блок */
.video-container {
    margin-top: 15px;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff; /* Белый фон вместо серого */
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Футер */
.footer {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    font-size: 11px;
    color: #666;
}

.footer-content p {
    margin: 5px 0;
}

/* Формы */
.auth-section,
.registration-info,
.subscription-info,
.payment-section,
.calculations-history {
    margin-bottom: 30px;
}

.auth-form,
.payment-form {
    max-width: 400px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-family: Verdana, sans-serif;
    font-size: 12px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

/* Информационные блоки */
.info-block {
    background-color: #fff; /* Белый фон */
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.info-block h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-block ul {
    margin-left: 20px;
}

.info-block li {
    margin-bottom: 8px;
}

/* Тарифы */
.tariffs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tariff-card {
    background-color: #fff; /* Белый фон */
    border: 2px solid #e0e0e0;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.tariff-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 26, 3, 0.2);
}

.tariff-card.featured {
    border-color: var(--primary-color);
    background-color: #fff; /* Белый фон */
}

.tariff-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.tariff-card .badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    margin-bottom: 10px;
    display: inline-block;
}

.tariff-prices {
    margin: 20px 0;
}

.price-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 5px;
}

.discount {
    font-size: 10px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.tariff-features {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff; /* Белый фон */
    border: 1px solid #e0e0e0;
}

.tariff-features h2 {
    margin-bottom: 15px;
}

.tariff-features ul {
    margin-left: 20px;
}

.tariff-features li {
    margin-bottom: 10px;
}

/* Личный кабинет */
.info-card {
    background-color: #fff; /* Белый фон */
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.info-card p {
    margin-bottom: 10px;
}

.info-card strong {
    color: var(--primary-color);
}

/* Сообщения об ошибках */
.error-message {
    color: #d32f2f;
    font-size: 11px;
    margin-top: 5px;
    display: none;
}

/* ============================================ */
/* СТИЛИ ДЛЯ СТРАНИЦЫ КАЛЬКУЛЯТОРА */
/* ============================================ */

/* Заголовок страницы калькулятора */
.main-content h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

/* Вводный текст */
.calc-intro-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Форма калькулятора */
#calculatorForm {
    width: 100%;
}

/* Строка ввода данных */
.calc-row {
    display: grid;
    grid-template-columns: 1fr 2fr 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

/* Группа строк */
.calc-group {
    margin-bottom: 15px;
}

/* Метка (название переменной) */
.calc-label {
    font-size: 12px;
    color: var(--text-color);
}

/* Поля ввода и выпадающие списки */
.calc-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #808080; /* Темно-серая линия */
    background-color: #fff;
    font-family: Verdana, sans-serif;
    font-size: 12px;
}

/* Заголовки групп полей */
.calc-group-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 45px;
    margin-bottom: 5px;
    padding-bottom: 8px;
    position: relative;
}

/* Заголовки групп полей */
/* Разделительная линия ПЕРЕД заголовком группы */
.calc-group-title {
    font-size: 12px;              /* ← Точно такой же как основной текст */
    font-weight: bold;
    color: #000;
    margin-top: 45px;
    margin-bottom: 5px;
    padding-top: 25px;            /* ← Отступ сверху для линии */
    position: relative;
}

/* Линия ПЕРЕД заголовком */
.calc-group-title::before {
    content: '';
    position: absolute;
    top: 0;                       /* ← Линия сверху */
    left: 0;
    width: calc(100% - 10px);   /* ← линия закончилась там где и кнопка "?" */
    height: 2px;
    background-color: #e0e0e0;
}

/* Первый заголовок без линии сверху */
.calc-group-title:first-of-type {
    margin-top: 20px;
    padding-top: 0;
}

.calc-group-title:first-of-type::before {
    display: none;                /* ← Убираем линию у первого заголовка */
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Кнопка помощи (знак вопроса) */
.calc-help-btn {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #808080; /* Темно-серая линия */
    color: var(--text-color);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calc-help-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Строка с чекбоксом */
.calc-checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.calc-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.calc-checkbox-row label {
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

/* Ссылки результатов (внизу формы) */
.calc-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-link {
    padding: 8px 0;
    color: var(--text-color);
    font-family: Verdana, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.calc-link:hover {
    color: var(--primary-color);
}

.calc-link:active {
    color: #cc1502;
}

/* Модальное окно для подсказок */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 2px solid #ff4d3d;
    width: 60%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--border-color);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--primary-color);
}

#helpTitle {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 14px;
}

#helpText {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 10px;
}

#helpImage {
    text-align: center;
}

#helpImage img {
    max-width: 50%;
    height: auto;
    margin-top: 10px;
    border: 0px solid #ddd;
}

/* Адаптивность для калькулятора */
@media (max-width: 768px) {
    .calc-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .calc-help-btn {
        justify-self: start;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

/* Дополнительные условия */
.additional-conditions {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 30px;
}

.subsection-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color);
}

.checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

/* Кнопки формы */
.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: Verdana, sans-serif;
}

.btn-large.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-large.btn-primary:hover {
    background-color: #45a049;
}

.btn-large.btn-secondary {
    background-color: #e0e0e0;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-large.btn-secondary:hover {
    background-color: #d0d0d0;
}

/* Модальное окно для подсказок */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto; /* Добавили прокрутку */
}

.modal-content {
    background-color: white;
    margin: 5% auto; /* Уменьшили отступ сверху с 10% до 5% */
    padding: 30px;
    border: 2px solid #ff4d3d;
    width: 80%; /* Увеличили ширину */
    max-width: 800px; /* Увеличили максимальную ширину */
    max-height: 85vh; /* Ограничили высоту 85% от высоты экрана */
    overflow-y: auto; /* Добавили вертикальную прокрутку */
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--border-color);
    cursor: pointer;
    line-height: 1;
    z-index: 1; /* Чтобы крестик был поверх контента */
}

.close:hover {
    color: var(--primary-color);
}

#helpTitle {
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-right: 30px; /* Отступ справа, чтобы не наезжал на крестик */
    font-size: 16px;
}

#helpText {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

#helpImage {
    text-align: center;
    margin-top: 15px;
}

#helpImage img {
    max-width: 100%;
    max-height: 60vh; /* Ограничили высоту картинки */
    height: auto;
    width: auto;
    border: 1px solid #ddd;
    object-fit: contain; /* Сохраняем пропорции */
}

/* Результаты */
.results-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border: 2px solid #4CAF50;
}

.results-content h2 {
    margin-bottom: 15px;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.email-section {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.email-section input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 12px;
    font-family: Verdana, sans-serif;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .left-spacer {
        width: 10vw;
    }

    .sidebar {
        width: 20vw;
    }

    .main-content {
        padding-right: 10vw;
    }
}

@media (max-width: 768px) {
    .left-spacer {
        width: 5vw;
    }

    .sidebar {
        width: 25vw;
    }

    .main-content {
        padding-left: 3vw;
        padding-right: 5vw;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .btn-help-circle {
        justify-self: start;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    .tariffs-container {
        grid-template-columns: 1fr;
    }
}

/* Строка "PDF откроется в новой вкладке. Используйте кнопку "Скачать" в просмотрщике браузера для сохранения.  */
.calc-note {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f8ff;
    border-left: 3px solid #ff4d3d;
    font-size: 11px;
    color: #666;
}

/* ============================================ */
/* МОБИЛЬНОЕ МЕНЮ (ГАМБУРГЕР) */
/* ============================================ */

/* Кнопка гамбургера - скрыта на десктопе */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20000;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Анимация при открытии */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Оверлей (затемнение фона) */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================ */
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */
/* ============================================ */

@media (max-width: 768px) {
    /* Показываем кнопку гамбургера */
    .hamburger {
        display: flex;
    }

    /* Прячем левое поле */
    .left-spacer {
        display: none;
    }

    /* Меню становится выдвижным */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background-color: #e8e8e8;
        z-index: 9999;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Меню открыто */
    .sidebar.active {
        left: 0;
    }

    /* Оранжевая линия - скрываем на мобильных */
    .orange-line {
        display: none;
    }

    /* Меню занимает всю доступную ширину */
    .sidebar ul {
        width: 100%;
    }

    .sidebar li {
        margin-bottom: 20px;
    }

    .sidebar a {
        font-size: 14px;
        padding: 10px 0;
        display: block;
    }

    /* Контент занимает всю ширину */
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }

    /* Контейнер страницы */
    .page-container {
        display: block;
    }

    /* Верхняя картинка */
    .header-image {
        height: auto;
        padding: 20px;
        position: relative;
    }

    .header-image img {
        width: 150px;
        height: 150px;
    }

    /* Калькулятор на мобильных */
    .calc-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .calc-label {
        font-size: 11px;
    }

    .calc-input {
        font-size: 11px;
        padding: 8px;
    }

    .calc-help-btn {
        justify-self: start;
        margin-top: 5px;
    }

    /* Тарифы */
    .tariffs-container {
        grid-template-columns: 1fr;
    }

    /* Модальные окна */
    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hamburger {
        width: 40px;
        height: 40px;
        top: 15px;
        left: 15px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    .sidebar {
        width: 80%;
        max-width: 100%;
    }

    .header-image img {
        width: 120px;
        height: 120px;
    }

    .main-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 14px;
    }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 20px;
        max-height: 90vh;
    }

    #helpImage img {
        max-height: 50vh;
    }

    #helpTitle {
        font-size: 14px;
    }

    #helpText {
        font-size: 11px;
    }
}

/* ============================================ */
/* СТРАНИЦА ТАРИФОВ (О ПОДПИСКЕ) */
/* ============================================ */

/* Разделительная линия между блоками - на половину страницы */
.tariff-divider {
    width: 50%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 25px 0;
}

/* Блок тарифа */
.tariff-section {
    margin-bottom: 0;
}

.tariff-section p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 5px;
    color: #333;
}

/* Заголовок блока - жирный, обычный размер */
.tariff-section-title {
    font-weight: bold !important;
    margin-bottom: 10px !important;
}

/* Ссылка "Оплатить" */
.tariff-payment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.tariff-payment-link:hover {
    color: #FF1A03;
}

.tariff-payment-link svg {
    transition: transform 0.3s ease;
}

.tariff-payment-link:hover svg {
    transform: translateX(5px);
}

.tariff-payment-link:hover svg path {
    stroke: #FF1A03;
}

/* Добавьте эти стили в конец файла style.css */

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО ТРЕБОВАНИЯ ПОДПИСКИ */
/* ============================================ */

#subscriptionModal .modal-content {
    text-align: center;
    max-width: 500px;
}

#subscriptionModal h3 {
    font-size: 18px;
    font-weight: bold;
}

#subscriptionModal p {
    color: #333;
}

#subscriptionModal .btn {
    min-width: 150px;
    padding: 12px 24px;
}

/* Анимация появления модального окна */
.modal {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================ */
/* УНИВЕРСАЛЬНЫЕ ЧЕКБОКСЫ (оранжевые)          */
/* ============================================ */

/* Скрываем стандартный чекбокс */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    background-color: white;
    flex-shrink: 0;
}

/* При наведении */
input[type="checkbox"]:hover {
    border-color: #ff4d3d;
}

/* Когда чекбокс выбран */
input[type="checkbox"]:checked {
    background-color: #ff4d3d;
    border-color: #ff4d3d;
}

/* Галочка внутри */
input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================ */
/* ИСПРАВЛЕНИЕ КНОПОК ПОДСКАЗОК ДЛЯ МОБИЛЬНЫХ  */
/* ============================================ */

@media (max-width: 768px) {
    /* Изменяем сетку для calc-row на мобильных */
    .calc-row {
        grid-template-columns: 1fr auto; /* Поле ввода и кнопка */
        grid-template-rows: auto auto;   /* Две строки */
        gap: 5px 10px;
    }

    /* Метка в первой строке на всю ширину */
    .calc-label {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        font-size: 13px; /* Увеличили с 11px до 13px */
    }

    /* Поле ввода во второй строке слева */
    .calc-input {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        font-size: 14px; /* Увеличили с 12px до 14px */
        padding: 10px; /* Немного больше padding для комфорта */
        height: 42px; /* Фиксированная высота */
    }

    /* Кнопка справа от поля ввода */
    .calc-help-btn {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        justify-self: end;
        align-self: stretch; /* Растягиваем на всю высоту */
        margin-top: 0;
        width: 42px; /* Делаем квадратной под высоту поля */
        height: 42px;
    }

    /* ============================================ */
    /* ССЫЛКИ-КНОПКИ ДЛЯ РЕЗУЛЬТАТОВ НА МОБИЛЬНЫХ  */
    /* ============================================ */

    .calc-link {
        background-color: white;
        border: 1px solid #ff4d3d;
        padding: 12px 16px;
        border-radius: 4px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-weight: normal;
        transition: all 0.3s ease;
    }

    /* Скрываем стрелку на мобильных */
    .calc-link svg {
        display: none;
    }

    .calc-link:hover {
        background-color: #ff4d3d;
        color: white;
    }

    .calc-link:active {
        background-color: #cc1502;
        border-color: #cc1502;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .calc-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 5px 8px;
    }

    .calc-help-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .calc-label {
        font-size: 12px; /* Увеличили с 11px до 12px */
    }

    .calc-input {
        font-size: 13px; /* Увеличили с 11px до 13px */
        padding: 9px;
        height: 40px; /* Фиксированная высота для маленьких экранов */
    }

    .calc-link {
        padding: 10px 14px;
        font-size: 12px;
    }
}