/* Палитра: «Архитектурная солидность, фундаментальность и премиум-качество» */
:root {
  --white: #ffffff;       /* Белый фон */
  --alabaster: #f9f9f8;   /* Тёплый алебастр */
  --mineral: #f1f1ef;     /* Минеральный серый */
  --tint: #ebf3ee;        /* Хвойный тинт */
  --green: #1e6b47;       /* Лесная хвоя */
  --graphite: #2d312e;    /* Минеральный графит */

  --green-deep: #17573a;
  --muted: #5e6561;
  --line: rgba(45, 49, 46, 0.1);
  --green-a: rgba(30, 107, 71, 0.14);
  --shadow: 0 16px 40px rgba(45, 49, 46, 0.1);
  --shadow-soft: 0 8px 24px rgba(45, 49, 46, 0.07);
  --shadow-tile: 0 14px 34px rgba(30, 107, 71, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1440px;
  --pad: clamp(0.75rem, 2vw, 1.25rem);
  --gutter: max(var(--pad), calc((100vw - var(--container)) / 2));
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --icon-green: invert(31%) sepia(25%) saturate(1200%) hue-rotate(108deg) brightness(0.85);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-nav-open { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(100% - (var(--pad) * 2), var(--container));
  margin-inline: auto;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45, 49, 46, 0.22);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo img { width: 132px; height: auto; }

.header__doc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header__doc:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.header__doc-icon {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  align-self: stretch;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.6rem;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--tint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__item:hover .nav__link,
.nav__item.is-current .nav__link { color: var(--white); }

.nav__item:hover .nav__link::after,
.nav__item.is-current .nav__link::after { transform: scaleX(1); }

.nav__toggle { display: none; }

/* ---- Page modal (types of premises) ---- */
.page-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.page-modal[hidden] { display: none; }

.page-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 49, 46, 0.45);
  backdrop-filter: blur(6px);
}

.page-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: min(90vh, 920px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  color: var(--graphite);
  box-shadow: 0 30px 80px rgba(45, 49, 46, 0.28);
  animation: modal-in 0.28s ease both;
}

.page-modal__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.6rem 1.6rem 2rem;
  border-radius: inherit;
  scrollbar-gutter: stable;
}

.page-modal__dialog--pdf {
  width: min(1100px, 100%);
  height: min(90vh, 920px);
  max-height: min(90vh, 920px);
  padding: 0;
}

.page-modal__head--pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 1.1rem 4rem 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.page-modal__head--pdf h2 { margin: 0; font-size: 1.2rem; }

.pdf-frame {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--mineral);
}

.pdf-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: 0;
  display: block;
  background: var(--white);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.page-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--mineral);
  color: var(--graphite);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-modal__close:hover {
  background: var(--green);
  color: var(--white);
  transform: rotate(90deg);
}

.page-modal__head {
  padding-right: 3rem;
  margin-bottom: 1.2rem;
}

.page-modal__head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  color: var(--graphite);
}

.page-modal__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.page-modal__slider {
  position: relative;
  margin-bottom: 1.35rem;
  border-radius: 18px;
  overflow: hidden;
  background: var(--alabaster);
}

.page-modal__slider[hidden] { display: none; }

.page-modal__track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
}

.page-modal__track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  scroll-snap-align: start;
}

.page-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--graphite);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(45, 49, 46, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}

.page-modal__nav:hover { background: var(--green); color: var(--white); }
.page-modal__nav--prev { left: 0.8rem; }
.page-modal__nav--next { right: 0.8rem; }

.page-modal__body {
  max-width: none;
}

.page-modal__body .x-gallery,
.page-modal__body .x-gallery-wrap {
  display: none;
}

.page-modal__body > *:first-child { margin-top: 0; }

body.is-modal-open { overflow: hidden; }

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  padding: 0.7rem;
  border-radius: 0 0 18px 18px;
  background: var(--white);
  color: var(--graphite);
  box-shadow: 0 24px 50px rgba(45, 49, 46, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: grid;
  gap: 0.1rem;
}

.nav__item:nth-last-child(-n+3) .drop { left: auto; right: 0; }

.nav__item:hover .drop,
.nav__item:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drop--mega {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(520px, 90vw);
  padding: 0.9rem;
}

.drop__card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--tint);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.drop__card strong {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
}

.drop__card span { font-size: 0.84rem; color: var(--muted); }

.drop__card:hover { background: var(--green); transform: translateY(-2px); }
.drop__card:hover strong,
.drop__card:hover span { color: var(--white); }

.drop__link,
.drop__sub {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.drop__link:hover,
.drop__sub:hover {
  background: var(--tint);
  color: var(--green);
}

.drop__link--head {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--green);
}

.drop__subs { display: grid; }

