/* ==========================================================================
   VGROUP Web – výkup vozů (stránka, formulář, bloky v detailu vozu)
   ========================================================================== */
.vgw-root .vgw-vykup { container-type: inline-size; background: #fff; }
.vgw-root .vgw-vsec { padding: 52px 0; background: #fff; }
.vgw-root .vgw-vhead { max-width: 760px; margin-bottom: 26px; }
.vgw-root .vgw-vhead--center { margin-left: auto; margin-right: auto; text-align: center; }
.vgw-root .vgw-vkicker { display: inline-block; margin-bottom: 8px; font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--vgw-accent); }
.vgw-root .vgw-vh2 { font-family: var(--vgw-font-display); font-size: clamp(25px, 2.9vw, 38px); font-weight: 800; line-height: 1.12; color: var(--vgw-primary); }
.vgw-root .vgw-vsub { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--vgw-muted); }

/* ---------- úvod ---------- */
.vgw-root .vgw-vhero { position: relative; padding: 48px 0 44px; overflow: hidden; background: radial-gradient(120% 130% at 85% 0%, color-mix(in srgb, var(--vgw-primary) 62%, #3b6fe0) 0%, var(--vgw-primary) 62%); color: #fff; }
.vgw-root .vgw-vhero::after { content: ""; position: absolute; right: -150px; bottom: -180px; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.vgw-root .vgw-vhero .vgw-container { position: relative; z-index: 1; }
.vgw-root .vgw-vhero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.vgw-root .vgw-vhero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 20px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vgw-root .vgw-vhero__badge svg { width: 18px; height: 18px; }
.vgw-root .vgw-vhero__title { margin-top: 16px; font-family: var(--vgw-font-display); font-size: clamp(31px, 4.2vw, 52px); font-weight: 800; line-height: 1.07; color: #fff; }
.vgw-root .vgw-vhero__text { margin-top: 14px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .86); max-width: 58ch; }
.vgw-root .vgw-vusp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 20px 0 26px; }
.vgw-root .vgw-vusp li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.vgw-root .vgw-vusp svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: #7fe0a8; }
.vgw-root .vgw-vhero__media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.vgw-root .vgw-vhero__media img { width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .35)); }
.vgw-root .vgw-vhero__ph { display: flex; align-items: center; justify-content: center; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.vgw-root .vgw-vhero__ph svg { width: 92px; height: 92px; opacity: .8; }

/* ---------- postup ---------- */
.vgw-root .vgw-vsteps { background: var(--vgw-soft); }
.vgw-root .vgw-vsteps__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vgw-root .vgw-vstep { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 22px 22px; border-radius: 20px; background: #fff; border: 1px solid #e6eaf3; box-shadow: 0 8px 24px rgba(11, 31, 86, .06); }
.vgw-root .vgw-vstep__num { position: absolute; right: 18px; top: 14px; font-family: var(--vgw-font-display); font-size: 42px; font-weight: 800; line-height: 1; color: rgba(11, 31, 86, .1); }
.vgw-root .vgw-vstep__ico { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 15px; background: var(--vgw-primary); color: #fff; }
.vgw-root .vgw-vstep__ico svg, .vgw-root .vgw-vstep__ico img { width: 25px; height: 25px; }
.vgw-root .vgw-vstep h3 { font-family: var(--vgw-font-display); font-size: 17px; font-weight: 800; color: var(--vgw-primary); }
.vgw-root .vgw-vstep p { font-size: 14.5px; line-height: 1.6; color: var(--vgw-muted); }

/* ---------- protiúčet ---------- */
.vgw-root .vgw-vtrade__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 42px; align-items: center; }
.vgw-root .vgw-vlist { display: grid; gap: 10px; margin: 6px 0 24px; }
.vgw-root .vgw-vlist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--vgw-text); }
.vgw-root .vgw-vlist svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; color: var(--vgw-accent); }
.vgw-root .vgw-vtrade__media { display: grid; place-items: center; }
.vgw-root .vgw-vtrade__media img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 44px rgba(11, 31, 86, .16); }
.vgw-root .vgw-vtrade__ph { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--vgw-soft); color: #b7c0d3; }
.vgw-root .vgw-vtrade__ph svg { width: 96px; height: 96px; }

