/* 1001 ЗАБОР — pixel-aligned to Figma Zabor_desktop
   Palette from Components/Colors + sampled exports */

:root {
  --green: #019901;
  --green-dark: #046502;
  --green-soft: #e6f9e3;
  --green-bright: #01ad01;
  --green-slider: #3fb206;
  --text: #0d0d0d;
  --text-muted: #666666;
  --border: #e5e5e5;
  --border-soft: #ececec;
  --border-tab: #d8d8d8;
  --bg: #ffffff;
  --bg-soft: #efefef;
  --bg-panel: #efefef;
  --bg-dark: #0d0d0d;
  --container: 1180px;
  --font: "Montserrat", "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 8px 24px rgba(13, 13, 13, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.ft-v3-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* Skip layout/paint for far below-fold sections (not cases/projects — photos must show). */
.faq-list,
.reviews-box,
.trust,
.callback {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.ft-v3-page .navbar,
.ft-v3-page .navbar-fixed-top,
.ft-v3-page .privacy-banner {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Scope page styles to <main> so system [[$navbar]] / [[$Footer]] stay intact.
   padding-top clears fixed .navbar-fixed-top (~106px), same idea as theme #container.active */
main {
  padding-top: 110px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

main img { max-width: 100%; display: block; }

.hero a, .section a, .trust a, .cases a, .calc a,
.faq-list a, .works-slider a, .projects-gallery a, .breadcrumbs a,
.prices__links a, .reviews-box a {
  color: var(--green);
  text-decoration: none;
}
.callback a {
  color: #fff;
  text-decoration: none;
}
.section a:hover, .breadcrumbs a:hover, .prices__links a:hover {
  text-decoration: underline;
}
a.btn { color: #fff; text-decoration: none; }
a.btn:hover { color: #fff; text-decoration: none; }
a.btn--ghost { color: var(--green); }
a.btn--outline-dark { color: var(--text); }
a.btn--outline-dark:hover { color: #fff; }
a.btn--dark, a.btn--order { color: #fff; }

main button, main input, main select, main textarea { font: inherit; }

.ft-container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {padding: 17px 0;}
#about{
  margin-top: 46px;
}

#reviews{
  margin-top: 93px;
}

#faq{
  margin-top: 89px;
}

#calculator{
  margin-top: 93px;
}

#cases{
  margin-top: 93px;
}

#prices{
  margin-top: 93px;
}
.section-title {
  margin: 0 0 25px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title .accent { color: var(--green); }

.section-lead {
  margin: 0 0 27px;
  color: rgba(102, 102, 102, 1);
  max-width: none;
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
}
.section-lead p {
  margin: 0 0 0.6em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.section-lead p:last-child {
  margin-bottom: 0;
}

.hero__grid > *,
.cases__layout > *,
.calc__box > *,
.trust__grid > *,
.callback__inner > * { min-width: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.btn__ico { filter: brightness(0) invert(1); }
.btn__ico-green {
  filter: invert(36%) sepia(98%) saturate(1200%) hue-rotate(85deg) brightness(95%) contrast(104%);
}

.btn--ghost {
  background: #fff;
  color: var(--green);
  border-color: var(--green);
  border-width: 1px;
}
.btn--ghost:hover { background: var(--green-soft); color: var(--green); }

.btn--outline-dark {
  background: #fff;
  color: var(--text);
  border-color: var(--text);
  text-transform: uppercase;
  font-size: 12px;
  min-height: 40px;
  padding: 0 14px;
}
.btn--outline-dark:hover { background: var(--text); color: #fff; }

/* Широкая CTA (калькулятор) — выше .btn из privacy-banner */
.btn.btn--wide,
button.btn.btn--wide {
  width: 100%;
  background: linear-gradient(90deg, #01a001 0%, #056903 100%);
  border: 0;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  min-height: 48px;
  padding: 0 28px;
  color: #fff;
  text-transform: uppercase;
}
.btn.btn--wide:hover,
button.btn.btn--wide:hover {
  background: linear-gradient(90deg, #019001 0%, #045802 100%);
  color: #fff;
}
/* Figma btn-default: radius 6px, Regular 14 — выше .btn из privacy-banner */
.btn.btn--dark,
a.btn.btn--dark {
  background: linear-gradient(90deg, #01a001 0%, #056903 100%);
  border: 0;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  min-height: 48px;
  padding: 0 28px;
}
.btn.btn--dark:hover,
a.btn.btn--dark:hover {
  background: linear-gradient(90deg, #019001 0%, #045802 100%);
  color: #fff;
}

/* Hero «Заказать» — градиент из Figma btn-default, font regular */
.btn.btn--order,
a.btn.btn--order {
  background: linear-gradient(90deg, #01a001 0%, #056903 100%);
  font-weight: 400;
  font-size: 14px;
  border: 0;
  min-height: 42px;
  padding: 0 30px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.btn.btn--order:hover,
a.btn.btn--order:hover {
  background: linear-gradient(90deg, #019001 0%, #045802 100%);
  color: #fff;
}

/* HEADER: system [[$navbar]] only — do not style .nav / .navbar / header here */

/* ========== HERO ========== */
.hero { background: #fff; overflow: hidden; }

/* Desktop: media sits in right column (like before); DOM keeps media after title for mobile */
.hero__grid {
  display: grid;
  grid-template-columns: 660px 1fr;
  grid-template-rows: auto auto auto auto;
  min-height: 484px;
  align-items: stretch;
}

.hero__content {
  display: contents;
}

.hero__content > .breadcrumbs,
.hero__content > .hero__title,
.hero__content > .hero__benefits,
.hero__content > .btn--order {
  position: relative;
  z-index: 2;
}

.hero__content > .breadcrumbs {
  grid-column: 1;
  grid-row: 1;
  margin: 25px 0 27px;
}

.hero__content > .hero__title {
  grid-column: 1;
  grid-row: 2;
  padding-right: 12px;
  box-sizing: border-box;
}

.hero__content > .hero__benefits {
  grid-column: 1;
  grid-row: 3;
}

.hero__content > .btn--order {
  grid-column: 1;
  grid-row: 4;
  align-self: start;
  justify-self: start;
  width: fit-content;
  margin-bottom: 24px;
}

.hero__content > .hero__media {
  grid-column: 2;
  grid-row: 1 / 5;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a.breadcrumbs__catalog,
.breadcrumbs a[href*="#my-predlagaem"] {
  display: none;
}
.breadcrumbs a.breadcrumbs__catalog + span,
.breadcrumbs a[href*="#my-predlagaem"] + span {
  display: none;
}

.hero__title {
  margin: 0 0 17px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.23;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hero__title .line,
.hero__title .line-green {
  display: block;
  font-weight: 800;
}
.hero__title .line-green {
  color: var(--green);
  white-space: nowrap;
}
.hero__title .line-company {
  display: block;
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero__benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 19px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hero__benefits li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.hero__benefits .check-ico {
  width: 44px;
  height: 44px;
}

.hero__benefits strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero__benefits span,
.hero__benefit-text {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}
.hero__benefit-text p {
  margin: 0;
}

.hero__media {
  position: relative;
  max-height: 479px;
  padding-top: 27px;
  z-index: 1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.85) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* ========== WORKS SLIDER ========== */
.works-slider {
  background: #fff;
  padding: 7px 0 8px;
}

.works-slider__row {
  display: grid;
  grid-template-columns: 31px 1fr 31px;
  align-items: stretch;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
}

.works-slider__btn {
  background: var(--green-slider);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
}
.works-slider__btn:hover { filter: brightness(0.95); }
.works-slider__btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.works-slider__track {
  display: flex;
  gap: 7px;
  overflow: hidden;
  scroll-behavior: smooth;
  background: #fff;
}

.works-slider__track a {
  display: block;
  flex: 0 0 auto;
  color: inherit;
}

.works-slider__track img {
  width: 191px;
  height: 130px;
  object-fit: cover;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.works-slider__track img:hover { opacity: 0.88; }

/* ========== SEO / TABS ========== */
.about-tabs__intro {
  margin: 0 0 42px;
  color: rgba(102, 102, 102, 1);
  max-width: max-content;
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
}
.about-tabs__intro p {
  margin: 0 0 1em;
  color: rgba(102, 102, 102, 1);
  font-size: 17px;
  font-weight: 400;
  line-height: 23px;
}
.about-tabs__intro p:last-child { margin-bottom: 0; }

.tabs__nav {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

.tabs__btn {
  min-width: 200px;
  padding: 18px 22px;
  border: 1px solid var(--border-tab);
  background: #fff;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 0;
}

.tabs__btn.is-active {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: 700;
  border-color: var(--border-tab);
  border-top: 3px solid var(--green);
  border-bottom-color: var(--bg-panel);
  z-index: 1;
  border-radius: 4px;
}

.tabs__panel {
  display: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-tab);
  padding: 32px 36px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}
.tabs__panel.is-active { display: block; }
.tabs__panel p {
  margin-top: 0;
  font-size: 17px;
  font-weight: 500;
}
.tabs__panel h3 {
  margin: 20px 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.tabs__panel ul {
  margin: 14px 0;
  padding-left: 0;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
}
.tabs__panel li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.tabs__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.about-seo {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}
.about-seo h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.about-seo p { margin: 0 0 14px; }

/* ========== PRICES ========== */
.prices-table-wrap { overflow-x: auto; }

.prices-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 1px 0; /* thin white stripe between columns */
  min-width: 520px;
}
.prices-table thead th,
.prices-table tbody td {
  width: 50%;
}

.prices-table thead th {
  background: var(--green);
  color: #fff;
  text-align: left;
  padding: 17px 13px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0;
}
.prices-table thead th:last-child {text-align: center;}

.prices-table tbody td {
  padding: 16px 11px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.prices-table tbody tr:nth-child(odd) td { background: #fff; }
.prices-table tbody tr:nth-child(even) td { background: #f5f5f5; }
.prices-table tbody td:last-child {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.prices-spoiler {margin-top: 47px;}

.prices__note,
.prices__links {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
}
.prices__note {
  margin-bottom: 25px;
}
.prices__note p,
.prices__links p {
  margin: 0 0 0.6em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.prices__note p:last-child,
.prices__links p:last-child {
  margin-bottom: 0;
}

/* Свёрнуто: видна только верхушка текста через белый градиент (как в Figma) */
.prices-spoiler__body {
  position: relative;
  max-width: none;
  max-height: 13px;
  overflow: hidden;
  margin-bottom: 4px;
}
.prices-spoiler__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    #fff 100%
  );
  pointer-events: none;
}
.prices-spoiler.is-open .prices-spoiler__body {
  max-height: none;
  overflow: visible;
  margin-bottom: 0;
}
.prices-spoiler.is-open .prices-spoiler__body::after { display: none; }

.prices__links a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

.prices__more {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}
.prices-spoiler .prices-spoiler__toggle,
.prices-spoiler button.prices-spoiler__toggle {
  min-height: 0;
  padding: 13px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border: 1px solid var(--green);
  border-radius: 5px;
}
.prices-spoiler .prices-spoiler__toggle:hover,
.prices-spoiler .prices-spoiler__toggle:focus,
.prices-spoiler .prices-spoiler__toggle:active {
  background: transparent;
  color: var(--green-dark);
  outline: 0;
}
.prices-spoiler__toggle .btn__ico-green {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.prices-spoiler.is-open .prices-spoiler__toggle .btn__ico-green {
  transform: rotate(180deg);
}

/* ========== COLORS ========== */
.colors {background: #fff;margin-top: 92px;/* padding: 46px 8px; */}

.colors__panel {
  background: #ececec;
  overflow: hidden;
  padding: 32px 32px;
}

.colors__head {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 24px;
  border-radius: 0;
  text-transform: none;
}

.colors__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 32px 3px 1px;
  background: transparent;
}

.color-swatch {
  width: calc((100% - 84px) / 8);
  min-width: 110px;
  max-width: 140px;
  aspect-ratio: 130 / 75;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.color-swatch.is-light { color: #0d0d0d; }

.colors__more {
  display: none;
  margin-top: 16px;
  text-align: center;
}

/* ========== CASES ========== */
.cases__title {
  margin-bottom: 32px;
  font-weight: 600;
}
.cases__title .accent { font-weight: 600; }

.cases__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.cases__slide { display: none; }
/* Keep grid (not flex) so responsive column stacking works. */
.cases__slide.is-active { display: grid; }
.cases__layout[data-sync-specs] {
  position: relative;
}
.cases__layout[data-sync-specs] .cases__slide {
  display: grid !important;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}

.case-gallery__stage { position: relative; }

.case-gallery__main {
  border-radius: 9px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 722 / 472;
}
.case-gallery__main > a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.case-gallery__main img,
.case-gallery__main iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.case-gallery__main img {
  /* Keep aspect ratio: fill frame by cropping, never stretch */
  max-width: none;
  max-height: none;
}

.case-gallery__counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(13,13,13,0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 13px;
  border-radius: 19px;
}

.case-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.42;
  transition: opacity 0.2s;
  box-shadow: 0 4px 16px rgba(13,13,13,0.16);
  z-index: 2;
  padding: 0;
}
.case-gallery:hover .case-gallery__nav,
.case-gallery:focus-within .case-gallery__nav { opacity: 0.7; }
.case-gallery__nav:hover { opacity: 1 !important; }
.case-gallery__nav--prev { left: 14px; }
.case-gallery__nav--next { right: 14px; }

.case-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 5px;
}
.case-thumbs button {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  aspect-ratio: 121 / 87;
}
.case-thumbs button.is-active {border-color: var(--green);border: 4px solid var(--green);}
.case-thumbs button > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-thumbs__video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(13,13,13,0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.case-thumbs__video img {
  filter: brightness(0) invert(1);
  width: 22px;
  height: 22px;
}

.case-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 20px;
  background: #fff;
  max-width: 475px;
}
.case-card__tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  padding: 0px 7px;
  border-radius: 4px;
  border: 1px solid #cfefcc;
  margin-bottom: 14px;
  text-transform: lowercase;
}
.case-card__title {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}
.case-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 0px;
  padding-bottom: 18px;
  padding: 0px 7px;
}
.case-specs__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  align-items: start;
}
.case-specs__ico {width: 40px;height: 40px;margin-top: 1px;}
.case-specs__item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.case-specs__item span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}
.case-card__text {
  position: relative;
  box-sizing: border-box;
  height: 120px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  overflow: hidden;
  border-top: 1px solid #ececec;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
.case-card__text p {
  margin: 0;
}
.case-card__more {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 28px 0 0;
  border: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 42%);
  color: var(--green);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.case-card__text.is-long .case-card__more {
  display: block;
}
.case-card__more:hover,
.case-card__more:focus {
  color: var(--green-dark);
}
.case-text-pop[hidden] {
  display: none !important;
}
.case-text-pop {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}
.case-text-pop__card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px 32px 26px;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);
}
.case-text-pop__x {
  position: absolute;
  top: 12px;
  right: 14px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.case-text-pop__title {
  margin: 0 36px 16px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.case-text-pop__body {
  font-size: 16px;
  line-height: 1.55;
}
.case-text-pop__body p {
  margin: 0 0 12px;
}
.case-text-pop__body p:last-child {
  margin-bottom: 0;
}
.case-card__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
}
.case-card__nav a,
.case-card__nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.case-nav__label {
  overflow: hidden;
  min-width: 0;
}
.case-nav__label.is-arrows { display: none; }
.case-card__nav a:first-child,
.case-card__nav button:first-child { justify-self: start; }
.case-card__nav a:last-child,
.case-card__nav button:last-child { justify-self: end; }
.case-card__nav a:hover,
.case-card__nav button:hover { color: var(--green-dark); text-decoration: none; }
.case-card__nav button[hidden],
.case-card__nav-sep[hidden] { display: none; }
.case-card__nav-sep {
  width: 1px;
  height: 22px;
  background: #e0e0e0;
}

/* ========== CALCULATOR ========== */
.calc {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.calc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0px;
  margin: 0;
  padding: 0 0px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}

.calc__tab {
  padding: 16px 23px;
  border: 0;
  background: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.calc__tab.is-active {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

.calc__box {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 28px 24px 24px;
  box-shadow: none;
}

.calc__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-content: start;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 0 13px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.field__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.calc__checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 4px;
}
.calc__checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}
.calc__checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.calc__result {
  background: var(--green-soft);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.calc__result-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc__total {
  font-size: 38px;
  font-weight: 800;
  color: var(--green-bright);
  margin-bottom: 16px;
  line-height: 1.1;
}
.calc__breakdown {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
}
.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(0,0,0,0.15);
}
.calc__disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ========== FAQ ========== */
.faq-list { border-top: 1px solid #d4e0f0; }

.faq-item {border-bottom: 1px solid #d4e0f0;padding: 0px 10px;}
.faq-item.is-open .faq-item__q{padding: 20px 0px 6px;}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21.5px 0px;
  /* margin-top: 14px; */
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  font-family: inherit;
}

.faq-item__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.faq-item__icon img {
  filter: brightness(0) invert(1);
  width: 16px;
  height: 16px;
}
.faq-item.is-open .faq-item__icon { transform: rotate(-90deg); }

.faq-item__a {
  display: none;
  padding: 0 52px 23px 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  max-width: none;
}
.faq-item.is-open .faq-item__a { display: block; }

/* ========== TRUST / FEEDBACK ========== */
.trust { background: #fff; }

.trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 32px;
  align-items: start;
}

.reviews-box,
.process-box { background: #fff; }

.reviews-box__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0px;
  font-size: 28px;
  border-top: 1px solid grey;
  padding: 18px 0px;
}
.reviews-box__top strong {
  color: var(--text);
  font-weight: 700;
}
.reviews-box__top span {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 24px;
}
.reviews-rating__value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.reviews-rating__stars {
  color: #f5b400;
  letter-spacing: 2px;
  font-size: 29px;
  line-height: 1.2;
}
.reviews-rating__count {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 2px;
  margin-left: 2px;
}

.reviews-actions {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0px;
  background: #f3f3f3;
}
.reviews-actions .btn {
  border-radius: 0;
  border: 0;
  min-height: 46px;
  text-transform: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: white;
  background: var(--green);
  margin: 10px 0px;
  padding: 0px 25px;
  border-radius: 5px;
}
.reviews-actions .btn--ghost {
  background: #f3f3f3;
  color: var(--text);
  border: 0;
}
.reviews-actions .btn--ghost:hover { background: #eaeaea; color: var(--text); }

/* Список отзывов из виджета Яндекса: обрезаем чужую шапку/подвал */
.reviews-widget {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  /* border: 1px solid var(--border-soft); */
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.reviews-widget iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  margin-top: -210px;
  pointer-events: auto;
}

.reviews-more {
  display: block;
  text-align: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
}
.reviews-more:hover {
  text-decoration: none;
  filter: brightness(0.98);
  color: var(--green-dark);
}
.reviews-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
}
.reviews-caption a {
  color: var(--text-muted);
  text-decoration: none;
}
.reviews-caption a:hover { color: var(--green); }

.process-box > .section-title {margin-bottom: 4px;}
.process-box > p {
  margin: 0 0 27px;
  color: var(--text-muted);
  font-size: 14px;
}

.process-steps {
  display: grid;
  gap: 13px;
  margin: 0 0 16px;
}

.process-step {
  display: grid;
  grid-template-columns: 44px 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.process-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.process-step__ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
}
.process-step__ico img { width: 28px; height: 28px; }

.process-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.process-step span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.process-trust {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--green-soft);
  border-radius: 12px;
  padding: 16px;
}
.process-trust img {width: 50px;height: 50px;}
.process-trust strong {
  display: block;
  margin-bottom: 2px;
}
.process-trust span {
  font-size: 13px;
  color: #356b3d;
  line-height: 1.4;
}

.trust__cta { text-align: center; }
.trust__cta .btn.btn--dark,
.trust__cta a.btn.btn--dark {
  min-width: 340px;
  min-height: 52px;
  background: linear-gradient(90deg, #01a001 0%, #056903 100%);
  border: 0;
  border-radius: 6px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 0 28px;
  text-transform: uppercase;
}
.trust__cta .btn.btn--dark:hover,
.trust__cta a.btn.btn--dark:hover {
  background: linear-gradient(90deg, #019001 0%, #045802 100%);
  color: #fff;
}
.trust__cta p {
  margin: 14px 0 0;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 14px;
}

/* ========== PROJECTS GALLERY ========== */
.projects-gallery {
  padding-bottom: 0;
  margin-top: 93px;
  background: #f7f7f7;
  padding-top: 30px;
  border-top: 1px solid #e6e6e6;
}

.projects-gallery__head {
  text-align: center;
  margin-bottom: 28px;
}
.projects-gallery__head h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}
.projects-gallery__head h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--green);
  margin: 12px auto 0;
}
.projects-gallery__head p {
  margin: 14px 0 0;
  color: var(--text-muted);
}

.projects-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.projects-gallery__grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.projects-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.projects-gallery__grid a:hover img { transform: scale(1.05); }

/* ========== CALLBACK (leaves banner, test page) ========== */
.callback {
  background: #1b1b1b url("/fence-type-v3/img/bg-top.jpg") center / cover no-repeat;
  color: #fff;
  padding: 40px 0;
  margin-top: 0;
}

.callback__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.15fr);
  gap: 20px;
  align-items: stretch;
}

.callback__card {
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  min-width: 0;
}

.callback__card--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
  background: rgba(30, 48, 26, 0.6);
}

.callback__title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff200;
}

.callback__lead {
  margin: 18px 0 20px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
}

.callback__phone {
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.callback__phone:hover { color: #fff; text-decoration: underline; }

.callback__card--form {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 18px;
  background: rgba(0, 40, 0, 0.65);
  border-radius: 15px;
}

.callback__form-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.callback__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.callback__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: default;
}
.callback__field input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.callback__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  cursor: pointer;
}
.callback__consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #fff200;
}
.callback__consent a,
.callback__consent a:hover,
.callback__consent a:focus,
.callback a[href="/privacy"],
.callback a[href="/privacy"]:hover,
.callback a[href="/privacy"]:focus {
  color: #fff !important;
  background: transparent !important;
  text-decoration: underline;
}

.callback__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: auto;
}
.callback__actions .smart-captcha { margin: 0; }
.callback__submit {
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.callback__submit:hover { background: #fff200; }
.callback__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* FOOTER: not styled here — system Footer chunk only */

/* Fancybox: theme style.css scales `body > div[style]:last-of-type` to 0.7 (recaptcha hack). */
.ft-v3-page > .fancybox-container,
body.ft-v3-page > .fancybox-container {
  transform: none !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ========== CALLBACK / ESTIMATE MODALS (Bootstrap markup) ========== */
/* Bootstrap .modal-open { overflow: hidden } — scrollbar hides, page doesn't scroll. */

/* Center without flex-on-.in (that breaks Bootstrap fade-out). */
.ft-v3-page .ft-v3-modal {
  transform: none !important;
  text-align: center;
  padding: 0 !important;
}
.ft-v3-page .ft-v3-modal::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.ft-v3-page .ft-v3-modal .modal-dialog {
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
  float: none;
  /* Drop Bootstrap slide — opacity fade only, no laggy translate */
  transform: none !important;
  transition: none !important;
}
.ft-v3-page .ft-v3-modal.fade {
  transition: opacity 0.12s linear;
}
.ft-v3-page .ft-v3-modal .modal-content {
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);
}
.ft-v3-page .ft-v3-modal .modal-header {
  position: relative;
  padding: 26px 34px 12px;
  border: 0;
}
.ft-v3-page .ft-v3-modal .modal-title {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.ft-v3-page .ft-v3-modal .close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  margin: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
  text-shadow: none;
}
.ft-v3-page .ft-v3-modal .modal-body { padding: 10px 34px 30px; }
.ft-v3-page .v3-modal-form { margin: 0; }
.ft-v3-page .v3-modal-form .v3-control {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0 0 16px;
  padding: 0 16px 0 50px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background-color: #fff;
  background-position: 17px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  box-shadow: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.ft-v3-page .v3-modal-form .v3-control:focus {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(1, 153, 1, 0.08);
}
.ft-v3-page .v3-modal-form .v3-control--name {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c.7-4 3.1-6 7-6s6.3 2 7 6'/%3E%3C/svg%3E");
}
.ft-v3-page .v3-modal-form .v3-control--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.8'%3E%3Cpath d='M7.2 3.5 4.8 5.9c-.8.8-.5 3.1.7 5.4 1.7 3.2 4.1 5.6 7.3 7.3 2.3 1.2 4.6 1.5 5.4.7l2.3-2.4-4.4-3-2.1 2.1c-2.5-1.2-4.8-3.5-6-6L10.2 8 7.2 3.5Z'/%3E%3C/svg%3E");
}
.ft-v3-page .v3-modal-form textarea.v3-control--comment {
  min-height: 92px;
  padding-top: 17px;
  resize: vertical;
  background-position: 17px 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.8'%3E%3Cpath d='M5 4h14a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H10l-5 3v-3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M8 9h8M8 12h6'/%3E%3C/svg%3E");
}
.ft-v3-page .v3-modal-form .v3-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 2px 0 18px !important;
  color: #555;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.ft-v3-page .v3-modal-form .v3-consent input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}
.ft-v3-page .v3-modal-form .v3-consent a,
.ft-v3-page .v3-modal-form .v3-consent a:hover,
.ft-v3-page .v3-modal-form .v3-consent a:focus,
.ft-v3-page .v3-modal-form a[href="/privacy"],
.ft-v3-page .v3-modal-form a[href="/privacy"]:hover,
.ft-v3-page .v3-modal-form a[href="/privacy"]:focus {
  color: var(--green-dark) !important;
  background: transparent !important;
  text-decoration: underline;
}
.ft-v3-page .v3-modal-form .v3-submit {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #01a001 0%, #056903 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.ft-v3-page .v3-modal-form .v3-submit:hover,
.ft-v3-page .v3-modal-form .v3-submit:focus,
.ft-v3-page .v3-modal-form .v3-submit:active {
  background: linear-gradient(90deg, #019001 0%, #045802 100%);
  color: #fff;
  outline: 0;
}
.ft-v3-page .ft-v3-modal .recapcha { display: none !important; }
.ft-v3-page .smart-captcha[hidden],
.ft-v3-page .smart-captcha[aria-hidden="true"] { display: none; }
.ft-v3-page .smart-captcha { margin: 0 0 16px; }

/* Keep CTA typography stable after Bootstrap focus/active states. */
.ft-v3-page .btn.btn--order:focus,
.ft-v3-page .btn.btn--order:active,
.ft-v3-page .btn.btn--dark:focus,
.ft-v3-page .btn.btn--dark:active,
.ft-v3-page .btn.btn--wide:focus,
.ft-v3-page .btn.btn--wide:active {
  color: #fff;
  font-weight: 400;
  outline: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .hero__grid {
    display: block;
    min-height: 0;
  }
  .hero__content {
    display: block;
    padding: 25px 0 24px;
    position: relative;
    z-index: 2;
  }
  .hero__content > .breadcrumbs {
    margin: 0 0 27px;
  }
  .hero__content > .btn--order {
    margin-bottom: 0;
  }
  .hero__content > .hero__media {
    grid-column: auto;
    grid-row: auto;
  }
  .hero__media {
    min-height: 0;
    max-height: none;
    padding-top: 0;
    margin: 16px 0 24px;
  }
  .hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 480;
    object-fit: cover;
  }
  .hero__media::before { display: none; }
  .hero__title {
    margin-bottom: 0;
  }
  .hero__title .line-green { white-space: normal; }

  .cases__layout,
  .cases__slide.is-active,
  .calc__box,
  .trust__grid,
  .callback__inner { grid-template-columns: 1fr; }

  #cases { margin-top: 56px; }
  .case-card { max-width: none; width: 100%; }
  .case-card__title { font-size: 22px; margin-bottom: 18px; }
  .case-gallery__nav { opacity: 0.7; }

  .color-swatch {
    width: calc((100% - 36px) / 4);
    min-width: 0;
  }
  .color-swatch.is-extra { display: none; }
  .colors.is-expanded .color-swatch.is-extra { display: grid; }
  .colors__more { display: block; }

  .projects-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .callback__fields { grid-template-columns: 1fr; }
  .callback__card--form { width: 100%; }
  .process-step { grid-template-columns: 44px 1fr; }
  .process-step__ico { display: none; }
}

@media (max-width: 767px) {
  .ft-v3-page .navbar,
  .ft-v3-page .navbar-fixed-top,
  .ft-v3-page .privacy-banner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .ft-v3-page .navbar .container,
  .ft-v3-page .privacy-banner .banner-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto;
    box-sizing: border-box;
  }
  .ft-v3-page .navbar-collapse,
  .ft-v3-page .navbar-nav {
    max-width: 100%;
    min-width: 0;
  }
  .prices-table {
    min-width: 0;
    table-layout: fixed;
  }
  .prices-table thead th,
  .prices-table tbody td {
    padding: 13px 12px;
    font-size: 13px;
  }
  .prices-table thead th,
  .prices-table tbody td { width: 50%; }
}

@media (max-width: 640px) {
  .ft-container { width: calc(100% - 32px); }
  /* Desktop uses ~17px + large margin-tops; on mobile those stacked → huge gaps */
  .section { padding: 20px 0; }
  #about { margin-top: 28px; }
  #prices,
  #cases,
  #calculator,
  #faq,
  #reviews { margin-top: 28px; }
  .colors { margin-top: 28px; }
  .projects-gallery {
    margin-top: 28px;
    padding-top: 24px;
  }
  .prices-spoiler { margin-top: 28px; }
  .prices__more { margin-top: 24px; }
  .section-title { font-size: 28px; }
  .hero__benefits { grid-template-columns: 1fr; }
  .calc__fields,
  .case-specs,
  .tabs__nav { width: 100%; }

  #cases { margin-top: 28px; }
  .cases__title { margin-bottom: 20px; }
  .cases__layout,
  .cases__slide.is-active { gap: 16px; }
  .case-gallery__main { border-radius: 8px; }
  .case-gallery__nav {
    width: 36px;
    height: 36px;
    opacity: 0.85;
  }
  .case-gallery__nav--prev { left: 8px; }
  .case-gallery__nav--next { right: 8px; }
  .case-gallery__counter {
    top: 8px;
    right: 8px;
    font-size: 12px;
    padding: 2px 10px;
  }
  .case-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 4px;
  }
  .case-thumbs button {
    border-radius: 8px;
    border-width: 2px;
  }
  .case-thumbs button.is-active { border-width: 2px; }
  .case-thumbs__video { font-size: 10px; gap: 2px; }
  .case-thumbs__video img { width: 18px; height: 18px; }
  .case-card {
    padding: 16px;
    max-width: none;
  }
  .case-card__tag {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .case-card__title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .case-specs {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
  }
  .case-specs__item { gap: 12px; }
  .case-specs__ico { width: 36px; height: 36px; }
  .case-card__text {
    height: 108px;
    margin: 16px 0 0;
    padding-top: 16px;
    font-size: 15px;
  }
  .case-text-pop__card {
    padding: 24px 22px 22px;
  }
  .case-text-pop__title {
    font-size: 18px;
  }
  .case-card__nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .case-card__nav a,
  .case-card__nav button {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 24px;
    font-size: 13px;
  }
  .case-card__nav button:last-child,
  .case-card__nav a:last-child { justify-content: flex-end; }
  .case-nav__label {
    overflow: hidden;
    min-width: 0;
  }
  .case-nav__label.is-arrows { display: none; }
  .tabs__btn {
    width: 50%;
    min-width: 0;
    padding: 14px 8px;
    font-size: 12px;
  }
  .tabs__panel { padding: 24px 20px; }
  .works-slider { padding-top: 20px; }
  .works-slider__row { grid-template-columns: 44px 1fr 44px; }
  .works-slider__track img { width: 160px; height: 120px; }
  .color-swatch { width: calc((100% - 12px) / 2); }
  .trust__cta .btn.btn--dark { min-width: 0; width: 100%; }
  .calc__tabs { gap: 0 18px; padding: 0 16px; }
  .calc__tab { padding: 16px 0; font-size: 14px; }
  .calc__box { gap: 20px; padding: 22px 16px 18px; }
  .calc__fields { gap: 16px; }
  .calc__result { padding: 20px 16px; }
  .calc__total { font-size: 34px; }
  .reviews-actions { grid-template-columns: 1fr; }
  .reviews-widget { height: 360px; }
  .reviews-widget iframe {
    height: 760px;
    margin-top: -200px;
  }
  .callback { padding: 28px 0; }
  .callback__card--info,
  .callback__card--form { padding: 22px 18px; }
  .callback__lead { font-size: 16px; margin: 14px 0 16px; }
  .callback__phone { font-size: 26px; }
  .callback__form-title { font-size: 18px; }
  .callback__submit { width: 100%; }
  .ft-v3-page .ft-v3-modal .modal-dialog {
    width: calc(100% - 24px);
    margin: 0 auto;
  }
  .ft-v3-page .ft-v3-modal .modal-header { padding: 24px 22px 10px; }
  .ft-v3-page .ft-v3-modal .modal-body { padding: 10px 22px 24px; }
  .ft-v3-page .ft-v3-modal .modal-title { font-size: 19px; }

  /* Thank-you (jGrowl): center on mobile — base theme keeps right:0 + fixed 400px */
  .ft-v3-page .jGrowl.top-right,
  .ft-v3-page #jGrowl.jGrowl {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: auto !important;
    max-width: calc(100vw - 24px);
    transform: translate(-50%, -50%) !important;
    z-index: 5000000000 !important;
  }
  .ft-v3-page #jGrowl .jGrowl-notification,
  .ft-v3-page .jGrowl .jGrowl-notification {
    width: min(400px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .ft-v3-page #jGrowl .jGrowl-notification .jGrowl-message {
    font-size: 18px;
    line-height: 1.35;
  }
}
