/* ============================================================
   PREMIUM 3D DESIGN LAYER — Groupe Win
   Подключается ПОСЛЕ всех остальных стилей.
   Ничего в структуре HTML не меняет — только внешний слой.
   Палитра бренда: #dc0404 (red) / #1c3c5a (navy) / #020912 (ink) / #fff8f0 (cream)
   ============================================================ */

:root {
  --p3d-red: #dc0404;
  --p3d-red-hot: #ff3b3b;
  --p3d-red-deep: #8f0202;
  --p3d-navy: #1c3c5a;
  --p3d-navy-glow: #2e6da4;
  --p3d-ink: #020912;
  --p3d-cream: #fff8f0;
  --p3d-gold: #ffb347;
  --p3d-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ------------------------------------------------------------
   ГЛОБАЛЬНОЕ: скроллбар, выделение, фокус
   ------------------------------------------------------------ */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--p3d-red) #0a0f18;
}
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0f18; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--p3d-red-hot), var(--p3d-red-deep));
  border-radius: 8px;
  border: 2px solid #0a0f18;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff5b5b, var(--p3d-red));
}

::selection {
  background: var(--p3d-red);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--p3d-red-hot);
  outline-offset: 2px;
}

/* Плёночное зерно поверх всего сайта (дорогой «кино»-эффект) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Прогресс-бар чтения (создаётся из JS) */
.p3d-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
  background: linear-gradient(90deg, var(--p3d-red-deep), var(--p3d-red-hot), var(--p3d-gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 59, 59, .55);
}

/* ------------------------------------------------------------
   HEADER — стеклянная панель поверх видео
   ------------------------------------------------------------ */

header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 9, 18, .55), rgba(2, 9, 18, .12) 70%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}

.logo {
  background: linear-gradient(180deg, #ffffff 20%, #ffd9d9 55%, #ff9d9d 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
  text-shadow: none;
}

nav.mainmenu a span {
  background: linear-gradient(135deg, #ffffff, #ffe3e3);
  box-shadow: 0 6px 18px rgba(220, 4, 4, .35), inset 0 1px 0 #fff;
}

/* ------------------------------------------------------------
   HERO — кинематографичность: виньетка, луч света, глубина
   ------------------------------------------------------------ */

/* Медленный диагональный луч света поверх видео */
.parallax::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(255, 235, 220, .14) 45%,
      rgba(255, 255, 255, .22) 50%,
      rgba(255, 235, 220, .14) 55%,
      transparent 70%);
  mix-blend-mode: screen;
  animation: p3dBeam 13s var(--p3d-ease) infinite;
}

@keyframes p3dBeam {
  0%   { transform: translateX(-55%) skewX(-8deg); opacity: 0; }
  12%  { opacity: 1; }
  45%  { opacity: 1; }
  60%  { transform: translateX(55%) skewX(-8deg); opacity: 0; }
  100% { transform: translateX(55%) skewX(-8deg); opacity: 0; }
}

/* Виньетка + плавное перетекание hero в тёмную секцию About */
.parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 55%, rgba(2, 9, 18, .55) 100%),
    linear-gradient(to bottom, rgba(2, 9, 18, .35), transparent 22%, transparent 72%, var(--p3d-ink) 100%);
}

/* Канвас с частицами (создаётся из JS) */
.p3d-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Логотип: парение + тёплое свечение */
.parallax img#logos {
  animation: p3dLogoFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .75)) drop-shadow(0 0 34px rgba(220, 4, 4, .28));
  will-change: transform;
}

@keyframes p3dLogoFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 14px)); }
}

/* Текст печатной машинки: неоновая подсветка + курсор */
#typed-text {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .9),
    0 0 18px rgba(255, 120, 120, .45),
    0 0 42px rgba(220, 4, 4, .3);
}
#typed-text::after {
  content: "▌";
  color: var(--p3d-red-hot);
  animation: p3dCaret 1s steps(2) infinite;
  text-shadow: 0 0 10px var(--p3d-red-hot);
}
@keyframes p3dCaret { 50% { opacity: 0; } }

/* ------------------------------------------------------------
   КНОПКИ CTA — глянец, глубина, бегущий блик, пульс
   ------------------------------------------------------------ */

.cta-btn {
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ff2a2a 0%, var(--p3d-red) 45%, #a80303 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .35) inset,
    0 -2px 6px rgba(0, 0, 0, .35) inset,
    0 10px 24px rgba(220, 4, 4, .45),
    0 22px 48px rgba(220, 4, 4, .25),
    0 3px 8px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  animation: p3dBtnPulse 2.6s ease-in-out infinite;
}

/* Бегущий глянцевый блик */
.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-22deg);
  animation: p3dShine 3.4s var(--p3d-ease) infinite;
  pointer-events: none;
}

