﻿/* Custom styles for Kup-Sroch clean rebuild.
   Everything else comes from css/app.min.css */

[id] {
  scroll-margin-top: 70px;
}

body.lock {
  overflow: hidden;
}

/* --- WOW.js replacement (vanilla IntersectionObserver adds .animated) --- */
.wow {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.wow.animated {
  opacity: 1;
}
.wow.fadeInUp {
  transform: translateY(40px);
}
.wow.fadeInUp.animated {
  transform: translateY(0);
}
.wow.fadeInDown {
  transform: translateY(-40px);
}
.wow.fadeInDown.animated {
  transform: translateY(0);
}
.wow.fadeInLeft {
  transform: translateX(-40px);
}
.wow.fadeInLeft.animated {
  transform: translateX(0);
}
.wow.fadeInRight {
  transform: translateX(40px);
}
.wow.fadeInRight.animated {
  transform: translateX(0);
}

/* --- Phone lead forms (replacing Bitrix24 widgets) --- */
.phone-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.phone-form__btn {
  background: linear-gradient(0deg, #162bca, #4258ff);
  border: none;
  border-radius: 32px;
  box-shadow: 0 9px 16px #0a1557;
  color: #f0f0f0;
  cursor: pointer;
  font-family: mont-heavy, mont-bold, Arial, sans-serif;
  font-size: 16px;
  height: 67px;
  min-height: 56px;
  line-height: 1.4;
  text-transform: uppercase;
  transition: background 0.3s ease;
  width: 280px;
  max-width: 100%;
}
.phone-form__btn:hover {
  background: linear-gradient(0deg, #0e1340, #162bca);
}
.phone-form__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.phone-form-success {
  color: #2ecc71;
  font-family: mont-regular, Arial, sans-serif;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}
.phone-form-error {
  color: #ff6b6b;
  font-family: mont-regular, Arial, sans-serif;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}
.phone-form-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-family: mont-regular, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #b8bce0;
  cursor: pointer;
}
.phone-form-consent input {
  margin-top: 2px;
  flex-shrink: 0;
}
.phone-mask {
  text-align: center;
  max-width: 100%;
}
.phone-mask.input-error {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 1px #ff6b6b;
}

/* --- Table mobile scroll (prevents overflow at 390px) --- */
.table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}
.table__scroll .table__box {
  min-width: 640px;
}

/* --- Sell mobile button: replace &nbsp; spacers --- */
.sell__btn.js-to-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Hero cards as links to form: keep <a> look, button reset --- */
a.hero__card.js-to-form {
  text-decoration: none;
}
button.buy__btn {
  font-family: inherit;
  border: none;
}

/* --- Hide broken glow until replaced --- */
.hero__img.position-6.img-broken {
  display: none;
}
.hero__img.position-6 {
  pointer-events: none;
}
/* purple-glow.png заменён на прозрачный плейсхолдер 1x1:
   маджента-блок убран. Вернуть файл с нормальным свечением,
   когда дизайнер даст исходник. */

/* --- Broken "3" badge (3_.webp): скрыт до замены исходника --- */
img.position-17 {
  display: none !important;
}

/* --- prefers-reduced-motion: disable WOW transforms --- */
@media (prefers-reduced-motion: reduce) {
  .wow {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Mobile "callback" accordion (restored .closed-1 block) --- */
.hero__mobile-down {
  display: none;
}
.hero__mobile-down.open {
  display: block;
}
@font-face{font-family:mont-regular;src:url(../fonts/montserrat-full.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:mont-bold;src:url(../fonts/montserrat-full.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:mont-heavy;src:url(../fonts/montserrat-full.ttf) format("truetype");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:BebasNeueLight;src:url(../fonts/bebas-full.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}
/* NOTE: mont-*.woff2 и ofont.ru_bebasneue.ttf в репо битые (OTS ошибки),
   поэтому подключены проверенные ttf + font-display:swap.
   WOFF2 нужно переэкспортировать из исходников шрифтов. */
