/* =====================================================================
   Шрифт — Montserrat на всём сайте (решение 25.11.2026).
   У Gotham в теме было одно начертание (Book): жирные заголовки браузер
   утолщал сам. Имя «Gotham» из правил темы указывает на те же файлы
   Montserrat — правила темы не трогаем, жирный теперь настоящий.
   Этот файл подключается последним, поэтому его @font-face перебивают
   Gotham-Book из style.css.
   ===================================================================== */
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat/Montserrat-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat/Montserrat-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/Montserrat/Montserrat-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/Montserrat/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/Montserrat/Montserrat-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/Montserrat/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../assets/fonts/Montserrat/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
body, button, input, select, textarea { font-family: Montserrat, system-ui, sans-serif; }

/*
 * Слой доработок поверх CSS старой темы WP (подключается последним на всех
 * страницах). Файлы темы не трогаем — все исправления и улучшения здесь:
 * исправления вёрстки, состояния наведения, всплывающие окна, шапка при
 * прокрутке, анимации появления, блог и типографика статей.
 *
 * Анимации отключаются целиком при prefers-reduced-motion.
 */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-card: 0 18px 40px -18px rgba(17, 24, 39, 0.28);
  --shadow-blue: 0 12px 28px -10px rgba(18, 79, 220, 0.55);
  --header-h: 150px;
}

/* ───────────── 0. Общее ───────────── */

html {
  /* У темы фон страницы не задан: в браузерах с тёмной темой он темнел,
     а текст статей оставался тёмным */
  color-scheme: light;
  background-color: var(--white-color);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  /* Широкие картинки темы (фото «О компании», слайдеры) уходят за край —
     без горизонтальной прокрутки страницы. clip, а не hidden: не ломает sticky. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue-80);
  color: var(--white-color);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--blue-80);
  outline-offset: 3px;
}

/* В теме у нескольких переходов не указаны секунды («0.3») — они не работали */
.return-to-homepage a:link,
.return-to-homepage a:visited {
  transition: all 0.3s ease-out;
}

/* ───────────── 1. Шапка: фиксируется при прокрутке ───────────── */

header#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  pointer-events: none;
  transition:
    height 0.45s var(--ease-out),
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.45s var(--ease-out);
}

header#header .header-wrapper {
  pointer-events: auto;
  transition: top 0.45s var(--ease-out);
}

header#header .logo-link {
  transition: transform 0.45s var(--ease-out);
  transform-origin: left center;
}

header#header.is-scrolled {
  height: 80px;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

header#header.is-scrolled .header-wrapper {
  top: 15px;
}

header#header.is-scrolled .logo-link {
  transform: scale(0.9);
}

header#header.is-home.is-scrolled {
  background-color: rgba(30, 30, 30, 0.82);
}

header#header.is-inner.is-scrolled {
  background-color: rgba(255, 255, 255, 0.86);
}

/* Прячется при прокрутке вниз, возвращается при прокрутке вверх */
header#header.is-hidden {
  transform: translateY(-105%);
}

/* Открытое мобильное меню и всплывающие формы: шапка не мешает.
   backdrop-filter/transform создают свой контекст для position:fixed —
   с открытым меню их снимаем. */
header#header:has(.header-wrapper.show) {
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: transparent;
  box-shadow: none;
  height: 100vh;
}

body:has(.hero-form-container.active, .fence-form-container.active, .model-3d-container.popup-3d) header#header {
  opacity: 0;
  pointer-events: none;
}

/* Подчёркивание пунктов меню — вырастает слева направо */
.nav-link:after {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover:after,
.nav-link:focus-visible:after {
  transform: scaleX(1);
  transform-origin: left center;
}

.is-inner .nav-link:after {
  background-color: var(--dark-100);
}

.nav-icon-link {
  transition:
    transform 0.25s var(--ease-out),
    opacity 0.2s ease;
}

.nav-icon-link:hover {
  transform: translateY(-2px) scale(1.06);
}

/* Мобильное меню — плавное появление пунктов */
.header-wrapper.show::after {
  animation: menu-bg 0.4s var(--ease-out) both;
}

.header-wrapper.show .nav-links > *,
.header-wrapper.show .nav-icons {
  animation: rise 0.5s var(--ease-out) both;
}

.header-wrapper.show .nav-links > :nth-child(2) { animation-delay: 0.04s; }
.header-wrapper.show .nav-links > :nth-child(3) { animation-delay: 0.08s; }
.header-wrapper.show .nav-links > :nth-child(4) { animation-delay: 0.12s; }
.header-wrapper.show .nav-links > :nth-child(5) { animation-delay: 0.16s; }
.header-wrapper.show .nav-links > :nth-child(6) { animation-delay: 0.2s; }
.header-wrapper.show .nav-icons { animation-delay: 0.26s; }

@keyframes menu-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ───────────── 2. Первый экран ───────────── */

.section-hero::after {
  /* Мягкое затемнение снизу — заголовок читается на любом кадре видео */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-heading {
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: rise 1s var(--ease-out) 0.15s both;
}

.hero-button {
  animation: rise 1s var(--ease-out) 0.35s both;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

.hero-button:active {
  transform: translateY(0) scale(0.98);
}

.hero-content {
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.4s ease;
}

.hero-content.hide {
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
}

/* ───────────── 3. Всплывающие окна (заявка, 3D-модель) ───────────── */

.hero-form-container,
.fence-form-container {
  opacity: 0;
  visibility: hidden;
  border-radius: 20px;
  transform: translate(-50%, -46%) scale(0.96);
  box-shadow: 0 0 0 100vmax rgba(10, 12, 20, 0);
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--ease-out),
    box-shadow 0.4s ease,
    visibility 0s linear 0.5s;
}

.hero-form-container.active,
.fence-form-container.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 0 0 100vmax rgba(10, 12, 20, 0.62),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transition-delay: 0s;
}

.hero-form-heading svg,
.fence-form-heading svg,
.model-3d-container model-viewer svg {
  transition: transform 0.3s var(--ease-out);
}

.hero-form-heading svg:hover,
.fence-form-heading svg:hover,
.model-3d-container model-viewer svg:hover {
  transform: rotate(90deg);
}

.hero-form-input,
.footer-form form .input,
.inputs-grid input {
  transition: border-color 0.25s ease;
}

.hero-form-input:focus,
.footer-form form .input:focus,
.inputs-grid input:focus {
  border-bottom-color: var(--blue-80);
}

.model-3d-container.popup-3d {
  box-shadow:
    0 0 0 100vmax rgba(10, 12, 20, 0.62),
    0 30px 60px -20px rgba(0, 0, 0, 0.5);
  animation: pop 0.45s var(--ease-out) both;
}

@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Отправка заявки: кнопка подсказывает результат цветом */
form.is-sent input[type="submit"],
form.is-sent .button {
  background-color: #1f9d55 !important;
  color: var(--white-color) !important;
}

form.is-error input[type="submit"],
form.is-error .button {
  background-color: #c53030 !important;
  color: var(--white-color) !important;
}

form.is-sending input[type="submit"],
form.is-sending .button {
  opacity: 0.7;
  cursor: progress;
}

/* ───────────── 4. Главная: цифры, Instagram, карточки ───────────── */

.brief-info-column h3 {
  font-variant-numeric: tabular-nums;
}

/* Карточки заборов: ссылка-заголовок была синей и подчёркнутой */
.gitem {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.gitem:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.gitem-img-container {
  overflow: hidden;
}

.gitem-image {
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.gitem:hover .gitem-image {
  transform: scale(1.05);
}

.gitem-link3d {
  z-index: 1;
}

.gitem-description a {
  color: inherit;
  text-decoration: none;
}

.gitem-description h3 {
  transition: color 0.25s ease;
}

.gitem:hover .gitem-description h3 {
  color: var(--blue-80);
}

.advantage-item {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    background-color 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-6px);
  background-color: var(--white-color);
  box-shadow: var(--shadow-card);
}

.advantage-item img {
  transition: transform 0.5s var(--ease-out);
}

.advantage-item:hover img {
  transform: scale(1.08) rotate(-3deg);
}

/* Кнопки темы — общий «подъём» при наведении */
.button-whatsapp,
.install-text button,
.cta-form input[type="submit"],
.footer-form form .button,
.hero-form-button,
.item-button-on-hover {
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease !important;
}

.button-whatsapp:hover,
.install-text button:hover,
.cta-form input[type="submit"]:hover,
.footer-form form .button:hover,
.hero-form-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.button-whatsapp:active,
.cta-form input[type="submit"]:active,
.footer-form form .button:active,
.hero-form-button:active {
  transform: translateY(0) scale(0.98);
}

/* Цвета и материалы */
.column-item {
  overflow: hidden;
}

.column-item img {
  transition: transform 0.8s var(--ease-out);
}

.column-item:hover img {
  transform: scale(1.06);
}

/* Как заказать */
.order-card {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}

/* Видеоотзывы */
.video-cover {
  overflow: hidden;
}

/* Браузер не «утаскивает» картинку слайда вместо перелистывания */
.swiper img {
  -webkit-user-drag: none;
  user-select: none;
}

.video-cover img {
  transition: transform 0.9s var(--ease-out);
}

.video-cover:hover img {
  transform: scale(1.05);
}

.video-cover-text button {
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.swiper-pagination-bullet {
  transition:
    width 0.3s var(--ease-out),
    background-color 0.3s ease;
}

/* Подвал */
.footer-icon__to-the-top svg {
  transition: transform 0.35s var(--ease-out);
}

.footer-icon__to-the-top:hover svg {
  transform: translateY(-4px);
}

.footer-contacts a {
  transition: color 0.2s ease;
}

.footer-contacts a:hover {
  color: var(--white-color);
}

/* «Наши работы»: плитки фото */
.section-works img,
.works-gallery img {
  transition: transform 0.9s var(--ease-out), filter 0.4s ease;
}

/* ───────────── 5. FAQ ───────────── */

.faq-text-answer {
  transition:
    max-height 0.6s var(--ease-in-out),
    opacity 0.4s ease;
  opacity: 0;
}

.faq-item.open .faq-text-answer {
  opacity: 1;
}

.question-svg-container svg {
  transition: transform 0.45s var(--ease-out);
}

.faq-item {
  cursor: pointer;
}

.faq-item:hover .faq-text-question {
  color: var(--blue-80);
}

.faq-text-question {
  transition: color 0.2s ease;
}

/* ───────────── 6. Блог и статьи ───────────── */

.blog-head {
  margin-bottom: 48px;
}

.blog-head h1 {
  margin-bottom: 16px;
}

.blog-head p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--white-60);
  max-width: 640px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background-color: var(--white-80);
  border: 1px solid #ececec;
  color: var(--dark-100);
  text-decoration: none;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  background-color: var(--white-color);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.blog-card time {
  font-size: 14px;
  color: var(--white-60);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  color: var(--black-color);
  transition: color 0.25s ease;
}

.blog-card:hover h2 {
  color: var(--blue-80);
}

.blog-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--blue-80);
}

