/* ==========================================================================
   Альтера Инвест — тема оформления калькулятора оценки бизнеса
   Mobile-first, корпоративно-финансовый бело-синий стиль.
   ========================================================================== */

:root {
    --color-primary: #2B8BCA; /* фирменный синий Альтера Инвест (логотип, ссылки, кнопки) */
    --color-primary-hover: #299BD1; /* тёмный оттенок для hover/active */
    --color-bg: #FFFFFF;
    --color-bg-tint: #EBF4FA; /* светло-голубой фон карточек/акцентов */
    --color-bg-panel: #F1F5F9; /* нейтральный фон панелей/секций */
    --color-text: #313539; /* основной тёмный текст/заголовки */
    --color-text-muted: #717579; /* вторичный текст, подписи */
    --color-border: #E1E5E9; /* разделители, границы карточек */
    --color-success: #20BF55;
    --color-error: #F8333C;
    --color-accent-gold: #E7C588; /* золотой акцент премиум-секций (герой) */
    --color-gold: #E7C588;
    --color-gold-deep: #DDC08C;
    --color-gold-light: #EED29F;
    --color-gold-ink: #A9781F; /* тёмное золото — читаемо на белом */
    --color-ink: #1A1D23; /* фирменный тёмный (текст на золоте) */
    /* Шрифты Альтера Инвест: текст — Roboto (их robotoregular), заголовки —
       Gotham Pro Bold (их GothamProBold). Имена их @font-face подхватятся при
       встраивании на сайт; standalone — фолбэк Montserrat/Roboto. */
    --font-body: robotoregular, 'Roboto', -apple-system, Arial, sans-serif;
    --font-display: 'GothamProBold', 'Montserrat', 'Roboto', Arial, sans-serif;
    --radius-button: 4px;
    --radius-card: 8px;
    --shadow-card: 0 5px 25px rgba(0, 0, 0, .08);
}

/* ---------- Base / reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 .5em;
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

a {
    color: var(--color-primary);
}

[hidden] {
    display: none !important;
}

/* ---------- Layout container ---------- */

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ---------- Hero header ---------- */

.hero {
    position: relative;
    background: #13212f url('img/hero-yacht.jpg') center 40% / cover no-repeat;
    border-bottom: 3px solid var(--color-gold);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 22, 34, .55) 0%, rgba(12, 22, 34, .2) 45%, rgba(12, 22, 34, .42) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hero__logo {
    height: 30px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: .95;
}

.hero__title {
    color: #fff;
    font-size: 30px;
    line-height: 1.16;
    text-transform: uppercase;
    letter-spacing: .015em;
    max-width: 540px;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}

.hero__title::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin-top: 20px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-light));
}

/* ---------- Form / fieldsets ---------- */

#calc-form {
    background: var(--color-bg);
}

#calc-form fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px;
    margin: 0 0 24px;
}

#calc-form legend {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    padding: 0 8px;
    color: var(--color-text);
}

.hint {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: -4px;
}

.field {
    margin-bottom: 16px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.label-hint {
    font-weight: 400;
    color: var(--color-text-muted);
}

.field-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* ---------- Inputs / selects ---------- */

input[type="text"],
input[type="number"],
select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-button);
    padding: 10px 12px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 139, 202, .15);
}

input::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

/* ---------- Checkboxes ---------- */

.field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.field--checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

#checklist .field--checkbox {
    margin-bottom: 12px;
}

#checklist .field--checkbox:last-child {
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */

button {
    font-family: var(--font-body);
    cursor: pointer;
}

#calc-submit,
#cta-lead,
#lead-submit {
    display: inline-block;
    width: 100%;
    background: linear-gradient(92deg, #DDC08C 5%, #EED29F 52%, #DDC08C 98%);
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-button);
    padding: 15px 24px;
    transition: all .25s ease;
}

#calc-submit:hover,
#cta-lead:hover,
#lead-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(221, 192, 140, .4);
}

#calc-submit:disabled,
#cta-lead:disabled,
#lead-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

#cta-consult {
    display: inline-block;
    width: 100%;
    background: transparent;
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: 1.5px solid var(--color-gold-deep);
    border-radius: var(--radius-button);
    padding: 14px 24px;
    transition: all .25s ease;
}

#cta-consult:hover {
    background: rgba(231, 197, 136, .16);
}

/* ---------- Result card ---------- */

.result {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-top: 32px;
}

.result h2 {
    font-size: 22px;
}

.result h3 {
    font-size: 17px;
    margin-top: 24px;
}

.result__range {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-gold-ink);
    margin-bottom: 4px;
}

.result__note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

.result__disclaimer {
    font-size: 13px;
    color: var(--color-text-muted);
    background: var(--color-bg-panel);
    border-radius: var(--radius-button);
    padding: 12px;
    margin-top: 16px;
}

.result__disclaimer p {
    margin: 0 0 8px;
}

.result__disclaimer p:last-child {
    margin-bottom: 0;
}

.result__disclaimer p:empty {
    display: none;
}

.result__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* ---------- Gauge ---------- */

.gauge {
    position: relative;
    height: 10px;
    border-radius: var(--radius-button);
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-bg-tint) 0%);
    margin: 12px 0 28px;
}

.gauge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-button);
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    z-index: 0;
}

.gauge__marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: var(--color-gold-deep);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    z-index: 1;
}

/* ---------- Lead form ---------- */

.lead {
    margin-top: 32px;
}

#lead-form {
    background: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
}

#lead-form h2 {
    font-size: 20px;
}

#lead-status {
    font-size: 14px;
    margin: 12px 0 0;
    color: var(--color-text-muted);
}

#lead-status:empty {
    margin: 0;
}

/* ---------- Footer ---------- */

.footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ---------- Responsive (tablet+) ---------- */

@media (min-width: 600px) {
    .hero {
        min-height: 360px;
    }

    .hero__inner {
        padding: 60px 24px;
    }

    .hero__title {
        font-size: 38px;
    }

    main {
        padding: 40px 24px 56px;
    }

    .field-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .field-group .field {
        margin-bottom: 0;
    }

    .result__actions {
        flex-direction: row;
    }

    #calc-submit,
    #cta-lead,
    #cta-consult,
    #lead-submit {
        width: auto;
    }

    #calc-submit,
    #lead-submit {
        width: 100%;
    }
}

/* ---------- Narrow phones ---------- */

@media (max-width: 480px) {
    .hero {
        min-height: 240px;
    }

    .hero__title {
        font-size: 22px;
    }

    #calc-form fieldset {
        padding: 16px;
    }

    .result,
    #lead-form {
        padding: 18px;
    }
}