/* ---------- formulář ---------- */
.vgw-root .vgw-vform-sec { padding: 52px 0; background: var(--vgw-soft); }
.vgw-root .vgw-vform { max-width: 900px; margin: 0 auto; padding: 34px 38px 32px; border-radius: 24px; background: #fff; box-shadow: 0 18px 44px rgba(11, 31, 86, .12); border: 1px solid #e8ecf3; }
.vgw-root .vgw-vform__head .vgw-vhead { margin-bottom: 20px; }
.vgw-root .vgw-vform__car { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; padding: 12px 16px; border-radius: 14px; background: #eaf0fb; font-size: 14.5px; color: var(--vgw-primary); }
.vgw-root .vgw-vform__car svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--vgw-accent); }
.vgw-root .vgw-vform__car a { font-weight: 800; text-decoration: underline; color: var(--vgw-primary); }
.vgw-root .vgw-vform__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--vgw-soft); font-size: 13.5px; line-height: 1.6; color: var(--vgw-muted); }
.vgw-root .vgw-vform__note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--vgw-primary); }
.vgw-root .vgw-vform__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--vgw-primary); }
.vgw-root .vgw-vform__phone svg { width: 20px; height: 20px; color: var(--vgw-accent); }
.vgw-root .vgw-vform__phone strong { font-family: var(--vgw-font-display); font-size: 18px; font-weight: 800; }
.vgw-root .vgw-inq__legend { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-family: var(--vgw-font-display); font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--vgw-primary); }
.vgw-root .vgw-inq__legend:first-of-type { margin-top: 0; }
.vgw-root .vgw-inq__legend svg { width: 20px; height: 20px; color: var(--vgw-accent); }
.vgw-root .vgw-inq__legend::after { content: ""; flex: 1; height: 1px; background: #e3e7ee; }

.vgw-root .vgw-inq--vykup .vgw-inp select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #d9dee8; border-radius: 10px; background: #f8f9fb; font: inherit; font-size: 15px; color: var(--vgw-text); cursor: pointer; }
.vgw-root .vgw-inq--vykup .vgw-inp select:focus { border-color: var(--vgw-primary); background: #fff; outline: none; }

/* fotky */
.vgw-root .vgw-vphotos__drop { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px dashed #ccd5e6; border-radius: 16px; background: #fbfcfe; cursor: pointer; transition: border-color .2s, background-color .2s; }
.vgw-root .vgw-vphotos__drop:hover { border-color: var(--vgw-accent); background: #fff; }
.vgw-root .vgw-vphotos__drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vgw-root .vgw-vphotos__ico { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; background: var(--vgw-primary); color: #fff; }
.vgw-root .vgw-vphotos__ico svg { width: 26px; height: 26px; }
.vgw-root .vgw-vphotos__lab { display: flex; flex-direction: column; gap: 2px; }
.vgw-root .vgw-vphotos__lab strong { font-size: 15px; font-weight: 800; color: var(--vgw-primary); }
.vgw-root .vgw-vphotos__lab small { font-size: 13px; line-height: 1.5; color: var(--vgw-muted); }
.vgw-root .vgw-vphotos__limit { font-weight: 700; }
.vgw-root .vgw-vphotos__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.vgw-root .vgw-vphotos__list:empty { display: none; }
.vgw-root .vgw-vphoto { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 34px 8px 8px; border-radius: 12px; background: var(--vgw-soft); }
.vgw-root .vgw-vphoto img { width: 54px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 54px; }
.vgw-root .vgw-vphoto__name { display: flex; flex-direction: column; min-width: 0; }
.vgw-root .vgw-vphoto__name strong { font-size: 12.5px; font-weight: 700; color: var(--vgw-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vgw-root .vgw-vphoto__name small { font-size: 11.5px; color: var(--vgw-muted); }
.vgw-root .vgw-vphoto__del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; color: #98a1b5; font-size: 17px; line-height: 1; cursor: pointer; transition: color .2s, background-color .2s; }
.vgw-root .vgw-vphoto__del:hover { background: var(--vgw-accent); color: #fff; }
.vgw-root .vgw-vphotos__msg { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--vgw-muted); }
.vgw-root .vgw-vphotos__msg.is-err { color: var(--vgw-accent); }

/* ---------- dotazy ---------- */
.vgw-root .vgw-vfaq { background: var(--vgw-soft); }
.vgw-root .vgw-vfaq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.vgw-root .vgw-vfaq__item { border-radius: 16px; background: #fff; border: 1px solid #e6eaf3; overflow: hidden; }
.vgw-root .vgw-vfaq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-family: var(--vgw-font-display); font-size: 16px; font-weight: 800; color: var(--vgw-primary); cursor: pointer; list-style: none; }
.vgw-root .vgw-vfaq__item summary::-webkit-details-marker { display: none; }
.vgw-root .vgw-vfaq__chev { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--vgw-soft); color: var(--vgw-primary); transition: transform .2s, background-color .2s; }
.vgw-root .vgw-vfaq__chev svg { width: 16px; height: 16px; }
.vgw-root .vgw-vfaq__item[open] .vgw-vfaq__chev { transform: rotate(180deg); background: var(--vgw-accent); color: #fff; }
.vgw-root .vgw-vfaq__a { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--vgw-muted); }

/* ---------- závěrečný banner ---------- */
.vgw-root .vgw-vcta { padding: 10px 0 56px; background: #fff; }
.vgw-root .vgw-vcta__box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 40px; align-items: center; padding: 34px 38px; border-radius: 24px; background: radial-gradient(120% 160% at 90% 0%, color-mix(in srgb, var(--vgw-primary) 60%, #3b6fe0) 0%, var(--vgw-primary) 60%); color: #fff; }
.vgw-root .vgw-vcta__title { font-family: var(--vgw-font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; color: #fff; }
.vgw-root .vgw-vcta__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.vgw-root .vgw-vcta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- responzivita stránky ---------- */
@container (max-width: 1080px) {
    .vgw-root .vgw-vsteps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vgw-root .vgw-vhero__grid, .vgw-root .vgw-vtrade__grid { grid-template-columns: 1fr; gap: 26px; }
    .vgw-root .vgw-vhero__media { order: -1; min-height: 0; }
    .vgw-root .vgw-vcta__box { grid-template-columns: 1fr; }
}
@container (max-width: 640px) {
    .vgw-root .vgw-vsec, .vgw-root .vgw-vform-sec { padding: 34px 0; }
    .vgw-root .vgw-vhero { padding: 28px 0 32px; }
    .vgw-root .vgw-vusp { grid-template-columns: 1fr; }
    .vgw-root .vgw-vsteps__grid { grid-template-columns: 1fr; }
    .vgw-root .vgw-vform { padding: 22px 18px 24px; border-radius: 18px; }
    .vgw-root .vgw-vphotos__drop { flex-direction: column; text-align: center; gap: 10px; padding: 18px 14px; }
    .vgw-root .vgw-vphotos__list { grid-template-columns: 1fr; }
    .vgw-root .vgw-vcta__box { padding: 22px 18px; border-radius: 18px; }
    .vgw-root .vgw-vcta__btns .vgw-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Bloky v detailu vozu
   ========================================================================== */
.vgw-root .vgw-dcta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.vgw-root .vgw-dcta__box { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 16px; width: 100%; padding: 20px 22px; border: 1px solid #e3e7ee; border-radius: 20px; background: #fff; box-shadow: 0 8px 26px rgba(11, 31, 86, .07); text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; font: inherit; color: inherit; }
.vgw-root .vgw-dcta__box:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 31, 86, .14); border-color: #d3dcec; color: inherit; }
.vgw-root .vgw-dcta__ico { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--vgw-primary); color: #fff; }
.vgw-root .vgw-dcta__box--buy .vgw-dcta__ico { background: var(--vgw-accent); }
.vgw-root .vgw-dcta__ico svg { width: 26px; height: 26px; }
.vgw-root .vgw-dcta__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vgw-root .vgw-dcta__txt strong { font-family: var(--vgw-font-display); font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--vgw-primary); }
.vgw-root .vgw-dcta__txt small { font-size: 13.5px; line-height: 1.5; color: var(--vgw-muted); }
.vgw-root .vgw-dcta__go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--vgw-accent); white-space: nowrap; }
.vgw-root .vgw-dcta__go svg { width: 16px; height: 16px; transition: transform .2s; }
.vgw-root .vgw-dcta__box:hover .vgw-dcta__go svg { transform: translateX(3px); }

/* dlaždice v pravém panelu u ceny (detail vozu) */
.vgw-root .vgw-dtop__info .vgw-dcta { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 2px 0 0; padding-top: 16px; border-top: 1px solid #edf0f6; }
.vgw-root .vgw-dtop__info .vgw-dcta__box { gap: 8px 12px; padding: 13px 14px; border-radius: 14px; background: var(--vgw-soft); box-shadow: none; }
.vgw-root .vgw-dtop__info .vgw-dcta__box:hover { transform: none; background: #fff; box-shadow: 0 8px 20px rgba(11, 31, 86, .1); }
.vgw-root .vgw-dtop__info .vgw-dcta__ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; }
.vgw-root .vgw-dtop__info .vgw-dcta__ico svg { width: 21px; height: 21px; }
.vgw-root .vgw-dtop__info .vgw-dcta__txt strong { font-size: 15px; }
.vgw-root .vgw-dtop__info .vgw-dcta__txt small { font-size: 12.5px; line-height: 1.45; }
.vgw-root .vgw-dtop__info .vgw-dcta__go { grid-column: 2; font-size: 11.5px; }

@media (max-width: 980px) {
    .vgw-root .vgw-dcta__box { gap: 12px 14px; padding: 18px; }
}
@media (max-width: 767px) {
    .vgw-root .vgw-dcta { gap: 10px; margin-bottom: 14px; }
    .vgw-root .vgw-dtop__info .vgw-dcta { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; }
    .vgw-root .vgw-dtop__info .vgw-dcta__box { padding: 12px 8px; }
    .vgw-root .vgw-dtop__info .vgw-dcta__go { grid-column: auto; }
    .vgw-root .vgw-dcta__box { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 14px 10px; border-radius: 16px; text-align: center; }
    .vgw-root .vgw-dcta__ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; }
    .vgw-root .vgw-dcta__ico svg { width: 22px; height: 22px; }
    .vgw-root .vgw-dcta__txt { flex: 0 0 auto; gap: 2px; text-align: center; }
    .vgw-root .vgw-dcta__txt strong { font-size: 14.5px; }
    .vgw-root .vgw-dcta__txt small { display: none; }
    .vgw-root .vgw-dcta__go { width: auto; margin-top: auto; font-size: 11px; line-height: 1.35; white-space: normal; }
    .vgw-root .vgw-dcta__go svg { display: none; }
}

/* ---------- modální okno s kalkulačkou ---------- */
.vgw-noscroll, .vgw-noscroll body { overflow: hidden; }
.vgw-root .vgw-vmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.vgw-root .vgw-vmodal[hidden] { display: none; }
.vgw-root .vgw-vmodal__back { position: absolute; inset: 0; background: rgba(8, 16, 40, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.vgw-root .vgw-vmodal__panel { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(680px, 100%); max-height: calc(100vh - 48px); border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); overflow: hidden; animation: vgw-vmodal-in .22s ease-out; }
@keyframes vgw-vmodal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vgw-root .vgw-vmodal__panel { animation: none; } }
.vgw-root .vgw-vmodal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--vgw-primary); color: #fff; }
.vgw-root .vgw-vmodal__bar strong { display: inline-flex; align-items: center; gap: 10px; font-family: var(--vgw-font-display); font-size: 17px; font-weight: 800; }
.vgw-root .vgw-vmodal__bar svg { width: 21px; height: 21px; }
.vgw-root .vgw-vmodal__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s; }
.vgw-root .vgw-vmodal__close:hover { background: rgba(255, 255, 255, .28); }
.vgw-root .vgw-vmodal__close svg { width: 18px; height: 18px; }
.vgw-root .vgw-vmodal__body { padding: 20px; overflow-y: auto; }
.vgw-root .vgw-vmodal .vgw-fcalc__box { padding: 0; background: transparent; box-shadow: none; border: 0; }
.vgw-root .vgw-vmodal__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6eaf3; }
.vgw-root .vgw-vmodal__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--vgw-primary); }
.vgw-root .vgw-vmodal__link svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
    .vgw-root .vgw-vmodal { padding: 0; align-items: flex-end; }
    .vgw-root .vgw-vmodal__panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
    .vgw-root .vgw-vmodal__body { padding: 16px; }
    .vgw-root .vgw-vmodal__foot .vgw-btn { width: 100%; justify-content: center; }
}
