:root {
    --bg: #f2f5f8;
    --fg: #10212e;
    --mut: #607180;
    --brand: #0a4d7a;
    --brand-dark: #082b43;
    --accent: #caa46b;
    --card: #fff;
    --bd: #dce4ea;
    --shadow: 0 18px 45px -28px #10212e80
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c151d;
        --fg: #eaf1f6;
        --mut: #9bb0bf;
        --card: #142330;
        --bd: #243746;
        --brand: #5bb4ec;
        --brand-dark: #082b43
    }
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.6 Manrope, system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg)
}

a {
    color: inherit;
    text-decoration: none
}

button, input, select {
    font: inherit
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px
}

.topline {
    background: #071e2e;
    color: #c4d5e1;
    font-size: 11px;
    letter-spacing: .18em
}

.topline .wrap {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.hdr {
    background: var(--card);
    border-bottom: 1px solid var(--bd);
    position: sticky;
    top: 0;
    z-index: 10
}

.hdr-in {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 72px
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--fg)
}

.logo span {
    color: var(--accent)
}

#nav {
    display: flex;
    gap: 24px;
    flex: 1;
    color: var(--mut);
    font-size: 14px;
    font-weight: 700
}

#nav a:hover {
    color: var(--brand)
}

.hdr-r {
    display: flex;
    align-items: center;
    gap: 18px
}

.tel {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap
}

.lang {
    display: flex;
    gap: 4px
}

.lang button {
    border: 1px solid var(--bd);
    background: transparent;
    color: var(--fg);
    padding: 5px 9px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px
}

.lang button.on {
    background: var(--brand-dark);
    color: white;
    border-color: var(--brand-dark)
}

main {
    padding-top: 28px;
    padding-bottom: 72px;
    min-height: 65vh
}

.hero {
    background: linear-gradient(110deg, rgba(3, 26, 42, .95), rgba(8, 65, 99, .88)), radial-gradient(circle at 85% 35%, #6096b8, #082b43 55%);
    border-radius: 22px;
    padding: 66px 50px 35px;
    margin-bottom: 46px;
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden
}

.eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: .22em;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 14px
}

.hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -.04em;
    max-width: 650px;
    margin: 0 0 16px
}

.hero p {
    max-width: 560px;
    color: #d6e3ed;
    font-size: 17px;
    margin: 0 0 42px
}

.hero-search {
    background: var(--card);
    color: var(--fg);
    border-radius: 15px;
    padding: 22px;
    box-shadow: 0 14px 38px #0003
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end
}

.fld {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 170px
}

.fld label {
    font-size: 12px;
    color: var(--mut);
    font-weight: 700
}

input, select {
    padding: 12px;
    border: 1px solid var(--bd);
    border-radius: 9px;
    background: var(--bg);
    color: var(--fg);
    width: 100%;
    min-width: 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    color: white;
    border: 0;
    border-radius: 9px;
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: transform .2s, background .2s
}

.btn:hover {
    transform: translateY(-2px);
    background: #0d5d91
}

.btn.ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--bd)
}

.btn:disabled {
    opacity: .5;
    cursor: default
}

.section-heading h2 {
    margin: 0 0 20px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 25px
}

.chip {
    border: 1px solid var(--bd);
    background: var(--card);
    border-radius: 30px;
    padding: 9px 17px;
    cursor: pointer;
    color: var(--fg);
    font-weight: 700;
    font-size: 13px
}

.chip.on {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark)
}

.grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(265px, 1fr));
    gap: 20px
}

.card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform .2s
}

.card:hover {
    transform: translateY(-4px)
}

.ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 205px;
    background: linear-gradient(135deg, #dfe9f0, #b9d1df);
    font-size: 55px
}

.ph img, .gal img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cb {
    padding: 19px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1
}

.cb h3 {
    margin: 0;
    font-size: 19px
}

.meta {
    color: var(--mut);
    font-size: 13px
}

.price {
    margin-top: auto
}

.price b {
    font-size: 22px
}

.cb .btn {
    margin-top: 8px
}

.benefits {
    margin: 80px 0 55px
}

.why-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px
}

.why-card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 15px;
    padding: 28px
}

.why-card h3 {
    margin: 12px 0 8px
}

