/* Agreement download: override the desktop auto margin. */
.box--mb20 .contract__load {
  margin-left: 0 !important;
}

/* Agreement download: left-align the link on all screen sizes. */
.box--mb20 .contract__load {
  margin-left: 0;
}
/* Mobile masks: keep both text lines and arrow visible without overflow */
@media (max-width: 991px) {
    .toyama-home-test .mask > div {
        padding: 18px 20px 36px;
    }

    .toyama-home-test .mask p:first-child {
        margin-bottom: 4px;
        font-size: clamp(12px, 2vw, 14px);
        line-height: 1.15;
    }

    .toyama-home-test .mask p:nth-child(2) {
        display: flex;
        align-items: center;
        gap: clamp(6px, 1.2vw, 12px);
        font-size: clamp(10px, 1.7vw, 15px);
        line-height: 1.15;
    }

    .toyama-home-test .mask p:nth-child(2)::after {
        flex: 0 0 auto;
        width: clamp(16px, 2.4vw, 24px);
        height: clamp(16px, 2.4vw, 24px);
    }
}

@media (max-width: 767px) {
    .toyama-home-test .mask > div {
        padding: 10px 10px 20px;
    }

    .toyama-home-test .mask p:first-child {
        margin-bottom: 3px;
        font-size: 11px;
        line-height: 13px;
    }

    .toyama-home-test .mask p:nth-child(2) {
        gap: 6px;
        font-size: 9px;
        line-height: 12px;
    }

    .toyama-home-test .mask p:nth-child(2)::after {
        width: 16px;
        height: 16px;
    }
}
/**
 * Индивидуальные стили для сайта клиента, не для Теста. На Тесте остается пустым.
*/

