/* Семья — строительство домов, Краснодар
   Система kami: песочная бумага, антиква, волосяные линии, один тёмный акцент. */

:root {
  --paper: #F1EADA;
  --paper-2: #F7F2E6;
  --sand: #E6DDC9;
  --line: #D8CFBB;
  --line-soft: #E5DCC8;
  --ink: #191814;
  --ink-2: #3B3830;
  --olive: #55524A;
  --stone: #6B665C;
  --accent: #1B365D;
  --accent-d: #152B4B;
  --rust: #7E3222;
  --font-display: "EB Garamond", "PT Serif", Georgia, "Times New Roman", serif;
  --font-text: "PT Serif", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --pad: 64px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }

[hidden] { display: none !important; }

a { color: inherit; }

img, svg { max-width: 100%; }

strong { font-weight: 400; color: var(--accent); }

::selection { background: var(--accent); color: var(--paper-2); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: var(--paper-2);
  padding: 12px 18px;
  font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 78px;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  margin-right: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--stone);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hdr__act {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hdr__tel {
  font-size: 14px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hdr__tel:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 1px;
  background: var(--ink-2);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 2px;
  border: 1px solid transparent;
  font: 400 11.5px/1.2 var(--font-text);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-2);
}

.btn--accent:hover { background: var(--accent-d); border-color: var(--accent-d); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }

.btn--sand {
  background: var(--sand);
  border-color: var(--line);
  color: var(--ink-2);
}

.btn--sand:hover { border-color: var(--ink-2); }

/* ---------- hero ---------- */

.hero { padding: 68px 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: start;
}

.kicker {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--stone);
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__lede {
  margin-top: 28px;
  max-width: 44ch;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--olive);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone);
  max-width: 40ch;
}

.draw-wrap {
  margin: 0;
  padding-top: 18px;
}

.draw {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink-2);
  animation: fade-in 1.1s ease both;
}

.draw__dim { opacity: 0; animation: fade-in .9s ease .35s both; }
.draw__txt { opacity: 0; animation: fade-in .9s ease .55s both; }

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

.draw-wrap figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.2px;
  color: var(--stone);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 64px 0 0;
  border-top: 1px solid var(--ink);
}

.facts__cell {
  padding: 20px 22px 22px 0;
}

.facts__cell + .facts__cell {
  border-left: 1px solid var(--line-soft);
  padding-left: 22px;
}

.facts dt {
  font-size: 10.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--stone);
}

.facts dd {
  margin: 9px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

/* ---------- sections ---------- */

.sec {
  padding: 96px 0 0;
  scroll-margin-top: 96px;
}

.sec__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.sec__num {
  display: block;
  padding-top: 9px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.sec__title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.sec__lede {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--olive);
}

.note {
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 76ch;
}

.lbl {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stone);
}

.link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

.link:hover { color: var(--accent-d); }

/* ---------- catalog filter ---------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 38px;
}

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

.chip {
  min-height: 38px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  font: 400 12px/1 var(--font-text);
  letter-spacing: 0.7px;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
}

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

.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-2);
}

.filter__count {
  font-size: 11.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

/* ---------- catalog table ---------- */

.cat {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  text-align: left;
}

.cat th {
  padding: 0 12px 13px;
  font: 400 10.5px/1.2 var(--font-text);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.cat th:first-child,
.cat td:first-child { padding-left: 0; }

.cat th:last-child,
.cat td:last-child { padding-right: 0; }

.cat td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}

.cat tbody tr:hover td { background: var(--paper-2); }

.cat__num {
  width: 46px;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  color: var(--stone);
}