.blog-card .more span {
  transition: transform 0.35s var(--ease-out);
}

.blog-card:hover .more span {
  transform: translateX(6px);
}

.blog-pager {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 56px 0 24px;
  font-size: 16px;
}

.blog-pager a,
.blog-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--dark-100);
}

.blog-pager a {
  border: 1px solid #d9d9d9;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.blog-pager a:hover {
  background-color: var(--blue-80);
  border-color: var(--blue-80);
  color: var(--white-color);
}

.blog-pager .gap {
  color: var(--white-60);
  min-width: 24px;
  padding: 0;
}

.blog-pager .current {
  background-color: var(--dark-100);
  color: var(--white-color);
}

/* Текст статьи — разметка из WordPress, «подзаголовки» там жирными абзацами */
.article-body {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.7;
  color: #2b2b2b;
  padding-bottom: 80px;
}

.article-body h1 {
  line-height: 1.15;
  margin-bottom: 32px;
  text-wrap: balance;
}

.article-body h2,
.article-body h3,
.article-body p:has(> strong:only-child) {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black-color);
  margin: 40px 0 12px;
}

.article-body h3 {
  font-size: 21px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body p:empty {
  display: none;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.article-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-80);
}

.article-body ol {
  counter-reset: li;
}

.article-body ol li::before {
  counter-increment: li;
  content: counter(li) ".";
  position: absolute;
  left: 0;
  color: var(--blue-80);
  font-weight: 600;
}

.article-body a {
  color: var(--blue-80);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
  text-decoration-color: transparent;
}

.article-body img {
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

.article-body th,
.article-body td {
  border: 1px solid #e3e3e3;
  padding: 10px 14px;
  text-align: left;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0 0;
  padding: 32px;
  background-color: var(--dark-100);
  color: var(--white-color);
}

.article-cta h3 {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--white-color);
}

.article-cta p {
  margin: 0;
  color: #cfcfcf;
}

.article-cta a {
  display: inline-block;
  padding: 18px 30px;
  border-radius: 999px;
  background-color: var(--white-color);
  color: var(--dark-100);
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
}

.article-cta a:hover {
  background-color: var(--blue-80);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.rp4wp-related-posts {
  margin-top: 56px;
}

.rp4wp-related-posts h3 {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.rp4wp-related-posts ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

.rp4wp-related-posts li::before {
  display: none;
}

.rp4wp-related-posts li {
  padding: 0;
  margin: 0;
}

.rp4wp-related-post-content {
  height: 100%;
  padding: 24px;
  background-color: var(--white-80);
  border: 1px solid #ececec;
  font-size: 15px;
  line-height: 1.5;
  transition:
    box-shadow 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.rp4wp-related-post-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.rp4wp-related-post-content a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-decoration: none;
}

.rp4wp-related-post-content p {
  color: #555;
  margin: 0;
}

.not-found {
  min-height: 50vh;
  padding-bottom: 120px;
}

.not-found p {
  font-size: 20px;
  line-height: 1.6;
  margin-top: 20px;
}

.not-found .links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.not-found .links a {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background-color: var(--dark-100);
  color: var(--white-color);
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    transform 0.35s var(--ease-out);
}

.not-found .links a:hover {
  background-color: var(--blue-80);
  transform: translateY(-2px);
}

/* ───────────── 7. Анимация появления при прокрутке ───────────── */
/* Класс .rv ставит ThemeScripts только тем блокам, что ниже первого экрана,
   поэтому без JS и при первом показе ничего не прячется. */

.rv {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--rv-d, 0s);
}

.rv.rv-in {
  opacity: 1;
  transform: none;
}

/* После появления — вернуть собственные переходы элемента (наведение) */
.rv.rv-done {
  transition-delay: 0s;
}

.gitem.rv.rv-done,
.advantage-item.rv.rv-done,
.order-card.rv.rv-done,
.blog-card.rv.rv-done {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── 8. Планшеты (481–1240px) ───────────── */
/* В теме контейнер 1200px фиксированный — на ноутбуках и планшетах
   страница резалась справа. */
@media screen and (min-width: 481px) and (max-width: 1240px) {
  .container {
    width: auto;
    max-width: 1200px;
    margin-left: 32px;
    margin-right: 32px;
  }
}

/* Меню в строку не помещается уже на 1100px — там, как на телефоне, бургер.
   Правила повторяют мобильную шапку темы (queries.css, ≤480px). */
@media screen and (min-width: 481px) and (max-width: 1100px) {
  .nav-links,
  .nav-icons {
    display: none;
  }

  .mobile-icons {
    position: absolute;
    right: 0;
    display: block;
    height: 50px;
    width: 50px;
    cursor: pointer;
  }

  .mobile-icons svg {
    height: 100%;
    width: 100%;
  }

  .mobile-icon_close {
    display: none;
  }

  .header-wrapper.show {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    top: 0 !important;
    left: 0;
    height: 100vh;
    flex-direction: column;
    padding: 12% 0;
  }

  .header-wrapper.show::after {
    content: "";
    background-color: var(--dark-100);
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(1.5);
    z-index: -1;
  }

  .header-wrapper.show .nav-links {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .header-wrapper.show .nav-link,
  .header-wrapper.show .nav-link:link,
  .header-wrapper.show .nav-link:visited {
    font-size: 28px;
    text-transform: unset;
    color: var(--white-color);
  }

  .header-wrapper.show .nav-link:after {
    background-color: var(--white-color);
    height: 2px;
    top: 120%;
  }

  .header-wrapper.show .nav-icons {
    display: flex;
  }

  .header-wrapper.show .nav-icons svg > path {
    fill: var(--white-80);
  }

  .header-wrapper.show .mobile-icons {
    top: 12%;
  }

  .brief-info-column h3 {
    font-size: 30px;
  }
}

/* ───────────── 9. Телефоны ───────────── */

@media screen and (max-width: 980px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .rp4wp-related-posts ul {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --header-h: 120px;
  }

  html {
    scroll-padding-top: 80px;
  }

  header#header.is-scrolled {
    height: 72px;
  }

  header#header.is-scrolled .header-wrapper {
    top: 11px;
  }

  /* Полоса с цифрами: вместо бегущей строки, уезжавшей за экран, — столбик */
  .brief-info-container {
    animation: none;
    flex-direction: column;
    gap: 36px;
    padding: 56px 0;
  }

  .brief-info-column {
    width: 100%;
    min-width: 0;
  }

  .brief-info-column h3 {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .brief-info-column p {
    font-size: 17px;
    max-width: 260px;
    margin: 0 auto;
  }

  .brief-info-column + .brief-info-column {
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }


  /* «О компании»: между заголовком и фото был пустой экран */
  .about-img-container {
    height: auto;
    min-height: 0;
    margin-top: 24px;
  }

  .about-img-container img {
    position: static;
    display: block;
  }

  .blog-card {
    padding: 24px;
  }

  .blog-card h2 {
    font-size: 20px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-body h2,
  .article-body h3,
  .article-body p:has(> strong:only-child) {
    font-size: 20px;
    margin-top: 32px;
  }

  .article-cta {
    padding: 24px;
  }

  /* Наведение на телефоне не нужно — карточки не «прыгают» при касании */
  .gitem:hover,
  .advantage-item:hover,
  .order-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* Узкие телефоны (iPhone SE, 360–375px): контейнер темы 360px упирался в края */
@media screen and (max-width: 391px) {
  .container {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ───────────── 10. Без анимаций ───────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── 11. Формы заявок ───────────── */

/* Ловушка для ботов — человек её не видит */
.lead-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

form[data-lead] {
  position: relative;
}

form[data-lead] input[aria-invalid="true"] {
  border-bottom-color: #ff6b6b !important;
  box-shadow: 0 1px 0 0 #ff6b6b;
}

.lead-shake {
  animation: lead-shake 0.4s var(--ease-out);
}

@keyframes lead-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.lead-status {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #d6d6d6;
}

.lead-status:empty {
  min-height: 0;
  margin-top: 0;
}

.lead-status[data-kind="error"] {
  color: #ff9b9b;
}

.lead-status[data-kind="ok"] {
  color: #8ef0b0;
  animation: rise 0.45s var(--ease-out) both;
}

.lead-status a {
  color: var(--white-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

form[data-lead] input[type="submit"]:disabled {
  cursor: default;
}

/* У полей с подчёркиванием фокус — синее подчёркивание, без рамки */
form[data-lead] input:not([type="submit"]):focus-visible {
  outline: none;
  border-bottom-color: var(--blue-80);
}

/* ───────────── 12. «Наши работы» ───────────── */

/* page-works.css красил шапку клеткой — у фиксированной шапки это полоса */
header#header {
  background-image: none;
}

.works-head {
  margin-bottom: 40px;
}

.works-head h1 {
  margin-bottom: 14px;
  color: var(--black-color);
  font-size: 52px;
  font-weight: 600;
  text-transform: uppercase;
}

@media screen and (max-width: 480px) {
  .works-head h1 {
    font-size: 36px;
    font-weight: 400;
  }
}

.works-head p {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--white-60);
}

/* Колонки «кирпичиками»: фото разной формы без пустот */
.works-grid {
  columns: 3 280px;
  column-gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.works-tile {
  break-inside: avoid;
  margin-bottom: 20px;
}

.works-tile button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e9e9e9;
  overflow: hidden;
  cursor: zoom-in;
}

.works-tile img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 0.9s var(--ease-out),
    filter 0.5s ease;
}

.works-tile button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works-tile button:hover img,
.works-tile button:focus-visible img {
  transform: scale(1.04);
}

.works-tile button:hover::after,
.works-tile button:focus-visible::after {
  opacity: 1;
}

.works-tile__object {
  position: absolute;
  left: 16px;
  right: 64px;
  bottom: 14px;
  z-index: 1;
  color: var(--white-color);
  font-size: 15px;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-out);
}

.works-tile__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-100);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease-out);
}

.works-tile button:hover .works-tile__object,
.works-tile button:focus-visible .works-tile__object,
.works-tile button:hover .works-tile__zoom,
.works-tile button:focus-visible .works-tile__zoom {
  opacity: 1;
  transform: none;
}

/* На телефоне наведения нет — подпись объекта видна всегда */
@media (hover: none) {
  .works-tile button::after,
  .works-tile__object {
    opacity: 1;
    transform: none;
  }
}

/* ───────── просмотр фото ───────── */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(12, 13, 16, 0.96);
  color: var(--white-color);
  animation: lb-in 0.3s ease both;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 8px 28px;
}