.drop--mega .drop__subs {
  grid-template-columns: 1fr 1fr;
  margin-top: 0.25rem;
}

.drop__sub {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 1.1rem;
}

.drop--mega .drop__sub { padding-left: 0.7rem; }

.drop__sub--deep { padding-left: 1.7rem; font-size: 0.82rem; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
}

.header__phone {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease;
}

.header__phone:hover { background: rgba(255, 255, 255, 0.12); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(30, 107, 71, 0.25);
}

.btn--primary:hover { background: var(--green-deep); }

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: rgba(30, 107, 71, 0.35);
}

.btn--outline:hover {
  background: var(--tint);
  border-color: var(--green);
}

.btn--light {
  background: var(--white);
  color: var(--green);
}

.btn--light:hover { background: var(--tint); }

.btn--block { width: 100%; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(30, 107, 71, 0.2);
  background: var(--white);
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--green);
  color: var(--white);
}

.icon-btn--glass {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.icon-btn--glass:hover {
  background: var(--white);
  color: var(--green);
}

.text-link {
  color: var(--green);
  font-weight: 700;
}

.text-link:hover { text-decoration: underline; }

/* ================= SECTIONS ================= */
.section { padding: 4.25rem 0; }
.section--tight { padding: 2.75rem 0 0; }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.25rem;
}

.section__head--left {
  text-align: left;
  margin-left: 0;
}

.section__head--light,
.section__head--light h2 { color: var(--white); }

.section__head h2,
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section__head h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section__head--light p { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow--light { color: var(--tint); opacity: 0.85; }

.row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
  text-align: left;
  margin-bottom: 1.75rem;
}

.row-head h2 { margin-bottom: 0.3rem; }

.slider-nav { display: flex; gap: 0.5rem; }

/* ================= HERO ================= */
.hero {
  background: var(--alabaster);
  padding: 2.25rem 0 3rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: center;
  padding-right: var(--gutter);
}

.hero__visual {
  position: relative;
  height: clamp(380px, 33vw, 480px);
  border-radius: 0 32px 32px 0;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--green), var(--shadow);
}

.hero--page .hero__visual { height: clamp(300px, 26vw, 400px); }

.hero--page .hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero--page .crumbs,
.hero--page .hero__cta { justify-content: flex-end; }

.hero--page .hero__title--page { max-width: 16ch; }

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 5s ease;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 49, 46, 0.82) 0%, rgba(45, 49, 46, 0.42) 45%, rgba(45, 49, 46, 0.04) 100%);
}

.hero__visual--static .hero__slide::after {
  background: linear-gradient(90deg, rgba(45, 49, 46, 0.25), rgba(45, 49, 46, 0));
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__caption {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: 4.75rem;
  max-width: min(520px, 75%);
  color: var(--white);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

.hero__slide.is-active .hero__caption {
  opacity: 1;
  transform: none;
}

.hero__caption h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.2;
}

.hero__caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.hero__caption ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding: 0;
}

.hero__caption li {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero__controls {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.hero__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: 0.2s ease;
}

.hero__dots button.is-active {
  background: var(--white);
  width: 22px;
  border-radius: 999px;
}

.hero__copy { animation: rise 0.8s ease both; }

.hero__brand {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--green);
}

.hero__title {
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  color: var(--graphite);
}

.hero__title--page { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }

.hero__lead {
  max-width: 46ch;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.hero--page .hero__cta { margin-bottom: 0; }

.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.75rem;
  margin: 0;
  padding: 0;
}

.hero__stats--row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  width: 100%;
}

.hero__stats li { display: grid; gap: 0.1rem; }

.hero__stats strong {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--green);
}

.hero__stats span {
  font-size: 0.86rem;
  color: var(--muted);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.crumbs a:hover { color: var(--green); }
.crumbs span { opacity: 0.5; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ================= OBJECTS ================= */
.objects { background: var(--tint); }

.objects__title {
  margin: 0 0 2.25rem;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.objects__title span { color: var(--green); }

.objects__mosaic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.objects__stack {
  display: grid;
  grid-template-rows: 160px 160px;
  gap: 1.25rem;
}

.object-tile {
  height: 100%;
  background: var(--white);
  border-radius: 26px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-tile);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.object-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(30, 107, 71, 0.2);
}

.object-tile--tall { height: 250px; }

.object-tile__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tint);
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}

.object-tile:hover .object-tile__icon { background: var(--green); }

.object-tile__icon img {
  width: 32px;
  height: 32px;
  filter: var(--icon-green);
  transition: filter 0.25s ease;
}

.object-tile:hover .object-tile__icon img { filter: brightness(0) invert(1); }