@keyframes p3dShine {
  0%       { left: -80%; }
  38%, 100% { left: 130%; }
}

@keyframes p3dBtnPulse {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .35) inset,
      0 -2px 6px rgba(0, 0, 0, .35) inset,
      0 10px 24px rgba(220, 4, 4, .45),
      0 22px 48px rgba(220, 4, 4, .25),
      0 3px 8px rgba(0, 0, 0, .35),
      0 0 0 0 rgba(255, 59, 59, .45);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .35) inset,
      0 -2px 6px rgba(0, 0, 0, .35) inset,
      0 10px 24px rgba(220, 4, 4, .55),
      0 22px 48px rgba(220, 4, 4, .3),
      0 3px 8px rgba(0, 0, 0, .35),
      0 0 0 12px rgba(255, 59, 59, 0);
  }
}

.cta-btn:hover {
  background: linear-gradient(180deg, #ff4444 0%, #ff0000 45%, #c00303 100%) !important;
}

/* ------------------------------------------------------------
   HIGGSFIELD-АССЕТЫ: 3D-текстура секций, чистый hero
   ------------------------------------------------------------ */

/* Деревья и трава из старого «полевого» видео не сочетаются
   с новым кинематографичным 3D-роликом — скрываем (декор, не контент) */
#tree-left,
#tree-right,
#grass {
  display: none !important;
}

/* Тёмные секции получают фирменную 3D-текстуру (сталь + сетка + красные лучи) */
#about,
.sec-contact {
  background-image:
    linear-gradient(180deg, rgba(2, 9, 18, .92), rgba(2, 9, 18, .82) 50%, rgba(2, 9, 18, .94)),
    url("premium/bg-3d-texture.png");
  background-size: auto, cover;
  background-position: center;
  background-attachment: scroll, fixed;
}

.sec-services {
  background-image:
    linear-gradient(180deg, rgba(16, 36, 56, .93), rgba(12, 28, 46, .9)),
    url("premium/bg-3d-texture.png");
  background-size: auto, cover;
  background-position: center;
  background-attachment: scroll, fixed;
}

@media (max-width: 900px) {
  #about,
  .sec-contact,
  .sec-services {
    background-attachment: scroll, scroll; /* fixed лагает на мобильных */
  }
}

/* 3D-рендеры услуг: тёмные квадраты кропим в круг, белую подложку убираем */
.service-img,
.service-img-right,
.service-img-left {
  object-fit: cover !important;
  background: #05070d !important;
  border: 3px solid #1a2333 !important;
}

/* ------------------------------------------------------------
   СЕКЦИИ — ambient-свечение («дорогая» атмосфера)
   ------------------------------------------------------------ */

.sec {
  isolation: isolate;
  overflow: hidden;
}

/* Живая аура в About (тёмная секция) */
#about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 12% 15%, rgba(220, 4, 4, .14), transparent 70%),
    radial-gradient(50% 44% at 90% 80%, rgba(46, 109, 164, .16), transparent 70%),
    radial-gradient(34% 30% at 68% 6%, rgba(255, 179, 71, .06), transparent 70%);
  animation: p3dAurora 12s ease-in-out infinite alternate;
}

/* Аура в Services (синяя секция) */
.sec-services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 40% at 88% 10%, rgba(255, 90, 90, .12), transparent 70%),
    radial-gradient(52% 44% at 6% 88%, rgba(6, 20, 38, .5), transparent 72%),
    radial-gradient(32% 28% at 50% 50%, rgba(255, 255, 255, .04), transparent 70%);
  animation: p3dAurora 14s ease-in-out infinite alternate-reverse;
}

/* Аура в Contact (чёрная секция) */
.sec-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 42% at 15% 22%, rgba(220, 4, 4, .16), transparent 70%),
    radial-gradient(46% 38% at 88% 78%, rgba(46, 109, 164, .14), transparent 70%);
  animation: p3dAurora 13s ease-in-out infinite alternate;
}

@keyframes p3dAurora {
  0%   { opacity: .65; }
  100% { opacity: 1; }
}

/* ------------------------------------------------------------
   ЗАГОЛОВКИ СЕКЦИЙ — объём + фирменная линия
   ------------------------------------------------------------ */

.sec h2 {
  position: relative;
  z-index: 1;
  letter-spacing: .06em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .12),
    0 4px 14px rgba(0, 0, 0, .55),
    0 0 34px rgba(220, 4, 4, .25);
}

.sec h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin: 14px auto 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--p3d-red-hot), var(--p3d-gold), var(--p3d-red-hot), transparent);
  background-size: 220% 100%;
  box-shadow: 0 0 16px rgba(255, 59, 59, .55);
  animation: p3dLineFlow 3.2s linear infinite;
}

@keyframes p3dLineFlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