.lb__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 15px;
  color: #bdbdbd;
}

.lb__info strong {
  color: var(--white-color);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 8px 88px;
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  animation: lb-photo 0.45s var(--ease-out) both;
}

.lb__img[data-dir="1"] {
  animation-name: lb-photo-next;
}

.lb__img[data-dir="-1"] {
  animation-name: lb-photo-prev;
}

@keyframes lb-photo {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lb-photo-next {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes lb-photo-prev {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}

.lb__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-color);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.3s var(--ease-out);
}

.lb__btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lb__close:hover {
  transform: rotate(90deg);
}

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lb__nav--prev { left: 20px; }
.lb__nav--next { right: 20px; }

.lb__nav:hover {
  background: var(--blue-80);
}

.lb__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb__nav--next:hover { transform: translateY(-50%) translateX(2px); }

.lb__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 20px;
}

.lb__obj {
  flex: none;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--white-color);
  font-family: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.lb__short {
  display: none;
}

.lb__obj:hover {
  background: var(--blue-80);
  border-color: var(--blue-80);
}

.lb__thumbs {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  justify-content: safe center;
}

.lb__thumbs::-webkit-scrollbar {
  display: none;
}

.lb__thumb {
  flex: none;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: #222;
  opacity: 0.45;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    outline-color 0.25s ease;
}

.lb__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb__thumb:hover,
.lb__thumb.is-group {
  opacity: 0.8;
}

.lb__thumb.is-active {
  opacity: 1;
  outline-color: var(--white-color);
}

@media screen and (max-width: 768px) {
  .lb__top {
    padding: 12px 12px 4px 16px;
  }

  .lb__stage {
    padding: 4px 0;
  }

  .lb__nav {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.35);
  }

  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }

  .lb__bottom {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 16px;
  }

  .lb__thumbs {
    order: -1;
    flex-basis: 100%;
  }

  .lb__thumb {
    width: 56px;
    height: 42px;
  }

  .lb__obj {
    padding: 10px 16px;
    font-size: 14px;
  }

  .lb__long {
    display: none;
  }

  .lb__short {
    display: inline;
  }
}

@media screen and (max-width: 480px) {
  .works-grid {
    columns: 2;
    column-gap: 10px;
  }

  .works-tile {
    margin-bottom: 10px;
  }

  .works-tile__zoom {
    display: none;
  }

  .works-tile__object {
    left: 10px;
    right: 10px;
    bottom: 8px;
    font-size: 12px;
  }
}

.lb :focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

/* ───────────── Лента Instagram (components/theme/InstagramFeed.tsx) ───────────── */

.ig {
  --ig-grad: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  padding: 110px max(24px, calc((100% - 1200px) / 2)) 120px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(18, 79, 220, 0.22), transparent 70%),
    var(--dark-80);
  color: var(--white-color);
  font-family: Gotham, Montserrat, system-ui, sans-serif;
}

.ig__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
}

.ig__avatar {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ig-grad);
  transition: transform 0.4s var(--ease-out);
}

.ig__avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(238, 42, 123, 0.5);
  animation: ig-ring 2.6s var(--ease-out) infinite;
}

@keyframes ig-ring {
  0% { transform: scale(0.92); opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}

.ig__avatar:hover { transform: scale(1.05) rotate(-3deg); }

.ig__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--dark-80);
  object-fit: cover;
  display: block;
}

.ig__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ig__name {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  text-transform: none;
}

.ig__name a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}

.ig__name a:hover { background-size: 100% 2px; }

.ig__bio {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.ig__follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ig-grad);
  background-size: 160% 160%;
  background-position: 0 50%;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(238, 42, 123, 0.7);
  transition:
    transform 0.35s var(--ease-out),
    background-position 0.6s ease,
    box-shadow 0.35s ease;
}

.ig__follow:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: 0 20px 36px -12px rgba(238, 42, 123, 0.85);
}

.ig__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ig__card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  color: #fff;
  text-align: left;
  isolation: isolate;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.ig__card img,
.ig__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease-out),
    opacity 0.4s ease;
}

.ig__preview { opacity: 0; }

.ig__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 30%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.ig__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ig__badge svg { width: 14px; height: 14px; }

.ig__text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.45s ease;
}

.ig__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.35s ease;
}

.ig__play svg { width: 22px; height: 22px; margin-left: 3px; }

@media (hover: hover) and (pointer: fine) {
  .ig__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .ig__card:hover img { transform: scale(1.06); }
  .ig__card:hover .ig__preview { opacity: 1; transform: scale(1.02); }
  .ig__card:hover .ig__shade { opacity: 1; }
  .ig__card:hover .ig__text { opacity: 1; transform: none; }
  .ig__card:hover .ig__play { opacity: 0; transform: scale(0.6); }
}

.ig__card:focus-visible { outline: 3px solid #ee2a7b; outline-offset: 3px; }

/* ── просмотр поста ── */

.igv {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  justify-items: center;
  padding: 28px 12px;
  background: rgba(8, 9, 12, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: #fff;
  font-family: Gotham, Montserrat, system-ui, sans-serif;
  animation: lb-in 0.3s ease both;
}

html.igv-open .chaty,
html.igv-open #chaty-widget-0 { display: none !important; }

.igv__card {
  --h: min(88vh, 860px);
  display: grid;
  grid-template-columns: auto 380px;
  height: var(--h);
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #121317;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: igv-pop 0.45s var(--ease-out) both;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.igv__card[data-dir="1"] { animation-name: igv-next; }
.igv__card[data-dir="-1"] { animation-name: igv-prev; }

@keyframes igv-pop { from { opacity: 0; transform: scale(0.94) translateY(16px); } }
@keyframes igv-next { from { opacity: 0; transform: translateX(60px); } }
@keyframes igv-prev { from { opacity: 0; transform: translateX(-60px); } }

.igv__media {
  position: relative;
  height: var(--h);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 144px - 380px);
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

.igv__card--album .igv__media,
.igv__card--photo .igv__media { aspect-ratio: 3 / 4; }

.igv__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease-out);
}

.igv__slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.igv__slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
}