.object-tile h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.objects__more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ================= OFFER / COMPARE ================= */
.offer {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(30, 107, 71, 0.35), transparent 60%),
    linear-gradient(160deg, var(--graphite) 0%, #232724 100%);
  color: var(--white);
}

.compare {
  position: relative;
  height: min(62vh, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  background: #1a1c1a;
  isolation: isolate;
}

.compare__layer { position: absolute; inset: 0; overflow: hidden; }

.compare__layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.compare__layer--front {
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--white);
  z-index: 1;
}

.compare__layer--front img {
  width: var(--compare-w, 100%);
  max-width: none;
  right: auto;
}

.compare__caption {
  position: absolute;
  top: 1.25rem;
  bottom: auto;
  left: 1.25rem;
  width: 290px;
  max-width: calc(100% - 2.5rem);
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(45, 49, 46, 0.84);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: default;
  transition: opacity 0.2s ease;
  z-index: 3;
  height: auto;
}

.compare__caption--right { left: auto; right: 1.25rem; }

.compare__caption h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.compare__caption ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.93rem;
  line-height: 1.6;
}

.compare__caption a:hover { color: var(--tint); text-decoration: underline; }

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  z-index: 2;
}

.compare__grip {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.2s ease;
}

.compare:hover .compare__grip,
.compare.is-dragging .compare__grip { transform: scale(1.1); }

.compare__grip::before,
.compare__grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

.compare__grip::before { left: 13px; transform: translateY(-50%) rotate(-135deg); }
.compare__grip::after { right: 13px; transform: translateY(-50%) rotate(45deg); }

/* ================= WHY — bento ================= */
.why { background: var(--white); }

.why__intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 1.1rem;
}

.bento__card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* мягкое «пятно света» за курсором */
.bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(45, 49, 46, 0.16);
}

.bento__card:hover::before { opacity: 1; }

.bento__card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
}

.bento__card p {
  margin: 0;
  font-size: 0.94rem;
  opacity: 0.82;
}

.bento__index {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

.bento__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  transition: transform 0.35s ease;
}

.bento__card:hover .bento__icon { transform: rotate(-8deg) scale(1.08); }

.bento__icon img { width: 28px; height: 28px; }

.bento__figure {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: auto;
}

.bento__figure strong {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.bento__figure span { font-weight: 700; opacity: 0.75; }

.bento__card--photo {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  color: var(--white);
  padding: 2rem;
  min-height: 520px;
}

.bento__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
}

.bento__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45, 49, 46, 0.1) 0%, rgba(45, 49, 46, 0.55) 45%, rgba(45, 49, 46, 0.92) 100%);
}

.bento__card--photo:hover .bento__bg { transform: scale(1.06); }

.bento__content {
  display: grid;
  gap: 0.6rem;
  max-width: 560px;
}

.bento__card--photo h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

.bento__card--photo .bento__icon {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  margin-bottom: 0.4rem;
}

.bento__card--photo .bento__icon img { filter: brightness(0) invert(1); }

.bento__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.bento__stats div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.bento__stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.1;
}

.bento__stats span { font-size: 0.86rem; opacity: 0.85; }

.bento__card--tint { background: var(--tint); color: var(--graphite); }
.bento__card--tint .bento__figure strong { color: var(--green); }

.bento__card--dark { background: var(--graphite); color: var(--white); }
.bento__card--dark .bento__figure strong { color: var(--tint); }

.bento__card--light { background: var(--mineral); color: var(--graphite); }
.bento__card--light .bento__icon { background: var(--white); }
.bento__card--light .bento__icon img { filter: var(--icon-green); }
.bento__card--light::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(30, 107, 71, 0.1), transparent 55%); }
.bento__card--tint::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(30, 107, 71, 0.12), transparent 55%); }

.bento__card--green { background: var(--green); color: var(--white); }
.bento__card--green .bento__icon { background: rgba(255, 255, 255, 0.14); }
.bento__card--green .bento__icon img { filter: brightness(0) invert(1); }

.bento__logo {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 64px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bento__card--green:hover .bento__logo { opacity: 1; transform: none; }

/* ================= PROJECTS ================= */
.projects { background: var(--alabaster); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.04); }

.project-card__body { padding: 1rem 1.1rem 1.15rem; }

.project-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.project-card__body p {
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.projects__more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ================= STAGES ================= */
.stages { background: var(--mineral); }

.stages__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  counter-reset: stage;
}

.stages__list li {
  counter-increment: stage;
  position: relative;
  text-align: center;
  padding: 0.5rem 0.4rem;
  cursor: default;
}

.stages__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(0.5rem + 36px);
  left: calc(50% + 44px);
  width: calc(100% - 88px);
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(30, 107, 71, 0.25));
}