/* Фото в About — светящееся кольцо */
.about-img-right {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .06),
    0 0 0 8px rgba(220, 4, 4, .25),
    0 18px 44px rgba(0, 0, 0, .6),
    0 0 60px rgba(220, 4, 4, .18) !important;
}

/* ------------------------------------------------------------
   SERVICES — премиальные 3D-карточки с градиентной рамкой
   ------------------------------------------------------------ */

.services-flex,
.contact-flex {
  perspective: 1400px;
}

.service-block {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  background:
    linear-gradient(155deg, #ffffff 0%, var(--p3d-cream) 55%, #ffeede 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 24px 60px rgba(2, 9, 18, .45),
    0 8px 20px rgba(2, 9, 18, .3);
  transition: box-shadow .45s var(--p3d-ease);
  will-change: transform;
}

/* Градиентная рамка-ободок (маска оставляет только кольцо 2.5px) */
.service-block::before {
  content: "";
  position: absolute;
  inset: -2.5px;
  z-index: 1;
  pointer-events: none;
  border-radius: 30px;
  padding: 2.5px;
  background: linear-gradient(135deg,
      rgba(220, 4, 4, .85) 0%,
      rgba(255, 179, 71, .5) 22%,
      rgba(255, 255, 255, .15) 48%,
      rgba(46, 109, 164, .6) 78%,
      rgba(220, 4, 4, .75) 100%);
  background-size: 300% 300%;
  animation: p3dBorderFlow 9s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
}

@keyframes p3dBorderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Блик, следящий за курсором (координаты --px/--py задаёт JS) */
.service-block::after,
.contact-info::after,
.contact-map::after,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(320px circle at var(--px, 50%) var(--py, 50%),
      rgba(255, 255, 255, .35), transparent 65%);
  mix-blend-mode: soft-light;
}

.service-block:hover::after,
.contact-info:hover::after,
.contact-map:hover::after,
.contact-form:hover::after {
  opacity: 1;
}

.service-block:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 42px 90px rgba(2, 9, 18, .55),
    0 12px 28px rgba(2, 9, 18, .35),
    0 0 70px rgba(220, 4, 4, .22);
}

.service-block { border-radius: 28px; }

/* Фото услуг — глубже, с двойным кольцом */
.service-img {
  box-shadow:
    0 0 0 5px #fff,
    0 0 0 9px rgba(220, 4, 4, .35),
    0 20px 45px rgba(2, 9, 18, .45) !important;
}

/* Плашки характеристик — стеклянные */
.service-features li {
  background: linear-gradient(160deg, #fff6ec, #ffe7d2) !important;
  border: 1px solid rgba(220, 4, 4, .18);
  box-shadow:
    0 1px 0 #fff inset,
    0 6px 14px rgba(2, 9, 18, .12) !important;
  transition: transform .3s var(--p3d-ease), box-shadow .3s var(--p3d-ease);
}

.service-features li:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 #fff inset,
    0 12px 22px rgba(220, 4, 4, .22) !important;
}

/* ------------------------------------------------------------
   CONTACT — карточки-стёкла на чёрном
   ------------------------------------------------------------ */

.contact-info,
.contact-map,
.contact-form {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  background: linear-gradient(165deg, #ffffff 0%, #fff6ee 100%);
  border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 22px 55px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(220, 4, 4, .12),
    0 0 46px rgba(220, 4, 4, .10);
  transition: box-shadow .45s var(--p3d-ease), border-color .3s;
  will-change: transform;
}

.contact-info:hover,
.contact-map:hover,
.contact-form:hover {
  border-color: rgba(255, 100, 100, .6) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 36px 80px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(220, 4, 4, .3),
    0 0 70px rgba(220, 4, 4, .25);
}

/* Заголовки карточек с мини-линией */
.contact-info h3,
.contact-map h3,
.contact-form h3 {
  position: relative;
  padding-bottom: 8px;
}
.contact-info h3::after,
.contact-map h3::after,
.contact-form h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--p3d-red-hot), var(--p3d-gold));
  box-shadow: 0 0 10px rgba(255, 59, 59, .5);
}

/* Поля формы — глубже и мягче */
.contact-form input,
.contact-form textarea {
  border: 1.5px solid rgba(220, 4, 4, .35) !important;
  background: #fffdfa !important;
  box-shadow: inset 0 2px 6px rgba(2, 9, 18, .08);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--p3d-red) !important;
  box-shadow:
    inset 0 2px 6px rgba(2, 9, 18, .06),
    0 0 0 4px rgba(220, 4, 4, .15),
    0 6px 18px rgba(220, 4, 4, .18);
  transform: translateY(-1px);
}