.why-card p {
    color: var(--mut);
    margin: 0;
    font-size: 14px
}

.why-icon {
    font-size: 32px;
    color: var(--accent)
}

h2 {
    font-size: clamp(25px, 3vw, 35px);
    letter-spacing: -.035em;
    margin: 44px 0 20px
}

.two {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 24px
}

.box {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow)
}

.gal {
    height: 370px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #cbdce6, #8daec1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px
}

table {
    width: 100%;
    border-collapse: collapse
}

td, th {
    padding: 10px;
    border-bottom: 1px solid var(--bd);
    text-align: left
}

.specs {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin: 16px 0
}

.specs div {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 12px
}

.specs small {
    color: var(--mut);
    display: block
}

.sum div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    gap: 8px
}

.sum .tot {
    font-weight: 800;
    font-size: 20px;
    border-top: 1px solid var(--bd);
    margin-top: 8px;
    padding-top: 12px
}

details {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 10px
}

summary {
    cursor: pointer;
    font-weight: 700
}

.err {
    color: #dc2626
}

.ok {
    color: #16a34a
}

.ex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0
}

.ex input {
    width: 70px
}

footer {
    background: #071e2e;
    color: #c4d5e1;
    padding: 32px 0
}

.footer-in {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap
}

.footer-in .logo {
    color: #fff
}

@media (max-width: 850px) {
    .two {
        grid-template-columns:1fr
    }

    .why-grid {
        grid-template-columns:1fr
    }

    #nav {
        display: none
    }

    .hdr-in {
        gap: 14px
    }

    .hdr-r {
        margin-left: auto
    }

    .tel {
        display: none
    }

    .hero {
        padding: 46px 24px 24px
    }

    .hero-search {
        padding: 16px
    }
}

@media (max-width: 520px) {
    .topline {
        font-size: 9px
    }

    .hero {
        border-radius: 14px
    }

    .hero h1 {
        font-size: 34px
    }

    .hero-search .fld {
        min-width: 100%
    }

    .hero-search .btn {
        width: 100%
    }

    .gal {
        height: 240px
    }

    .grid {
        grid-template-columns:1fr
    }

    .hdr-in {
        min-height: 62px
    }

    .logo {
        font-size: 21px
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}

/* =========================================
   CARVIA — PREMIUM BOOKING PAGE
   ========================================= */

:root {
    --bg: #f7f7f8;
    --fg: #202127;
    --mut: #777b85;
    --brand: #e51f35;
    --brand-dark: #242126;
    --card: #ffffff;
    --bd: #e8e8eb;
    --shadow: 0 8px 30px rgba(0, 0, 0, .035);
}

body {
    background: var(--bg);
    color: var(--fg);
}

.hdr {
    background: #ffffff;
}

.logo {
    color: #222;
}

.logo span {
    color: #e51f35;
}

.lang button.on {
    background: #e51f35;
    border-color: #e51f35;
    color: #fff;
}

.booking-page {
    padding: 12px 0 45px;
}

.booking-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    color: #85858c;
}

.booking-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 26px;
    letter-spacing: -.7px;
}

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
    gap: 24px;
    align-items: start;
}

.booking-form-card,
.booking-summary-card {
    background: #fff;
    border: 1px solid #ededf0;
    border-radius: 17px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .025);
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 14px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.booking-field label {
    font-size: 12px;
    font-weight: 700;
    color: #555760;
}

.booking-field input,
.booking-field select {
    height: 45px;
    padding: 10px 12px;
    background: #fff;
    color: #222;
    border: 1px solid #dedee3;
    border-radius: 9px;
    font-size: 13px;
    width: 100%;
}

.booking-field input:focus,
.booking-field select:focus {
    outline: none;
    border-color: #e51f35;
    box-shadow: 0 0 0 3px rgba(229, 31, 53, .08);
}

.booking-section-title {
    font-size: 19px;
    font-weight: 800;
    margin: 29px 0 17px;
}

.booking-extras {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.booking-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    border: 1px solid #e6e6e9;
    background: #fafafa;
    border-radius: 12px;
    min-height: 75px;
}

.booking-extra-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.booking-extra-price {
    display: block;
    color: #777;
    font-size: 11px;
    margin-top: 4px;
}