.stages__node {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(30, 107, 71, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stages__list li:hover .stages__node {
  transform: scale(1.2);
  box-shadow: 0 14px 30px rgba(30, 107, 71, 0.35);
}

.stages__node::before {
  content: counter(stage);
  position: absolute;
  top: -6px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--tint);
}

.stages__node img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.stages__list h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ================= REVIEWS ================= */
.reviews { background: var(--white); }

.reviews__viewport {
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.reviews__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem 0.1rem 1rem;
  cursor: grab;
}

.reviews__track:active { cursor: grabbing; }
.reviews__track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 calc(50% - 0.5rem);
  scroll-snap-align: start;
  margin: 0;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--alabaster);
  box-shadow: var(--shadow-soft);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  user-select: none;
}

.review-card__logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  object-position: left;
  pointer-events: none;
}

.review-card p { margin: 0; color: var(--muted); flex: 1; }

.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--green);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
  justify-content: center;
}

.partners img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.partners img:hover { filter: none; opacity: 1; }

/* ================= CONTACTS ================= */
.contact-info { background: var(--white); }

.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 0.5rem;
}

.contact-info__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-info__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(30, 107, 71, 0.22);
}

.contact-info__icon svg {
  width: 24px;
  height: 24px;
}

.contact-info__item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--graphite);
}

.contact-info__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-info__item a {
  color: var(--green);
  font-weight: 700;
}

.contact-info__item a:hover { text-decoration: underline; }

.contacts { background: var(--tint); }

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.contacts__grid--form {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.contact-facts {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-facts li { display: grid; gap: 0.12rem; }

.contact-facts span:first-child { color: var(--muted); font-size: 0.86rem; }

.contact-facts a,
.contact-facts span:last-child { font-weight: 700; }

.contact-facts__tel,
.contact-info__tel {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.7rem 0.95rem;
  background: var(--white);
  color: var(--graphite);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-form input { min-height: 48px; }

.contact-form textarea {
  min-height: 120px;
  font: inherit;
  line-height: 1.45;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-a);
}

.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: 0.15rem;
  accent-color: var(--green);
  cursor: pointer;
}

.form-check a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(30, 107, 71, 0.35);
}

.form-check a:hover { text-decoration-color: var(--green); }

.privacy { padding-block: 1rem 2rem; max-width: 720px; }
.privacy h1 { margin-top: 0; }

.map-section {
  background: var(--mineral);
  border-top: 1px solid var(--line);
}

.map-section__frame {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  background: var(--alabaster);
}

.map-section__frame > ymaps,
.map-section__frame iframe {
  display: block;
  width: 100% !important;
}

.flash { padding: 0.75rem 0.9rem; border-radius: 12px; font-weight: 600; }
.flash--success { background: var(--tint); color: var(--green); }
.flash--error { background: #fbeaea; color: #8a1f1f; }

/* ================= INNER PAGES ================= */
.subpages { background: var(--white); }

.subpages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.subpage-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--alabaster);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.subpage-card__media {
  height: 150px;
  background: var(--tint) url("../img/logo-mark.png") center / 90px no-repeat;
  background-size: cover;
  transition: transform 0.5s ease;
}

.subpage-card__media:not([style]) { background-size: 90px; }

.subpage-card:hover .subpage-card__media { transform: scale(1.05); }

.subpage-card__body {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  background: inherit;
}

.subpage-card__body strong { font-size: 1rem; line-height: 1.3; }
.subpage-card__body small { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.subpage-card__more {
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
}

.page-body { background: var(--white); }

.page-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}

.page-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
}

.aside-nav {
  display: grid;
  padding: 0.9rem;
  border-radius: 20px;
  background: var(--alabaster);
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 360px);
  overflow-y: auto;
}

.aside-nav__title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  padding: 0.35rem 0.6rem 0.6rem;
}

.aside-nav__link {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.aside-nav__link:hover { background: var(--tint); color: var(--green); }

.aside-nav__link--sub {
  padding-left: 1.3rem;
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--muted);
}

.aside-nav__link.is-active {
  background: var(--green);
  color: var(--white);
}

.aside-card {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.aside-card p { margin: 0 0 0.8rem; opacity: 0.85; font-size: 0.93rem; }

.aside-card .aside-card__title {
  font-family: var(--display);
  font-size: 1.05rem;
  opacity: 1;
  margin-bottom: 0.4rem;
}

.aside-card__phone {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

/* typography for imported text */
.prose {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.prose > *:first-child { margin-top: 0; }

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.2rem 0 0.9rem;
}

.prose h2 {
  position: relative;
  padding-left: 1rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: var(--green);
}

.prose h3 { font-size: 1.15rem; }
.prose h4 { font-size: 1rem; }

.prose p { margin: 0 0 1rem; }

.prose .x-price-note {
  margin: 1.5rem 0;
  position: relative;
  padding: 1.1rem 1.3rem 1.1rem 3.6rem;
  border-radius: 16px;
  background: var(--tint);
  color: var(--graphite);
  font-weight: 600;
}

.prose .x-price-note::before {
  content: "i";
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--display);
  font-size: 0.85rem;
}

.prose a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(30, 107, 71, 0.35);
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--green); }

