/* Beta polish pass: compact first screen, calm glass surfaces, responsive booking. */
:root {
    --beta-ink: #15171b;
    --beta-muted: #6d737c;
    --beta-line: rgba(25, 31, 40, .11);
    --beta-yellow: #ffb000;
    --beta-yellow-dark: #f2a000;
    --beta-canvas: #f7f7f4;
}

html { background: var(--beta-canvas); overflow-x: hidden; }
body.taxi-home {
    color: var(--beta-ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 191, 48, .14), transparent 28%),
        linear-gradient(180deg, #fbfbf9 0%, #f2f3f1 100%);
    overflow-x: hidden !important;
}

/* Header: one quiet row, with the important action at the far right. */
.taxi-home .nav {
    top: 0;
    left: 0;
    right: 0;
    border: 0;
    border-bottom: 1px solid rgba(21, 23, 27, .07);
    border-radius: 0;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 30px rgba(25, 31, 40, .06);
    backdrop-filter: blur(24px) saturate(160%);
}
.taxi-home .nav-inner {
    width: min(1360px, calc(100% - 48px));
    height: 72px;
    padding: 0;
    gap: 24px;
}
.taxi-home .nav-logo { order: 1; }
.taxi-home .nav-logo img { height: 37px !important; width: auto; }
.taxi-home .service-switcher { display: none; }
.taxi-home .nav-links { order: 2; margin-left: auto; gap: clamp(18px, 2.1vw, 34px); }
.taxi-home .nav-links a { font-size: 13px; font-weight: 650; color: var(--beta-ink); opacity: .8; }
.taxi-home .nav-phone { order: 3; margin-left: 12px; color: var(--beta-ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.taxi-home .nav-actions { order: 4; gap: 10px; }
.taxi-home .nav-login { display: none; }
.taxi-home .nav-driver-btn { display: none; }
.taxi-home .nav-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #ffc43a, var(--beta-yellow-dark));
    box-shadow: 0 10px 24px rgba(255, 176, 0, .22);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* Hero: 640–680px, so the first screen contains the route and the complete form. */
.taxi-home .hero {
    width: 100%;
    max-width: none;
    height: clamp(620px, calc(100svh - 156px), 680px) !important;
    min-height: 0 !important;
    margin: 72px 0 0;
    padding: 28px max(40px, calc((100vw - 1360px) / 2)) 34px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
    gap: clamp(36px, 7vw, 112px);
    align-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-image: url('/static/images/hero-kashperivka-tetiiv-v2.jpg');
    background-position: center 46%;
    background-size: cover;
}
.taxi-home .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.48) 39%, rgba(255,255,255,.08) 70%, rgba(255,255,255,.22) 100%);
}
.taxi-home .hero-left {
    width: min(100%, 700px);
    max-width: 700px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.taxi-home .hero-badge {
    margin: 0 0 22px;
    padding: 9px 14px;
    color: #6e6040;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(236, 201, 111, .58);
    box-shadow: 0 8px 24px rgba(54, 48, 27, .08);
    backdrop-filter: blur(15px);
}
.taxi-home .hero h1 {
    max-width: 690px;
    margin: 0 0 20px;
    color: var(--beta-ink);
    font-size: clamp(46px, 4.15vw, 66px) !important;
    line-height: .99 !important;
    letter-spacing: -2.9px !important;
    font-weight: 850;
}
.taxi-home .hero h1 .accent { color: var(--beta-ink); background: none; -webkit-text-fill-color: currentColor; }
.taxi-home .hero-sub { max-width: 570px; margin: 0 0 25px; color: #4f555d; font-size: 15px; line-height: 1.55; }
.taxi-home .hero-stats { display: none; }
.taxi-home .hero-feats { max-width: 610px; margin: 8px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.taxi-home .hero-feat {
    min-height: 57px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    color: var(--beta-ink);
    background: rgba(255, 255, 255, .67);
    box-shadow: 0 12px 28px rgba(24, 31, 41, .08), inset 0 1px 0 #fff;
    backdrop-filter: blur(15px);
    font-size: 11px;
    font-weight: 700;
}
.taxi-home .hero-feat svg { color: var(--beta-yellow-dark); }
.taxi-home .hero-cta-row { margin-top: 20px; gap: 10px; }
.taxi-home .hero-cta { min-height: 48px; padding: 0 18px; border-radius: 13px; font-size: 12px; }
.taxi-home .hero-cta.primary { color: #fff; background: linear-gradient(145deg, #ffc139, var(--beta-yellow-dark)); box-shadow: 0 12px 28px rgba(255, 176, 0, .25); }
.taxi-home .hero-cta.secondary { color: var(--beta-ink); border: 1px solid rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .82); box-shadow: 0 10px 24px rgba(24, 31, 41, .08); }
.taxi-home .hero-route-card { display: none; }

/* Booking card: narrow, calm, and complete without overflowing the first screen. */
.taxi-home .hero-right { width: 100%; max-width: 360px; margin: 0; align-self: center; }
.taxi-home .order-card {
    width: 100%;
    min-height: 0;
    padding: 19px 20px 20px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(242,246,249,.74));
    box-shadow: 0 24px 68px rgba(25, 31, 40, .16), inset 0 1px 0 #fff;
    backdrop-filter: blur(25px) saturate(145%);
}
.taxi-home .order-card-heading { margin-bottom: 12px; }
.taxi-home .order-kicker { color: #9a6b00 !important; font-size: 9px; letter-spacing: .14em; }
.taxi-home .order-card h2 { margin-top: 4px; color: var(--beta-ink) !important; font-size: 25px; letter-spacing: -.9px; }
.taxi-home .order-card-sub { margin-bottom: 0; color: var(--beta-muted) !important; font-size: 11px; }
.taxi-home .web-order-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 13px; padding: 4px; border: 1px solid rgba(255,255,255,.88); border-radius: 13px; background: rgba(231, 235, 239, .62); box-shadow: inset 0 2px 8px rgba(31,40,55,.05); }
.taxi-home .web-order-tabs button { min-height: 34px; border: 0; border-radius: 10px; background: transparent; color: #737a83; font: 700 11px Inter, sans-serif; cursor: pointer; }
.taxi-home .web-order-tabs button.active { color: var(--beta-ink); background: rgba(255,255,255,.92); box-shadow: 0 6px 15px rgba(28, 35, 46, .1), inset 0 1px 0 #fff; }
.taxi-home #step1.active { display: block !important; }
.taxi-home #step1 > .taxi-order-controls { display: flex !important; flex-direction: column !important; gap: 7px !important; width: 100% !important; }
.taxi-home .taxi-order-controls > * { width: 100% !important; margin: 0 !important; }
.taxi-home .taxi-order-controls > .field-group { display: grid; gap: 6px; }
.taxi-home .field { min-height: 43px; padding: 8px 10px; gap: 9px; border: 1px solid rgba(25,31,40,.09); border-radius: 12px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.92); }
.taxi-home .field-icon { width: 20px; }
.taxi-home .field-icon svg { width: 17px; height: 17px; }
.taxi-home .field-content label { margin-bottom: 2px; color: #777d86; font-size: 9px; }
.taxi-home .field-content select, .taxi-home .field-content input { font-size: 11px; font-weight: 700; }
.taxi-home .field-content input::placeholder { color: #969ca3 !important; opacity: 1; }
.taxi-home .taxi-pick-map-btn { min-width: 53px; height: 30px; padding: 0 7px; border: 1px solid #ead7a1; border-radius: 9px; color: #80600a; background: #fff8e4; font-size: 9px; }
.taxi-home .taxi-pick-map-btn svg { width: 14px; height: 14px; }
.taxi-home .taxi-order-controls > .route-divider { height: 17px !important; min-height: 17px !important; gap: 7px; }
.taxi-home .taxi-order-controls > .route-divider .route-line { width: auto !important; min-height: 1px; background: rgba(25,31,40,.1); }
.taxi-home .swap-btn { width: 25px; height: 25px; background: var(--beta-ink); font-size: 12px; }
.taxi-home .web-add-stop, .taxi-home .taxi-pickup-item { display: none !important; }
.taxi-home .options-row { gap: 6px; margin-top: 2px !important; }
.taxi-home .option-btn { min-height: 35px; padding: 9px; border: 1px solid rgba(25,31,40,.08); border-radius: 10px; color: #5d646d !important; background: rgba(255,255,255,.74); font-size: 10px; }
.taxi-home .option-btn.active { color: #fff !important; border-color: var(--beta-ink); background: var(--beta-ink); }
.taxi-home .taxi-order-controls > .time-row { display: none; }
.taxi-home .taxi-quote { margin-top: 4px; padding: 13px; border: 1px solid rgba(25,31,40,.08); border-radius: 14px; background: rgba(255,255,255,.82); }
.taxi-home .web-quote-preview { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; min-height: 86px; margin-top: 2px; padding: 10px; border: 1px solid rgba(25,31,40,.08); border-radius: 15px; background: rgba(255,255,255,.75); }
.taxi-home .web-quote-car { display: grid; place-items: center; height: 66px; border-radius: 11px; background: linear-gradient(145deg, #f6f7f7, #e5e8e9); overflow: hidden; }
.taxi-home .web-quote-car img { width: 88px; height: 88px; object-fit: contain; }
.taxi-home .web-quote-copy span, .taxi-home .web-quote-copy small { display: block; color: #7c828a; font-size: 10px; }
.taxi-home .web-quote-copy strong { display: block; margin: 4px 0; color: var(--beta-ink); font-size: 13px; line-height: 1.15; }
.taxi-home .web-quote-copy small { color: #8d939b; }
.taxi-home .taxi-order-controls > .btn-next { min-height: 47px; margin-top: 1px !important; padding: 0 16px; border-radius: 12px; color: #fff !important; background: linear-gradient(145deg, #ffc139, var(--beta-yellow-dark)); box-shadow: 0 12px 26px rgba(255, 176, 0, .24); font-size: 13px; }
.taxi-home .taxi-order-controls > .btn-next span { margin-left: 4px; }

/* Lower page rhythm matches the lighter reference and no longer inherits dark legacy surfaces. */
.taxi-home .how, .taxi-home .features, .taxi-home .service-area, .taxi-home .app-soon, .taxi-home .driver, .taxi-home .contacts, .taxi-home .footer { width: min(1360px, calc(100% - 48px)); margin-top: 20px; }
.taxi-home .how-inner { padding: 26px 0 4px; }
.taxi-home .how h2 { margin-bottom: 18px; font-size: 24px; }
.taxi-home .how-step { min-height: 174px; padding: 22px; border-radius: 22px; }
.taxi-home .how-num { margin-bottom: 42px; font-size: 34px; }
.taxi-home .how-step h3 { font-size: 16px; }
.taxi-home .features-inner { padding: 22px; gap: 12px; border-radius: 24px; }
.taxi-home .features-title { font-size: 20px; }
.taxi-home .feature { min-height: 112px; padding: 16px; border-radius: 16px; }
.taxi-home .feature-ico { width: 38px; height: 38px; border-radius: 11px; }
.taxi-home .feature h3 { margin-top: 10px; font-size: 14px; }
.taxi-home .feature p { font-size: 10px; }
.taxi-home .service-area-inner, .taxi-home .app-soon-inner, .taxi-home .driver-inner, .taxi-home .contacts-inner, .taxi-home .footer-inner { border-radius: 24px; }

/* Apps: three equal cards, including the Telegram bridge while native apps are in progress. */
.taxi-home .app-soon-inner { display: block; padding: 26px; }
.taxi-home .app-soon-heading { margin-bottom: 16px; }
.taxi-home .app-soon-badge { display: inline-flex; align-items: center; gap: 6px; color: #936900; background: #fff6dc; }
.taxi-home .app-soon-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.taxi-home .app-soon h2 { margin-top: 8px; color: var(--beta-ink) !important; font-size: 24px; letter-spacing: -1px; }
.taxi-home .app-soon-heading p { max-width: 700px; margin-top: 4px; color: var(--beta-muted) !important; font-size: 12px; }
.taxi-home .app-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.taxi-home .app-showcase .app-store-btn {
    position: relative;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--beta-line);
    border-radius: 18px;
    color: var(--beta-ink) !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 10px 24px rgba(23, 30, 40, .05);
}
.taxi-home .app-showcase .app-store-btn > svg { flex: 0 0 auto; filter: invert(1); }
.taxi-home .app-showcase .store-icon-google { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: #f4f5f4; }
.taxi-home .asb-sub { color: #8b9198 !important; font-size: 10px; }
.taxi-home .asb-name { margin-top: 3px; color: var(--beta-ink) !important; font-size: 16px; }
.taxi-home .soon-tag { margin-left: auto; padding: 4px 8px; border-radius: 99px; color: #9b6c00; background: #fff0c6; font-size: 9px; font-weight: 800; }
.taxi-home .app-telegram-card { overflow: hidden; }
.taxi-home .telegram-card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: #27a7e7; box-shadow: 0 8px 18px rgba(39,167,231,.2); }
.taxi-home .telegram-card-icon img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.taxi-home .app-bot-link { display: inline-flex; margin-top: 9px; color: var(--beta-ink); font-size: 10px; font-weight: 800; text-decoration: none; }

/* Drivers: use the same white card language, with the existing driver photo as the hero image. */
.taxi-home .driver-inner {
    min-height: 286px;
    padding: 34px;
    display: block;
    border: 1px solid var(--beta-line);
    background-color: #fff;
    background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 36%, rgba(255,255,255,.18) 69%, rgba(255,255,255,0) 100%), url('/static/images/driver-banner-v2.jpg');
    background-position: center, center;
    background-size: cover, cover;
    box-shadow: 0 16px 42px rgba(17,19,24,.06);
}
.taxi-home .driver-text { max-width: 490px; padding-right: 0; }
.taxi-home .driver-badge { color: #936900; background: #fff3cf; }
.taxi-home .driver h2 { margin-top: 9px; color: var(--beta-ink) !important; font-size: 30px; }
.taxi-home .driver-text p { color: var(--beta-muted); font-size: 13px; }
.taxi-home .driver-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin: 18px 0; }
.taxi-home .driver-list li { color: #3e444d; font-size: 11px; }
.taxi-home .driver-list li svg { color: var(--beta-yellow-dark); }
.taxi-home .driver-visual { display: none; }
.taxi-home .driver .btn-yellow { min-height: 43px; padding: 0 20px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #ffc139, var(--beta-yellow-dark)); font-size: 12px; box-shadow: 0 10px 24px rgba(255,176,0,.2); }

/* Contacts/footer keep the same light glass family instead of switching to legacy dark UI. */
.taxi-home .contacts-inner { padding: 26px; }
.taxi-home .contacts h2 { color: var(--beta-ink) !important; font-size: 22px; }
.taxi-home .contacts-hours { color: var(--beta-muted) !important; font-size: 12px; }
.taxi-home .contact-item { min-height: 76px; border-color: var(--beta-line); background: rgba(255,255,255,.86); }
.taxi-home .ci-title { color: var(--beta-ink); font-size: 12px; }
.taxi-home .ci-sub { color: var(--beta-muted); font-size: 11px; }
.taxi-home .footer-inner { min-height: 105px; padding: 22px 26px; }
.taxi-home .footer-logo { height: 38px; }
.taxi-home .footer p, .taxi-home .footer-links a { color: #6b7179; }

@media (max-width: 1180px) and (min-width: 901px) {
    .taxi-home .nav-phone { display: none; }
    .taxi-home .hero { gap: 42px; grid-template-columns: minmax(0, 1fr) 340px; padding-left: 30px; padding-right: 30px; }
    .taxi-home .hero h1 { font-size: clamp(42px, 5.2vw, 58px) !important; }
}

@media (max-width: 900px) {
    .taxi-home .nav-inner { width: calc(100% - 28px); height: 64px; }
    .taxi-home .nav-logo { order: 1; margin-right: auto; }
    .taxi-home .nav-logo img { height: 36px !important; }
    .taxi-home .nav-phone, .taxi-home .nav-links, .taxi-home .nav-actions { display: none; }
    .taxi-home .nav-burger { order: 2; display: flex; margin-left: auto; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.82); box-shadow: 0 8px 20px rgba(24,31,41,.09); }
    .taxi-home .hero { width: 100%; height: auto; min-height: 0; margin-top: 64px; padding: 28px 14px 18px; display: grid; grid-template-columns: 1fr; gap: 14px; background-position: 51% top; }
    .taxi-home .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.55)); }
    .taxi-home .hero-left { width: 100%; max-width: none; padding: 20px 14px 10px !important; }
    .taxi-home .hero-badge { margin-bottom: 18px; font-size: 10px; }
    .taxi-home .hero h1 { max-width: 100%; margin-bottom: 16px; font-size: clamp(39px, 11vw, 56px) !important; line-height: .98 !important; letter-spacing: -2.5px !important; }
    .taxi-home .hero-sub { max-width: 430px; margin-bottom: 18px; font-size: 14px; }
    .taxi-home .hero-feats { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: none; }
    .taxi-home .hero-feat:last-child { grid-column: 1 / -1; }
    .taxi-home .hero-cta-row { display: grid; grid-template-columns: 1fr; margin-top: 14px; }
    .taxi-home .hero-cta { width: 100%; }
    .taxi-home .hero-right { width: 100%; max-width: none; }
    .taxi-home .order-card { padding: 18px 14px 16px; border-radius: 22px; }
    .taxi-home .web-quote-preview { grid-template-columns: 82px 1fr; }
    .taxi-home .taxi-map-shell { width: calc(100vw - 16px) !important; max-height: calc(100svh - 16px) !important; padding: 12px !important; border-radius: 18px !important; }
    .taxi-home .how, .taxi-home .features, .taxi-home .service-area, .taxi-home .app-soon, .taxi-home .driver, .taxi-home .contacts, .taxi-home .footer { width: calc(100% - 20px); margin-top: 14px; }
}

@media (max-width: 600px) {
    .taxi-home .hero h1 { font-size: clamp(37px, 11vw, 49px) !important; }
    .taxi-home .hero-feat { min-height: 52px; font-size: 10px; }
    .taxi-home .how-steps { gap: 10px; }
    .taxi-home .how-step { min-height: 160px; }
    .taxi-home .features-inner { padding: 14px; grid-template-columns: 1fr 1fr; }
    .taxi-home .features-title { grid-column: 1 / -1; }
    .taxi-home .feature { min-height: 124px; padding: 13px; }
    .taxi-home .service-area-inner, .taxi-home .app-soon-inner, .taxi-home .driver-inner, .taxi-home .contacts-inner, .taxi-home .footer-inner { padding: 18px; }
    .taxi-home .app-showcase { grid-template-columns: 1fr; }
    .taxi-home .app-showcase .app-store-btn { min-height: 82px; }
    .taxi-home .driver-inner { min-height: 430px; padding: 22px 18px; background-position: center, 67% center; }
    .taxi-home .driver-list { grid-template-columns: 1fr; gap: 7px; }
    .taxi-home .driver-text { max-width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
    .taxi-home *, .taxi-home *::before, .taxi-home *::after { animation: none !important; transition: none !important; }
}
