/* Подключение шрифта BENZIN Regular */
@font-face {
    font-family: 'BENZIN';
    src: url('/fonts/Benzin-Regular.woff2') format('woff2'),
         url('/fonts/Benzin-Regular.woff') format('woff'),
         url('/fonts/Benzin-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --primary: #E26B2D;
    --secondary: #C45A1F;
    --success: #4CAF50;
    --border: #dddddd;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 16px;
    background: var(--bg-color);
    color: var(--text-color);
}

/* body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 16px;
    background: var(--bg-color);
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} */

.logo-container {
    text-align: center;
    margin: 0 0 20px 0;
    width: 100%;
}

.logo {
    max-width: 200px;
    width: auto;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .logo {
        max-width: 160px;
        max-height: 50px;
    }
}

.container {
    max-width: 400px;
    margin: 0 auto;
}

/* Шапка с логотипом */
.header {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* .logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 12px;
    display: block;
}
 */
/* h1 {
    font-size: 24px;
    text-align: center;
    margin: 0 0 8px 0;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    font-weight: 600;
} */

/* Группы выбора */
.selector-group {
    margin-bottom: 24px;
}

.selector-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    font-size: 16px;
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Базовые стили для всех кнопок */
button, 
.option-btn {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

/* Стили для опций выбора */
.option-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color) !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--primary);
}

.option-btn.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
}

/* Кнопка рекомендации */
.recommend-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary) !important;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 8px 0;
}

.recommend-btn:hover:not(:disabled) {
    background: var(--secondary) !important;
}

.recommend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Карточка результата */
.result-card {
    margin-top: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-card h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: var(--success);
    -webkit-text-fill-color: var(--success);
    font-weight: 600;
}

.recommendation-item {
    margin: 12px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.recommendation-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    font-size: 16px;
}

.recommendation-item p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-color);
    -webkit-text-fill-color: var(--text-color);
    line-height: 1.4;
}

/* Ссылка на товар */
.recommendation-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--primary) !important;
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.recommendation-link:hover {
    background: var(--secondary) !important;
}

/* Исправления для мобильных устройств */
@media screen and (max-width: 480px) {
    .option-btn {
        min-width: calc(50% - 4px);
        font-size: 15px;
        padding: 14px 12px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    h1 {
        font-size: 22px;
    }
}

/* Фикс для WebView Telegram */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .option-btn,
    .recommend-btn,
    .recommendation-link {
        color: inherit;
    }
    
    .option-btn.selected {
        color: var(--white) !important;
    }
}

/* Убираем все стандартные выделения */
:focus {
    outline: none;
}

::-moz-focus-inner {
    border: 0;
}

/* Для очень маленьких экранов */
@media screen and (max-width: 320px) {
    .option-btn {
        min-width: 100%;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
}

/* Вкладки */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f0f0f0;
}

 .tab-btn.active {
    color: white;
    border-bottom: 3px solid var(--primary);
    background: #E26B2D;
} 

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Поле ввода */
.input-field {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary);
    outline: none;
}

.result-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    margin: 16px 0 8px;
}

.result-unit {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Слайдер */
.slider {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, #ddd 50%, #ddd 100%);
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-top: -8px;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Модальное окно для просмотра изображений */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.image-modal-close:hover {
    color: #999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.recommendation-note {
    margin-top: 16px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-size: 14px;
    color: #856404;
}

.recommendation-note strong {
    color: #856404;
    font-weight: 700;
}
/* Заголовки — BENZIN */
/* h1, h2, h3, .result-value, .tab-btn.active {
    font-family: 'BENZIN', Arial, sans-serif;
    font-weight: normal;
} */

/* Конкретный заголовок h1 (переопределяем) */
h1 {
    font-family: 'BENZIN', Arial, sans-serif;
    font-size: 24px;
    text-align: center;
    margin: 0 0 20px 0;
    color: var(--primary);
}

/* Всё остальное — уже Arial от body */

/* Заголовки и элементы навигации — BENZIN */
.selector-group label,
.tab-btn,
h1, h2, h3,
.result-value {
    font-family: 'BENZIN', Arial, sans-serif;
    font-weight: normal;
}

/* Кнопки и остальной интерфейс — ARIAL */
.option-btn,
.recommend-btn,
.input-field,
.recommendation-item p,
.result-unit,
.recommendation-note,
.slider-labels {
    font-family: Arial, Helvetica, sans-serif;
}

.spoiler {
    margin: 12px 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.spoiler summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary);
    background: #f0f0f0;
    user-select: none;
}

.spoiler summary:hover {
    background: #e6e6e6;
}

.spoiler-content {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    border-top: 1px solid #ddd;
}


/* Мелкий текст, подписи, поля — Arial */