.igv__embed {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.igv__player {
  position: relative;
  width: 100%;
  height: 100%;
}

.igv__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.igv__bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(1.3);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.igv__bigplay svg { width: 34px; height: 34px; margin-left: 5px; }

.igv__player.is-paused .igv__bigplay {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  cursor: pointer;
}

.igv__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  animation: igv-spin 0.8s linear infinite;
  transition: opacity 0.2s ease 0.25s;
}

.igv__player.is-waiting:not(.is-paused) .igv__spinner { opacity: 1; }

@keyframes igv-spin { to { transform: rotate(360deg); } }

.igv__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 36px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.igv__bar {
  order: 3;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 6px;
}

.igv__bar::before,
.igv__bar span {
  content: "";
  display: block;
  height: 3px;
  border-radius: 3px;
}

.igv__bar { position: relative; }

.igv__bar::before {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.3);
}

.igv__bar span {
  position: relative;
  width: 100%;
  background: #fff;
  transform-origin: 0 50%;
  transition: transform 0.25s linear;
}

.igv__bar:hover::before,
.igv__bar:hover span { height: 5px; }

.igv__iconbtn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.igv__iconbtn:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.06); }

.igv__snav {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}

.igv__snav:hover { transform: scale(1.1); }
.igv__snav:disabled { opacity: 0; pointer-events: none; }
.igv__snav--prev { left: 12px; }
.igv__snav--next { right: 12px; }

.igv__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.igv__dots span {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.35s var(--ease-out), background 0.3s ease;
}

.igv__dots span.is-active { width: 20px; background: #fff; }

.igv__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.igv__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.igv__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ig-grad, linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7));
}

.igv__author div { flex: 1; min-width: 0; display: grid; }

