/* style.css — для поддомена lk.calc.taxi */
/* Основан на стиле основного сайта, исправлены отступы */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* убираем горизонтальный скролл */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.5;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* центрируем всё содержимое */
}

.logo {
    text-align: center;
    padding: 15px 0 5px;
    width: 100%;
    max-width: 600px; /* ограничиваем ширину, чтобы не растягивалось */
    margin: 0 auto;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #262626;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 24px 20px;
    border: 1px solid #333333;
}

/* Для страниц без контейнера (например, главная) можно добавить дополнительный класс */
.wide-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#question-container {
    margin-bottom: 20px;
    min-height: 200px;
}

.question-text {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.3;
    color: #ffffff;
    border-left: 4px solid #ffc500;
    padding-left: 16px;
}

/* Радио-кнопки и опции */
.option {
    display: block;
    background: #1f1f1f;
    border: 2px solid #333333;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
    color: #e0e0e0;
}

.option:hover {
    border-color: #ffc500;
    background: #2a2a2a;
}

.option.selected {
    background: #ffc500;
    border-color: #ffffff;
    color: #000000;
    font-weight: 500;
}

input[type="radio"] {
    display: none;
}

/* Числовые поля */
input[type="number"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid #333333;
    border-radius: 12px;
    background: #1f1f1f;
    outline: none;
    transition: all 0.2s;
    color: #ffffff;
}

input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #ffc500;
    background: #2a2a2a;
}

input::placeholder {
    color: #666666;
}

/* Кнопки */
.btn-submit, .btn-start, .btn-back, .btn-reset, .calc-btn, .btn-add-field {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit {
    background: #9F00FF;
    color: white;
    margin-top: 16px;
}

.btn-submit:hover {
    background: #8a00d9;
}

.btn-start {
    background: #ffc500;
    color: #000000;
    font-size: 20px;
    margin-top: 30px;
    font-weight: 600;
}

.btn-start:hover {
    background: #ffd033;
}

/* Кнопки-ссылки на главной */
.calculator-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.calc-btn {
    background: #1f1f1f;
    border: 2px solid #ffc500;
    color: #ffc500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    text-transform: none;
    text-decoration: none;
}

.calc-btn:hover {
    background: #ffc500;
    color: #000000;
    border-color: #ffffff;
}

/* Навигация */
#navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-back, .btn-reset {
    flex: 1;
    padding: 16px 12px;
}

.btn-back {
    background: #333333;
    color: #e0e0e0;
    border: 1px solid #4a4a4a;
}

.btn-back:hover {
    background: #404040;
}

.btn-reset {
    background: #000000;
    color: #ffc500;
    border: 1px solid #ffc500;
}

.btn-reset:hover {
    background: #1a1a1a;
}

/* Динамические поля (плюсики) */
.btn-add-field {
    background: #2d2d2d;
    color: #ffc500;
    border: 1px solid #ffc500;
    margin: 10px 0;
    text-transform: none;
}

.btn-add-field:hover {
    background: #404040;
}

.btn-remove-field {
    width: 40px;
    height: 40px;
    background: #333333;
    color: #ffc500;
    border: 1px solid #ffc500;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-field:hover {
    background: #404040;
}

/* Отображение суммы */
.sum-display {
    background: #1f1f1f;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ffc500;
    color: #ffffff;
}

.sum-display .sum-value {
    color: #ffc500;
    font-size: 24px;
    margin-left: 5px;
    font-weight: 600;
}

/* Блок доходов агрегатора */
.income-entry {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333333;
}

.income-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ffc500;
}

.income-field-label {
    font-size: 14px;
    color: #999999;
    margin-bottom: 4px;
}

.income-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #333333;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #262626;
    color: #ffffff;
}

.income-input:focus {
    border-color: #ffc500;
    outline: none;
    background: #2d2d2d;
}

/* Приветственный блок */
.welcome-block {
    text-align: center;
    padding: 20px 0;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-text {
    text-align: justify;
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Блок результатов */
.result-block {
    text-align: center;
    padding: 20px 0;
}

.result-item {
    font-size: 20px;
    font-weight: 500;
    color: #e0e0e0;
    margin: 15px 0;
    padding: 12px 16px;
    background: #1f1f1f;
    border-radius: 8px;
    border-left: 4px solid #ffc500;
    text-align: left;
}

.result-item:first-of-type {
    font-size: 28px;
    color: #ffc500;
    background: #262626;
    border-left: 4px solid #ffc500;
    font-weight: 600;
}

.result-advice {
    background: #2d2d2d;
    color: #ffc500;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #ffc500;
}

/* Футер */
.footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    color: #666666;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.footer a {
    color: #ffc500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ffffff;
}

/* Описание вопроса */
.question-description {
    margin: 15px 0;
    padding: 10px;
    background: #1f1f1f;
    border-radius: 8px;
    border: 1px solid #333333;
}

.description-toggle {
    background: none;
    border: none;
    color: #ffc500;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    width: 100%;
    text-align: left;
}

.description-toggle:hover {
    color: #ffffff;
}

.description-content {
    margin-top: 10px;
    padding: 15px;
    background: #262626;
    border-radius: 8px;
    border: 1px solid #333333;
    font-size: 14px;
    line-height: 1.6;
    color: #b0b0b0;
}

/* Стили для форм */
label {
    color: #e0e0e0;
    font-size: 16px;
}

/* Календарь (пока заготовка) */
.calendar {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: #2d2d2d;
    border: 1px solid #ffc500;
    color: #ffc500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.calendar-header button:hover {
    background: #404040;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.weekday {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 8px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #262626;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.day-cell:hover {
    border-color: #ffc500;
}

.day-cell.has-data {
    background: #2d2d2d;
    border-color: #ffc500;
    color: #ffc500;
    font-weight: 500;
}

.day-cell.empty {
    opacity: 0.3;
    cursor: default;
}

.day-cell.empty:hover {
    border-color: #333;
}

/* Адаптация для маленьких экранов */
@media (max-width: 400px) {
    .question-text {
        font-size: 20px;
    }
    
    .btn-back, .btn-reset {
        padding: 14px 8px;
        font-size: 16px;
    }
    
    .result-item {
        font-size: 18px;
    }
    
    .result-item:first-of-type {
        font-size: 24px;
    }
    
    .logo {
        font-size: 20px;
    }
}

/* Страница политики */
.privacy-content {
    padding: 20px;
}

.privacy-content h1 {
    color: #ffc500;
    font-size: 28px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc500;
    padding-left: 16px;
}

.privacy-content p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-block {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #333;
}