:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --border: #e8e8e8;
    --accent: #111111;
    --accent-text: #ffffff;
    --soft: #f6f6f6;
    --error: #d93025;
    --success: #188038;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    flex-shrink: 0;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__nav-link,
.header__link {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    transition: 0.2s ease;
}

.header__nav-link:hover,
.header__link:hover {
    opacity: 0.75;
}

.header__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__reg {
    background: #fff;
    color: #111 !important;
    padding: 8px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.header__reg:hover {
    opacity: 0.92;
}

.burger {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}

.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
}

.burger span::before {
    top: -6px;
}

.burger span::after {
    top: 6px;
}

.mobile-menu {
    position: fixed;
    top: 62px;
    right: 16px;
    width: min(240px, calc(100vw - 32px));
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 8px 0;
    z-index: 1999;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.mobile-menu a + a {
    border-top: 1px solid rgba(255,255,255,0.12);
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.06);
}

/* ===== COMMON SECTIONS ===== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 24px;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
    height: 50px;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    padding: 0 18px;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
}

.btn-soft {
    background: var(--soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-white {
    background: #fff;
    color: #111;
    border: 1px solid #e8e8e8;
}

.btn-white:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* =========================================================
   FORM STYLES: MAIN PAGE
   ========================================================= */

/* Карточка формы на главной */
.hero .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Форма на главной */
.hero .order-form {
    display: grid;
    gap: 14px;
}

/* Поля формы на главной */
.hero .order-form .field {
    display: grid;
    gap: 8px;
}

.hero .order-form .field-title {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.hero .order-form .field input,
.hero .order-form .field select {
    width: 100%;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    background: #f3f3f3;
    transition: 0.2s ease;
}

.hero .order-form .field input:focus,
.hero .order-form .field select:focus {
    background: #fff;
    border-color: #bdbdbd;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

.hero .order-form .field input.error,
.hero .order-form .field select.error {
    border-color: var(--error);
    background: #fff5f5;
}

.hero .order-form .field-error {
    font-size: 13px;
    color: var(--error);
    min-height: 16px;
    margin-top: -2px;
}

.hero .order-form .input-with-icon {
    position: relative;
}

.hero .order-form .input-with-icon input {
    padding-right: 52px;
}

.hero .order-form .geo-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: 0.2s ease;
}

.hero .order-form .geo-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.hero .order-form .geo-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.hero .order-form .geo-btn svg {
    width: 30px;
    height: 30px;
    display: block;
}

/* =========================================================
   FORM STYLES: AUTH / REGISTRATION PAGE
   ========================================================= */

.auth-layout {
    display: flex;
    justify-content: center;
}

.auth-container {
    max-width: 460px;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.auth-container h1 {
    margin: 0 0 20px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    margin: -8px 0 18px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 15px;
}

/* Только форма авторизации/регистрации */
.auth-container .order-form-auth {
    display: grid;
    gap: 0px;
}

/* Поля именно в auth форме */
.auth-container .order-form-auth .field {
    display: grid;
    gap: 8px;
}

.auth-container .order-form-auth .field-title {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 0px;
}

.auth-container .order-form-auth .field input,
.auth-container .order-form-auth .field select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    background: #f3f3f3;
    transition: 0.2s ease;
}

.auth-container .order-form-auth .field input:focus,
.auth-container .order-form-auth .field select:focus {
    background: #fff;
    border-color: #bdbdbd;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

.auth-container .order-form-auth .field input.error,
.auth-container .order-form-auth .field select.error {
    border-color: var(--error);
    background: #fff5f5;
}

.auth-container .order-form-auth .field-error {
    font-size: 14px;
    color: var(--error);
    min-height: 16px;
    margin-top: -2px;
}
/* ===== ROLE SELECTOR ===== */

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.role-card {
    border: 1px solid var(--border);
    background: #f3f3f3;
    border-radius: 18px;
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    transition: 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100px;
}

.role-card:hover {
    background: #fff;
    border-color: #d6d6d6;
    transform: translateY(-1px);
}

.role-card.active {
    background: #111;
    border-color: #111;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.role-card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.role-card-text {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.82;
}

.role-card.active .role-card-text {
    opacity: 0.82;
}

#formMessage {
    font-size: 14px;
    margin-top: 10px;
}

/* Ссылки и кнопки под формой auth */

.auth-links {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-divider {
    color: #b5b5b5;
    user-select: none;
}

.auth-link {
    font-size: 14px;
    color: var(--text);

    opacity: 0.75;

    text-decoration: underline;
    text-underline-offset: 3px;

    transition: 0.2s ease;
}

.auth-link:hover {
    opacity: 1;
}



.auth-links-inline {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-divider {
    color: #b5b5b5;
    user-select: none;
}

.auth-link-muted {
    opacity: 0.75;
}

.auth-link-muted:hover {
    opacity: 1;
}





.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
    transition: 0.2s ease;
    margin-top: 0px;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.auth-container .order-form-auth button[type="submit"] {
    margin-top: 16px;
}


/* ===== HOME PAGE ===== */
.city-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 15px;
}

.city-label {
    color: var(--muted);
}

.city-row strong {
    color: var(--text);
    font-weight: 700;
}

.city-link {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.city-link:hover {
    opacity: 0.75;
}

.city-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}

.hero-title {
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.02;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 620px;
    margin: 0 0 28px;
}

.download {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #111111 0%, #2b2b2b 100%);
    color: #fff;
    border-radius: 28px;
    padding: 28px;
}

.download-title {
    font-size: 28px;
    margin: 0 0 8px;
}

.download-text {
    margin: 0;
    color: rgba(255,255,255,0.78);
    max-width: 620px;
    line-height: 1.6;
}

.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    background: #fff;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal__content {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
}

.modal__content h3 {
    margin-top: 0;
}

.modal__content p {
    color: var(--muted);
    line-height: 1.6;
}

.modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}





/* ===== МОДАЛКА ===== */
        .time-field-wrap {
            position: relative;
        }

        .time-field {
            width: 100%;
            cursor: pointer;
            padding-right: 44px !important;
        }

        .time-field-arrow {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            color: #111;
            opacity: 0.6;
        }

        .time-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }

        .time-modal.open {
            display: flex;
        }

        .time-modal__content {
            width: 100%;
            max-width: 420px;
            background: #fff;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
        }

        .time-modal__title {
            margin: 0 0 16px;
            font-size: 20px;
            font-weight: 700;
        }

        .time-modal__quick {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
        }

        .time-modal__grid {
            display: grid;
            gap: 12px;
            margin-bottom: 16px;
        }

        .time-modal__row {
            display: grid;
            gap: 8px;
        }

        .time-modal__row label {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }

        .time-modal__row input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #ddd;
            border-radius: 14px;
            font: inherit;
            outline: none;
        }

        .time-modal__row input:focus {
            border-color: #111;
        }

        .time-modal__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

    
    
    

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header__nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header__inner {
        padding: 10px 16px;
    }

    .hero {
        padding: 28px 16px 18px;
    }

    .hero-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero .order-form .field input,
    .hero .order-form .field select,
    .auth-container .order-form-auth .field input,
    .auth-container .order-form-auth .field select {
        height: 44px;
    }

    .btn {
        height: 50px;
        font-size: 16px;
    }

    .hero-title {
        font-size: clamp(32px, 4vw, 60px);
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        right: 12px;
        width: calc(100vw - 24px);
    }

    .auth-container {
        padding: 20px;
    }
    
    .role-selector {
    grid-template-columns: 1fr;
}

.role-card {
    min-height: auto;
}
    .role-card-text {
    font-size: 14px;
}
}