.mb-0 {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .mb-0-768 {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .mb-100-u767 {
        margin-bottom: 100px;
    }
}


.card-flex {
    display: flex !important;
    flex-direction: column;
}
.card-flex .card__desc {
    flex-direction: column;
    display: flex;
    flex-grow: 1;
}

.card-flex .card__desc .card-row__buttons-wrap {
    margin-top: 15px;
    flex-grow: 1;
    align-items: flex-end;
    align-content: flex-end;
}

.bottom {
    border-top: none;
}

.modal__inner {
    padding: 30px !important;
}

.modal__inner .btn {
    margin-top: 30px !important;
    height: 60px !important;
}

.form-checkbox.agree_box label {
  font-size: 11px !important;
}

/* TOYAMA HOMEPAGE MIGRATION 2026 */
:root { --bg-dark: #000000; }

.toyama-car-search__form { position: static; width: 100%; margin: 0; padding: 32px; border-radius: 30px; background: var(--bg-box); }
.toyama-car-search__form .form-group { min-width: 0; }

.toyama-supply__wrap { padding: 60px; border-radius: 50px; background: var(--bg-box); }
.toyama-supply__content { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.toyama-supply__copy { font-size: 18px; line-height: 1.6; }
.toyama-telegram-card { min-height: 280px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 35px; border-radius: 30px; color: #fff; background: linear-gradient(135deg,rgba(0,0,0,.45),rgba(0,0,0,.9)),var(--toyama-supply-bg) center/cover; }
.toyama-telegram-card__title { margin: 0 0 10px; font-size: 26px; font-weight: 700; }
.toyama-telegram-card__count { margin-bottom: 24px; }.toyama-telegram-card__count strong { color: var(--secondary); }
.toyama-telegram-card__qr { width: 120px; height: 120px; border: 3px solid #fff; border-radius: 12px; background: #000; }

.toyama-feature__panel { position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: center; padding: 70px; overflow: hidden; border-radius: 50px; color: #fff; background: linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.2)),var(--toyama-feature-bg) right center/cover no-repeat; }
.toyama-feature__title { max-width: 760px; margin: 0 0 20px; font-size: clamp(34px,5vw,64px); line-height: 1.05; }.toyama-feature__title span { color: var(--secondary); }
.toyama-feature__text { max-width: 720px; font-size: 18px; line-height: 1.55; }.toyama-feature__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.toyama-professionals { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 50px; background: linear-gradient(122.77deg, #141416 0%, #0a0a0b 55%, #0a0a0b 100%); }
.toyama-professionals__content { padding: 70px; }.toyama-professionals__visual { position: relative; min-height: 520px; }.toyama-professionals__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.toyama-professionals__caption { position: absolute; right: 24px; bottom: 24px; display: flex; flex-direction: column; padding: 16px 20px; border-radius: 18px; background: rgba(0,0,0,.72); color: #fff; }

.toyama-reviews__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.toyama-review-card { position: relative; min-height: 280px; overflow: hidden; padding: 24px; border-radius: 24px; background: var(--bg-box); }
.toyama-review-card--image { color: #fff; background: linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,.72)),var(--toyama-review-bg) center/cover; }
.toyama-review-card__link { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.toyama-review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.toyama-review-card__site img { max-width: 90px; max-height: 30px; }.toyama-review-card__stars { color: #ffd700; letter-spacing: 2px; }
.toyama-review-card__text { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 9; }
.toyama-reviews__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }.toyama-reviews__buttons a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--border); border-radius: 30px; color: var(--font-dark); }.toyama-reviews__buttons img { width: 28px; height: 28px; }

.toyama-youtube__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }.toyama-youtube__description { max-width: 720px; font-size: 18px; line-height: 1.5; }
.toyama-news .m-blog__row { flex-wrap: wrap; }.toyama-news .preview { margin-bottom: 20px; }
.article figure { margin: 30px 0; }.article figure img { display: block; width: 100%; height: auto; border-radius: 24px; }

.toyama-footer { margin-top: 20px; color: #fff; }.toyama-footer__wrap { padding: 60px; border-radius: 50px 50px 0 0; background: #111115; }.toyama-footer__top,.toyama-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; }.toyama-footer__logo img { width: 260px; height: auto; }.toyama-footer__phone { display: flex; flex-direction: column; align-items: flex-end; color: #fff; }.toyama-footer__phone strong { font-size: 28px; }.toyama-footer__phone span,.toyama-footer__contacts span { color: #aeb3b3; font-size: 13px; }
.toyama-footer__divider { height: 1px; margin: 35px 0; background: rgba(255,255,255,.15); }.toyama-footer__grid { display: grid; grid-template-columns: 1.15fr .7fr .65fr 1fr; gap: 40px; }.toyama-footer__request h2 { margin: 0 0 22px; font-size: 26px; }.toyama-footer__request .form-group { margin-bottom: 12px; }.toyama-footer__request .btn { width: 100%; margin-top: 12px; }
.toyama-footer__nav,.toyama-footer__social,.toyama-footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }.toyama-footer a { color: #fff; }.toyama-footer__contacts>div { display: flex; flex-direction: column; gap: 4px; }.toyama-footer__contacts .btn { margin-top: 8px; }.toyama-footer__bottom { align-items: flex-start; font-size: 13px; color: #aeb3b3; }.toyama-footer__bottom>div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 24px; }.toyama-footer__bottom a { color: #aeb3b3; }
.toyama-youtube-float { position: fixed; z-index: 1000; left: 20px; bottom: 20px; display: flex; width: 52px; height: 52px; align-items: center; gap: 10px; overflow: hidden; padding: 11px; border-radius: 50px; background: #f00; color: #fff; box-shadow: 0 5px 20px rgba(0,0,0,.35); transition: width .35s; }.toyama-youtube-float:hover { width: 265px; }.toyama-youtube-float svg { width: 30px; min-width: 30px; fill: #fff; }.toyama-youtube-float span { white-space: nowrap; }

@media (max-width: 1199px) { .toyama-reviews__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.toyama-footer__grid { grid-template-columns: 1fr 1fr; }.toyama-professionals__content { padding: 50px; } }
@media (max-width: 767px) { .toyama-car-search__form,.toyama-supply__wrap,.toyama-feature__panel,.toyama-professionals__content,.toyama-footer__wrap { padding: 24px; border-radius: 24px; }.toyama-supply__content,.toyama-professionals { grid-template-columns: 1fr; }.toyama-telegram-card { min-height: 0; flex-direction: column; align-items: flex-start; }.toyama-professionals__visual { min-height: 360px; }.toyama-feature__panel { min-height: 430px; background-position: 65% center; }.toyama-reviews__grid,.toyama-footer__grid { grid-template-columns: 1fr; }.toyama-youtube__head,.toyama-footer__top,.toyama-footer__bottom { align-items: flex-start; flex-direction: column; }.toyama-footer__phone { align-items: flex-start; }.toyama-footer__bottom>div { justify-content: flex-start; }.toyama-youtube-float { display: none; } }

@media (max-width: 767px) {
    #banner .hero__footer {
        min-height: 0;
        padding: 0;
        aspect-ratio: 16 / 9;
    }
    #banner .hero__img .first-right__img,
    #banner .hero__img picture {
        display: block;
        width: 100%;
        height: 100%;
    }
    #banner .hero__img img {
        object-position: center center;
    }

    .toyama-news .m-blog__row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
        margin: 0 0 30px;
        padding: 0;
    }
    .toyama-news .m-blog__row > * {
        width: auto;
        min-width: 0;
    }
    .toyama-news .preview,
    .toyama-news .preview__img,
    .toyama-news .preview__img::before {
        width: 100%;
        margin-bottom: 0;
        border-radius: 18px;
    }
    .toyama-news .preview__content {
        height: 260px;
        padding: 14px;
    }
    .toyama-news .preview__label {
        padding: 6px 10px;
        font-size: 10px;
    }
    .toyama-news .preview__title {
        margin-bottom: 8px;
        overflow-wrap: anywhere;
        font-size: 11px;
        line-height: 1.35;
    }
    .toyama-news .preview__date {
        font-size: 10px;
    }
}

@media (max-width: 575px) {
    #advantages .advant__grid { grid-template-columns: minmax(0,1fr); }
    #advantages .advant__title,
    #advantages .advant__area { grid-area: auto !important; }
    #advantages .advant__item { min-height: 0; }
    #advantages .advant__desc { display: block; font-size: 14px; line-height: 1.45; }
}

/* Главная: блок «Аукционы Япония» скрыт по запросу клиента */
.toyama-home-test ~ .box:has(form.filter[action="/auktsiony/"]) {
  display: none;
}

/* Main page: source-authored inline styles moved here (2026-09-04). */
#full-cycle .toyama-feature__panel{position:relative;isolation:isolate;display:block;min-height:0;aspect-ratio:1525/460;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:28px;color:#fff;background:linear-gradient(122.77deg,#141416 0%,#0a0a0b 55%,#0a0a0b 100%)}
    #full-cycle .toyama-feature__panel::before,#full-cycle .toyama-feature__panel::after{content:"";position:absolute;z-index:-1;border:1px solid;border-radius:50%;pointer-events:none}
    #full-cycle .toyama-feature__panel::before{top:-84.78%;right:-35.41%;width:75.41%;aspect-ratio:1;border-color:rgba(255,255,255,.05)}
    #full-cycle .toyama-feature__panel::after{top:-56.3%;right:-27.54%;width:59.02%;aspect-ratio:1;border-color:rgba(234,42,38,.35)}
    #full-cycle .toyama-feature__visual{position:absolute;z-index:0;top:7.17%;left:33.44%;width:76.26%;height:92.61%;overflow:hidden;pointer-events:none}
    #full-cycle .toyama-feature__visual::before{content:"";position:absolute;z-index:1;top:1.64%;right:22.36%;width:29.24%;height:70.42%;pointer-events:none}
    #full-cycle .toyama-feature__visual img{position:absolute;z-index:2;top:-18.78%;left:3.44%;width:82.55%;height:126.76%;max-width:none;object-fit:fill}
    #full-cycle .toyama-feature__content{position:relative;z-index:2;display:flex;width:60%;height:100%;box-sizing:border-box;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(36px,4.2vw,64px)}
    #full-cycle .toyama-feature__title{margin:0 0 20px}
    #full-cycle .toyama-feature__title-main{color:#fff;white-space:nowrap}
    #full-cycle .toyama-feature__text{max-width:500px}
    #full-cycle .toyama-feature__buttons{position:relative;z-index:3}
    @media(max-width:1199px){#full-cycle .toyama-feature__panel{min-height:500px;aspect-ratio:auto}#full-cycle .toyama-feature__visual{top:0;right:-12%;bottom:0;left:auto;width:94%;height:100%}#full-cycle .toyama-feature__visual::after{content:"";position:absolute;z-index:3;inset:0;background:linear-gradient(90deg,#0b0b0d 0%,rgba(11,11,13,.92) 18%,rgba(11,11,13,0) 70%)}#full-cycle .toyama-feature__visual img{top:0;right:0;left:auto;width:auto;height:100%;object-fit:contain}#full-cycle .toyama-feature__content{width:68%;padding:48px}}
        @media(max-width:767px){#full-cycle .toyama-feature__panel{min-height:660px;border-radius:24px}#full-cycle .toyama-feature__visual{top:auto;right:0;bottom:0;left:0;width:100%;height:58%;overflow:visible}#full-cycle .toyama-feature__visual::after{background:linear-gradient(180deg,#0b0b0d 0%,rgba(11,11,13,.35) 35%,rgba(11,11,13,0) 72%)}#full-cycle .toyama-feature__visual img{top:auto;right:0;bottom:0;left:0;width:100%;height:auto;max-width:100%;object-fit:contain}#full-cycle .toyama-feature__content{width:100%;height:auto;justify-content:flex-start;padding:30px 24px}#full-cycle .toyama-feature__title-main{white-space:normal}#full-cycle .toyama-feature__text{max-width:100%}}
    @media(max-width:575px){#full-cycle .toyama-feature__panel{min-height:700px}#full-cycle .toyama-feature__buttons{width:100%}}

#supply .toyama-supply__content{display:grid;grid-template-columns:minmax(0,686fr) minmax(0,811fr);gap:28px;align-items:stretch}
  #supply .toyama-supply__copy,#supply .toyama-telegram-card{min-height:437px;box-sizing:border-box;border-radius:24px}
  #supply .toyama-supply__copy{display:flex;flex-direction:column;justify-content:center;padding:44px;border:1px solid rgba(234,42,38,.35);color:rgba(255,255,255,.62);line-height:1.3;background:#0a0a0b}
  #supply .toyama-supply__copy p{margin:0}
  #supply .toyama-supply__copy p+p{margin-top:28px}
  #supply .toyama-supply__lead span{color:var(--secondary,#ea2a26);font-weight:600}
  #supply .toyama-supply__copy hr{width:100%;height:1px;margin:18px 0;border:0;background:rgba(255,255,255,.12)}
  #supply .toyama-telegram-card{position:relative;isolation:isolate;display:block;overflow:hidden;padding:44px;color:#fff;background:#111113}
  #supply .toyama-telegram-card::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(14,14,16,.96) 0%,rgba(14,14,16,.42) 48%,rgba(14,14,16,.12) 100%),radial-gradient(circle at 25% 55%,rgba(234,42,38,.13),transparent 38%);pointer-events:none}
  #supply .toyama-telegram-card__background{position:absolute;z-index:-2;top:3.9%;left:-15.1%;width:138.7%;height:auto;max-width:none;pointer-events:none}
  #supply .toyama-telegram-card__content{position:relative;z-index:1;display:flex;height:100%;flex-direction:column;align-items:flex-start}
  #supply .toyama-telegram-card__title{margin:0 0 10px}
  #supply .toyama-telegram-card__count{margin:0 0 24px;color:rgba(255,255,255,.62)}
  #supply .toyama-telegram-card__count strong{color:var(--secondary,#ea2a26)}
  #supply .toyama-telegram-card .btn{min-width:164px}
  #supply .toyama-telegram-card__qr{position:absolute;right:22px;bottom:20px;width:150px;height:150px;box-sizing:border-box;padding:14px;border:0;border-radius:16px;background:#fff;box-shadow:0 16px 40px rgba(0,0,0,.35)}
  @media(max-width:1099px){#supply .toyama-supply__content{grid-template-columns:1fr}#supply .toyama-supply__copy,#supply .toyama-telegram-card{min-height:0}#supply .toyama-telegram-card{min-height:437px}}
  @media(max-width:767px){#supply .toyama-supply__content{gap:20px}#supply .toyama-supply__copy,#supply .toyama-telegram-card{padding:24px}#supply .toyama-telegram-card{min-height:420px}#supply .toyama-telegram-card__background{top:8%;left:-50%;width:190%}#supply .toyama-telegram-card__qr{right:20px;bottom:20px}}
  @media(max-width:479px){#supply .toyama-telegram-card{min-height:400px}#supply .toyama-telegram-card__background{top:18%;left:-70%;width:230%}#supply .toyama-telegram-card__qr{width:124px;height:124px;padding:11px}}

/* Review cards: image element replaces a per-record CSS custom property. */
.toyama-review-card--image {
  isolation: isolate;
  background: var(--bg-box);
}
.toyama-review-card__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.toyama-review-card--image::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,.72));
  pointer-events: none;
}
.toyama-review-card--image > :not(.toyama-review-card__background) {
  position: relative;
  z-index: 1;
}

/* Hero route: static percentages replace JS-generated style attributes. */
.toyama-home-test .mhero-points li:nth-child(1) { left: 2.4%; top: 10.769%; }
.toyama-home-test .mhero-points li:nth-child(2) { left: 25.148%; top: 52.736%; }
.toyama-home-test .mhero-points li:nth-child(3) { left: 50%; top: 68.462%; }
.toyama-home-test .mhero-points li:nth-child(4) { left: 74.852%; top: 52.736%; }
.toyama-home-test .mhero-points li:nth-child(5) { left: 97.6%; top: 10.769%; }

/* Mobile tabbar: flex distributes any number of links without generated CSS. */
.tabbar__menu { display: flex; }
.tabbar__link { flex: 1 1 0; width: auto; }
.tabbar__link .cls-1 { fill: #fff; }

/* Former static style attributes from the shared layout. */
.top-account__link .top-account__demo-label { color: var(--secondary); }
.toyama-footer .smart-captcha { height: 100px; }

/* Hide the VL.ru review image card on the home page. */
#reviews a[href*="vl.ru/toyama-auto-trade"]:has(img) { display: none !important; }
/* Hide the VL.ru review button on the home page. */
#reviews .toyama-reviews__buttons a[href*="vl.ru/toyama-auto-trade"] { display: none !important; }