.prose ul,
.prose ol { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }

.prose li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--tint);
}

.prose ol { counter-reset: item; }

.prose ol > li { counter-increment: item; }

.prose ol > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.prose img {
  height: auto;
  border-radius: 16px;
  margin: 1rem 0;
  cursor: zoom-in;
}

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 0.94rem;
}

.prose th,
.prose td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--green); color: var(--white); }
.prose tr:nth-child(even) td { background: var(--alabaster); }

.prose blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--tint);
}

/* imported photo strip */
.x-gallery-wrap { position: relative; margin: 1.2rem 0 1.8rem; }

.x-gallery {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.3rem;
}

.x-gallery::-webkit-scrollbar { display: none; }

.prose .x-gallery img {
  flex: 0 0 auto;
  width: clamp(220px, 32%, 320px);
  height: 210px;
  object-fit: cover;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 16px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.prose .x-gallery img:hover { transform: scale(1.03); filter: brightness(1.05); }

.x-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  box-shadow: var(--shadow);
}

.x-gallery-nav--prev { left: -12px; }
.x-gallery-nav--next { right: -12px; }

/* accordions (FAQ, техкарты) */
.x-accordion { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; }

.x-acc {
  border-radius: 16px;
  background: var(--alabaster);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.x-acc > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1rem 3.2rem 1rem 1.2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.x-acc > summary::-webkit-details-marker { display: none; }

.x-acc > summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green);
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 1.2rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.x-acc[open] > summary { color: var(--green); }

.x-acc[open] > summary::after {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--white);
}

.x-acc-body { padding: 0 1.2rem 1.1rem; }

.prose .x-acc-body ul { margin-bottom: 0; }
.prose .x-acc-body li { padding-left: 0; }
.prose .x-acc-body li::before { display: none; }

.x-acc--sub {
  background: var(--white);
  box-shadow: none;
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.x-acc--sub > summary {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding-block: 0.8rem;
}

.x-acc--sub > summary::after { width: 26px; height: 26px; margin-top: -13px; font-size: 1rem; }

/* reviews page */
.x-review {
  margin: 0 0 1rem;
  border-radius: 20px;
  background: var(--alabaster);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.x-review > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.3rem 0.4rem;
}

.x-review > summary::-webkit-details-marker { display: none; }

.prose .x-review h3 { margin: 0 0 0.6rem; color: var(--green); }

.prose .x-review img {
  float: right;
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  margin: 0 0 0.5rem 1rem;
  cursor: default;
}

.x-review > summary::after {
  content: "Читать полностью ↓";
  display: block;
  clear: both;
  margin: 0.2rem 0 0.8rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.x-review[open] > summary::after { content: "Свернуть ↑"; }

.x-review .x-acc-body { padding: 0 1.3rem 1.2rem; }

/* gallery page */
.works { background: var(--white); }

.works__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--alabaster);
  color: var(--graphite);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip span {
  min-width: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--mineral);
  font-size: 0.8rem;
  text-align: center;
}

.chip:hover { border-color: var(--green); color: var(--green); }

.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.chip.is-active span { background: rgba(255, 255, 255, 0.2); }

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--alabaster);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}

.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card.is-hidden { display: none; }

.work-card__carousel { position: relative; }

.work-card__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-card__track::-webkit-scrollbar { display: none; }

.work-card__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 300px;
  object-fit: cover;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.work-card__nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.work-card__nav--prev { left: 0.8rem; }
.work-card__nav--next { right: 0.8rem; }

.work-card:hover .work-card__nav { opacity: 1; }
.work-card__nav:hover { background: var(--green); color: var(--white); }

.work-card__count {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(45, 49, 46, 0.7);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.work-card__body { padding: 1.2rem 1.3rem 1.4rem; }

.work-card__type {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.work-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
}

.work-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  margin: 0;
}

.work-card dl .is-wide { grid-column: 1 / -1; }

.work-card dt { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.work-card dd { margin: 0.1rem 0 0; font-weight: 600; font-size: 0.93rem; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(30, 33, 31, 0.94);
  backdrop-filter: blur(6px);
  animation: fade 0.25s ease;
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  animation: zoom-in 0.3s ease;
}

.lightbox__figure figcaption { color: rgba(255, 255, 255, 0.8); font-weight: 600; }

.lightbox__nav,
.lightbox__close {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__nav:hover,
.lightbox__close:hover { background: var(--green); }

.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { transform: scale(0.96); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* 404 */
.notfound { text-align: center; background: var(--alabaster); }

.notfound__code {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--green);
  line-height: 1;
}

.notfound h1 { font-family: var(--display); font-weight: 600; }
.notfound p { color: var(--muted); margin-bottom: 1.5rem; }

/* ================= FOOTER ================= */
.footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.86);
  padding: 3.25rem 0 1.4rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  margin: 0.85rem 0 1rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
}