.cat__name {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.cat__area span:first-child { white-space: nowrap; }

.measure {
  display: block;
  width: calc(84px * var(--w));
  max-width: 100%;
  min-width: 3px;
  margin-top: 7px;
  border-top: 1px solid var(--accent);
}

.cat__price,
.cat__price-h {
  text-align: right;
  white-space: nowrap;
}

.cat__price {
  font-size: 14.5px;
  color: var(--accent);
}

.cat__act { text-align: right; width: 86px; }

.linkbtn {
  padding: 2px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: 400 10.5px/1.4 var(--font-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}

.linkbtn:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- kits ---------- */

.kits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.kit {
  padding: 26px 34px 0 0;
  border-top: 1px solid var(--ink);
}

.kit + .kit {
  border-left: 1px solid var(--line-soft);
  padding-left: 34px;
}

.kit__name {
  font-size: 25px;
  line-height: 1.2;
}

.kit__price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.kit__per {
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--stone);
}

.dash {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.dash li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--olive);
  border-top: 1px solid var(--line-soft);
}

.dash li:first-child { border-top: 0; }

.dash li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- steps ---------- */

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

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 12px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line-soft);
}

.step__num {
  padding-top: 5px;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.step__d {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
  max-width: 42ch;
}

/* ---------- warranty ---------- */

.warranty {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.warranty .sec__num { margin-bottom: 16px; }

.warranty .sec__title {
  max-width: 16ch;
  font-size: clamp(28px, 3.6vw, 42px);
}

.warranty__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.warranty__list li {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 20px;
}

.warranty__list li:first-child { border-top-color: var(--ink); }

.warranty__list h3 {
  font-size: 19px;
  line-height: 1.25;
}

.warranty__list p {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
}

/* ---------- reviews ---------- */

.rev {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 34px;
}

.rev__num {
  font-family: var(--font-display);
  font-size: 150px;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rev__body { padding-top: 8px; max-width: 52ch; }

.rev__t {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
}

.rev__d {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--olive);
}

.rev .btn { margin-top: 20px; }

/* ---------- form ---------- */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 64px;
  margin-top: 42px;
  align-items: start;
}

.form { max-width: 440px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stone);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: 400 15px/1.4 var(--font-text);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--stone) 50%),
    linear-gradient(135deg, var(--stone) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 22px,
    calc(100% - 14px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field input::placeholder { color: #6F6A5E; }

.field input:hover,
.field select:hover { border-color: var(--ink-2); }

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.field.is-bad input,
.field.is-bad select { border-color: var(--rust); }

.err {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--rust);
}

.form__submit { width: 100%; margin-top: 4px; }

.form__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--stone);
}

.form__note a { color: var(--accent); }

.done {
  max-width: 440px;
  padding: 26px 26px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.done__title {
  font-size: 28px;
  line-height: 1.15;
}

.done__title:focus { outline: none; }

.done__lede {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
}

.done__text {
  margin: 18px 0 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  font: 400 13px/1.6 var(--font-text);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.done__act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.done__act .btn { flex: 1 1 150px; }

.aside { border-left: 1px solid var(--line-soft); padding-left: 32px; }

.aside__lbl {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--stone);
}

.aside__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  counter-reset: none;
}

.aside__list li {
  border-top: 1px solid var(--line-soft);
  padding: 14px 0 15px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--olive);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
}

.aside__list li:first-child { border-top-color: var(--ink); }

.aside__list span {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  padding-top: 3px;
}

.aside__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--stone);
}

/* ---------- contacts ---------- */

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 38px;
}

.contacts__cell { border-top: 1px solid var(--ink); padding-top: 18px; }

.contacts__big {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.contacts__big a { text-decoration: none; }
.contacts__big a:hover { color: var(--accent); }

.contacts .note { margin-top: 12px; }

/* ---------- faq ---------- */

.faq { margin-top: 30px; }

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

.faq details:first-child { border-top-color: var(--ink); }

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
}

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

.faq summary h3 {
  font-size: 19px;
  line-height: 1.3;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after { content: "\2212"; }

.faq summary:hover h3 { color: var(--accent); }

.faq__a {
  padding: 0 0 22px;
}

.faq__a p {
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--olive);
}

/* ---------- footer ---------- */

.foot {
  margin-top: 96px;
  border-top: 1px solid var(--ink);
  padding: 28px 0 44px;
}

.foot__in {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--olive);
}