.igv__author div a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.igv__author div span { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

.igv__follow {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue-80);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.igv__follow:hover { background: var(--blue-100); transform: translateY(-1px); }

.igv__text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.igv__caption {
  margin: 0;
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.igv__caption a { color: #8fb1ff; text-decoration: none; }
.igv__caption a:hover { text-decoration: underline; }

.igv__more { display: none; }

.igv__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.igv__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.igv__open:hover { color: #f9a8d4 !important; }

.igv__count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.igv__nav,
.igv__close {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.3s var(--ease-out);
}

.igv__nav:hover,
.igv__close:hover { background: rgba(255, 255, 255, 0.22); }
.igv__nav--prev:hover { transform: translateX(-3px); }
.igv__nav--next:hover { transform: translateX(3px); }
.igv__close:hover { transform: rotate(90deg); }

.igv__close {
  position: absolute;
  top: 18px;
  right: 18px;
}

@media (max-width: 1100px) {
  .ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ig__tile:nth-child(n + 7) { display: none; }
  .igv__card { grid-template-columns: auto 320px; }
  .igv__media { max-width: calc(100vw - 144px - 320px); }
}

@media (max-width: 760px) {
  .ig { padding: 72px 16px 80px; }
  .ig__head {
    grid-template-columns: auto 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }
  .ig__avatar { width: 68px; height: 68px; }
  .ig__bio { font-size: 14px; }
  .ig__follow { grid-column: 1 / -1; justify-content: center; }
  .ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ig__tile:nth-child(n + 7) { display: list-item; }
  .ig__card { border-radius: 12px; }
  .ig__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }

  /* на телефоне — во весь экран, подпись снизу поверх */
  .igv { display: block; padding: 0; background: #000; }
  .igv__nav { display: none; }
  .igv__card {
    --h: 100dvh;
    display: block;
    position: relative;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .igv__media { width: 100%; max-width: none; aspect-ratio: auto !important; }
  .igv__player video { object-fit: cover; }
  .igv__side {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 30%);
    padding-top: 40px;
    pointer-events: none;
  }
  .igv__side > * { pointer-events: auto; }
  .igv__card--reel .igv__side { bottom: 64px; }
  .igv__card--embed .igv__side { display: none; }
  .igv__author { border: 0; padding: 0 16px 8px; }
  .igv__text {
    flex: none;
    max-height: 3.2em;
    padding: 0 16px;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
  }
  .igv__side.is-more .igv__text { max-height: 45vh; overflow-y: auto; }
  .igv__caption { font-size: 14px; line-height: 1.6; }
  .igv__more {
    display: block;
    align-self: flex-start;
    margin: 2px 16px 0;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
  }
  .igv__foot { border: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .igv__card--album .igv__dots,
  .igv__card--photo .igv__dots { bottom: auto; top: 18px; }
  .igv__snav { display: none; }
  .igv__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; background: rgba(0, 0, 0, 0.45); z-index: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ig__avatar::after { animation: none; }
  .igv__card,
  .igv__track,
  .ig__card,
  .ig__card img { animation: none !important; transition: none !important; }
}

/* ───────────── Перелинковка: крошки, ссылки в тексте, карточки заборов ───────────── */

.crumbs {
  margin: 0 0 28px;
  font-size: 14px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--white-60);
}

.crumbs li::before { display: none; }

.crumbs li + li::before {
  content: "/";
  display: inline;
  margin: 0 10px;
  color: #c4c4c4;
  position: static;
  width: auto;
  height: auto;
  background: none;
}

.crumbs a {
  color: var(--dark-100);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
}

.crumbs a:hover { color: var(--blue-80); background-size: 100% 1px; }

.crumbs [aria-current] {
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-body a.autolink {
  color: var(--blue-80);
  text-decoration: underline;
  text-decoration-color: rgba(18, 79, 220, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-body a.autolink:hover { text-decoration-color: currentColor; }

.fence-links { margin-top: 56px; }

.fence-links__head h3 {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fence-links__head p { margin: 0 0 20px; color: #666; }

.fence-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fence-links li { margin: 0; padding: 0; }
.fence-links li::before { display: none; }

.fence-link {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto 1fr auto;
  gap: 4px;
  padding: 14px 14px 18px;
  background: var(--white-color);
  border: 1px solid #ececec;
  border-radius: 14px;
  color: var(--dark-100) !important;
  text-decoration: none !important;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s ease;
}

.fence-link__img {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white-80);
}

.fence-link__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.fence-link__name { font-size: 18px; font-weight: 600; }
.fence-link__price { color: var(--blue-80); font-weight: 600; font-size: 15px; }

.fence-link__more {
  margin-top: 10px;
  font-size: 14px;
  color: var(--white-60);
  transition: color 0.2s ease;
}

.fence-link__more span { display: inline-block; transition: transform 0.3s var(--ease-out); }

.fence-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.fence-link:hover .fence-link__img img { transform: scale(1.06); }
.fence-link:hover .fence-link__more { color: var(--blue-80); }
.fence-link:hover .fence-link__more span { transform: translateX(4px); }

.fence-more {
  padding: 24px 0 110px;
  background: var(--white-color);
}

.fence-more .rp4wp-related-posts { margin-top: 64px; }
.fence-more__all { margin: 18px 0 0; }

.fence-more__all a {
  color: var(--blue-80);
  font-weight: 600;
  text-decoration: none;
}

.fence-more__all a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .fence-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fence-link { padding: 10px 10px 14px; }
  .fence-link__name { font-size: 15px; }
  .fence-link__price { font-size: 13px; }
  .crumbs { font-size: 13px; }
  .crumbs [aria-current] { max-width: 100%; white-space: normal; }
  .fence-more { padding-bottom: 72px; }
  .fence-more .container { padding: 0 16px; }
}

/* ───────────── Телефоны и планшеты: блоки главной (≤1100px) ─────────────
   Тема была свёрстана под 1440 и 390 px; на промежуточных ширинах
   (большие телефоны, планшеты, узкое окно) блоки разваливались. */

@media (max-width: 1100px) {
  /* «Процесс установки»: видны края соседних роликов, стрелки — по бокам
     слайдера, посередине по высоте (поверх краёв соседей) */
  .video-slide {
    width: min(82vw, 640px);
    max-width: none;
  }

  .slider-video {
    border-radius: 14px;
  }

  .slider-video video {
    display: block;
  }

  /* Подпись — в правый верхний угол: снизу панель плеера, слева вверху
     логотип в самом ролике */
  .video-slide h3 {
    top: 14px;
    right: 16px;
    bottom: auto;
    left: auto;
    text-align: right;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }

  .video-slide h3 span small {
    justify-content: flex-end;
    gap: 12px;
  }

  .swiper-btns {
    position: absolute;
    inset: 0;
    width: auto;
    transform: none;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
  }

  .swiper-btns .swiper-button-prev,
  .swiper-btns .swiper-button-next {
    position: static !important;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    opacity: 0.92;
    color: var(--blue-80);
    pointer-events: auto;
    box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
  }

  .swiper-btns .swiper-button-prev:active,
  .swiper-btns .swiper-button-next:active {
    transform: scale(0.92);
  }

  .swiper-btns .swiper-button-prev::after,
  .swiper-btns .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
  }

  /* «Цвета и материалы»: вместо сетки темы — ColorOptions (стили ниже) */
  .options-content { display: none; }

  /* «Преимущества»: две колонки вместо четырёх узких */
  .about-advantages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .advantage-item {
    width: auto;
    margin: 0;
    padding: 24px;
  }

  .advantage-item h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Карточки заборов: фото одной высоты (у файлов разные пропорции),
     название не налезает на стрелку */
  .gitem-img-container {
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }

  .gitem-image {
    display: block;
    height: 100%;
    object-fit: cover;
  }

  .gitem {
    display: flex;
    flex-direction: column;
  }

  .gitem-text-container { flex: 1; }
  /* Карточки заборов: название не налезает на стрелку */
  .gitem-text-container { gap: 12px; }
  .gitem-description { min-width: 0; }
  .gitem-link { flex: 0 0 auto; }

  /* Отзывы: карточка 9:16 у телефона, кнопка по центру, имя снизу */
  .video-gallery {
    height: auto;
    overflow: hidden;
  }

  .video-cover {
    aspect-ratio: 9 / 15;
    border-radius: 14px;
    overflow: hidden;
  }

  .video-cover img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .video-cover::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    pointer-events: none;
  }

  .video-cover-text {
    inset: 0;
    top: 0;
    left: 0;
    height: auto;
    transform: none;
    gap: 0;
    padding: 0 12px 16px;
    justify-content: flex-end;
  }

  /* Кнопка — круг со значком ▶; надпись остаётся для скринридеров */
  .video-cover-text button {
    position: relative;
    margin: auto;
    width: 68px;
    height: 68px;
    font-size: 0;
    color: transparent;
    background: rgba(255, 255, 255, 0.92);
  }

  .video-cover-text button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -11px 0 0 -7px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--blue-80);
  }

  .video-cover-text p {
    width: auto;
    max-width: 100%;
    padding: 7px 14px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
  }

  /* Плеер отзыва — в размер карточек, а не 600px */
  .video-player_section-feedback {
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    text-align: center;
  }

  .video-player_section-feedback video {
    height: 100%;
    width: auto;
    max-width: 100%;
    border-radius: 14px;
    background: #000;
  }

  .video-player_section-feedback svg {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }

  /* стрелки и точки — одной строкой под слайдером, ничего не накладывается */
  .section-feedback .container {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    row-gap: 26px;
    padding-bottom: 70px;
  }

  .section-feedback .feedback-heading,
  .section-feedback .video-gallery {
    grid-column: 1 / -1;
  }

  .section-feedback .swiper-pagination,
  .section-feedback .swiper-buttons {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
  }

  .section-feedback .swiper-pagination {
    grid-column: 2;
    grid-row: 3;
    text-align: center;
    width: auto !important;
  }

  .section-feedback .button-prev { grid-column: 1; grid-row: 3; }
  .section-feedback .button-next { grid-column: 3; grid-row: 3; justify-self: end; }
}

@media (max-width: 480px) {
  .video-slide { width: 86vw; }

  .video-slide h3 span { font-size: 12px; }
  .video-slide h3 span small { font-size: 22px; letter-spacing: 2px; }


  .about-advantages { gap: 10px; }
  .advantage-item { padding: 18px 16px; }
  .advantage-item h3 { font-size: 13px; }
  .advantage-item p { font-size: 13px; }

  .video-cover-text button { width: 58px; height: 58px; }
  .video-cover-text button::before { margin: -9px 0 0 -5px; border-width: 9px 0 9px 15px; }

  /* Подвал: меню в две ровные колонки, без наезда и обрезки */
  .footer-links {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    padding: 0;
  }

  .footer-links li { margin: 0; }

  .footer-links a,
  .footer-links .mobile-align-right {
    text-align: left;
    font-size: 15px;
    margin-bottom: 14px;
  }
}

/* ───────────── Блок дилеров на телефоне: «гармошка» ───────────── */

@media screen and (max-width: 980px) {
  .cta-description-heading-container,
  .cta-details-heading-container {
    gap: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .cta-description-heading-container h2 { flex: 1; }

  .cta-description-heading-svg,
  .cta-details-heading-svg {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    transition: transform 0.45s var(--ease-out);
  }

  .cta-description-heading-container:active .cta-description-heading-svg,
  .cta-details-heading-container:active .cta-details-heading-svg {
    scale: 0.92;
  }

  /* сворачивание без «половинки строки»: обрезаем, гасим, убираем отступ */
  .cta-heading-description,
  .cta-body-description {
    overflow: hidden;
    transition:
      max-height 0.5s var(--ease-in-out),
      opacity 0.35s ease,
      margin 0.5s var(--ease-in-out);
  }

  .cta-heading-description {
    margin-top: 24px;
  }

  .cta-heading-description.reveal1,
  .cta-body-description.reveal2 {
    opacity: 0;
    margin-top: 0;
  }

  .cta-body-description.reveal2 li { visibility: hidden; transition: visibility 0s 0.5s; }

  /* лишняя пустота над заголовком блока */
  .cta-heading > br { display: none; }
  .cta-heading { padding-top: 24px; margin-bottom: 40px; }
  .cta-body { gap: 32px; }
}

/* «О компании» на планшете: у темы отступ слева 300px и фото шириной
   1050px — текст зажимался в правую половину, слева пусто */
@media screen and (min-width: 481px) and (max-width: 980px) {
  .section-about-us .margin-left { margin-left: 0; }

  .section-about-us .about-img-container {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 32px 0 40px;
  }

  .section-about-us .about-img-container img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    scale: none;
  }
}

/* ───────────── Мобильное меню: всё по центру ───────────── */

@media screen and (max-width: 1100px) {
  .header-wrapper.show {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch; /* у темы space-between — прижимал сетку влево */
    justify-items: center;
    align-items: center;
    padding: 22px 24px calc(32px + env(safe-area-inset-bottom));
  }

  /* фон — тёмный с мягким синим свечением */
  .header-wrapper.show::after {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    left: 0;
    transform: none;
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(18, 79, 220, 0.35), transparent 60%),
      radial-gradient(90% 50% at 50% 100%, rgba(18, 79, 220, 0.18), transparent 70%),
      #1c1d21;
  }

  .header-wrapper.show .logo-link {
    grid-row: 1;
    justify-self: center;
  }

  .header-wrapper.show .mobile-icons {
    position: absolute;
    top: 22px;
    right: 20px;
    width: 44px;
    height: 44px;
    transition: transform 0.35s var(--ease-out);
  }

  .header-wrapper.show .mobile-icons:active { transform: rotate(90deg) scale(0.9); }

  /* пункты меню (на главной — список внутри обёртки, на внутренних — ссылки) */
  .header-wrapper.show > .nav-links,
  .header-wrapper.show ul.nav-links {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 3.2vh, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header-wrapper.show ul.nav-links li { margin: 0; padding: 0; }

  .header-wrapper.show .nav-link,
  .header-wrapper.show .nav-link:link,
  .header-wrapper.show .nav-link:visited {
    position: relative;
    display: inline-block;
    padding: 6px 4px;
    color: #fff;
    font-size: clamp(22px, 6.4vw, 30px);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: none;
  }

  .header-wrapper.show .nav-link:after {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform-origin: center;
  }

  .header-wrapper.show .nav-link:active { opacity: 0.6; }

  /* поочерёдное появление: на внутренних страницах ссылки — прямые дети */
  .header-wrapper.show > .nav-links > a,
  .header-wrapper.show ul.nav-links > li {
    animation: rise 0.55s var(--ease-out) both;
  }

  .header-wrapper.show > .nav-links > ul.nav-links { animation: none; }

  .header-wrapper.show > .nav-links > a:nth-child(1),
  .header-wrapper.show ul.nav-links > li:nth-child(1) { animation-delay: 0.05s; }
  .header-wrapper.show > .nav-links > a:nth-child(2),
  .header-wrapper.show ul.nav-links > li:nth-child(2) { animation-delay: 0.1s; }
  .header-wrapper.show > .nav-links > a:nth-child(3),
  .header-wrapper.show ul.nav-links > li:nth-child(3) { animation-delay: 0.15s; }
  .header-wrapper.show > .nav-links > a:nth-child(4),
  .header-wrapper.show ul.nav-links > li:nth-child(4) { animation-delay: 0.2s; }
  .header-wrapper.show > .nav-links > a:nth-child(5),
  .header-wrapper.show ul.nav-links > li:nth-child(5) { animation-delay: 0.25s; }
  .header-wrapper.show > .nav-links > a:nth-child(6),
  .header-wrapper.show ul.nav-links > li:nth-child(6) { animation-delay: 0.3s; }

  /* звонок и WhatsApp — кнопки с подписью, по центру внизу */
  .header-wrapper.show .nav-icons {
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    animation: rise 0.55s var(--ease-out) 0.38s both;
  }

  .header-wrapper.show .nav-icon-link {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 16px 3px 3px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
  }

  .header-wrapper.show .nav-icon-link:first-child::after { content: "Позвонить"; }
  .header-wrapper.show .nav-icon-link:last-child::after { content: "WhatsApp"; }

  .header-wrapper.show .nav-icon-link:last-child {
    background: #25d366;
    border-color: #25d366;
  }

  .header-wrapper.show .nav-icon-link:active { transform: scale(0.96); }

  .header-wrapper.show .nav-icon-link svg {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
  }

  /* у тёмных иконок внутренних страниц — белый рисунок, рамку круга прячем */
  .header-wrapper.show .nav-icons svg [fill="#2C2C2C"] { fill: #fff; }
  .header-wrapper.show .nav-icons svg [stroke="#2C2C2C"],
  .header-wrapper.show .nav-icons svg [stroke="white"],
  .header-wrapper.show .nav-icons svg [stroke="#fff"],
  .header-wrapper.show .nav-icons svg rect,
  .header-wrapper.show .nav-icons svg circle { stroke: transparent; }
}

body.menu-open { overflow: hidden; }

/* виджет чата в открытом меню перекрывал кнопки звонка и WhatsApp */
body.menu-open .chaty,
body.menu-open #chaty-widget-0 { display: none !important; }

/* ───────────── «Цвета и материалы» (ColorOptions.tsx) ─────────────
   На всех ширинах вместо сетки темы (девять полос без подписей). */

.options-content { display: none; }

@media all {
  .colors {
    display: block;
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 80px;
  }

  .colors__tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 5px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .colors__ink {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35);
    transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
  }

  .colors__tabs [role="tab"] {
    position: relative;
    z-index: 1;
    padding: 12px 6px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .colors__tabs [aria-selected="true"] { color: var(--blue-80); }

  .colors__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .colors__grid li {
    margin: 0;
    padding: 0;
    animation: rise 0.5s var(--ease-out) both;
  }

  .colors__grid li::before { display: none; }

  /* третий образец — во всю ширину: ряд не остаётся «с дыркой» */
  .colors__grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .colors__grid li:last-child:nth-child(odd) .colors__img { aspect-ratio: 16 / 7; }

  .colors__swatch {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .colors__img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 0.35s var(--ease-out);
  }

  .colors__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
  }

  .colors__swatch:active .colors__img { transform: scale(0.97); }

  .colors__name {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
  }

  .colors__code {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
  }

  /* просмотр образца */
  .colors-view {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(8, 10, 16, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: menu-bg 0.3s ease both;
  }

  .colors-view[hidden] { display: none; }

  .colors-view__card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 100dvh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    background: #fff;
    color: var(--dark-100);
    animation: sheet-up 0.5s var(--ease-out) both;
  }

  @keyframes sheet-up {
    from { transform: translateY(40px); opacity: 0; }
  }

  .colors-view__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .colors-view__media {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 52dvh;
    overflow: hidden;
    background: #111;
    touch-action: pan-y;
  }

  .colors-view__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: menu-bg 0.35s ease both;
  }

  .colors-view__media img[data-dir="1"] { animation: igv-next 0.4s var(--ease-out) both; }
  .colors-view__media img[data-dir="-1"] { animation: igv-prev 0.4s var(--ease-out) both; }

  .colors-view__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--blue-80);
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  }

  .colors-view__nav--prev { left: 12px; }
  .colors-view__nav--next { right: 12px; }

  .colors-view__body {
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  }

  .colors-view__group {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-80);
  }

  .colors-view__name {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    text-transform: none;
  }

  .colors-view__name span { color: var(--white-60); font-weight: 400; }

  .colors-view__lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
  }

  .colors-view__form {
    display: grid;
    gap: 10px;
  }

  .colors-view__form input[type="text"],
  .colors-view__form input[type="tel"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: var(--white-80);
    font-family: inherit;
    font-size: 16px; /* меньше 16px — iOS увеличивает страницу при вводе */
    color: var(--dark-100);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .colors-view__form input:focus {
    outline: none;
    border-color: var(--blue-80);
    box-shadow: 0 0 0 3px rgba(18, 79, 220, 0.15);
  }

  .colors-view__form input[aria-invalid="true"] { border-color: #e5484d; }

  .colors-view__form input[type="submit"] {
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--blue-80);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--shadow-blue);
    transition: transform 0.2s var(--ease-out), background 0.2s ease;
  }

  .colors-view__form input[type="submit"]:active { transform: scale(0.98); }
}

