/**************************************
ЛЕНДИНГ АВТОВЫКУПА — custom styles v12
Подключается ПОСЛЕ responsive.css
***************************************/
/* ===== 0. Типографика под референс ===== */
body, .wrapper, p, input, textarea, button {
    font-family: 'Open Sans', Arial, sans-serif;
}
.wrapper { font-size: 16px; color: #727272; }
p { line-height: 1.7; }
h1, h2, h3, h4, h5, h6,
#logo, #footer-logo, .btn, .menu li a, .step-num, .pf-item {
    font-family: 'Oswald', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 { text-transform: none; color: var(--color-dark); }
::selection { background: var(--color-red-light); color: #fff; }
#types h2, #notbuy h2, #price h2, #steps h2, #cases h2, #guarantees h2, #faq h2, #contact h2 {
    font-size: 45px; margin-bottom: 40px; line-height: 1.2; font-weight: 600;
}
#ev h2 { font-size: 34px; margin-bottom: 18px; line-height: 1.25; font-weight: 600; }
#ev h2::after, #types h2::after, #notbuy h2::after, #price h2::after,
#steps h2::after, #cases h2::after, #guarantees h2::after, #contact h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--color-red-light); margin-top: 14px;
}
.faq-wrap h2::after, .cta-wrap h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--color-red-light); margin: 14px auto 0;
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.wrapper-services article, .single-step, .single-guarantee, .single-contact, .single-case {
    transition: transform .3s ease, box-shadow .3s ease;
}
.wrapper-services article:hover, .single-step:hover,
.single-guarantee:hover, .single-contact:hover {
    transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.single-case:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.btn { transition: all .3s ease; }
.btn:hover { transform: translateY(-2px); }
.section-dark {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
}

/* ===== 1. Шапка и hero ===== */
header {
    background-image: linear-gradient(rgba(33,33,33,.72), rgba(33,33,33,.88)), url('../images/hero-bg.jpg');
    position: relative; min-height: 0 !important; padding-bottom: 0;
}
@media all and (max-width: 1020px) {
    header {
        background-image: linear-gradient(rgba(33,33,33,.45), rgba(33,33,33,.68)), url('../images/hero-bg-mob.jpg');
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}
.hb-row { justify-content: space-between; align-items: center; position: relative; z-index: 20; }
#logo { font-weight: 700; font-size: 28px; color: var(--color-white); text-transform: uppercase; }
#logo span { color: var(--color-red-light); }
.wrapper-header-content {
    position: static !important; transform: none !important;
    left: auto !important; top: auto !important; bottom: auto !important;
    padding-top: 70px; padding-bottom: 45px; max-width: 820px;
}
.wrapper-header-content h1 { color: var(--color-white); font-size: 58px; line-height: 1.15; font-weight: 700; margin-bottom: 25px; }
.wrapper-header-content > p { color: #e0e0e0; font-size: 17px; line-height: 1.7; margin-bottom: 25px; }
.hero-badges {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 4px 0; margin: 0 0 22px; padding: 0; list-style: none;
}
.hero-badges::before { content: 'Оплата:'; color: #bdbdbd; font-size: 14px; margin-right: 10px; }
.hero-badges li { display: flex; align-items: center; color: #e0e0e0; font-size: 14px; line-height: 1.6; }
.hero-badges li i { color: var(--color-red-light); margin-right: 6px; font-size: 13px; }
.hero-badges li::after { content: '·'; margin: 0 10px; color: #727272; }
.hero-badges li:last-child::after { content: none; }
.hero-note { color: #9e9e9e; font-size: 13px; max-width: 640px; line-height: 1.6; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 18px; }
.btn i { margin-right: 4px; }
.btn-tg { background-color: #229ED9; }
.btn-tg:hover { background-color: #1b83b4; }
.btn-outline { background: transparent; border: 2px solid var(--color-white); padding: 18px 23px; }
.btn-outline:hover { background: var(--color-white); color: var(--color-dark); }
.btn-outline-tg { background: transparent; border: 2px solid #229ED9; color: var(--color-white); padding: 18px 23px; }
.btn-outline-tg:hover { background: #229ED9; color: var(--color-white); }

/* ===== 2. Плашки-лента (вариант A) ===== */
.wrapper-info {
    position: static !important; transform: none !important;
    left: auto !important; top: auto !important; bottom: auto !important;
    float: none !important; display: flex; flex-wrap: wrap; gap: 0;
    background: var(--color-dark); box-shadow: 0 15px 40px rgba(0,0,0,.35);
    z-index: 30; margin: 10px auto 70px; padding-bottom: 0 !important;
}
.wrapper-info-phone, .wrapper-info-tg, .wrapper-info-request {
    position: static !important; float: none !important;
    flex: 1 1 33.333%; width: auto; box-sizing: border-box;
    background: transparent; box-shadow: none; border: none;
    padding: 30px 25px; display: flex; flex-direction: column;
}
.wrapper-info-tg { border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); }
.wrapper-info-phone h3, .wrapper-info-tg h3, .wrapper-info-request h3 {
    font-size: 22px; margin-bottom: 12px; font-weight: 600; color: var(--color-white);
}
.wrapper-info-phone p, .wrapper-info-tg p, .wrapper-info-request p {
    font-size: 14px; margin-bottom: 15px; color: #bdbdbd;
}
.wrapper-info .btn {
    display: block; width: 100%; box-sizing: border-box;
    text-align: center; padding: 16px 20px; font-size: 15px; margin-top: auto;
}
.wrapper-info-phone .flex-row {
    margin-top: auto; padding-top: 15px; min-height: 54px; align-items: center;
}
.wrapper-info-phone .flex-row i { font-size: 28px; color: var(--color-red-light); margin-right: 15px; }
.wrapper-info-phone .flex-row a { color: var(--color-white); font-size: 24px; font-weight: 700; }
@media all and (max-width: 1020px) {
    .wrapper-header-content { padding-top: 45px; padding-bottom: 10px; }
    .wrapper-info { margin: 35px auto 55px; }
    .wrapper-info-phone, .wrapper-info-tg, .wrapper-info-request { flex: 1 1 100%; }
    .wrapper-info-tg {
        border-left: none; border-right: none;
        border-top: 1px solid rgba(255,255,255,.12);
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
}
@media all and (max-width: 700px) {
    .wrapper-header-content h1 { font-size: 36px; }
    .hero-btns .btn, .cta-btns .btn { width: 100%; text-align: center; }
}

/* ===== 3. Попап оценки ===== */
.popup-content h6 { color: #fff; font-size: 26px; margin-bottom: 8px; font-weight: 600; }
.popup-sub { color: #bdbdbd; font-size: 15px; margin-bottom: 20px; }
.popup-content input, .popup-content textarea {
    width: 100%; box-sizing: border-box; padding: 14px 18px; margin-bottom: 12px;
    border: none; outline: none; border-radius: 3px; font-size: 15px; color: var(--color-dark);
}
.popup-content textarea { min-height: 90px; resize: vertical; }
.popup-content button { border: none; cursor: pointer; width: 100%; }
.res-request .error { color: #F44336; }
.res-request .send { color: #8BC34A; }
.popup-tg { margin-top: 15px; color: #bdbdbd; font-size: 15px; }
.popup-tg a { color: #229ED9; }

/* ===== 4. EV, types, notbuy ===== */
.section-dark { background-color: var(--color-dark); }
.section-dark h2 { color: var(--color-white); }
.section-light { background-color: var(--color-gray-light); }
.section-intro { max-width: 720px; margin-bottom: 45px; font-size: 17px; }
#notbuy .section-intro { color: #bdbdbd; }
.ev-card { display: flex; flex-wrap: wrap; background: var(--color-white); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ev-card-content { width: 55%; padding: 50px; box-sizing: border-box; }
.ev-lead { font-size: 17px; line-height: 1.7; margin-bottom: 30px; color: #727272; }
.ev-brands-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    color: var(--color-dark); margin: 0 0 14px;
}
.ev-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.ev-brands li {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: #fff; border: none; padding: 10px 18px; border-radius: 3px;
    font-size: 14px; font-weight: 600; line-height: 1.2;
    box-shadow: 0 4px 10px rgba(244,67,54,.35); transition: all .3s ease;
}
.ev-brands li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(244,67,54,.45); color: #fff;
}
.ev-checks { list-style: none; margin: 0; padding: 0; }
.ev-checks li { margin-bottom: 12px; font-size: 16px; color: #727272; line-height: 1.7; }
.ev-checks li i { color: var(--color-red-light); margin-right: 8px; }
.ev-card-media { width: 45%; position: relative; min-height: 460px; background: #2b2b2b; }
.ev-card-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--color-red-light); color: var(--color-white);
    font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700;
    padding: 12px 18px; line-height: 1.3;
}
.wrapper-services article {
    background: var(--color-white); padding: 30px; margin: 10px;
    width: calc(50% - 20px); box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    display: flex; gap: 20px; align-items: flex-start;
    border-top: 3px solid transparent;
}
.wrapper-services article:hover { border-top-color: var(--color-red-light); }
.wrapper-services article i { font-size: 40px; color: var(--color-red-light); flex-shrink: 0; }
.wrapper-services article h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.wrapper-services article p { font-size: 15px; line-height: 1.7; margin: 0; color: #727272; }
.wrapper-notbuy { justify-content: center; text-align: center; }
.single-notbuy { width: 33.333%; padding: 10px 25px; box-sizing: border-box; }
.single-notbuy i { font-size: 42px; color: var(--color-red-light); margin-bottom: 18px; }
.single-notbuy h3 { color: var(--color-white); font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.single-notbuy p { color: #bdbdbd; font-size: 15px; line-height: 1.7; margin: 0; }
@media all and (max-width: 900px) {
    .ev-card-content, .ev-card-media { width: 100%; }
    .ev-card-media { min-height: 280px; order: -1; }
    .ev-card-content { padding: 30px 25px 35px; }
}
@media all and (max-width: 700px) {
    .wrapper-services article { width: 100%; margin: 10px 0; }
    .single-notbuy { width: 100%; margin-bottom: 35px; }
    #types h2, #notbuy h2 { font-size: 32px; }
    #ev h2 { font-size: 27px; }
}

/* ===== 5. price, steps, cases ===== */
.price-formula {
    justify-content: center; align-items: center; gap: 20px;
    background-color: #2b2b2b;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
    padding: 30px 20px; margin-bottom: 50px;
}
.pf-item { font-size: 28px; font-weight: 700; color: var(--color-white); text-transform: uppercase; }
.pf-eq { font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 700; color: var(--color-red-light); }
.wrapper-compare { justify-content: space-between; }
.compare-col { width: calc(50% - 15px); box-sizing: border-box; padding: 35px; }
.compare-col.bad { background: var(--color-gray-light); }
.compare-col.good {
    background-color: #2b2b2b;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
}
.compare-col h3 { font-size: 22px; margin-bottom: 20px; font-weight: 600; }
.compare-col.good h3 { color: var(--color-white); }
.compare-col h3 i { margin-right: 10px; }
.compare-col.bad h3 i { color: var(--color-red-light); }
.compare-col.good h3 i { color: #8BC34A; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { margin-bottom: 14px; padding-left: 30px; position: relative; font-size: 16px; line-height: 1.7; }
.compare-col li:last-child { margin-bottom: 0; }
.compare-col li i { position: absolute; left: 0; top: 3px; }
.compare-col.bad li i { color: var(--color-red-light); }
.compare-col.good li { color: #e0e0e0; }
.compare-col.good li i { color: #8BC34A; }
.wrapper-steps { justify-content: space-between; }
.single-step {
    width: calc(25% - 15px); background: var(--color-white);
    padding: 30px 25px; box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
.step-top { justify-content: space-between; align-items: center; margin-bottom: 18px; }
.step-num { font-size: 44px; font-weight: 700; color: var(--color-red-light); line-height: 1; }
.step-time { background: var(--color-gray-light); color: var(--color-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; }
.single-step h3 { font-size: 19px; margin-bottom: 10px; font-weight: 600; }
.single-step p { font-size: 15px; line-height: 1.7; margin: 0; color: #727272; }
.wrapper-cases {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}
.wrapper-cases::-webkit-scrollbar { height: 6px; }
.wrapper-cases::-webkit-scrollbar-track { background: #3d3d3d; border-radius: 3px; }
.wrapper-cases::-webkit-scrollbar-thumb { background: var(--color-red-light); border-radius: 3px; }
.single-case {
    flex: 0 0 360px; width: 360px;
    scroll-snap-align: start;
    background: #2b2b2b; box-sizing: border-box;
    border-top: 4px solid var(--color-red-light);
    overflow: hidden; display: flex; flex-direction: column;
}
.case-img { height: 220px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.single-case:hover .case-img img { transform: scale(1.07); }
.case-body { padding: 28px 30px 32px; }
.case-head { margin-bottom: 16px; }
.case-head h3 { color: var(--color-white); font-size: 23px; margin: 0 0 6px; font-weight: 600; }
.case-tag {
    display: inline-block; background: rgba(244,67,54,.15); color: var(--color-red-light);
    font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
}
.case-problem { color: #bdbdbd; font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.case-facts { list-style: none; margin: 0; padding: 0; }
.case-facts li { justify-content: space-between; gap: 15px; border-bottom: 1px solid #3d3d3d; padding: 12px 0; font-size: 15px; color: #bdbdbd; line-height: 1.7; }
.case-facts li b { color: var(--color-white); }
.case-facts li b.case-pay { color: #8BC34A; font-size: 18px; }
@media all and (min-width: 1100px) {
    .single-case { flex: 0 0 420px; width: 420px; }
}
@media all and (max-width: 1020px) {
    .single-step { width: calc(50% - 15px); margin-bottom: 20px; }
}
@media all and (max-width: 850px) {
    .compare-col { width: 100%; margin-bottom: 20px; }
}
@media all and (max-width: 700px) {
    .single-step { width: 100%; }
    .single-case { flex: 0 0 300px; width: 300px; }
    .price-formula { gap: 6px; }
    .pf-item { font-size: 22px; }
    .pf-eq { font-size: 26px; }
}

/* ===== 6. guarantees, faq, cta ===== */
.wrapper-guarantees { justify-content: space-between; }
.single-guarantee {
    width: calc(33.333% - 14px); box-sizing: border-box;
    background: var(--color-white); border: 1px solid #e8e8e8;
    border-top: 4px solid var(--color-red-light);
    padding: 35px 30px; box-shadow: 0 3px 12px rgba(0,0,0,.06);
}
.single-guarantee i { font-size: 42px; color: var(--color-red-light); margin-bottom: 20px; }
.single-guarantee h3 { font-size: 19px; margin-bottom: 12px; line-height: 1.35; font-weight: 600; }
.single-guarantee p { font-size: 15px; line-height: 1.7; margin: 0; color: #727272; }
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-wrap h2 { text-align: center; }
.faq-item { background: var(--color-white); margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer;
    justify-content: space-between; align-items: center;
    padding: 20px 25px; text-align: left;
    font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600;
    color: var(--color-dark);
}
.faq-q i { color: var(--color-red-light); transition: transform .3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 25px 22px; }
.faq-a p { font-size: 16px; line-height: 1.7; margin: 0; color: var(--color-gray-dark); }
.section-cta { background-color: var(--color-dark); text-align: center; }
.cta-wrap h2 { color: var(--color-white); font-size: 45px; margin-bottom: 12px; font-weight: 600; }
.cta-wrap p { color: #bdbdbd; font-size: 18px; margin-bottom: 35px; }
.cta-btns { justify-content: center; }
@media all and (max-width: 1020px) {
    .single-guarantee { width: 100%; margin-bottom: 20px; }
}
@media all and (max-width: 700px) {
    .cta-wrap h2 { font-size: 32px; }
}

/* ===== 7. контакты, офис + карта, футер ===== */
.wrapper-contacts { justify-content: space-between; }
.single-contact {
    width: calc(25% - 15px); box-sizing: border-box;
    background: var(--color-white); padding: 35px 25px; text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}
.single-contact i { font-size: 36px; color: var(--color-red-light); margin-bottom: 16px; }
.single-contact h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.single-contact p { margin: 0; font-size: 16px; line-height: 1.5; }
.single-contact p a { color: var(--color-dark); font-weight: 600; }
.single-contact p a:hover { color: var(--color-red-light); }
.wrapper-office { justify-content: space-between; margin-top: 50px; }
.office-photo, .office-map {
    width: calc(50% - 15px); box-sizing: border-box;
    background: var(--color-white); overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.office-photo img { width: 100%; height: 340px; object-fit: cover; display: block; transition: transform .6s ease; }
.office-photo:hover img { transform: scale(1.05); }
.office-map iframe { width: 100%; height: 340px; border: 0; display: block; }
footer { background: var(--color-dark); padding: 30px 0; }
.footer-row { justify-content: space-between; align-items: center; }
#footer-logo { font-size: 22px; font-weight: 700; color: var(--color-white); text-transform: uppercase; }
#footer-logo span { color: var(--color-red-light); }
.footer-row > p { color: #9e9e9e; font-size: 13px; margin: 0; }
.footer-row > p a { color: #bdbdbd; text-decoration: underline; }
.footer-row > p a:hover { color: var(--color-red-light); }
.footer-social a { color: #bdbdbd; margin-left: 14px; font-size: 16px; }
.footer-social a:hover { color: var(--color-red-light); }
@media all and (max-width: 1020px) {
    .single-contact { width: calc(50% - 15px); margin-bottom: 20px; }
}
@media all and (max-width: 850px) {
    .office-photo, .office-map { width: 100%; margin-bottom: 20px; }
}
@media all and (max-width: 700px) {
    .single-contact { width: 100%; }
    .footer-row { flex-direction: column; gap: 12px; text-align: center; }
    .footer-social a { margin: 0 7px; }
}

/**************************************
ПАТЧ v14 — три окна контактов на всю ширину
***************************************/
.wrapper-office {
    display: flex; flex-wrap: wrap; gap: 20px;
    justify-content: flex-start; margin-top: 50px;
}
.wrapper-office .office-photo,
.wrapper-office .office-map {
    flex: 1 1 calc(33.333% - 14px); width: auto; min-width: 0;
    margin: 0; box-sizing: border-box;
}
.wrapper-office img, .wrapper-office iframe {
    width: 100%; height: 340px; display: block; border: 0; object-fit: cover;
}
@media all and (max-width: 850px) {
    .wrapper-office .office-photo,
    .wrapper-office .office-map { flex: 1 1 100%; }
}

/**************************************
ПАТЧ v15 — оплата сеткой 2x2
***************************************/
.hero-pay-title { color: #bdbdbd; font-size: 14px; margin: 0 0 10px; }
.hero-badges {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px; gap: 10px 30px; margin: 0 0 26px;
}
.hero-badges::before { content: none; }
.hero-badges li::after { content: none; }
@media all and (max-width: 700px) {
    .hero-badges { grid-template-columns: 1fr; gap: 8px; }
}

/**************************************
ПАТЧ v16 — расширенный FAQ с табами
***************************************/
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 25px; justify-content: center; }
.faq-tab {
    background: var(--color-white); border: 1px solid #e0e0e0; color: var(--color-dark);
    font-family: 'Oswald', Arial, sans-serif; font-size: 14px; font-weight: 600;
    padding: 9px 16px; border-radius: 3px; cursor: pointer; transition: all .25s ease;
    text-transform: none;
}
.faq-tab:hover { border-color: var(--color-red-light); color: var(--color-red-light); }
.faq-tab.active { background: var(--color-red-light); border-color: var(--color-red-light); color: #fff; }
.faq-group { display: none; }
.faq-group.active { display: block; }
.faq-wrap { max-width: 900px; }

/**************************************
ПАТЧ v17 — стрелка FAQ справа + зелёный "="
***************************************/
.faq-q { flex-wrap: nowrap; align-items: flex-start; }
.faq-q span { flex: 1 1 auto; }
.faq-q i { flex: 0 0 auto; margin-left: 15px; margin-top: 5px; }
.pf-eq { color: #8BC34A; }

/**************************************
ПАТЧ v18 — блок файлов в попапе
***************************************/
.popup-files { margin: 6px 0 12px; }
.popup-files-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; color: #bdbdbd; font-size: 15px;
    padding: 12px 14px; border: 1px dashed rgba(255,255,255,.25);
    border-radius: 3px; transition: border-color .25s ease;
}
.popup-files-label:hover { border-color: var(--color-red-light); }
.popup-files-hint { color: #9e9e9e; font-size: 13px; margin: 8px 0 0; line-height: 1.5; }
.popup-files-error { color: #F44336; font-size: 14px; margin: 8px 0 0; }
.popup-files-clear {
    background: transparent; border: 1px solid rgba(255,255,255,.25);
    color: #bdbdbd; border-radius: 3px; cursor: pointer;
    font-size: 13px; padding: 6px 12px; margin-top: 8px; transition: all .2s ease;
}
.popup-files-clear:hover { border-color: var(--color-red-light); color: #fff; }

/**************************************
ПАТЧ v19 — превью файлов и прогресс-бар
***************************************/
.popup-files-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.popup-files-preview:empty { margin-top: 0; }
.pf-prev-item {
    position: relative; width: 64px; height: 64px;
    border-radius: 3px; overflow: hidden;
    background: #2b2b2b; border: 1px solid rgba(255,255,255,.2);
}
.pf-prev-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-prev-ext {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: #bdbdbd; font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.pf-prev-del {
    position: absolute; top: 2px; right: 2px;
    width: 20px; height: 20px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,.65); color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer;
}
.pf-prev-del:hover { background: var(--color-red-light); }
.popup-upload-progress { margin: 12px 0 0; }
.popup-upload-bar {
    height: 8px; width: 0;
    background: var(--color-red-light); border-radius: 4px;
    transition: width .2s linear;
}
.popup-upload-percent { display: block; margin-top: 4px; font-size: 12px; color: #bdbdbd; }

/**************************************
ПАТЧ v20 — оверлей попапа (страховка)
***************************************/
#wrapper-popup {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(15,15,15,.85);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.popup-content {
    position: relative;
    width: 92%; max-width: 560px;
    margin: 5vh auto;
    background: #262626;
    padding: 40px 35px;
    box-sizing: border-box;
    box-shadow: 0 25px 70px rgba(0,0,0,.6);
}
#closepopup { position: absolute; top: 14px; right: 16px; color: #bdbdbd; font-size: 20px; }
#closepopup:hover { color: #fff; }
@media all and (max-width: 700px) {
    .popup-content { padding: 30px 20px; margin: 3vh auto; }
}
/**************************************
ПАТЧ v21 — центрирование попапа
***************************************/
#wrapper-popup {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999;
    background: rgba(15,15,15,.85);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#wrapper-popup .popup-content,
.popup-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 92% !important;
    max-width: 560px !important;
    margin: 5vh auto !important;
    box-sizing: border-box;
    background: #262626;
    padding: 40px 35px;
    box-shadow: 0 25px 70px rgba(0,0,0,.6);
}
@media all and (max-width: 700px) {
    #wrapper-popup .popup-content {
        padding: 30px 20px;
        margin: 3vh auto !important;
    }
}
/**************************************
*  Переключатель языка RU/UA
***************************************/
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.lang-current {
  color: #fff;
  opacity: 0.5;
}
.lang-divider {
  color: rgba(255,255,255,0.3);
}
.lang-link {
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.lang-link:hover {
  color: var(--color-red-light);
}

/* На мобильных переносим под меню и центрируем */
@media all and (max-width: 1020px) {
  .lang-switcher { 
    margin-left: 0; 
    margin-top: 15px; 
    justify-content: center; 
  }
  .hb-row { 
    flex-wrap: wrap; 
  }
}