:root {
  --bg: #f4f1ea;
  --bg-soft: #ebe7de;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #1e2420;
  --muted: #656b66;
  --forest: #2f473a;
  --forest-deep: #203229;
  --forest-soft: #dfe8e1;
  --stone: #857564;
  --line: #d9d3c8;
  --line-dark: #bdb5a7;
  --warm: #d9c9b6;
  --danger: #9b332b;
  --shadow-sm: 0 12px 35px rgba(34, 42, 37, 0.07);
  --shadow-lg: 0 30px 80px rgba(28, 37, 31, 0.14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1200px;
  --header-height: 82px;
  --font-sans: Inter, Onest, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #9e6d32;
  outline-offset: 4px;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(244, 241, 234, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(249, 247, 242, 0.97);
  border-color: rgba(81, 86, 81, 0.12);
  box-shadow: 0 8px 30px rgba(42, 49, 45, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 29px 0 27px;
  color: #47504a;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: var(--forest);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-contact {
  display: grid;
  text-align: right;
  line-height: 1.2;
}

.header-contact span {
  color: var(--muted);
  font-size: 11px;
}

.header-contact strong {
  margin-top: 3px;
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--small {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 13px;
}

.button--dark,
.button--primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 25px rgba(47, 71, 58, 0.16);
}

.button--primary {
  min-height: 58px;
  padding-inline: 28px;
}

.button--dark:hover,
.button--primary:hover {
  background: var(--forest-deep);
  box-shadow: 0 14px 30px rgba(31, 49, 39, 0.24);
}

.button--outline {
  color: var(--forest);
  background: transparent;
  border-color: var(--forest);
}

.button--outline:hover {
  color: #fff;
  background: var(--forest);
}

.button--light {
  color: var(--forest-deep);
  background: #f8f5ee;
}

.button--light:hover {
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  z-index: 99;
  top: 100%;
  right: 0;
  left: 0;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  background: rgba(249, 247, 242, 0.99);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  padding-top: 32px;
  padding-bottom: 48px;
}

.mobile-menu nav > a:not(.button) {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 24px;
}

.mobile-menu nav > .mobile-menu-social:not(.button) {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mobile-menu-social img {
  flex: 0 0 auto;
}

.mobile-menu .button {
  margin-top: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 74px;
}

.hero::before {
  position: absolute;
  top: 4%;
  left: -7%;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(166, 151, 131, 0.17), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(470px, 1.12fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.military-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot,
.military-label span {
  width: 7px;
  height: 7px;
  background: #718977;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(113, 137, 119, 0.13);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 700px;
  margin: 25px 0 24px;
  font-size: clamp(48px, 5.35vw, 74px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.04;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: #525a54;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
}

.text-link svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 160ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.hero-facts {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1.1fr;
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  display: grid;
  padding: 0 17px;
  line-height: 1.2;
}

.hero-facts > div:first-child {
  padding-left: 0;
}

.hero-facts > div + div {
  border-left: 1px solid var(--line);
}

.hero-facts strong {
  color: var(--forest);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.hero-facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  margin: 0;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -22px;
  width: 72%;
  height: 58%;
  border: 1px solid rgba(47, 71, 58, 0.24);
  border-radius: var(--radius-lg);
  content: "";
}

.hero-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(17, 25, 20, 0.42));
  border-radius: var(--radius-lg);
  content: "";
  pointer-events: none;
}

.hero-visual > img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: 68% center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-visual-card {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: 25px;
  display: flex;
  align-items: center;
  width: min(285px, 78%);
  padding: 16px 18px;
  gap: 13px;
  background: rgba(255, 253, 249, 0.96);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  line-height: 1.35;
}

.hero-visual-card svg {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 5px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.5;
}

.hero-visual-card span {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.hero-visual-card strong {
  color: var(--ink);
}

.hero-drawing::after {
  display: none;
}

.hero-drawing__stage {
  position: relative;
  width: 100%;
  height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 20%, rgba(181, 143, 91, 0.2), transparent 24%),
    radial-gradient(circle at 22% 76%, rgba(66, 99, 78, 0.12), transparent 31%),
    linear-gradient(145deg, #f8f5ee 0%, #eee8dd 57%, #e2d9cb 100%);
  border: 1px solid rgba(74, 86, 78, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-drawing__stage::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 71, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 71, 58, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.72), transparent 76%);
  pointer-events: none;
}

.hero-drawing__stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(48, 61, 52, 0.08));
  content: "";
  pointer-events: none;
}

/* Ореол теперь нарисован внутри SVG, поэтому всегда совпадает
   с памятником при любой ширине экрана. */
.hero-drawing__halo-rings circle {
  fill: none;
  stroke: rgba(166, 127, 74, 0.26);
  stroke-width: 1;
  opacity: 0;
  animation: hero-drawing-wash-in 900ms ease 200ms forwards;
}

.hero-drawing__halo-rings circle:nth-child(2) {
  stroke: rgba(47, 71, 58, 0.13);
  animation-delay: 300ms;
}

.hero-drawing__halo-rings circle:nth-child(3) {
  stroke: rgba(47, 71, 58, 0.1);
  animation-delay: 400ms;
}

.hero-drawing__art {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-drawing__atmosphere circle {
  fill: rgba(183, 143, 88, 0.11);
  opacity: 0;
  animation: hero-drawing-wash-in 900ms ease 280ms forwards;
}

.hero-drawing__atmosphere path {
  fill: none;
  stroke: rgba(120, 105, 84, 0.2);
  stroke-width: 1.2;
}

.hero-drawing__stroke {
  fill: none;
  stroke: #354f40;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-drawing-draw 1050ms cubic-bezier(0.65, 0, 0.35, 1) var(--draw-delay, 0ms) forwards;
}

.hero-drawing__stroke--main {
  stroke-width: 3;
}

.hero-drawing__stroke--fine {
  stroke-width: 1.35;
}

.hero-drawing__stroke--edge {
  stroke: #738779;
  stroke-width: 1.55;
}

.hero-drawing__stroke--light {
  stroke: rgba(241, 239, 231, 0.68);
  stroke-width: 1.4;
}

.hero-drawing__stroke--gold {
  stroke: #b48a50;
  stroke-width: 1.7;
}

.hero-drawing__stone,
.hero-drawing__stone-side,
.hero-drawing__base-top,
.hero-drawing__base-front,
.hero-drawing__earth {
  opacity: 0;
  transform: translateY(8px);
  animation: hero-drawing-stone-in 780ms cubic-bezier(0.22, 1, 0.36, 1) 980ms forwards;
}

.hero-drawing__stone {
  fill: url(#hero-stone);
}

.hero-drawing__stone-side {
  fill: url(#hero-stone-edge);
  animation-delay: 1120ms;
}

.hero-drawing__base-top {
  fill: #728579;
  animation-delay: 1220ms;
}

.hero-drawing__base-front {
  fill: #344c3e;
  animation-delay: 1320ms;
}

.hero-drawing__earth {
  fill: url(#hero-earth);
  opacity: 0;
  animation-delay: 1500ms;
}

.hero-drawing__leaf,
.hero-drawing__flower-center,
.hero-drawing__bud {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-drawing-petal-in 500ms cubic-bezier(0.22, 1, 0.36, 1) var(--fill-delay, 900ms) forwards;
}

.hero-drawing__leaf {
  fill: rgba(55, 82, 66, 0.38);
}

.hero-drawing__flower-center,
.hero-drawing__bud {
  fill: #bd9255;
  stroke: #f4ecdc;
  stroke-width: 1.5;
}

.hero-drawing__flower-center {
  animation-delay: 1160ms;
}

@keyframes hero-drawing-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-drawing-stone-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drawing-wash-in {
  to {
    opacity: 1;
  }
}

@keyframes hero-drawing-petal-in {
  from {
    opacity: 0;
    transform: scale(0.76);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-drawing-halo-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.trust-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-line__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  color: #585e59;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-line i {
  width: 4px;
  height: 4px;
  background: var(--stone);
  border-radius: 50%;
}

.section {
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin-top: 17px;
}

.section-heading > p,
.section-heading--center > p {
  max-width: 470px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-heading--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.section-heading--center > p {
  max-width: 690px;
}

.configurator {
  position: relative;
  overflow: hidden;
  background: #e8e3da;
}

.configurator::before {
  position: absolute;
  top: -230px;
  right: -190px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(68, 79, 71, 0.12);
  border-radius: 50%;
  content: "";
}

.configurator-heading {
  position: relative;
  z-index: 1;
}

.configurator-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(355px, 0.82fr);
  overflow: hidden;
  background: var(--forest-deep);
  border: 1px solid rgba(36, 45, 39, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px rgba(36, 43, 38, 0.18);
}

.configurator-visual {
  position: relative;
  min-width: 0;
  padding: 36px 34px 31px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 39%, rgba(155, 174, 160, 0.18), transparent 33%),
    linear-gradient(145deg, #34483d, #1b2922 72%);
}

.configurator-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  pointer-events: none;
}

.config-preview-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
}

.config-arrow {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  color: #f3efe8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.config-arrow:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.04);
}

.config-arrow svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.config-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 500px;
  transition: opacity 160ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.config-preview.is-changing {
  opacity: 0.68;
  transform: translateY(3px) scale(0.992);
}

.config-preview__badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(7, 14, 10, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.config-preview > svg {
  width: min(100%, 470px);
  height: 100%;
  overflow: visible;
}

/* Сцена памятника целиком строится модулем monument3d.js:
   геометрия, цвет граней и гравировка задаются прямо в SVG. */

.m3d-fence {
  fill: none;
  color: #cbd3cd;
  stroke: #cbd3cd;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(3, 8, 5, 0.8));
}

.m3d-fence path {
  fill: none;
}

.config-current {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: -12px auto 0;
  text-align: center;
}

.config-current > span {
  color: #bfcac1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.config-current h3 {
  margin: 8px 0 7px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
}

.config-current p {
  max-width: 480px;
  min-height: 42px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.57);
  font-size: 12px;
  line-height: 1.6;
}

.config-fence-settings {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(185px, 1.1fr) minmax(140px, 0.8fr) minmax(150px, 1fr);
  align-items: end;
  max-width: 650px;
  margin: 18px auto 0;
  padding: 15px;
  gap: 12px;
  background: rgba(5, 12, 8, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.config-fence-settings[hidden],
.config-fence-settings__profile[hidden] {
  display: none;
}

.config-fence-settings.is-fixed {
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1.2fr);
}

.config-fence-settings__profile {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 6px;
}

.config-fence-settings__profile > span,
.config-fence-settings__length > span:first-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.config-fence-settings__profile label {
  position: relative;
  cursor: pointer;
}

.config-fence-settings__profile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.config-fence-settings__profile label span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
}

.config-fence-settings__profile input:checked + span {
  color: var(--forest-deep);
  background: #f5f1e9;
  border-color: #f5f1e9;
}

.config-fence-settings__profile input:focus-visible + span {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.config-fence-settings__length {
  display: grid;
  gap: 6px;
}

.config-fence-settings__input {
  position: relative;
  display: block;
}

.config-fence-settings__input input {
  width: 100%;
  min-height: 40px;
  padding: 8px 34px 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 9px;
  font: inherit;
  font-size: 11px;
}

.config-fence-settings__input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.config-fence-settings__input small {
  position: absolute;
  top: 50%;
  right: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  transform: translateY(-50%);
}

.config-fence-settings__note {
  display: grid;
  align-self: center;
  gap: 5px;
}

.config-fence-settings__note span {
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.config-fence-settings__note small {
  color: rgba(255, 255, 255, 0.47);
  font-size: 8px;
  line-height: 1.4;
}

.config-fence-settings__note a {
  color: #c5d1c8;
  font-size: 9px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(197, 209, 200, 0.4);
  text-underline-offset: 3px;
}

.config-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.config-dots i {
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: width 180ms ease, background 180ms ease;
}

.config-dots i.is-active {
  width: 22px;
  background: #d7e0d9;
  border-radius: 999px;
}

.configurator-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px 35px 34px;
  background: var(--surface);
}

.configurator-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.configurator-panel__top > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.configurator-panel__top strong {
  color: var(--stone);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.config-steps {
  display: grid;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.config-steps li {
  border-bottom: 1px solid var(--line);
}

.config-steps button {
  display: grid;
  grid-template-columns: 34px 0.7fr 1.3fr;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 10px 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease;
}

.config-steps button:hover {
  background: #f0ede7;
}

.config-steps button[aria-current="step"] {
  background: var(--forest-soft);
}

.config-steps button > span {
  color: var(--stone);
  font-size: 9px;
  font-weight: 800;
}

.config-steps button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.config-steps button strong {
  justify-self: end;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.config-step-actions {
  display: grid;
  grid-template-columns: 0.64fr 1.36fr;
  gap: 9px;
  margin-top: 20px;
}

.config-step-actions button {
  min-height: 47px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.config-step-back {
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line-dark);
}

.config-step-back:disabled {
  cursor: default;
  opacity: 0.42;
}

.config-step-next {
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
}

.config-step-next:hover {
  background: var(--forest-deep);
}

.config-result {
  margin-top: 24px;
  padding: 24px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: 17px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.config-result.is-ready {
  box-shadow: 0 0 0 4px rgba(47, 71, 58, 0.15);
  transform: translateY(-2px);
}

.config-result > span {
  color: #bdc9bf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.config-result p {
  margin: 10px 0 9px;
  color: rgba(255, 255, 255, 0.79);
  font-size: 12px;
  line-height: 1.6;
}

.config-estimate {
  display: block;
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.config-result .button {
  width: 100%;
  min-height: 51px;
  color: var(--forest-deep);
  background: #f5f1e9;
  box-shadow: none;
}

.config-result .button:hover {
  color: var(--forest-deep);
  background: #fff;
}

.config-result small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8.5px;
  line-height: 1.45;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 34px 32px 30px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.36);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  z-index: 2;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.service-card--featured {
  background: var(--forest);
}

.service-card--featured:hover {
  background: var(--forest-deep);
}

.service-card--featured h3,
.service-card--featured p,
.service-card--featured .card-index,
.service-card--featured .card-link {
  color: #fff;
}

.service-card--featured p {
  color: rgba(255, 255, 255, 0.69);
}

.service-card--featured .service-icon {
  color: #f0ede5;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.service-card--military {
  background: #e7ebe6;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--forest);
  background: #e9e5dc;
  border: 1px solid #d9d2c6;
  border-radius: 50%;
}

.service-icon svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-index {
  position: absolute;
  top: 37px;
  right: 32px;
  color: #858a85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin: 44px 0 14px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-link {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 8px 0;
  color: var(--forest);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.card-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 160ms ease;
}

.card-link:hover span {
  transform: translateX(4px);
}

.section--stone {
  background: #e9e5dc;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(101, 102, 95, 0.16);
  border-radius: var(--radius-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.solution-card--accent {
  box-shadow: 0 20px 60px rgba(39, 48, 42, 0.1);
  transform: translateY(-12px);
}

.solution-card--accent:hover {
  transform: translateY(-16px);
}

.solution-visual {
  position: relative;
  display: grid;
  place-items: end center;
  height: 270px;
  padding: 35px 20px 30px;
  overflow: hidden;
}

.solution-visual::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(115deg, transparent 0 47%, rgba(255, 255, 255, 0.05) 48% 50%, transparent 51%);
  content: "";
}

.solution-visual--light {
  background: #b8b7b0;
}

.solution-visual--dark {
  background: #26332d;
}

.solution-visual--warm {
  background: #a29485;
}

.solution-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(31, 36, 33, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.monument {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.23));
}

.monument::after {
  position: absolute;
  right: 50%;
  bottom: -15px;
  width: 190px;
  height: 18px;
  background: inherit;
  border-radius: 2px;
  content: "";
  transform: translateX(50%);
}

.monument--simple {
  width: 108px;
  height: 160px;
  background: linear-gradient(105deg, #525551, #2a2d2a 60%, #686a66);
  border-radius: 50px 50px 3px 3px;
}

.monument--simple::after {
  background: #3c3f3c;
}

.monument--simple span,
.monument--classic span {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transform: translateX(-50%);
}

.monument--classic {
  width: 125px;
  height: 180px;
  background: linear-gradient(110deg, #101614, #29312d 54%, #0a0e0d);
  border-radius: 65px 65px 3px 3px;
  clip-path: polygon(8% 12%, 50% 0, 92% 12%, 100% 100%, 0 100%);
}

.monument--classic::after {
  bottom: -12px;
  background: #171d1a;
}

.monument--family {
  display: flex;
  align-items: end;
  gap: 8px;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.24));
}

.monument--family::after {
  bottom: -13px;
  background: #3e3d3a;
}

.monument--family span {
  display: block;
  width: 84px;
  height: 148px;
  background: linear-gradient(108deg, #575651, #252724 57%, #66645f);
  border-radius: 44px 44px 2px 2px;
}

.monument--family span:last-child {
  height: 168px;
}

.solution-copy {
  padding: 28px 27px 30px;
}

.solution-copy > span {
  color: var(--stone);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solution-copy h3 {
  margin: 9px 0 12px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.solution-copy p {
  min-height: 66px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.text-button {
  min-height: 44px;
  padding: 0;
  color: var(--forest);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(47, 71, 58, 0.36);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.text-button:hover {
  border-color: var(--forest);
}

/* Реальные работы */
.works {
  background: #e9e5dc;
}

.works-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.works-filters button {
  min-height: 40px;
  padding: 8px 15px;
  color: #505a53;
  background: rgba(255, 253, 249, 0.54);
  border: 1px solid rgba(62, 73, 66, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.works-filters button:hover,
.works-filters button:focus-visible,
.works-filters button.is-active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.works-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.works-grid {
  display: grid;
  grid-auto-rows: 250px;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 14px;
}

.work-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #26312b;
  border: 1px solid rgba(39, 46, 41, 0.12);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(30, 36, 32, 0.08);
}

.work-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card--wide {
  grid-column: span 2;
}

.work-card::after {
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 15, 0.82));
  content: "";
  pointer-events: none;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 220ms ease;
}

.work-card--featured img,
.work-card--wide img {
  object-position: 50% 45%;
}

.work-card:hover img,
.work-card:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.035);
}

.work-card__copy {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 19px;
  left: 20px;
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.work-card__copy small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card__copy strong {
  max-width: 520px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.work-card--featured .work-card__copy {
  right: 28px;
  bottom: 27px;
  left: 28px;
}

.work-card--featured .work-card__copy strong {
  font-size: 28px;
}

.works-more {
  display: grid;
  justify-items: center;
  margin-top: 28px;
  gap: 11px;
  text-align: center;
}

.works-more small {
  color: var(--muted);
  font-size: 9px;
}

.works-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 23px 25px;
  gap: 28px;
  background: rgba(255, 253, 249, 0.62);
  border: 1px solid rgba(93, 92, 84, 0.17);
  border-radius: 16px;
}

.works-note p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.works-note strong {
  color: var(--ink);
}

body.dialog-open {
  overflow: hidden;
}

.works-lightbox {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.works-lightbox__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(12, 17, 14, 0.88);
  border: 0;
  cursor: zoom-out;
  backdrop-filter: blur(12px);
}

.works-lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  padding: 18px;
  gap: 14px;
  background: #151c18;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.works-lightbox figure {
  min-width: 0;
  margin: 0;
}

.works-lightbox figure img {
  width: 100%;
  max-height: calc(100vh - 165px);
  object-fit: contain;
  background: #0d120f;
  border-radius: 14px;
}

.works-lightbox figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 14px 3px 2px;
  gap: 2px 20px;
  color: #fff;
}

.works-lightbox figcaption span {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.works-lightbox figcaption strong {
  grid-column: 1;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
}

.works-lightbox figcaption small {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.58);
  font-variant-numeric: tabular-nums;
}

.works-lightbox__close,
.works-lightbox__nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  font-size: 23px;
  transition: background 160ms ease, transform 160ms ease;
}

.works-lightbox__close:hover,
.works-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: scale(1.04);
}

.works-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
}

/* Подбор ограды */
.fence-builder {
  position: relative;
  overflow: hidden;
}

.fence-builder::before {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(47, 71, 58, 0.1), transparent 68%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.fence-builder__shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: start;
  gap: 20px;
}

.fence-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.fence-choice {
  position: relative;
  display: grid;
  padding: 13px;
  gap: 13px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fence-choice:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 13px) / 2);
}

.fence-choice:hover {
  border-color: rgba(47, 71, 58, 0.48);
  transform: translateY(-2px);
}

.fence-choice.is-selected {
  background: #fffdf9;
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(47, 71, 58, 0.11), var(--shadow-sm);
}

.fence-choice:has(input:checked) {
  background: #fffdf9;
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(47, 71, 58, 0.11), var(--shadow-sm);
}

.fence-choice:has(input:focus-visible) {
  outline: 3px solid #9e6d32;
  outline-offset: 3px;
}

.fence-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fence-pattern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 105px;
  padding: 10px 12px;
  overflow: hidden;
  color: #30443a;
  background-color: #efede7;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(48, 68, 58, 0.18);
}

.fence-pattern svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fence-choice__copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1px 10px;
}

.fence-choice__copy small {
  grid-column: 1 / -1;
  color: var(--stone);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fence-choice__copy strong {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.fence-choice__copy em {
  color: var(--forest);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.fence-controls {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  padding: 27px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: 21px;
  box-shadow: var(--shadow-lg);
}

.fence-controls__heading {
  display: grid;
  padding-bottom: 20px;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.fence-controls__heading span,
.fence-total > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fence-controls__heading strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.fence-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 21px 0 0;
  padding: 0;
  gap: 9px;
  border: 0;
}

.fence-profile legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
}

.fence-profile label {
  position: relative;
  cursor: pointer;
}

.fence-profile input {
  position: absolute;
  opacity: 0;
}

.fence-profile label > span {
  display: grid;
  min-height: 70px;
  padding: 13px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.fence-profile input:checked + span {
  color: var(--forest-deep);
  background: #eef2ed;
  border-color: #eef2ed;
}

.fence-profile input:focus-visible + span {
  outline: 3px solid #d1a666;
  outline-offset: 3px;
}

.fence-profile label strong {
  font-size: 15px;
}

.fence-profile label small {
  color: inherit;
  opacity: 0.72;
  font-size: 9px;
}

.fence-profile-note {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.fence-length {
  display: grid;
  margin-top: 21px;
  gap: 8px;
}

.fence-length > span:first-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.fence-length > span:first-child small {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 500;
}

.fence-length__field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

.fence-length__field input {
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.fence-length__field:focus-within {
  outline: 3px solid #d1a666;
  outline-offset: 2px;
}

.fence-length__field b {
  padding: 0 14px;
  color: var(--muted);
  font-size: 11px;
}

.fence-measure-help {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
}

.fence-measure-help summary {
  width: fit-content;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fence-measure-help p {
  margin: 7px 0 0;
}

.fence-total {
  display: grid;
  margin: 22px 0 17px;
  padding-top: 21px;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.fence-total strong {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.16;
}

.fence-total small,
.fence-disclaimer {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.fence-controls .button {
  width: 100%;
}

.fence-disclaimer {
  margin: 12px 0 0;
  text-align: center;
}

.compact-price-list strong a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: rgba(47, 71, 58, 0.3);
  text-underline-offset: 3px;
}

.price-note {
  display: flex;
  align-items: flex-start;
  max-width: 880px;
  margin: 48px auto 0;
  padding: 20px 24px;
  gap: 14px;
  background: rgba(255, 253, 249, 0.62);
  border: 1px solid rgba(93, 92, 84, 0.17);
  border-radius: 14px;
}

.price-note svg {
  flex: 0 0 auto;
  width: 23px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.6;
}

.price-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.price-note strong {
  color: var(--ink);
}

.prices {
  background: var(--surface);
}

.price-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.price-highlights article {
  display: grid;
  min-height: 165px;
  padding: 26px;
  background: #ebe7de;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.price-highlights span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-highlights strong {
  align-self: end;
  color: var(--forest-deep);
  font-family: var(--font-serif);
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 600;
}

.price-highlights small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.all-prices {
  overflow: hidden;
  background: #f8f6f1;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
}

.all-prices > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 20px 18px 24px;
  gap: 24px;
  cursor: pointer;
  list-style: none;
}

.all-prices > summary::-webkit-details-marker {
  display: none;
}

.all-prices > summary > span {
  display: grid;
  gap: 5px;
}

.all-prices > summary strong {
  color: var(--forest-deep);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.all-prices > summary small {
  color: var(--muted);
  font-size: 10px;
}

.all-prices > summary b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.all-prices > summary b::after {
  margin-left: 9px;
  content: "+";
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.all-prices[open] > summary {
  border-bottom: 1px solid var(--line-dark);
}

.all-prices[open] > summary b::after {
  content: "−";
}

.all-prices__close-label {
  display: none;
}

.all-prices[open] .all-prices__open-label {
  display: none;
}

.all-prices[open] .all-prices__close-label {
  display: inline;
}

.price-catalog {
  padding-inline: 24px;
}

.price-catalog details {
  border-bottom: 1px solid var(--line-dark);
}

.price-catalog summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 20px 46px 20px 4px;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 600;
  list-style: none;
}

.price-catalog summary::-webkit-details-marker {
  display: none;
}

.price-catalog summary::after {
  position: absolute;
  right: 7px;
  width: 28px;
  height: 28px;
  color: var(--forest);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  content: "+";
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 25px;
  text-align: center;
}

.price-catalog details[open] summary::after {
  content: "−";
}

.price-catalog summary {
  position: relative;
}

.price-catalog summary span {
  color: var(--stone);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.price-table-wrap {
  overflow-x: auto;
  padding: 0 0 30px;
}

.price-table-wrap table {
  width: 100%;
  min-width: 510px;
  border-collapse: collapse;
}

.price-table-wrap th,
.price-table-wrap td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}

.price-table-wrap th {
  color: var(--muted);
  background: #eeebe4;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-table-wrap td:not(:first-child) {
  font-weight: 750;
}

.price-source-note {
  max-width: 760px;
  margin: -14px 0 30px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.price-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  padding: 0 0 34px;
}

.price-columns > div {
  min-width: 0;
  padding: 22px;
  background: #efede7;
  border-radius: 13px;
}

.price-columns h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.price-columns > div > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.compact-price-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-price-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 9px 0;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.35;
}

.compact-price-list li:last-child {
  border-bottom: 0;
}

.compact-price-list span {
  color: var(--muted);
}

.compact-price-list strong {
  color: var(--forest-deep);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.prices-disclaimer {
  max-width: 850px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.care-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(48px, 8vw, 105px);
}

.care-visual {
  position: relative;
  margin: 0;
}

.care-visual::before {
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -24px;
  width: 56%;
  height: 64%;
  border: 1px solid rgba(47, 71, 58, 0.25);
  border-radius: 0 0 90px 0;
  content: "";
}

.care-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 42% center;
  border-radius: 150px 0 0 0;
  box-shadow: var(--shadow-lg);
}

.care-copy h2 {
  max-width: 560px;
  margin: 18px 0 25px;
}

.care-lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.check-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 59px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
}

.check-list span {
  color: var(--stone);
  font-size: 10px;
  font-weight: 800;
}

.military {
  padding-top: 0;
}

.military-panel {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  padding: 54px 60px;
  gap: 40px;
  color: #f4f3ee;
  background: var(--forest-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.military-symbol {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #c7d2c9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.military-symbol svg {
  width: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.military-label {
  color: #c7d2c9;
}

.military-label span {
  background: #b4c5b7;
  box-shadow: 0 0 0 5px rgba(196, 213, 200, 0.1);
}

.military-copy h2 {
  max-width: 700px;
  margin: 14px 0 15px;
  font-size: clamp(34px, 3.6vw, 50px);
}

.military-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.7;
}

.military-action {
  display: grid;
  justify-items: center;
  gap: 11px;
}

.military-action small {
  max-width: 210px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.process {
  background: var(--surface);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  padding: 34px 28px 10px 0;
  border-top: 1px solid var(--line-dark);
}

.process-list li::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--surface);
  content: "";
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--forest), transparent);
  content: "";
}

.process-number {
  display: block;
  margin-bottom: 45px;
  color: var(--stone);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.process-list h3 {
  max-width: 200px;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
}

.process-list p {
  max-width: 230px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.calculator {
  background: var(--forest);
}

.calculator-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(45px, 7vw, 90px);
}

.calculator-intro {
  color: #fff;
}

.section-kicker--light {
  color: #cbd7ce;
}

.calculator-intro h2 {
  margin: 18px 0 24px;
}

.calculator-intro > p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.75;
}

.calculator-promise {
  display: flex;
  align-items: flex-start;
  margin-top: 38px;
  padding-top: 25px;
  gap: 13px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 1.55;
}

.calculator-promise svg {
  flex: 0 0 auto;
  width: 24px;
  fill: none;
  stroke: #cbd7ce;
  stroke-width: 1.5;
}

.lead-form {
  padding: 38px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 70px rgba(7, 18, 12, 0.2);
}

.selected-configuration {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px 16px;
  gap: 16px;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border: 1px solid #b7c6ba;
  border-radius: 11px;
}

.selected-configuration + .selected-configuration {
  margin-top: -13px;
}

.selected-configuration--fence {
  background: #f2ece1;
  border-color: #d2c2aa;
}

.selected-configuration > div {
  display: grid;
  gap: 3px;
}

.selected-configuration span {
  color: #607065;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selected-configuration strong {
  font-size: 11px;
  line-height: 1.45;
}

.selected-configuration button {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--forest);
  background: transparent;
  border: 1px solid #9caf9f;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.lead-form fieldset {
  margin: 0 0 27px;
  padding: 0;
  border: 0;
}

.lead-form legend {
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 800;
}

.choice-hint {
  margin: -7px 0 13px;
  color: var(--muted);
  font-size: 9px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice {
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #efede7;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  transition: background 160ms ease, border 160ms ease, color 160ms ease;
}

.choice span::before {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 1px solid #8a8f8a;
  border-radius: 4px;
  content: "";
}

.choice input:checked + span {
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-color: #aebdb2;
}

.choice input:checked + span::before {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.choice input:focus-visible + span {
  outline: 3px solid #9e6d32;
  outline-offset: 2px;
}

.lead-form fieldset[aria-invalid="true"] .choice span {
  border-color: var(--danger);
  background: #fff5f3;
}

.lead-form fieldset.is-invalid legend,
.lead-form .field.is-invalid > span,
.lead-form .consent.is-invalid span {
  color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.field > span {
  font-size: 11px;
  font-weight: 750;
}

.field > span b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.field > span em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.field input:not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: #f7f5f0;
  border: 1px solid #d8d2c8;
  border-radius: 9px;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:not([type="file"]),
.field select {
  height: 49px;
  padding: 0 14px;
}

.field textarea {
  min-height: 122px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5f665f 50%),
    linear-gradient(135deg, #5f665f 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input:not([type="file"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 71, 58, 0.1);
  outline: none;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff8f6;
  box-shadow: 0 0 0 3px rgba(155, 51, 43, 0.12);
}

.field small {
  color: var(--muted);
  font-size: 9px;
}

.field-error {
  margin: 0;
  color: var(--danger) !important;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none !important;
}

.field-error--consent {
  margin-top: 7px;
}

.file-field {
  position: relative;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-ui {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 15px;
  gap: 11px;
  color: var(--muted);
  background: transparent;
  border: 1px dashed #b7afa3;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.file-ui svg {
  width: 20px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-field input:focus-visible + .file-ui {
  outline: 3px solid #9e6d32;
  outline-offset: 2px;
}

.form-online-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  margin-bottom: 18px;
  padding: 14px 15px;
  gap: 11px;
  color: var(--forest-deep);
  background: #f2eee6;
  border: 1px solid #d8d0c4;
  border-radius: 9px;
}

.form-online-note svg {
  width: 22px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-online-note div {
  display: grid;
  gap: 3px;
}

.form-online-note strong {
  font-size: 11px;
}

.form-online-note span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: flex-start;
  gap: 9px;
  margin-top: 3px;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.consent input[aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 3px;
}

.consent span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.consent a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.form-footer .button {
  flex: 1 1 0;
}

.form-call-button {
  color: var(--forest);
  background: transparent;
  border-color: var(--forest);
}

.form-call-button:hover {
  color: #fff;
  background: var(--forest);
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 15px 17px;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border: 1px solid #b7c6ba;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #7e251f;
  background: #fff1ee;
  border-color: #d9a09a;
}

.submission-dialog {
  width: min(740px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  box-shadow: 0 36px 110px rgba(7, 18, 12, 0.4);
}

.submission-dialog:not([open]) {
  display: none;
}

.submission-dialog.is-compat-open {
  position: fixed;
  z-index: 10001;
  inset: 14px;
  display: block;
  margin: auto;
}

.submission-dialog::backdrop {
  background: rgba(12, 24, 18, 0.68);
  backdrop-filter: blur(9px) saturate(0.78);
}

.submission-dialog__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(310px, 1fr);
  height: min(540px, calc(100vh - 28px));
  height: min(540px, calc(100dvh - 28px));
}

.submission-dialog__heading {
  position: relative;
  padding: 29px 82px 22px 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 89% 4%, rgba(211, 190, 158, 0.36), transparent 32%),
    linear-gradient(145deg, #fffdf9 4%, #f1ede4 100%);
  border-bottom: 1px solid #d8d0c4;
}

.submission-dialog__heading::after {
  position: absolute;
  top: -78px;
  right: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(47, 71, 58, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.submission-dialog__heading-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 16px;
}

.submission-dialog__mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-top: 2px;
  color: #fff;
  background: linear-gradient(145deg, #405e4e, var(--forest-deep));
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(31, 53, 42, 0.2);
}

.submission-dialog__mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.submission-dialog__heading h2 {
  margin: 5px 0 7px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.08;
}

.submission-dialog__heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.submission-dialog__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 19px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--forest);
  background: rgba(255, 253, 249, 0.76);
  border: 1px solid rgba(47, 71, 58, 0.16);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.submission-dialog__close svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.submission-dialog__close:hover {
  color: #fff;
  background: var(--forest);
  transform: rotate(4deg);
}

.submission-dialog__form-shell {
  min-height: 0;
  padding: 19px 21px 22px;
  overflow-y: auto;
  background: #ece8df;
}

.submission-form {
  display: grid;
  gap: 14px;
}

.submission-summary {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  color: var(--forest-deep);
  background: #fffdf9;
  border: 1px solid rgba(82, 95, 87, 0.12);
  border-radius: 14px;
}

.submission-summary strong {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
}

.submission-summary p,
.submission-summary span {
  margin: 0;
}

.submission-summary p {
  font-size: 12px;
  font-weight: 700;
}

.submission-summary span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.submission-upload {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  background: rgba(255, 253, 249, 0.8);
  border: 1px dashed rgba(47, 71, 58, 0.33);
  border-radius: 14px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.submission-upload:hover {
  background: #fffdf9;
  border-color: var(--forest);
}

.submission-upload__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 12px;
}

.submission-upload__icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.submission-upload > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.submission-upload strong {
  font-size: 12px;
}

.submission-upload strong em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

.submission-upload small,
.submission-privacy {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.submission-upload__button {
  padding: 9px 12px;
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(47, 71, 58, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.submission-upload input,
.submission-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.submission-upload:focus-within {
  outline: 3px solid #9e6d32;
  outline-offset: 2px;
}

.submission-file-list {
  display: grid;
  gap: 7px;
}

.submission-file-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--forest-deep);
  background: rgba(255, 253, 249, 0.78);
  border-radius: 9px;
  font-size: 10px;
}

.submission-file-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submission-file-list small {
  flex: 0 0 auto;
  color: var(--muted);
}

.submission-privacy {
  margin: 0;
}

.submission-message {
  display: none;
  padding: 10px 12px;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border: 1px solid #b7c6ba;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.45;
}

.submission-message.is-visible {
  display: block;
}

.submission-message.is-error {
  color: #7e251f;
  background: #fff1ee;
  border-color: #d9a09a;
}

.submission-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
}

.submission-actions .button {
  min-height: 48px;
  padding: 13px 18px;
}

.submission-back {
  color: var(--forest);
  background: transparent;
  border-color: var(--forest);
}

.submission-back:hover {
  color: #fff;
  background: var(--forest);
}

.submission-success {
  min-height: 100%;
  padding: 42px 24px 30px;
  text-align: center;
  background: #fffdf9;
  border: 1px solid rgba(82, 95, 87, 0.12);
  border-radius: 17px;
}

.submission-success__mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--forest);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(31, 53, 42, 0.2);
}

.submission-success__mark svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.submission-success h3 {
  margin: 8px 0 9px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
}

.submission-success p {
  max-width: 440px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.submission-actions--success {
  max-width: 480px;
  margin: 0 auto;
}

body.submission-dialog-open {
  overflow: hidden;
}

body:has(.submission-dialog[open]) {
  overflow: hidden;
}

body.submission-dialog-fallback-open::before {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(12, 24, 18, 0.68);
  content: "";
}

.about-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
}

.about-grid--without-photo {
  display: block;
}

.about-copy--wide {
  max-width: 980px;
  margin: 0 auto;
}

.about-portrait {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 460px;
  padding: 48px;
  color: #fff;
  background: linear-gradient(150deg, #657267, var(--forest-deep));
  border-radius: 180px 180px 20px 20px;
  box-shadow: var(--shadow-lg);
}

.about-monogram {
  align-self: center;
  justify-self: center;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-serif);
  font-size: 190px;
  line-height: 1;
}

.about-portrait > div:last-child {
  display: grid;
  align-self: end;
}

.about-portrait span {
  font-family: var(--font-serif);
  font-size: 22px;
}

.about-portrait small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.about-copy h2 {
  margin: 18px 0 29px;
}

.about-copy blockquote {
  position: relative;
  margin: 0 0 23px;
  padding-left: 27px;
  color: #3f4741;
  border-left: 2px solid var(--forest);
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.6;
}

.about-copy > p {
  color: var(--muted);
  font-size: 12px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
}

.about-facts > div {
  display: grid;
  min-height: 130px;
  padding: 24px;
  gap: 8px;
  background: var(--surface);
}

.about-facts strong {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.about-facts span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.geography {
  padding-top: 0;
}

.geography-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 70px;
  padding: 68px 72px;
  background: #e5e1d8;
  border-radius: var(--radius-lg);
}

.geography-copy h2 {
  margin: 17px 0 21px;
}

.geography-copy > p {
  color: var(--muted);
  line-height: 1.7;
}

.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.place-list span {
  padding: 7px 11px;
  color: #4c534e;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(83, 86, 81, 0.15);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.geography-route {
  margin-top: 28px;
}

.area-map {
  overflow: hidden;
  background: #f6f4ee;
  border: 1px solid rgba(55, 63, 58, 0.16);
  border-radius: 24px;
  box-shadow: 0 22px 52px rgba(35, 43, 38, 0.12);
}

.area-map iframe {
  display: block;
  width: 100%;
  height: 410px;
  border: 0;
  background: #d9ddd8;
}

.contact-phone {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
}

.footer-legal a {
  margin-top: 4px;
  color: inherit;
  font-weight: 700;
}

.faq {
  background: var(--surface);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: 90px;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 35px);
}

.faq-heading h2 {
  margin: 18px 0 23px;
}

.faq-heading p {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 30px;
  align-items: center;
  min-height: 84px;
  gap: 25px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  position: relative;
  display: block;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
}

.faq-list summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-list details p {
  max-width: 680px;
  margin: -5px 55px 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contacts {
  padding: 0 0 76px;
  background: var(--surface);
}

.contacts-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 58px 64px;
  gap: 55px;
  color: #fff;
  background: var(--forest-deep);
  border-radius: var(--radius-lg);
}

.contacts-panel h2 {
  margin: 16px 0 15px;
  font-size: clamp(36px, 4vw, 52px);
}

.contacts-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.contacts-actions {
  display: grid;
  justify-items: center;
  gap: 13px;
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.contact-social {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.52);
  transform: translateY(-1px);
}

.contact-social__mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contact-social__logo {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.contact-social__mark--vk {
  background: #2787f5;
}

.contact-placeholder {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.site-footer {
  padding: 50px 0 30px;
  color: #d5d9d5;
  background: #161d19;
}

.brand--footer .brand-mark {
  stroke: #d5d9d5;
}

.brand--footer .brand-copy small {
  color: #848e87;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 55px;
  padding-bottom: 45px;
}

.footer-main nav {
  display: flex;
  gap: 22px;
  color: #9ca49e;
  font-size: 12px;
}

.footer-main nav a:hover {
  color: #fff;
}

.footer-legal {
  display: grid;
  justify-self: end;
  text-align: right;
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
  gap: 8px;
}

.footer-socials a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 0;
  padding: 5px 11px;
  border: 1px solid rgba(213, 217, 213, 0.24);
  border-radius: 999px;
  font-size: 12px;
}

.footer-socials img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  flex: 0 0 auto;
}

.details-content {
  display: flow-root;
  min-width: 0;
}

.footer-socials a:hover {
  color: #fff;
  border-color: rgba(213, 217, 213, 0.55);
}

.footer-legal strong {
  font-size: 12px;
}

.footer-legal span {
  margin-top: 4px;
  color: #7f8781;
  font-size: 10px;
}

.footer-legal small {
  max-width: 310px;
  margin-top: 7px;
  color: #7f8781;
  font-size: 9px;
  line-height: 1.45;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  padding-top: 24px;
  color: #747d76;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 9px;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom p:first-child {
  grid-row: 1 / span 2;
}

.footer-bottom p:not(:first-child) {
  grid-column: 2;
  max-width: 760px;
  justify-self: end;
  text-align: right;
}

.mobile-action-bar {
  display: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  :root {
    --header-height: 74px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-content: center;
  }

  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 535px;
    height: 535px;
  }

  .hero-drawing__stage {
    height: 535px;
  }

  .military-panel {
    grid-template-columns: 80px 1fr;
  }

  .military-symbol {
    width: 76px;
    height: 76px;
  }

  .military-action {
    grid-column: 2;
    justify-self: start;
    justify-items: start;
  }

  .military-action small {
    text-align: left;
  }

  .calculator-shell {
    grid-template-columns: 0.62fr 1.38fr;
    gap: 45px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 38px), var(--container));
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 55px 0 65px;
  }

  .hero-grid,
  .care-grid,
  .calculator-shell,
  .about-grid,
  .geography-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(48px, 8.5vw, 70px);
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 510px;
    height: 510px;
  }

  .hero-drawing__stage {
    height: 510px;
  }

  .trust-line__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 17px 0;
    gap: 12px;
  }

  .trust-line i {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 650px;
  }

  .configurator-shell {
    grid-template-columns: 1fr;
  }

  .configurator-visual {
    padding-bottom: 38px;
  }

  .configurator-panel {
    padding: 34px;
  }

  .config-result {
    margin-top: 30px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .solution-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .solution-card--accent,
  .solution-card--accent:hover {
    transform: none;
  }

  .works-grid {
    display: flex;
    margin-right: -24px;
    padding: 0 24px 12px 0;
    overflow-x: auto;
    gap: 14px;
    scroll-padding-inline: 0 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .work-card,
  .work-card--featured,
  .work-card--wide {
    flex: 0 0 340px;
    height: 430px;
    scroll-snap-align: start;
  }

  .work-card--featured .work-card__copy strong {
    font-size: 22px;
  }

  .works-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .works-lightbox__panel {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 14px;
  }

  .fence-builder__shell {
    grid-template-columns: 1fr;
  }

  .fence-controls {
    position: static;
  }

  .price-columns {
    grid-template-columns: 1fr 1fr;
  }

  .price-columns > div:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .care-visual {
    max-width: 680px;
  }

  .care-visual img {
    aspect-ratio: 16 / 11;
    border-radius: 100px 0 0 0;
  }

  .military {
    padding-top: 0;
  }

  .process-list {
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }

  .calculator-intro {
    max-width: 680px;
  }

  .calculator-promise {
    max-width: 460px;
  }

  .about-portrait {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    min-height: 330px;
    border-radius: 150px 20px 20px 150px;
  }

  .about-monogram {
    font-size: 140px;
  }

  .about-portrait > div:last-child {
    align-self: center;
  }

  .geography-grid {
    gap: 35px;
  }

  .area-map {
    width: 100%;
    max-width: 670px;
  }

  .faq-grid {
    gap: 50px;
  }

  .faq-heading {
    position: static;
  }

  .contacts-panel {
    grid-template-columns: 1fr;
  }

  .contacts-actions {
    justify-items: start;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main nav {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
    --radius-lg: 22px;
  }

  body {
    padding-bottom: 66px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .area-map {
    border-radius: 18px;
  }

  .area-map iframe {
    height: 320px;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 7.5px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-menu nav > a:not(.button) {
    font-size: 22px;
  }

  .hero {
    padding: 38px 0 48px;
  }

  .hero-grid {
    gap: 35px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  h1 {
    margin: 19px 0 20px;
    font-size: clamp(42px, 13vw, 58px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(35px, 10.7vw, 46px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts > div {
    padding: 0 9px;
  }

  .hero-facts strong {
    font-size: 15px;
  }

  .hero-facts span {
    font-size: 8px;
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 400px;
    height: 400px;
  }

  .hero-drawing {
    order: -1;
    min-height: 270px;
    height: 270px;
  }

  .hero-drawing__stage {
    height: 270px;
  }

  .hero-drawing__art {
    overflow: hidden;
    transform: scale(1.22);
    transform-origin: center 48%;
  }

  .hero-visual > img {
    object-position: 69% center;
  }

  .hero-visual::before {
    top: -10px;
    right: -8px;
  }

  .hero-visual-card {
    right: 10px;
    bottom: 12px;
    width: 265px;
    padding: 13px;
  }

  .trust-line__inner {
    font-size: 8.5px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    margin-top: 12px;
  }

  .section-heading > p,
  .section-heading--center > p {
    font-size: 14px;
  }

  .configurator-heading {
    margin-bottom: 33px;
  }

  .configurator-shell {
    margin-inline: -2px;
    border-radius: 18px;
  }

  .configurator-visual {
    padding: 22px 13px 30px;
  }

  .config-preview-wrap {
    display: block;
  }

  .config-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .config-arrow:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .config-arrow--prev {
    left: 3px;
  }

  .config-arrow--next {
    right: 3px;
  }

  .config-arrow svg {
    width: 20px;
  }

  .config-preview {
    width: 100%;
    padding-inline: 31px;
    height: 330px;
  }

  .config-preview__badge {
    top: 2px;
    padding: 5px 8px;
    font-size: 6.5px;
  }

  .config-current {
    margin-top: -4px;
  }

  .config-current h3 {
    font-size: 24px;
  }

  .config-current p {
    min-height: 58px;
    padding-inline: 14px;
    font-size: 10.5px;
  }

  .config-fence-settings,
  .config-fence-settings.is-fixed {
    grid-template-columns: 1fr;
    margin: 14px 7px 0;
    padding: 13px;
  }

  .config-fence-settings__profile {
    grid-template-columns: 1fr 1fr;
  }

  .config-fence-settings__profile > span {
    grid-column: 1 / -1;
  }

  .configurator-panel {
    padding: 27px 17px 22px;
  }

  .config-steps button {
    grid-template-columns: 28px 0.72fr 1.28fr;
    min-height: 65px;
    padding-inline: 8px;
  }

  .config-steps button strong {
    font-size: 10px;
  }

  .config-step-actions {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .config-result {
    padding: 21px 17px;
  }

  .selected-configuration {
    grid-template-columns: 1fr;
  }

  .selected-configuration button {
    justify-self: start;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 290px;
    padding: 28px 25px 24px;
  }

  .service-card h3 {
    margin-top: 34px;
  }

  .service-icon {
    width: 51px;
    height: 51px;
  }

  .card-index {
    top: 31px;
    right: 25px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-card:last-child {
    display: block;
    grid-column: auto;
  }

  .works-grid {
    margin-inline: -24px;
    padding-inline: 24px;
  }

  .work-card,
  .work-card--featured,
  .work-card--wide {
    flex-basis: min(82vw, 330px);
    height: 410px;
  }

  .work-card__copy,
  .work-card--featured .work-card__copy {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .work-card__copy strong,
  .work-card--featured .work-card__copy strong {
    font-size: 20px;
  }

  .works-note {
    padding: 20px;
  }

  .works-note .button {
    width: 100%;
  }

  .works-lightbox {
    padding: 0;
  }

  .works-lightbox__panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100vh;
    padding: 10px;
    border-radius: 0;
  }

  .works-lightbox figure img {
    max-height: calc(100vh - 125px);
  }

  .works-lightbox figcaption {
    padding-inline: 7px;
  }

  .works-lightbox figcaption strong {
    font-size: 18px;
  }

  .works-lightbox__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
  }

  .works-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .works-lightbox__nav--prev {
    left: 16px;
  }

  .works-lightbox__nav--next {
    right: 16px;
  }

  .works-lightbox__close {
    top: 14px;
    right: 14px;
  }

  .fence-catalog {
    grid-template-columns: 1fr;
  }

  .fence-choice:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .fence-pattern {
    height: 100px;
  }

  .fence-controls {
    padding: 23px 20px;
  }

  .solution-visual {
    height: 240px;
  }

  .price-note {
    padding: 17px;
  }

  .price-highlights,
  .price-columns,
  .about-facts {
    grid-template-columns: 1fr;
  }

  .price-columns > div:last-child:nth-child(3) {
    grid-column: auto;
  }

  .price-highlights article {
    min-height: 138px;
    padding: 22px;
  }

  .all-prices > summary {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
    gap: 15px;
  }

  .all-prices > summary b {
    width: 100%;
  }

  .price-catalog {
    padding-inline: 16px;
  }

  .price-catalog summary {
    grid-template-columns: 1fr;
    min-height: 76px;
    padding: 18px 42px 18px 2px;
    gap: 5px;
  }

  .price-catalog summary span {
    white-space: normal;
  }

  .price-columns > div {
    padding: 19px 16px;
  }

  .compact-price-list li {
    font-size: 10px;
  }

  .care-grid {
    gap: 55px;
  }

  .care-visual img {
    aspect-ratio: 4 / 5;
    border-radius: 80px 0 0 0;
  }

  .care-visual::before {
    right: -8px;
    bottom: -12px;
  }

  .military {
    padding-top: 0;
  }

  .military-panel {
    grid-template-columns: 1fr;
    padding: 36px 26px;
    gap: 25px;
    border-radius: 20px;
  }

  .military-symbol {
    width: 68px;
    height: 68px;
  }

  .military-symbol svg {
    width: 43px;
  }

  .military-action {
    grid-column: auto;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .process-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    padding: 24px 0 5px;
  }

  .process-list li::after {
    display: none;
  }

  .process-number {
    margin-bottom: 0;
  }

  .process-list h3 {
    margin-top: -4px;
  }

  .calculator-shell {
    gap: 35px;
  }

  .lead-form {
    padding: 25px 18px;
    border-radius: 16px;
  }

  .choice-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .about-grid {
    gap: 45px;
  }

  .about-portrait {
    grid-template-columns: 1fr;
    min-height: 390px;
    padding: 34px;
    border-radius: 130px 130px 18px 18px;
  }

  .about-monogram {
    font-size: 140px;
  }

  .about-copy blockquote {
    padding-left: 20px;
    font-size: 18px;
  }

  .about-facts > div {
    min-height: 0;
  }

  .geography-grid {
    padding: 43px 25px;
    border-radius: 18px;
  }

  .faq-grid {
    gap: 36px;
  }

  .faq-list summary {
    min-height: 77px;
    font-size: 18px;
  }

  .faq-list details p {
    margin-right: 0;
  }

  .contacts {
    padding-bottom: 45px;
  }

  .contacts-panel {
    padding: 38px 25px;
    gap: 30px;
    border-radius: 18px;
  }

  .contacts-actions,
  .contacts-actions .button {
    width: 100%;
  }

  .contact-socials {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-legal {
    justify-self: start;
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-bottom p:first-child {
    grid-row: auto;
  }

  .footer-bottom p:not(:first-child) {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    gap: 8px;
    background: rgba(247, 245, 239, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(15px);
  }

  .mobile-action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 7px;
    border: 1px solid var(--line-dark);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-action-bar a:last-child {
    color: #fff;
    background: var(--forest);
    border-color: var(--forest);
  }

  .mobile-action-bar svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 900px) {
  .works-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .works-grid.is-expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
    gap: 12px;
    scroll-snap-type: none;
  }

  .works-grid.is-expanded .work-card,
  .works-grid.is-expanded .work-card--wide {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: 320px;
    flex: none;
  }

  .works-grid.is-expanded .work-card--featured {
    grid-column: 1 / -1;
    height: 440px;
  }
}

@media (max-width: 640px) {
  .works-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .works-filters button {
    width: 100%;
    padding-inline: 10px;
  }

  .works-grid.is-expanded {
    grid-template-columns: 1fr;
  }

  .works-grid.is-expanded .work-card,
  .works-grid.is-expanded .work-card--featured,
  .works-grid.is-expanded .work-card--wide {
    grid-column: auto;
    height: 400px;
  }

  .works-more .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .submission-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 21px;
  }

  .submission-dialog__panel {
    grid-template-rows: auto minmax(300px, 1fr);
    height: min(640px, calc(100vh - 12px));
    height: min(640px, calc(100dvh - 12px));
  }

  .submission-dialog__heading {
    padding: 21px 55px 17px 18px;
  }

  .submission-dialog__heading-main {
    grid-template-columns: 40px 1fr;
    gap: 11px;
  }

  .submission-dialog__mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .submission-dialog__mark svg {
    width: 21px;
  }

  .submission-dialog__heading h2 {
    font-size: 25px;
  }

  .submission-dialog__heading p {
    font-size: 10px;
  }

  .submission-dialog__form-shell {
    padding: 10px;
  }

  .submission-dialog__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .submission-summary {
    padding: 13px 14px;
  }

  .submission-upload {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .submission-upload__icon {
    width: 36px;
    height: 36px;
  }

  .submission-upload__button {
    display: none;
  }

  .submission-actions {
    grid-template-columns: 1fr;
  }

  .submission-actions .button {
    min-height: 45px;
  }

  .submission-success {
    padding: 34px 17px 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-drawing__stroke {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .hero-drawing__stone,
  .hero-drawing__stone-side,
  .hero-drawing__base-top,
  .hero-drawing__base-front,
  .hero-drawing__earth,
  .hero-drawing__leaf,
  .hero-drawing__flower-center,
  .hero-drawing__bud,
  .hero-drawing__atmosphere circle,
  .hero-drawing__halo-rings {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .config-preview.is-changing {
    opacity: 1;
    transform: none;
  }
}

/* Страницы юридических документов */
.legal-page {
  background: var(--bg);
}

.legal-header {
  padding: 22px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.legal-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
  color: var(--muted);
}

.legal-back {
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  text-decoration: underline;
}

.legal-main {
  max-width: 820px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal-main h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.65rem);
  line-height: 1.14;
}

.legal-meta {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.legal-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.34rem);
  line-height: 1.28;
}

.legal-section p,
.legal-section li {
  color: var(--ink);
  line-height: 1.68;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section a,
.legal-footer a {
  color: var(--forest);
  text-underline-offset: 0.16em;
}

.legal-footer {
  padding: 26px 0 40px;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.legal-footer p {
  margin: 0 0 6px;
}