.footer__phone,
.footer__mail,
.footer__request { display: block; font-weight: 700; }

.footer__phone { font-size: 1.15rem; color: var(--white); margin-bottom: 0.2rem; }
.footer__mail { color: rgba(255, 255, 255, 0.75); }
.footer__request {
  margin-top: 0.65rem;
  color: var(--tint);
  font-weight: 600;
  font-size: 0.95rem;
}
.footer__request:hover { text-decoration: underline; }
.footer__bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer__bottom a:hover { color: var(--white); }

.footer__col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  margin: 0;
  padding: 0;
  border: 0;
}

.footer__summary {
  list-style: none;
  cursor: default;
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  color: var(--tint);
  font-weight: 700;
}

.footer__summary::-webkit-details-marker,
.footer__summary::marker { display: none; content: ""; }

.footer__summary a { color: inherit; }

.footer__links {
  display: grid;
  gap: 0.45rem;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
}

.footer__bottom p { margin: 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.5); }

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1240px) {
  .header { position: sticky; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: min(78vh, calc(100dvh - 72px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--green-deep);
    padding: 0.35rem 1rem 1.4rem;
    box-shadow: 0 18px 36px rgba(45, 49, 46, 0.28);
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open { display: flex; }

  .nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav__link {
    flex: 1;
    padding: 0.95rem 0.35rem;
    font-size: 1rem;
  }

  .nav__link::after { display: none; }

  .nav__toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
  }

  .nav__toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .nav__item.is-open .nav__toggle::before { transform: translateY(2px) rotate(-135deg); }

  .drop,
  .drop--mega,
  .nav__item:nth-last-child(-n+3) .drop {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 16px;
    margin: 0 0 0.85rem;
    padding: 0.55rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .nav__item:hover .drop { display: none; }
  .nav__item.is-open .drop { display: grid; }

  .drop--mega { width: 100%; }
  .drop--mega .drop__subs { grid-template-columns: 1fr; }

  .burger { display: inline-block; }
  .header__actions { margin-left: auto; }

  .page-modal { padding: 0.75rem; }
  .page-modal__dialog {
    width: min(100%, 780px);
    max-height: calc(100dvh - 1.5rem);
    border-radius: 22px;
  }
  .page-modal__scroll { padding: 1.2rem 1.1rem 1.5rem; }
  .header__doc-text { display: none; }
  .header__doc { padding: 0.3rem; }
}

@media (max-width: 1100px) {
  .section { padding: 3.4rem 0; }

  .hero { padding: 0 0 2.25rem; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-right: 0;
  }

  .hero__visual,
  .hero--page .hero__visual {
    height: min(52vw, 420px);
    min-height: 280px;
    border-radius: 0 0 28px 28px;
    box-shadow: none;
  }

  .hero__copy {
    padding-inline: var(--gutter);
    padding-top: 0.25rem;
  }

  .hero--page .hero__copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero--page .crumbs,
  .hero--page .hero__cta { justify-content: flex-start; }
  .hero--page .hero__title--page { max-width: none; }

  .hero__caption {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    max-width: none;
  }

  .hero__controls { left: 1.1rem; bottom: auto; top: 1.1rem; }

  .objects__mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  /* Разворачиваем стопки — ровная сетка 2×N без «дыр» */
  .objects__stack { display: contents; }

  .object-tile,
  .object-tile--tall {
    height: auto;
    min-height: 132px;
  }

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

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 0.9rem;
  }

  .bento__card--photo {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .bento__card { min-height: 210px; }

  .compare { height: min(54vh, 460px); }

  .page-body__grid { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .aside-nav { max-height: none; }

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

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .header__phone {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }

  .contacts__grid,
  .contacts__grid--form,
  .contact-info__grid { grid-template-columns: 1fr; }

  .contact-info__item { gap: 0.85rem; }

  .row-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .works__filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.55rem;
    padding-bottom: 0.35rem;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    scrollbar-width: none;
  }

  .works__filters::-webkit-scrollbar { display: none; }
  .works__filters .chip { flex: 0 0 auto; }

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

  .review-card { flex-basis: min(86%, 360px); }

  .partners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 0.9rem 1rem;
  }

  .partners img { height: 34px; }

  .stages__list {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 440px;
    margin-inline: auto;
  }

  .stages__list li {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    column-gap: 0.75rem;
    text-align: center;
    padding: 0.65rem 0;
  }

  .stages__list li .stages__node {
    grid-column: 2;
    grid-row: 1;
    margin: 0 auto;
    width: 64px;
    height: 64px;
  }

  .stages__list li h3 {
    grid-column: 3;
    grid-row: 1;
    text-align: left;
    font-size: 0.9rem;
  }

  .stages__list li:nth-child(even) h3 {
    grid-column: 1;
    text-align: right;
  }

  .stages__list li:not(:last-child)::after {
    top: calc(50% + 34px);
    left: 50%;
    width: 2px;
    height: calc(100% - 40px);
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--green), rgba(30, 107, 71, 0.2));
  }

  .compare__caption {
    width: min(46vw, 220px);
    padding: 0.8rem;
  }

  .compare__caption h3 { font-size: 0.95rem; }
}