/* Кнопка Send — как CTA */
.contact-form button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ff2a2a, var(--p3d-red) 50%, #a80303) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 8px 20px rgba(220, 4, 4, .35) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  transition: transform .25s var(--p3d-ease), box-shadow .25s;
}
.contact-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-22deg);
  transition: left .55s var(--p3d-ease);
  pointer-events: none;
}
.contact-form button:hover::before { left: 130%; }
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 14px 30px rgba(220, 4, 4, .5) !important;
}

.contact-map iframe {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(220, 4, 4, .15) !important;
}

/* ------------------------------------------------------------
   МОДАЛКА PRICES — стекло + фирменная шапка
   ------------------------------------------------------------ */

.modal {
  background: rgba(2, 9, 18, .7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 40px 90px rgba(0, 0, 0, .6),
    0 0 80px rgba(220, 4, 4, .18) !important;
  animation: p3dModalIn .45s var(--p3d-ease);
}

@keyframes p3dModalIn {
  from { opacity: 0; transform: translateY(46px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

#pricesModal h2 {
  color: var(--p3d-red);
  letter-spacing: .05em;
}
#pricesModal h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--p3d-red-hot), var(--p3d-gold));
}

#pricesModal th {
  background: linear-gradient(180deg, var(--p3d-red), #a80303) !important;
  color: #fff !important;
  border-bottom: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
#pricesModal th:first-child { border-radius: 10px 0 0 10px; }
#pricesModal th:last-child  { border-radius: 0 10px 10px 0; }

#pricesModal tbody tr {
  transition: background .2s, transform .2s;
}
#pricesModal tbody tr:hover {
  background: #fff3ec;
}

#pricesModal .price-img-cell img {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(220, 4, 4, .4), 0 8px 18px rgba(2, 9, 18, .25);
  transition: transform .35s var(--p3d-ease), box-shadow .35s;
}
#pricesModal .price-img-cell img:hover {
  transform: scale(1.5) rotate(2deg);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--p3d-red), 0 16px 34px rgba(2, 9, 18, .45);
}

/* ------------------------------------------------------------
   МОДАЛКА QUOTE — перевод с чужого синего на фирменный красный
   ------------------------------------------------------------ */

.quote-modal {
  background: rgba(2, 9, 18, .7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quote-modal-content {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 40px 90px rgba(0, 0, 0, .6),
    0 0 80px rgba(220, 4, 4, .18) !important;
}

.quote-modal h2 {
  color: var(--p3d-red);
  letter-spacing: .04em;
}

.quote-form-btn {
  background: linear-gradient(180deg, #ff2a2a, var(--p3d-red) 50%, #a80303) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 8px 20px rgba(220, 4, 4, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  border-radius: 10px !important;
  transition: transform .25s var(--p3d-ease), box-shadow .25s;
}
.quote-form-btn:hover {
  background: linear-gradient(180deg, #ff4444, #ff0000 50%, #c00303) !important;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 14px 30px rgba(220, 4, 4, .5);
}

.quote-form-checkbox,
.quote-form-radio { accent-color: var(--p3d-red); }

.quote-form-accessories {
  background: #fff6ee !important;
  box-shadow: inset 0 1px 4px rgba(220, 4, 4, .08) !important;
}

.quote-form-input:focus,
.quote-form-select:focus {
  border-color: var(--p3d-red) !important;
  box-shadow: 0 0 0 4px rgba(220, 4, 4, .14);
  outline: none;
}

/* ------------------------------------------------------------
   FOOTER — светящаяся кромка
   ------------------------------------------------------------ */

.site-footer {
  position: relative;
  border-top: none !important;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--p3d-red-hot), var(--p3d-gold), var(--p3d-red-hot), transparent);
  background-size: 240% 100%;
  box-shadow: 0 0 14px rgba(255, 59, 59, .5);
  animation: p3dLineFlow 4s linear infinite;
}

/* ------------------------------------------------------------
   REVEAL-АНИМАЦИИ ПРИ СКРОЛЛЕ (классы вешает JS)
   ------------------------------------------------------------ */

.p3d-reveal {
  opacity: 0;
}

.p3d-in {
  animation: p3dRise .9s var(--p3d-ease) both;
  animation-delay: var(--p3d-delay, 0s);
}

@keyframes p3dRise {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(34px) rotateX(7deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   АДАПТИВ И ДОСТУПНОСТЬ
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .parallax::before { display: none; }         /* луч не нужен на малых экранах */
  body::after { display: none; }               /* зерно — экономим GPU телефона */
  .service-block::before { animation: none; }  /* статичная рамка */
}

@media (prefers-reduced-motion: reduce) {
  .parallax::before,
  .parallax img#logos,
  .cta-btn,
  .cta-btn::before,
  .sec h2::after,
  .site-footer::before,
  #about::before,
  .sec-services::before,
  .sec-contact::before,
  .service-block::before,
  #typed-text::after {
    animation: none !important;
  }
  .p3d-in { animation-duration: .01s !important; }
}
