/* Дополнения к вёрстке perevozo для RDsite Lite: ссылка-логотип, ошибки и галочка в формах, баннер cookie, хлебные крошки, страницы ошибок */
[hidden] { display: none !important; }
a.header__logo { color: inherit; text-decoration: none; display: inline-block; }

/* Формы заявки */
.mainform .form__error { margin: 4px 0 0; font-size: 13px; color: #fff000; text-align: left; min-height: 0; }
.mainform .form__error:empty { display: none; }
.mainform .field.is-invalid { border: 2px solid #ff0000; }
.mainform button.btn { border: 0; cursor: pointer; font-family: inherit; }
.mainform button.btn:disabled { opacity: .6; cursor: wait; }
.mainform .result:empty { display: none; }
.mainform .result { margin: 0 0 15px; }
.mainform__check { display: inline-flex; align-items: flex-start; gap: 6px; cursor: pointer; text-align: left; }
.mainform__check input { margin: 1px 0 0; flex-shrink: 0; }
.mainform__link .form__error { text-align: center; }
textarea.field, select.field { width: 100%; font-family: inherit; }

/* Подвал: копирайт и политика */
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); font-size: 13px; }
.footer__bottom a { color: #fff; text-decoration: underline; }

/* Текстовые страницы и ошибки */
.crumbs { font-size: 14px; margin-bottom: 20px; color: #777; }
.crumbs a { color: #608fbf; }
.privacy img { max-width: 100%; height: auto; }
.error-page { text-align: center; min-height: 60vh; }
.error-page__code { font-size: 96px; font-weight: 700; color: #ed1c24; margin: 20px 0 0; line-height: 1; }
.error-page .btn { margin-top: 20px; }

/* Баннер cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
    padding: 16px 20px; background: #fff; color: #333; box-shadow: 0 6px 24px rgba(0,0,0,.18); font: 14px/1.4 Arial, sans-serif; }
.cookie p { margin: 0; flex: 1 1 300px; }
.cookie a { color: #608fbf; }
.cookie__buttons { display: flex; gap: 8px; }
.cookie__button { border: 0; padding: 10px 16px; background: #ed1c24; color: #fff; cursor: pointer; font: inherit; text-transform: uppercase; font-size: 12px; }
.cookie__button--light { background: #eee; color: #333; }

/* ===== Правки по ТЗ 27.11.2026 ===== */

/* Кнопки «ВКонтакте» (без картинок) */
.vk-logo { display: inline-flex; align-items: center; background: #4a76a8; color: #fff; font: 700 22px/1 Arial, sans-serif; letter-spacing: -.3px; padding: 5px 9px 6px 6px; border-radius: 6px; text-transform: lowercase; }
.vk-logo b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 3px; background: #fff; color: #4a76a8; border-radius: 5px; font-size: 19px; text-transform: uppercase; }
.vk-button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; background: #fff; border: 2px solid #4a76a8; border-radius: 8px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.vk-button:hover { box-shadow: 0 4px 14px rgba(0,0,0,.25); transform: translateY(-1px); }
.vk-button__label { color: #4a76a8; font: 700 21px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: -.3px; }
.vk-button--footer { padding: 3px; margin-top: 18px; border-color: #fff; background: #4a76a8; box-shadow: 0 0 0 2px #4a76a8; }
.vk-button--footer .vk-logo { font-size: 30px; padding: 6px 12px 8px 8px; }
.vk-button--footer .vk-logo b { width: 32px; height: 32px; font-size: 25px; }

/* Первый экран: подпись приподнята, под ней кнопка портфолио */
.promo--portfolio .promo__text { bottom: 125px; }
.promo__portfolio { position: absolute; right: 0; bottom: 60px; width: 500px; text-align: center; z-index: 3; }
@media only screen and (max-width: 1460px) { .promo__portfolio { right: 20px; } }
@media only screen and (max-width: 1200px) { .promo--portfolio .promo__text { bottom: 140px; } .promo__portfolio { bottom: 78px; } }
@media only screen and (max-width: 992px) { .promo--portfolio .promo__text { bottom: 128px; } .promo__portfolio { width: 390px; bottom: 70px; } }
@media only screen and (max-width: 767px) {
  .promo--portfolio .promo__text { bottom: auto; }
  .promo__portfolio { position: static; width: auto; margin: -20px 0 25px; }
}
@media only screen and (max-width: 399px) { .vk-button__label { font-size: 17px; } .vk-logo { font-size: 18px; } }

/* «Почему у меня дешевле»: фото в круге с зелёной точкой «на связи» */
.benefits__icon--online { position: relative; flex-shrink: 0; }
.benefits__icon--online img { width: 140px; height: 140px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; display: block; }
.benefits__icon--online:after { content: ""; position: absolute; right: 6px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: #11a52a; border: 3px solid #fff; }
@media only screen and (max-width: 767px) { .benefits__icon--online img { width: 100px; height: 100px; } .benefits__icon--online:after { right: 2px; bottom: 4px; width: 18px; height: 18px; } }

/* Отзывы: белый фон (серый скос ведёт в «Видео отзывы»), точки под каруселью */
.reviews { background-color: #fff; padding-bottom: 60px; }
.reviews__carousel { position: relative; z-index: 2; }
.reviews__img a { display: block; }
.slick-dots { display: flex; justify-content: center; gap: 9px; list-style: none; margin: 35px 0 0; padding: 0; }
.slick-dots li { margin: 0; }
.slick-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #b5b5b5; font-size: 0; cursor: pointer; transition: background .2s; }
.slick-dots .slick-active button { background: #2b2d42; }

/* Видео отзывы */
.videos { position: relative; z-index: 2; background: #eee; padding: 70px 0 70px; overflow: hidden; }
.videos h3 { font: 400 36px/1.2 Arial, sans-serif; color: #000; text-align: center; margin: 0 0 50px; }
.videos__carousel { position: relative; }
.videos__carousel .slick-list { padding-top: 30px !important; padding-bottom: 30px !important; }
.videos__item { padding: 0 18px; outline: none; }
.videos__card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #ccc; cursor: pointer; aspect-ratio: 9 / 16; overflow: hidden;
  transform: scale(.82); transition: transform .4s ease, box-shadow .4s ease; }
.videos__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.videos__item.is-near .videos__card { transform: scale(.92); }
.videos__item.slick-center .videos__card { transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.videos__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.55); transition: background .2s, transform .2s; }
.videos__play:after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.videos__card:hover .videos__play, .videos__card:focus-visible .videos__play { background: #ed1c24; transform: scale(1.08); }
.videos .slick-dots { margin-top: 20px; }
@media only screen and (max-width: 767px) { .videos { padding: 45px 0; } .videos h3 { font-size: 26px; margin-bottom: 25px; } .videos__item { padding: 0 8px; } .videos__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .videos__play:after { left: 22px; top: 16px; border-width: 12px 0 12px 19px; } }

/* Плеер */
html.is-video-open { overflow: hidden; }
.video-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(20,18,18,.85); padding: 20px; }
.video-modal__box { position: relative; max-width: min(92vw, 520px); max-height: 92vh; }
.video-modal__player { display: block; max-width: 100%; max-height: 92vh; background: #000; }
.video-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.video-modal__close:before, .video-modal__close:after { content: ""; position: absolute; left: 4px; top: 20px; width: 36px; height: 4px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.video-modal__close:after { transform: rotate(-45deg); }

/* Подвал: ссылка на портфолио */
.footer__vk-link { display: block; width: max-content; max-width: 100%; word-break: break-all; text-decoration: underline; font-family: 'Roboto Slab', serif; }
.vk-button--footer { display: flex; width: max-content; }
.footer__item ul li a img { width: 50px; height: 50px; border-radius: 10px; }

/* Надпись после заявки — жёлтая, крупная, над кнопкой (как в макете) */
.mainform .result.is-success { color: #fff000; font: 900 26px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; margin: 0 -60px 18px; }
@media only screen and (max-width: 767px) { .mainform .result.is-success { font-size: 18px; margin: 0 0 15px; } }
@media only screen and (min-width: 1201px) { .promo__title { width: 660px; } }
@media only screen and (max-width: 767px) {
  .benefits__icon--online { width: 100px; height: 100px; margin-left: auto; margin-right: auto; }
  .benefits__icon--online img { width: 100px !important; height: 100px !important; max-width: none; }
  .footer__vk-link, .vk-button--footer { margin-left: auto; margin-right: auto; }
  .footer__item ul li { margin: 0 4px; }
  .footer__item ul li a img { width: 44px; height: 44px; }
}
.header__soc a { flex-shrink: 0; }
.header__soc a img { display: block; width: 50px; height: 50px; object-fit: contain; }
@media only screen and (max-width: 992px) { .header__soc a img { width: 40px; height: 40px; } }
@media only screen and (max-width: 424px) { .header__soc a { margin: 0 4px; } .header__soc a img { width: 34px; height: 34px; } }

/* ===== Страница 404 (в стиле первого экрана) ===== */
.notfound { position: relative; overflow: hidden; background: #fff; padding: 70px 0 150px; }
.notfound:after { content: ""; position: absolute; bottom: -90px; left: -10%; width: 120%; height: 160px; background: #eee; transform: rotate(2deg); }
.notfound__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.notfound__text { flex: 0 1 620px; background: rgba(242,242,242,.92); padding: 40px 45px 45px; text-align: center; }
.notfound__code { margin: 0; font: 700 150px/1 'Roboto Slab', serif; color: #ed1c24; letter-spacing: -4px; }
.notfound__code span { display: inline-block; color: #608fbf; animation: notfound-roll 6s ease-in-out infinite; }
@keyframes notfound-roll { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }
.notfound__title { margin: 10px 0 15px; font: 400 44px/1.15 'Roboto Slab', serif; color: #000; }
.notfound__lead { margin: 0 auto 30px; max-width: 470px; font: 300 18px/1.5 'Roboto Slab', serif; color: #333; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.notfound__actions .btn { color: #fff; text-decoration: none; }
.notfound__btn-light { background: #608fbf; }
.notfound__btn-light:hover { background: #4a76a8; }
.notfound__phone { margin: 25px 0 0; font: 300 18px/1.4 'Roboto Slab', serif; color: #555; }
.notfound__phone a { color: #000; font-weight: 700; white-space: nowrap; text-decoration: none; }
.notfound__phone a:hover { color: #ed1c24; }
.notfound__photo { flex: 0 1 560px; align-self: flex-end; }
.notfound__photo img { display: block; width: 100%; height: auto; }
@media only screen and (max-width: 992px) {
  .notfound { padding: 40px 0 110px; }
  .notfound__inner { flex-direction: column; }
  .notfound__text { flex-basis: auto; width: 100%; max-width: 620px; padding: 30px 20px 35px; }
  .notfound__photo { flex-basis: auto; width: 100%; max-width: 480px; align-self: center; }
}
@media only screen and (max-width: 480px) {
  .notfound__code { font-size: 104px; }
  .notfound__title { font-size: 30px; }
  .notfound__lead, .notfound__phone { font-size: 16px; }
  .notfound__actions .btn { width: 100%; }
}
.notfound__title { background: none; padding: 0; width: auto; }
.notfound__text { flex: 0 0 auto; width: 560px; }
.notfound__photo { flex: 1 1 0; max-width: 640px; min-width: 0; }
@media only screen and (max-width: 1200px) { .notfound__text { width: 480px; padding: 35px 30px 40px; } .notfound__code { font-size: 120px; } .notfound__title { font-size: 36px; } }
@media only screen and (max-width: 992px) { .notfound__text { width: 100%; } .notfound__photo { flex: 0 0 auto; width: 100%; } }

/* Галерея: кнопка «Показать ещё фото» с индикатором загрузки, плавное появление фото */
.gallery__more { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 300px; border: 0; cursor: pointer; font: inherit; text-transform: uppercase; color: #fff; }
.gallery__more-spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: gallery-spin .7s linear infinite; }
.gallery__more.is-loading { cursor: progress; background: #4d6c8b; }
.gallery__more.is-loading .gallery__more-spinner { display: inline-block; }
@keyframes gallery-spin { to { transform: rotate(360deg); } }
.gallery__img { transition: opacity .5s ease, transform .5s ease; }
.gallery__img.is-appearing { opacity: 0; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) { .gallery__more-spinner { animation-duration: 2s; } .gallery__img { transition: none; } }
@media only screen and (max-width: 480px) { .gallery__more { min-width: 0; width: calc(100% - 40px); } }