.foot__in a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot__in a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.foot__brand {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.foot__meta { max-width: 46ch; text-align: right; }

/* ---------- mobile bar ---------- */

.mbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.mbar .btn { flex: 1; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  :root { --pad: 40px; }

  .hero__grid { gap: 36px; }
  .rev__num { font-size: 120px; }
}

@media (max-width: 900px) {
  .nav { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--pad) 14px;
    z-index: 35;
  }

  .nav.is-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .burger { display: flex; }

  .hdr__tel { display: none; }

  .hdr__in { gap: 20px; }

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

  .kit {
    padding: 22px 0 26px;
    border-left: 0;
  }

  .kit + .kit {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .kits .kit:first-child { border-top: 1px solid var(--ink); }

  .steps { grid-template-columns: 1fr; gap: 0; }

  .warranty,
  .lead {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .form, .done { max-width: none; }
}

@media (max-width: 820px) {
  .hero { padding-top: 40px; }

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

  .draw-wrap {
    order: 2;
    max-width: 520px;
    padding-top: 0;
    margin-top: 8px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
  }

  .facts__cell:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .facts__cell:nth-child(4) {
    border-top: 1px solid var(--line-soft);
  }

  .facts__cell:nth-child(n+3) { padding-top: 18px; }

  .sec { padding-top: 72px; }

  .sec__head { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; }

  .rev { grid-template-columns: 1fr; gap: 20px; }
  .rev__num { font-size: 100px; }

  .contacts { grid-template-columns: 1fr; gap: 32px; }

  .foot { margin-top: 72px; padding-bottom: 96px; }

  .foot__meta { text-align: left; }

  .mbar { display: flex; }

  /* table → cards */
  .cat {
    margin-top: 18px;
    display: block;
  }

  .cat thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cat tbody { display: block; }

  .cat tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 14px;
    padding: 20px 0 18px;
    border-top: 1px solid var(--line);
  }

  .cat tr:last-child { border-bottom: 1px solid var(--line); }

  .cat td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .cat tbody tr:hover td { background: transparent; }

  .cat td.cat__num { display: none; }

  .cat__name {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 25px;
  }

  .cat__price {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    font-size: 14px;
    text-align: right;
  }

  .cat__area { grid-column: 1; grid-row: 2; }
  .cat td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .cat td:nth-child(5) { grid-column: 3; grid-row: 2; }

  .cat td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-text);
    font-size: 9.5px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--stone);
  }

  .cat__price::before { content: attr(data-label); }

  .cat td[data-label] { font-size: 15px; }

  .cat__price::before { margin-bottom: 6px; }

  .measure { margin-top: 8px; max-width: 100%; }

  .cat__act {
    grid-column: 1 / 4;
    grid-row: 3;
    width: auto;
    justify-self: start;
  }

  .linkbtn {
    font-size: 11px;
    padding: 6px 0;
    border-bottom-color: var(--accent);
    color: var(--accent);
  }
}

@media (max-width: 520px) {
  :root { --pad: 20px; }

  .hdr__in { min-height: 68px; gap: 12px; }

  .hdr__act { gap: 10px; }

  .hdr__act .btn { display: none; }

  .brand__name { font-size: 24px; }

  .brand__sub { font-size: 9px; letter-spacing: 0.7px; }

  h1 { font-size: 42px; letter-spacing: -0.015em; }

  .hero__lede { font-size: 15px; margin-top: 22px; }

  .hero__cta .btn { flex: 1 1 100%; }

  .facts dd { font-size: 19px; }

  .sec__title { font-size: 27px; }

  .sec__lede { font-size: 14px; }

  .cat tr { gap: 12px 10px; }

  .cat__name { font-size: 22px; }

  .cat__price { font-size: 13px; }

  .cat td[data-label] { font-size: 14px; }

  .rev__num { font-size: 92px; }

  .contacts__big { font-size: 25px; }

  .done__act .btn { flex: 1 1 100%; }

  .faq summary h3 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw, .draw__dim, .draw__txt { animation: none; opacity: 1; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