@media (min-width: 600px) {
  .colors-view { align-items: center; padding: 24px; }
  .colors-view__card { border-radius: 24px; }
  .colors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colors__grid li:last-child:nth-child(odd) { grid-column: auto; }
  .colors__grid li:last-child:nth-child(odd) .colors__img { aspect-ratio: 1 / 1; }
}

/* сообщения формы на белой карточке просмотра цвета */
.colors-view__form .lead-status { margin-top: 4px; text-align: center; color: #555; }
.colors-view__form .lead-status[data-kind="error"] { color: #d93036; }
.colors-view__form .lead-status[data-kind="ok"] { color: #13804a; }
.colors-view__form .lead-status a { color: var(--blue-80); }

/* Компьютер: шире, три образца в ряд, просмотр — окно «образец | форма» */
@media (min-width: 1101px) {
  .colors {
    max-width: 1040px;
    padding-bottom: 120px;
  }

  .colors__tabs {
    max-width: 560px;
    margin: 0 auto 40px;
  }

  .colors__tabs [role="tab"] { padding: 14px 10px; font-size: 15px; }
  .colors__tabs [role="tab"]:not([aria-selected="true"]):hover { color: #fff; }

  .colors__grid { gap: 28px; }
  .colors__img,
  .colors__grid li:last-child:nth-child(odd) .colors__img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .colors__name { margin-top: 14px; font-size: 17px; }

  .colors__swatch:hover .colors__img {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .colors__swatch:hover .colors__img img { transform: scale(1.06); }

  .colors__swatch::after {
    content: "Посмотреть ближе";
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }

  .colors__swatch:hover::after { opacity: 1; transform: none; }

  .colors-view__card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    max-width: 960px;
    overflow: hidden;
  }

  .colors-view__media {
    aspect-ratio: auto;
    max-height: none;
    min-height: 460px;
  }

  .colors-view__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 40px;
  }

  .colors-view__name { font-size: 28px; }
  .colors-view__lead { font-size: 15px; margin-bottom: 22px; }

  .colors-view__nav { cursor: pointer; transition: transform 0.2s var(--ease-out); }
  .colors-view__nav:hover { transform: scale(1.08); }
  .colors-view__close { cursor: pointer; }
  .colors-view__form input[type="submit"]:hover { background: var(--blue-100); }
}

/* =====================================================================
   Правки 25.11.2026: чёрное на белом, синий — редкий акцент.
   Синий темы (--blue-80/100) везде, где он был кнопками и фоном,
   становится чёрным; сам синий остался как --accent в нескольких местах.
   ===================================================================== */
:root {
  --blue-80: #111;
  --blue-100: #000;
  --accent: #124fdc;
  --ink: #111;
  --soft: #f4f4f2;
  --line: #e4e4e0;
}

/* полоса цифр под первым экраном */
.section-brief-info {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brief-info-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 44px 0;
}
.brief-info-column,
.brief-info-column + .brief-info-column {
  width: auto;
  padding: 0 20px;
  color: var(--ink);
  text-align: left;
  border: 0;
}
.brief-info-column + .brief-info-column { border-left: 1px solid var(--line); }
.brief-info-column h3 {
  position: relative;
  margin-bottom: 10px;
  padding-top: 18px;
  font-size: 32px;
  font-weight: 500;
  white-space: nowrap;
}
.brief-info-column h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--accent);
}
.brief-info-column p {
  max-width: 210px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #555;
}
@media (max-width: 1100px) {
  .brief-info-container { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; padding: 32px 0; }
  .brief-info-column:nth-child(4) { border-left: 0; }
  .brief-info-column h3 { font-size: 26px; }
}
@media (max-width: 640px) {
  .brief-info-container { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; padding: 28px 0; }
  .brief-info-column,
  .brief-info-column + .brief-info-column { padding: 0 12px; border-left: 0; }
  .brief-info-column:nth-child(even) { border-left: 1px solid var(--line); }
  .brief-info-column:last-child { grid-column: 1 / -1; border-left: 0; }
  .brief-info-column h3 { font-size: 22px; padding-top: 14px; }
  .brief-info-column p { font-size: 13px; max-width: none; }
}

/* «Процесс установки»: нижняя половина фона была синей */
.videos-container {
  background: url("../assets/backgrounds/grid-dark.png"),
    linear-gradient(to bottom, #fff 0%, #fff 50%, var(--soft) 50%, var(--soft) 100%);
  background-size: cover;
  background-position: center;
}

/* бывшие синие секции — светлые */
.section-options,
.section-feedback { background-color: var(--soft); }
.section-order { background-color: #fff; }
.options-heading h2,
.order-heading h2,
.feedback-heading h2 { color: var(--ink); }
.options-heading svg path,
.order-heading svg path,
.feedback-heading svg path { fill: var(--ink); }
.order-card li::before,
.order-card li::after { background-color: var(--accent); }
.section-feedback .swiper-pagination-bullet { background: var(--ink); }
.section-feedback .swiper-buttons { color: var(--ink); filter: invert(1); }

/* Цвета и материалы */
.options-heading { margin-bottom: 28px; }
.options-lead {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  color: #444;
}
.options-note {
  max-width: 720px;
  margin: -40px auto 0;
  padding-bottom: 100px;
  font-size: 15px;
  text-align: center;
  color: #555;
}
.colors__tabs {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  grid-template-columns: repeat(2, 1fr);
}
.colors__ink { background: var(--ink); box-shadow: none; }
.colors__tabs [role="tab"] { color: #555; }
.colors__tabs [aria-selected="true"] { color: #fff; }
.colors__tabs [role="tab"]:not([aria-selected="true"]):hover { color: var(--ink); }
.colors__swatch { color: var(--ink); }
.colors__code { color: #777; }
.colors__swatch::after { color: #777 !important; }
.colors__img {
  position: relative;
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
/* основной цвет: слева фактура, справа забор в этом цвете */
.colors__img:has(.colors__photo) img:first-child { width: 62%; }
.colors__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 38% !important;
  height: 100%;
  object-fit: contain !important;
  background: #fff;
}
.colors-view__media { position: relative; }
.colors-view__photo {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 30%;
  height: auto !important;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
.colors-view__nav { z-index: 2; }
/* два основных цвета — по два в ряд и крупнее; глянец — по четыре */
@media (min-width: 1101px) {
  .colors { padding-bottom: 80px; }
  .colors__grid:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; }
  .colors__grid:has(> li:nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .colors__grid:has(> li:nth-child(5)) .colors__name { font-size: 15px; }
  .colors__swatch:hover .colors__img { box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.45); }
}
@media (max-width: 1100px) {
  .options-note { margin-top: -20px; padding-bottom: 70px; }
  .options-lead { font-size: 15px; margin-bottom: 28px; }
}

/* О компании: всё по левому краю, фото с производства */
.about-v2 .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: start;
}
.about-v2 h1 { grid-column: 1 / -1; margin-bottom: 40px; }
.about-v2 .about-text-container { grid-column: 1; grid-row: 2; margin: 0; max-width: none; }
.about-v2 .about-img-container {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  height: auto;
  margin: 0;
}
.about-v2 .about-img-container img {
  position: static;
  scale: none !important;
  z-index: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.about-production {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.about-production li { margin: 0; }
.about-production li::before { display: none; }
.about-production img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
@media (max-width: 900px) {
  .about-v2 .container { grid-template-columns: 1fr; }
  .about-v2 h1 { margin-bottom: 24px; }
  .about-v2 .about-img-container { grid-column: 1; grid-row: 2; margin-bottom: 28px; }
  .about-v2 .about-text-container { grid-row: 3; }
  .about-production { grid-row: 4; gap: 10px; margin-top: 32px; }
}

/* Страница «Дилерам» */
.dealer { padding: 150px 0 120px; color: var(--ink); }
.dealer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 110px;
}
.dealer-kicker {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.dealer h1 {
  margin-bottom: 24px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}
.dealer-lead { margin-bottom: 36px; font-size: 18px; line-height: 1.6; color: #444; }
.dealer-btn {
  display: inline-block;
  padding: 18px 36px;
  border-radius: 50px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}
.dealer-btn:hover { background: #333; }
.dealer-hero__img img { width: 100%; height: auto; display: block; border-radius: 6px; }
.dealer-h2 { margin-bottom: 36px; font-size: 32px; font-weight: 600; text-transform: uppercase; }
.dealer-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 110px;
  padding: 0;
  list-style: none;
}
.dealer-benefits li { margin: 0; }
.dealer-benefits li::before { display: none; }
.dealer-benefits img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  border-radius: 6px;
}
.dealer-num { display: block; margin-bottom: 8px; font-size: 13px; color: #888; }
.dealer-benefits h3 { margin-bottom: 8px; font-size: 19px; font-weight: 600; }
.dealer-benefits p { font-size: 15px; line-height: 1.5; color: #555; }
.dealer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
  scroll-margin-top: 120px;
}
.dealer-who ul { margin: 0; padding: 0; list-style: none; }
.dealer-who li {
  position: relative;
  padding: 18px 0 18px 28px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}
.dealer-who li:last-child { border-bottom: 1px solid var(--line); }
.dealer-who li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}
.dealer .cta-form { width: auto; max-width: none; }
@media (max-width: 1100px) {
  .dealer { padding: 120px 0 80px; }
  .dealer-hero,
  .dealer-bottom { grid-template-columns: 1fr; gap: 36px; }
  .dealer-hero { margin-bottom: 72px; }
  .dealer h1 { font-size: 34px; }
  .dealer-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 72px; }
}
@media (max-width: 560px) {
  .dealer h1 { font-size: 27px; }
  .dealer-lead { font-size: 16px; }
  .dealer-h2 { font-size: 24px; margin-bottom: 24px; }
  .dealer-benefits { grid-template-columns: 1fr; gap: 32px; }
}

/* Плюсики у заголовков на страницах заборов (разметка из админки) — убраны, как и на главной */
.fence-heading-container > svg,
.heading-mounting > svg { display: none; }

/* «О компании»: карта «Как нас найти» */
.about-map { padding: 110px 0 40px; }
.about-map__title { margin-bottom: 32px; font-size: 40px; font-weight: 600; text-transform: uppercase; color: var(--ink, #111); }
.about-map__box { position: relative; overflow: hidden; border-radius: 8px; background: var(--soft, #f4f4f2); }
.about-map__frame { display: block; width: 100%; height: 520px; border: 0; }
.about-map__card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 360px;
  padding: 26px 26px 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #111);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35);
}
.about-map__label { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent, #124fdc); }
.about-map__address { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.about-map__note { margin: 4px 0 0; font-size: 14px; color: #777; }
.about-map__phones { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 20px; }
.about-map__phones a { color: var(--ink, #111); font-size: 15px; text-decoration: none; }
.about-map__phones a:hover { text-decoration: underline; text-underline-offset: 3px; }
.about-map__links { display: flex; flex-wrap: wrap; gap: 8px; }
.about-map__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink, #111);
  border-radius: 50px;
  color: var(--ink, #111);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.about-map__btn.is-dark { background: var(--ink, #111); color: #fff; }
.about-map__btn:hover { background: #333; border-color: #333; color: #fff; }
@media (max-width: 900px) {
  .about-map { padding: 64px 0 24px; }
  .about-map__title { font-size: 28px; margin-bottom: 20px; }
  .about-map__frame { height: 340px; }
  .about-map__card { position: static; width: auto; border-radius: 0; box-shadow: none; padding: 22px 18px; }
}

/* Подвал: контакты слева, навигация по центру, заявка справа (правки 25.11.2026) */
@media (min-width: 981px) {
  .footer-contents { text-align: left; align-items: flex-start; }
  .footer-center { width: 26%; }
  .footer-center img { display: block; }
  .footer-icon__to-the-top { display: inline-flex; flex-direction: column; align-items: center; }
  .footer-links { width: 26%; text-align: left; }
  .footer-form { width: 26%; }
}
/* «Подробнее» у моделей вместо стрелки */
.gitem-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink, #111);
  border-radius: 50px;
  color: var(--ink, #111);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.gitem-more:hover { background: var(--ink, #111); color: #fff; }
.gitem-text-container { gap: 12px; }
.gitem-description { min-width: 0; }
@media (max-width: 640px) {
  .gitem-more { height: 36px; padding: 0 14px; font-size: 12px; }
}
.about-gallery > .gitem { min-width: 0; }
@media (max-width: 1100px) {
  .gitem-more { height: 36px; padding: 0 14px; font-size: 12px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .gitem-text-container { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Телефоны: свечение и «звонок» при наведении (правки 25.11.2026)
   ===================================================================== */
@keyframes phone-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg); }
}
@keyframes phone-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* Шапка: кнопка звонка мягко «дышит» кольцом, при наведении — светится и трубка качается */
.nav-icon-link--call { position: relative; border-radius: 50%; }
.nav-icon-link--call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px currentColor;
  pointer-events: none;
  animation: phone-pulse 2.6s ease-out infinite;
}
.is-home .nav-icon-link--call { color: #fff; }
.is-inner .nav-icon-link--call { color: var(--ink, #111); }
.nav-icon-link--call:hover { box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.35); }
.is-inner .nav-icon-link--call:hover { box-shadow: 0 0 18px 2px rgba(0, 0, 0, 0.18); }
.nav-icon-link--call:hover svg { animation: phone-ring 0.8s ease-in-out; }
.header-wrapper.show .nav-icon-link--call::before { display: none; }

/* Номера в подвале и на «О компании»: трубка слева, при наведении — свечение и подчёркивание */
.phone-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.3s ease;
}
.phone-link::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.phone-link::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out, ease);
}
.phone-link:hover::before { opacity: 1; animation: phone-ring 0.8s ease-in-out; }
.phone-link:hover::after { transform: scaleX(1); }
.footer-contacts .phone-link:hover { color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, 0.65); }
.about-map__phones .phone-link:hover { text-shadow: 0 0 12px rgba(18, 79, 220, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .nav-icon-link--call::before { animation: none; opacity: 0; }
  .nav-icon-link--call:hover svg,
  .phone-link:hover::before { animation: none; }
}

/* Подвал крупнее (правки 25.11.2026) */
.footer-contacts a,
.footer-icon__to-the-top p { font-size: 19px; line-height: 1.6; }
.footer-contacts .phone-link { font-size: 21px; }
.footer-contacts .address { font-size: 17px; }
.footer-links a { font-size: 18px; margin-bottom: 18px; }
.footer-form-heading h3 { font-size: 30px; }
.footer-form-heading p { font-size: 18px; line-height: 1.5; }
.footer-form form .input { font-size: 17px; }
@media (max-width: 980px) {
  .footer-contacts .phone-link { font-size: 20px; margin: 0 auto; }
  .footer-links a,
  .footer-links .mobile-align-right { font-size: 17px; }
}
.phone-link--wa::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9 0-1.4.7-2 1-2.3.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.1.1.7-.1 1.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.6-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.9 0-1.4.7-2 1-2.3.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.1.1.7-.1 1.3z'/%3E%3C/svg%3E");
}
.phone-link--wa:hover::before { background: #25d366; opacity: 1; }
.footer-contacts .phone-link--wa { font-size: 19px; }

/* Подвал: нижняя строка — копирайт слева, «Наверх» справа */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p { margin: 0; font-size: 15px; color: var(--white-60, #808080); }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
}
.footer-top svg { width: 44px; height: 44px; transition: transform 0.35s var(--ease-out, ease); }
.footer-top:hover svg { transform: translateY(-4px); }
@media (max-width: 980px) {
  .footer-bottom { margin-top: 48px; }
  .footer-bottom p { font-size: 13px; }
}


/* =====================================================================
   Калькулятор забора (components/theme/Calculator.tsx).
   Компьютер: окно на две колонки — слева выбор, справа фото, расчёт и
   заявка. Телефон: шторка снизу, всё в одну колонку.
   ===================================================================== */
.calc-layer {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 10, 16, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: menu-bg 0.3s ease both;
}
.calc-layer[hidden] { display: none; }
.calc {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 94dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px 22px 0 0;
  background: #fff;
  color: var(--ink, #111);
  animation: sheet-up 0.45s var(--ease-out, ease) both;
}
.calc__main { padding: 24px 18px 8px; }
.calc__side { padding: 8px 18px 28px; }
.calc__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px var(--line, #e4e4e0);
  color: var(--ink, #111);
  cursor: pointer;
}
.calc__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent, #124fdc); }
.calc__title { margin: 0 48px 20px 0; font-size: 22px; font-weight: 600; line-height: 1.15; text-transform: uppercase; color: var(--ink, #111); }
.calc__label { display: block; margin-bottom: 8px; font-size: 13px; color: #666; }

/* модели — плитка 2×2 с фото */
.calc__models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.calc__model {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line, #e4e4e0);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #111);
  font-family: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.calc__model-img { display: block; aspect-ratio: 56 / 30; overflow: hidden; background: var(--soft, #f4f4f2); }
.calc__model-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out, ease); }
.calc__model-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.calc__model b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.calc__model-text span { font-size: 12px; color: #777; white-space: nowrap; }
.calc__model[aria-checked="true"] { border-color: var(--ink, #111); box-shadow: 0 0 0 1px var(--ink, #111); }
.calc__model[aria-checked="true"] .calc__model-text { background: var(--ink, #111); color: #fff; }
.calc__model[aria-checked="true"] .calc__model-text span { color: rgba(255, 255, 255, 0.7); }

/* размеры */
.calc__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.calc__field { display: flex; flex-direction: column; min-width: 0; }
.calc__field > span:first-child { margin-bottom: 8px; font-size: 13px; color: #666; }
.calc__input { position: relative; display: block; }
.calc__input input {
  width: 100%;
  height: 52px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line, #e4e4e0);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #111);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.calc__input input::placeholder { color: #b5b5b0; font-weight: 400; }
.calc__input input:focus { border-color: var(--ink, #111); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.calc__input input[aria-invalid="true"] { border-color: #d93036; }
.calc__input i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 15px; color: #999; pointer-events: none; }

/* переключатели */
.calc__group { margin-bottom: 18px; }
.calc__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__seg button {
  flex: 1 1 auto;
  min-width: 56px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line, #e4e4e0);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #111);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.calc__seg button[aria-checked="true"] { border-color: var(--ink, #111); background: var(--ink, #111); color: #fff; }

/* цвет — образцы фактуры */
.calc__colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calc__color {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line, #e4e4e0);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #111);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.calc__color > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: #777; line-height: 1.3; }
.calc__color b { font-size: 13px; font-weight: 600; color: var(--ink, #111); white-space: nowrap; }
.calc__swatch { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.calc__color[aria-checked="true"] { border-color: var(--ink, #111); box-shadow: 0 0 0 1px var(--ink, #111); }

/* кнопка и ошибка */
.calc__run,
.calc__form input[type="submit"] {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 50px;
  background: var(--ink, #111);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.calc__run:hover,
.calc__form input[type="submit"]:hover { background: #333; }
.calc__run:active { transform: scale(0.99); }
.calc__error { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: #d93036; text-align: center; }

/* правая колонка: фото, расчёт, заявка */
.calc__photo { position: relative; margin-bottom: 14px; border-radius: 14px; overflow: hidden; aspect-ratio: 56 / 34; background: var(--soft, #f4f4f2); }
.calc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: calc-photo 0.45s ease both; }
@keyframes calc-photo { from { opacity: 0; transform: scale(1.03); } }
.calc__photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.calc__result { margin-bottom: 18px; padding: 18px; border-radius: 14px; background: var(--soft, #f4f4f2); }
.calc__idle { margin: 0; font-size: 14px; line-height: 1.6; color: #666; text-align: center; }
.calc__idle b { font-size: 18px; font-weight: 600; color: var(--ink, #111); }
.calc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.calc__total span { font-size: 14px; color: #666; }
.calc__total b { font-size: 30px; font-weight: 600; white-space: nowrap; animation: calc-photo 0.35s ease both; }
.calc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--line, #e4e4e0); }
.calc__stats div { display: flex; flex-direction: column; gap: 2px; }
.calc__stats dt { font-size: 12px; color: #777; }
.calc__stats dd { margin: 0; font-size: 16px; font-weight: 600; }
.calc__note { margin: 0; font-size: 12px; line-height: 1.5; color: #777; }
.calc__form { display: flex; flex-direction: column; gap: 10px; }
.calc__form-title { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.calc__form input[type="text"],
.calc__form input[type="tel"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line, #e4e4e0);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
}
.calc__form input[type="text"]:focus,
.calc__form input[type="tel"]:focus { border-color: var(--ink, #111); }
.calc__form .lead-status { margin: 0; font-size: 14px; text-align: center; color: #555; }
.calc__form .lead-status[data-kind="error"] { color: #d93036; }
.calc__form .lead-status[data-kind="ok"] { color: #13804a; }
.calc__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 10px;
  border: 1px solid var(--line, #e4e4e0);
  border-radius: 50px;
  color: var(--ink, #111);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.calc__wa:hover { border-color: #25d366; color: #128c4a; }

@media (max-width: 767px) {
  .calc__photo { display: none; }
  .calc__color { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; }
  .calc__color > span:last-child { align-items: center; }
}
@media (max-width: 380px) {
  .calc__title { font-size: 19px; }
}
@media (min-width: 768px) {
  .calc-layer { align-items: center; padding: 24px; }
  .calc {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    max-height: calc(100dvh - 48px);
    border-radius: 24px;
  }
  .calc__main { padding: 32px 28px 28px 32px; }
  .calc__side { padding: 76px 32px 32px 4px; }
  .calc__title { font-size: 26px; margin-bottom: 20px; }
  .calc__model-img { aspect-ratio: 2.6 / 1; }
  .calc__model-text { padding: 8px 12px 10px; }
  .calc__fields,
  .calc__group { margin-bottom: 14px; }
  .calc__models { gap: 12px; }
  .calc__model:hover:not([aria-checked="true"]) { border-color: #999; }
  .calc__model:hover .calc__model-img img { transform: scale(1.05); }
  .calc__seg button:hover:not([aria-checked="true"]),
  .calc__color:hover:not([aria-checked="true"]) { border-color: #999; }
  .calc__close:hover { background: #f0f0ed; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .calc__colors { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .calc__photo img,
  .calc__total b { animation: none; }
}
/* смена цвета — фото в плитках плавно проявляется */
.calc__model-img img { animation: calc-photo 0.4s ease both; }