.booking-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.booking-counter button {
    width: 27px;
    height: 30px;
    border: 0;
    background: #f0f0f2;
    color: #e51f35;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.booking-counter button:hover {
    background: #ffe5e9;
}

.booking-counter .exq {
    width: 24px;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    appearance: textfield;
    -moz-appearance: textfield;
}

.booking-counter .exq::-webkit-inner-spin-button,
.booking-counter .exq::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.booking-summary-card {
    padding: 17px;
    position: sticky;
    top: 105px;
}

.booking-car-image {
    height: 245px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 65px;
}

.booking-car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.booking-car-name {
    font-size: 20px;
    font-weight: 800;
    margin: 19px 0;
}

.booking-car-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eeeeef;
    padding: 10px 0;
    font-size: 12px;
}

.booking-car-info span:first-child {
    color: #85858d;
}

.booking-car-info strong {
    text-align: right;
}

.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 19px 0;
    font-size: 18px;
    font-weight: 800;
}

.booking-total strong {
    color: #e51f35;
}

.booking-pay-btn {
    width: 100%;
    background: #e51f35;
    color: #fff;
    padding: 15px;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.booking-pay-btn:hover {
    background: #c9152a;
}

.booking-pay-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.booking-note {
    font-size: 11px;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

.booking-error {
    color: #dc2626;
    font-size: 12px;
    margin: 12px 0;
}

@media (max-width: 950px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-summary-card {
        position: static;
    }
}

@media (max-width: 580px) {
    .booking-form-grid,
    .booking-extras {
        grid-template-columns: 1fr;
    }

    .booking-form-card,
    .booking-summary-card {
        padding: 16px;
    }

    .booking-title {
        font-size: 25px;
    }

    .booking-car-image {
        height: 200px;
    }
}

/* =========================================
   CARVIA PREMIUM FOOTER
   ========================================= */

.carvia-footer {
    background: #171719;
    color: #ffffff;
    border-radius: 35px 35px 0 0;
    padding: 38px 0 20px;
    margin-top: 65px;
}

.footer-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 45px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-top h2 {
    font-size: 23px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer-nav a {
    font-size: 14px;
    color: #e0e0e0;
    transition: color .2s;
}

.footer-nav a:hover {
    color: #e51f35;
}

.footer-divider {
    height: 1px;
    background: #343436;
    margin: 28px 0;
}

.footer-middle {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    margin-right: 15px;
}

.footer-logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.06em;
    color: #ffffff;
    line-height: 1;
}

.footer-logo span {
    color: #e51f35;
}

.footer-brand p {
    margin: 5px 0 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    color: #a9a9ad;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    transition: transform .2s;
}

.social-btn:hover {
    transform: translateY(-4px);
}

.telegram {
    background: #24a1de;
}

.whatsapp {
    background: #25d366;
}

.footer-phone {
    background: #303033;
    border-radius: 25px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.footer-phone:hover {
    background: #414145;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #343436;
    margin-top: 30px;
    padding-top: 18px;
    color: #98989e;
    font-size: 12px;
}

/* TABLET */

@media (max-width: 900px) {

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-middle {
        flex-wrap: wrap;
    }

    .footer-container {
        padding: 0 25px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .carvia-footer {
        border-radius: 23px 23px 0 0;
        padding-top: 30px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-top h2 {
        font-size: 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 15px 20px;
    }

    .footer-nav a {
        font-size: 12px;
    }

    .footer-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-logo {
        font-size: 32px;
    }

    .footer-phone {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        font-size: 11px;
    }

}

.footer-socials .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    color: #ffffff;
}

.footer-socials .social-btn svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.footer-socials .telegram {
    background: #229ed9;
}

.footer-socials .whatsapp {
    background: #25d366;
}

/* CARVIA — TOP INFO BAR */

.topline .topline-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 34px;
}

.topline-location,
.topline-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.topline-location {
    text-decoration: none;
    transition: color 0.2s ease;
}

.topline-location:hover {
    color: #e9b76e;
}

.topline-icon {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 600px) {
    .topline .topline-inner {
        gap: 10px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .topline-location,
    .topline-hours {
        font-size: 10px;
        letter-spacing: 0;
    }

    .topline-icon {
        font-size: 12px;
    }
}