@media (max-width: 720px) {
  :root { --pad: 1rem; }

  .section { padding: 2.75rem 0; }

  .logo img { width: 112px; }

  .header__inner { min-height: 64px; gap: 0.6rem; }

  .header__phone { display: none; }

  .hero { padding-bottom: 1.35rem; }

  .hero__visual,
  .hero--page .hero__visual {
    height: min(72vw, 420px);
    min-height: 280px;
    max-height: 440px;
    border-radius: 0 0 22px 22px;
  }

  .hero__caption {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 3.4rem;
    max-width: none;
  }

  .hero__caption h2 {
    font-size: clamp(1rem, 4.4vw, 1.25rem);
    margin-bottom: 0.35rem;
  }

  .hero__caption p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* Скидки / пункты — одна горизонтальная строка */
  .hero__caption ul {
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .hero__caption ul::-webkit-scrollbar { display: none; }

  .hero__caption li {
    flex: 0 0 auto;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .hero__controls {
    left: 0.9rem;
    bottom: 0.75rem;
  }

  .hero__copy { padding-top: 0.15rem; }

  .hero__brand {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
  }

  .hero__title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.2;
    margin-bottom: 0.45rem;
  }

  .hero__lead {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  /* Кнопки в одну строку — не перекрывают текст снизу */
  .hero__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
  }

  .hero__cta .btn {
    width: 100%;
    padding: 0.7rem 0.55rem;
    font-size: 0.82rem;
    text-align: center;
  }

  /* Характеристики 20+ / 350+ / 750 — строго в одну строку */
  .hero__stats,
  .hero__stats--row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex-direction: unset !important;
    flex-wrap: nowrap !important;
    gap: 0.45rem !important;
    width: 100%;
  }

  .hero__stats li {
    text-align: center;
    min-width: 0;
  }

  .hero__stats strong {
    display: block;
    font-size: 1rem !important;
  }

  .hero__stats span {
    display: block;
    font-size: 0.68rem !important;
    line-height: 1.25;
  }

  /* Модалка: фото крупнее, текст компактнее */
  .page-modal__head h2 { font-size: 1.25rem; }
  .page-modal__lead {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  .page-modal__track img { aspect-ratio: 16 / 10; }
  .page-modal__nav { width: 36px; height: 36px; }

  .objects__title {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
    margin-bottom: 1.1rem;
  }

  .objects__mosaic {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .object-tile,
  .object-tile--tall {
    min-height: 0;
    border-radius: 16px;
    padding: 0.75rem 0.55rem;
    gap: 0.4rem;
  }

  .object-tile__icon { width: 42px; height: 42px; }
  .object-tile__icon img { width: 22px; height: 22px; }
  .object-tile h3 { font-size: 0.8rem; line-height: 1.25; }
  .objects__more { margin-top: 1.25rem; }

  .compare {
    height: min(52vw, 320px);
    min-height: 220px;
    max-height: 360px;
    border-radius: 18px;
  }

  .compare__caption {
    top: auto;
    bottom: 0.7rem;
    width: auto;
    max-width: min(46%, 180px);
    left: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
  }

  .compare__caption--right { right: 0.7rem; left: auto; }
  .compare__caption ul { display: none; }
  .compare__caption h3 { font-size: 0.82rem; margin: 0; }
  .compare__grip { width: 44px; height: 44px; }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .bento__card {
    min-height: 0;
    padding: 1rem 0.85rem 0.95rem;
    border-radius: 18px;
    gap: 0.35rem;
  }

  .bento__card--photo {
    grid-column: 1 / -1;
    min-height: 280px;
    padding: 1.25rem;
  }

  .bento__card h3 { font-size: 0.92rem; }
  .bento__card p { font-size: 0.78rem; line-height: 1.4; }
  .bento__index { top: 0.75rem; right: 0.85rem; font-size: 0.72rem; }
  .bento__icon { width: 42px; height: 42px; border-radius: 12px; }
  .bento__icon img { width: 22px; height: 22px; }
  .bento__stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .bento__stats div { padding: 0.65rem 0.7rem; border-radius: 12px; }
  .bento__stats strong { font-size: 1.35rem; }
  .bento__stats span { font-size: 0.72rem; }
  .bento__figure strong { font-size: clamp(1.85rem, 9vw, 2.6rem); }
  .bento__figure span { font-size: 0.85rem; }
  .bento__logo { width: 48px; opacity: 0.9; transform: none; }

  .projects__grid {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

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

  .project-card {
    flex: 0 0 min(86%, 340px);
    scroll-snap-align: start;
  }

  .project-card img { height: 190px; }
  .project-card__body { padding: 0.85rem 0.95rem 1rem; }
  .project-card__body h3 { font-size: 0.92rem; }

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

  .reviews__track { gap: 0.85rem; }
  .review-card {
    flex-basis: 88%;
    padding: 1.1rem;
  }

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

  .contact-form { padding: 1.15rem; border-radius: 18px; }
  .contact-info__icon { width: 46px; height: 46px; border-radius: 12px; }

  .map-section__frame { min-height: 280px; }

  .page-modal {
    padding: 0;
    align-items: stretch;
  }

  .page-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  .page-modal__scroll { padding: 1.15rem 1rem 1.5rem; border-radius: 0; }
  .page-modal__dialog--pdf { border-radius: 0; height: 100dvh; max-height: 100dvh; }
  .pdf-frame iframe { min-height: calc(100dvh - 72px); }

  .page-modal__head { padding-right: 2.6rem; }
  .page-modal__head h2 { font-size: 1.35rem; }
  .page-modal__nav { width: 38px; height: 38px; }
  .page-modal__track img { aspect-ratio: 16 / 11; }

  .footer { padding: 1.5rem 0 0.95rem; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-bottom: 1rem;
  }

  .footer__brand {
    margin-bottom: 0.55rem;
  }

  .footer__brand .logo img { width: 96px; }

  .footer__brand p {
    margin: 0.4rem 0 0.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
    max-width: none;
  }

  .footer__phone { font-size: 1rem; margin-bottom: 0.1rem; }
  .footer__mail { font-size: 0.85rem; }
  .footer__request { margin-top: 0.35rem; font-size: 0.85rem; }

  .footer__col {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.15rem 0;
    gap: 0;
  }

  .footer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0;
    font-size: 0.88rem;
    cursor: pointer;
  }

  .footer__summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .footer__col[open] > .footer__summary::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .footer__links {
    gap: 0.35rem;
    padding: 0 0 0.75rem;
  }

  .footer__col a {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.85rem;
  }

  .footer__bottom p { font-size: 0.72rem; line-height: 1.4; }

  .work-card dl { grid-template-columns: 1fr; }
  .drop--mega .drop__subs { grid-template-columns: 1fr; }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .lightbox__nav { position: absolute; bottom: max(1rem, env(safe-area-inset-bottom)); }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__close { top: max(0.8rem, env(safe-area-inset-top)); right: 0.8rem; }

  .prose table { display: block; overflow-x: auto; }
}

@media (max-width: 420px) {
  .objects__mosaic {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .object-tile,
  .object-tile--tall {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.4rem;
    min-height: 108px;
  }

  .object-tile__icon { width: 38px; height: 38px; }
  .object-tile__icon img { width: 20px; height: 20px; }
  .object-tile h3 { font-size: 0.74rem; }

  .hero__visual,
  .hero--page .hero__visual {
    height: min(78vw, 400px);
    min-height: 260px;
  }

  .hero__caption h2 { font-size: 0.98rem; }
  .hero__caption p { font-size: 0.74rem; }
  .hero__title { font-size: 1.2rem; }
  .hero__cta .btn { font-size: 0.78rem; padding: 0.65rem 0.4rem; }
  .hero__stats,
  .hero__stats--row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .hero__stats strong { font-size: 0.92rem !important; }
  .hero__stats span { font-size: 0.64rem !important; }

  .bento__card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bento__card--photo p { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .project-card { flex-basis: 88%; }
  .compare { height: 210px; min-height: 210px; }
  .compare__caption { max-width: 42%; font-size: 0.8rem; }
  .section__head p { font-size: 0.95rem; }
  .stages__list li { column-gap: 0.55rem; }
  .stages__list li h3 { font-size: 0.82rem; }
  .stages__list li .stages__node { width: 56px; height: 56px; }
  .stages__node img { width: 22px; height: 22px; }
}

@media (hover: none) {
  .object-tile:hover,
  .project-card:hover,
  .bento__card:hover,
  .subpage-card:hover,
  .type-card:hover,
  .work-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
