/* Вёрстка повторяет сайт на Tilda (шрифт OpinionPro Light, красный #ba4343, сетка 1160px). */
@font-face {
  font-family: 'OpinionPro';
  src: url('/static/tilda/OpinionPro-Light.woff') format('woff');
  font-weight: 300 400;
  font-display: swap;
}

:root {
  --red: #ba4343;
  --red-dark: #a33a3a;
  --ink: #000;
  --muted: #777;
  --grey-bg: #f0f0f0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 300 16px/1.55 'OpinionPro', Arial, sans-serif; color: var(--ink); background: #fff; }
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- кнопки ---------- */
.t-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 45px; padding: 0 30px; border: 0; border-radius: 4px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s;
}
.t-btn:hover { background: var(--red-dark); }
.t-btn:focus-visible, .chip:focus-visible, a:focus-visible { outline: 2px solid rgba(186, 67, 67, .5); outline-offset: 2px; }
.t-btn[disabled] { opacity: .6; cursor: wait; }
.t-btn--lg { height: 50px; padding: 0 25px; font-size: 18px; font-weight: 400; border-radius: 0; }

/* ---------- шапка ---------- */
.hdr { position: relative; z-index: 20; background: #bfbfbf; }
.hdr--over { position: absolute; left: 0; right: 0; top: 0; background: rgba(0, 0, 0, .2); }
.hdr__in { max-width: 1140px; height: 90px; margin: 0 auto; display: flex; align-items: center; color: #fff; }
.hdr__logo img { width: 196px; height: auto; margin-left: -8px; }
.hdr__link { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 18px; white-space: nowrap; }
.hdr__link img { width: 34px; height: 34px; }
.hdr__link:hover span { text-decoration: underline; }
.hdr__phone { margin-left: 105px; font-size: 19px; font-weight: 600; }
.hdr__phone img { width: 38px; height: 38px; }
.hdr__link + .hdr__link { margin-left: 32px; }
.hdr__link + .hdr__link + .hdr__link { margin-left: 30px; }
.hdr__btn { margin-left: auto; width: 200px; height: 55px; border-radius: 3px; }

@media (max-width: 1180px) {
  .hdr__in { padding: 0 20px; }
  .hdr__phone { margin-left: 40px; }
  .hdr__link + .hdr__link { margin-left: 24px; }
}
@media (max-width: 980px) {
  .hdr__in { height: 75px; }
  .hdr__link { display: none; }
  .hdr__logo img { width: 140px; margin-left: -6px; }
  .hdr__btn { width: auto; height: 40px; padding: 0 22px; font-size: 14px; white-space: nowrap; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; background: #2a1d4f center / cover no-repeat; color: #fff; }
.hero::before, .bigform::before { content: ''; position: absolute; inset: 0; background: rgba(20, 0, 40, .3); }
.hero__in, .bigform__in { position: relative; }
.hero__in { max-width: 1140px; min-height: 610px; margin: 0 auto; padding: 175px 20px 0; text-align: center; }
.hero__title { margin: 0 auto 70px; max-width: 560px; font-size: 46px; line-height: 1.17; font-weight: 600; text-transform: uppercase; }
.hero__points { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: 28px; }
.hero__points li { width: 200px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.55; }
.hero__points img { width: auto; height: 58px; }
/* Три стрелки, как в Tilda: одна картинка 56px, сдвиг 32px по вертикали */
.hero__arrow { position: relative; display: inline-block; width: 56px; height: 119px; margin-top: 24px; }
.hero__arrow img { position: absolute; left: 0; top: 0; width: 56px; height: auto; animation: hero-arrow .8s linear infinite; }
.hero__arrow img:nth-child(2) { top: 32px; }
.hero__arrow img:nth-child(3) { top: 63px; }
/* как в Tilda: 0,4 с вниз на 6px, 0,4 с обратно, по кругу */
@keyframes hero-arrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__arrow img { animation: none; } }

@media (max-width: 980px) {
  .hero__in { min-height: 700px; padding-top: 180px; }
  .hero__title { font-size: 26px; margin-bottom: 40px; max-width: 320px; }
  .hero__points { flex-direction: column; align-items: center; gap: 22px; }
  .hero__points li { width: 250px; flex-direction: row; gap: 40px; text-align: center; }
  .hero__points li span { flex: 1; }
  .hero__points img { width: 58px; height: auto; }
  .hero__arrow { margin-top: 30px; }
}

/* ---------- каталог ---------- */
.catalog { padding: 90px 0; }
@media (max-width: 640px) {
  .hero__arrow { width: 47px; height: 99px; }
  .hero__arrow img { width: 47px; }
  .hero__arrow img:nth-child(2) { top: 26px; }
  .hero__arrow img:nth-child(3) { top: 52px; }
}

.grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 40px; }
.card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.card__img { display: block; width: 100%; height: 300px; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__title { margin: 25px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.card__title a { text-decoration: none; }
.card__price { margin-top: 14px; font-size: 17px; }
.card__descr { margin-top: 8px; font-size: 14px; }
.card__btn { margin-top: 22px; width: 135px; padding: 0; }
@media (max-width: 980px) {
  .catalog { padding: 60px 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; gap: 80px; }
  .card__img { height: auto; aspect-ratio: 1 / 1; }
  .card__btn { width: 100%; height: 50px; }
  .card__title, .card__price { font-size: 15px; }
  .card__descr { font-size: 14px; }
}

/* ---------- форма «Не нашли подходящий размер?» ---------- */
.bigform { position: relative; background: #2a1d4f center / cover no-repeat; color: #fff; padding: 50px 20px 70px; }
.bigform__in { max-width: 740px; margin: 0 auto; }
.bigform__title { margin: 0; text-align: center; font-size: 32px; font-weight: 600; text-transform: uppercase; }
.bigform__descr { margin: 20px 0 30px; text-align: center; font-size: 17px; }
.tform { display: flex; flex-direction: column; gap: 20px; }
.tform input:not([type=radio]):not([type=file]), .tform textarea {
  width: 100%; height: 40px; padding: 0 20px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font-size: 17px;
}
.tform textarea { height: 85px; padding: 10px 20px; resize: vertical; }
.tform ::placeholder { color: #777; }
.tform input:focus, .tform textarea:focus { outline: 2px solid rgba(186, 67, 67, .5); }
.tform__label { font-size: 17px; font-weight: 600; margin-bottom: -10px; }
.tform__radios { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tform__radios--col { flex-direction: column; gap: 10px; }
.tform__radios label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.tform__radios input { appearance: none; width: 20px; height: 20px; margin: 0; border: 2px solid currentColor; border-radius: 50%; opacity: .7; cursor: pointer; }
.tform__radios input:checked { opacity: 1; background: radial-gradient(currentColor 0 4px, transparent 5px); }
.tform__files { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.t-btn--file { height: 38px; padding: 0 20px; border-radius: 0; font-size: 19px; font-weight: 300; text-transform: none; letter-spacing: .02em; }
.tform__fnames { font-size: 14px; }
.tform__submit { text-align: center; }
.tform__submit .t-btn { width: 160px; }
.tform__done { padding: 30px; text-align: center; font-size: 18px; background: rgba(255, 255, 255, .92); color: #000; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__error { margin: 0; padding: 8px 12px; background: #fff; color: #b00; font-size: 15px; }
@media (max-width: 640px) {
  .bigform__title { font-size: 26px; }
}

/* ---------- подвал ---------- */
.ftr { background: #000; color: #fff; padding: 75px 20px 60px; }
.ftr__in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.ftr__h { font-size: 20px; font-weight: 600; text-transform: uppercase; margin-bottom: 14px; }
.ftr__v { font-size: 19px; color: #ccc; line-height: 1.6; }
.ftr__v a { color: inherit; text-decoration: none; }
.ftr__v a:hover { color: #fff; }
@media (max-width: 640px) { .ftr__in { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- виджет чата ---------- */
.chat { position: fixed; left: 20px; bottom: 20px; z-index: 60; }
@media (min-width: 1200px) { .chat { left: calc(50% - 563px); } }
.chat__btn { width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--red); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.chat__btn:hover { background: var(--red-dark); }
.chat__list { position: absolute; left: 0; bottom: 72px; display: flex; flex-direction: column; gap: 10px; }
.chat__list[hidden] { display: none; }
.chat__i { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 23px; background: #fff; color: #000; text-decoration: none; font-size: 15px; box-shadow: 0 3px 12px rgba(0, 0, 0, .2); white-space: nowrap; }
.chat__i::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--red)); }
.chat__i--tg { --c: #2aa3df; } .chat__i--wa { --c: #27d061; } .chat__i--yt { --c: #ff0000; } .chat__i--ml { --c: #7d7d7d; } .chat__i--ph { --c: #0bab5f; }

/* ---------- страница товара ---------- */
.prod__top { max-width: 1366px; margin: 0 auto; padding: 15px 40px 0 40px; display: grid; grid-template-columns: 520px 1fr; gap: 60px; align-items: start; }
.pg__main { position: relative; height: 400px; }
.pg__img { display: block; height: 100%; cursor: zoom-in; }
.pg__img img { width: 100%; height: 100%; object-fit: contain; }
.pg__arrow { position: absolute; top: 50%; width: 64px; height: 64px; margin-top: -32px; border: 2px solid var(--red); border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--red); display: grid; place-items: center; cursor: pointer; }
.pg__arrow--prev { left: 20px; } .pg__arrow--next { right: 0; }
.pg__arrow svg { width: 14px; height: 26px; }
.pg__thumbs { margin-top: 14px; display: grid; grid-template-columns: repeat(8, 60px); gap: 5px; }
.pg__thumb { width: 60px; height: 60px; padding: 0; border: 2px solid transparent; background: #f4f4f4; cursor: pointer; overflow: hidden; }
.pg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg__thumb.is-active { border-color: #ccc; }
.prod__title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; }
.prod__sku { margin-top: 6px; font-size: 14px; color: var(--muted); }
.prod__price { margin: 18px 0 14px; font-size: 21px; font-weight: 600; }
.opt { margin-bottom: 25px; }
.opt__label { display: block; font-size: 14px; margin-bottom: 6px; }
.opt__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 5px 7px; border: 1px solid #ddd; background: #fff; font-size: 14px; line-height: 1.5; cursor: pointer; }
.chip.is-active { border-color: var(--red); box-shadow: 0 10px 15px -10px rgba(186, 67, 67, .7); }
.opt__select { min-width: 196px; height: 28px; padding: 0 30px 0 10px; border: 1px solid #ddd; border-radius: 3px; background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 10px center; font-size: 14px; appearance: none; cursor: pointer; }
.prod__order { margin-top: 5px; height: 45px; padding: 0 30px; border-radius: 5px; }
.prod__descr { margin-top: 35px; font-size: 14px; line-height: 1.55; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose a { color: #ff8562; }
.prose strong, .prose b { font-weight: 600; }
.prod__video { max-width: 960px; margin: 120px auto 0; padding: 0 20px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prod__details { max-width: 800px; margin: 120px auto 0; padding: 0 20px; font-size: 14px; line-height: 1.6; }
.prod__details .prose > p:first-child { text-align: center; }
.prod__details .prose > p:first-child strong { font-size: 22px; font-weight: 600; }
.prod__table { max-width: 1200px; margin: 60px auto 90px; padding: 0 20px; }
.specs__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.specs { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 18px; color: #333; }
.specs thead th { background: var(--red); color: #fff; font-weight: 400; height: 72px; padding: 0 15px; text-align: center; }
.specs th, .specs td { padding: 4px 15px; line-height: 1.6; text-align: center; border-bottom: 1px solid #999; }
.specs tbody th { text-align: left; font-weight: 300; padding-left: 20px; width: 35%; }
.specs tbody tr:nth-child(even) { background: #eee; }
.specs td.no { color: var(--red); }
.specs td.yes { color: #1a8c1a; }
.related { background: #fcf9f9; padding: 105px 0 90px; }
.related__in { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.related__up { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px; }
.related__title { margin: 0; font-size: 52px; line-height: 1.2; font-weight: 600; }
/* «Товары из категории»: карточки той же ширины, что в сетке на 4 колонки, но неполный ряд — по центру */
.grid--related { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--related .card { flex: 0 0 calc((100% - 3 * 40px) / 4); }
@media (max-width: 980px) { .grid--related .card { flex-basis: calc((100% - 40px) / 2); } }
@media (max-width: 640px) { .grid--related .card { flex-basis: 100%; } }
.grid--related .card__img { height: 220px; }
.grid--related .card__title { font-size: 15px; }
.grid--related .card__descr { font-size: 13px; }
.grid--related .card__price { font-size: 15px; margin-top: 10px; }

@media (max-width: 980px) {
  .prod__top { grid-template-columns: 1fr; gap: 30px; padding: 30px 20px 0; }
  .pg__main { height: auto; aspect-ratio: 1 / 1; max-height: 520px; }
  .pg__arrow { width: 30px; height: 30px; margin-top: -15px; border-width: 1px; }
  .pg__arrow svg { width: 8px; height: 14px; }
  .pg__arrow--prev { left: 0; }
  .pg__thumbs { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; }
  .pg__thumb { width: 100%; height: auto; aspect-ratio: 1; }
  .prod__title { font-size: 22px; }
  .prod__price { font-size: 17px; }
  .chip { font-size: 13px; }
  .prod__descr { font-size: 13px; }
  .specs { font-size: 15px; }
  .prod__video, .prod__details { margin-top: 60px; }
  .related { padding: 60px 0; }
  .related__title { font-size: 32px; }
}

/* ---------- служебные страницы ---------- */
.page404 { max-width: 760px; margin: 0 auto; padding: 100px 20px; text-align: center; min-height: 50vh; }
.page404 h1 { font-size: 32px; font-weight: 400; }
.page { max-width: 800px; margin: 0 auto; padding: 60px 20px 90px; }
.page .h1 { font-size: 32px; font-weight: 400; text-transform: uppercase; margin: 0 0 10px; }
.page .lead { color: var(--muted); margin: 0 0 30px; }
.tform--page { background: #f0eded; padding: 40px; }
.tform--page label:not(.chip) { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.tform--page fieldset { border: 0; margin: 0; padding: 0; }
.tform--page legend { font-size: 16px; margin-bottom: 8px; }
.tform--page .lead__h { font-size: 22px; font-weight: 400; text-transform: uppercase; margin: 10px 0 0; }
.tform--page .lead__note { font-size: 12px; color: var(--muted); margin: 0; }
.yform__frame { width: 100%; min-height: 560px; border: 0; display: block; }

/* ---------- модальное окно и лайтбокс ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .8); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 560px; background: #fff; padding: 40px; }
.modal__close { position: absolute; right: 8px; top: 4px; width: 44px; height: 44px; border: 0; background: none; font-size: 34px; line-height: 1; color: #777; cursor: pointer; }
.modal__title { margin: 0 30px 20px 0; font-size: 30px; font-weight: 600; text-transform: uppercase; text-align: center; }
.modal__summary { margin: 0 0 20px; padding: 10px 14px; border-left: 3px solid var(--red); background: #f5f5f5; font-size: 14px; }
.tform--modal input:not([type=radio]) { border-color: #000; }
.tform--modal .tform__radios label { font-size: 15px; }
.tform--modal .tform__label { font-size: 15px; }
.tform--modal .tform__submit .t-btn { width: 100%; height: 50px; font-size: 16px; }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 32px; cursor: pointer; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 16px; }
@media (max-width: 640px) {
  .modal__box { padding: 30px 20px; }
  .modal__title { font-size: 22px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- блок о компании на главной ---------- */
.about { padding: 70px 20px; background: #fff; }
.about__in { max-width: 860px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.6; }
.about__title { margin: 0 0 20px; font-size: 28px; font-weight: 600; text-transform: uppercase; }
.about p { margin: 0 0 12px; }
.about__links a { color: var(--red); }

/* ---------- тематические страницы ---------- */
.article { max-width: 900px; margin: 0 auto; padding: 60px 20px 90px; }
.article__title { margin: 0 0 30px; font-size: 36px; line-height: 1.2; font-weight: 600; text-transform: uppercase; }
.article__body { font-size: 17px; line-height: 1.65; }
.article__body h3 { margin: 40px 0 14px; font-size: 24px; font-weight: 600; }
.article__body .specs__scroll { margin: 20px 0 10px; }
.specs--models { font-size: 16px; }
.specs--models tbody th { width: auto; }
.specs--models a { color: inherit; }
.specs--models a:hover { color: var(--red); }
.faq { margin-top: 60px; }
.faq__title { margin: 0 0 20px; font-size: 28px; font-weight: 600; text-transform: uppercase; }
.faq__item { border-bottom: 1px solid #ddd; }
.faq__item summary { padding: 16px 30px 16px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--red); font-weight: 300; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.article__cta { margin-top: 50px; text-align: center; }
.prod__guide { margin-top: 20px; font-size: 14px; }
.prod__guide a { color: #ff8562; }
@media (max-width: 640px) {
  .about__title, .faq__title { font-size: 22px; }
  .article__title { font-size: 26px; }
  .article__body { font-size: 15px; }
  .specs--models { min-width: 520px; font-size: 14px; }
}
