/* Drive Motors — автотехкомплекс, Екатеринбург
   Стандарт категории, исполненный всерьёз: графит, один оранжевый с вывески,
   хайрлайны вместо карточек, крупная типографика, табличные цифры. */

:root {
  --ink:      #0E1011;
  --ink-2:    #14171A;
  --ink-3:    #1B1F22;
  --paper:    #F2F0EB;

  --fg:       #F3F4F3;
  --fg-2:     #A4ACAA;
  --fg-3:     #7F8886;
  --fg-ink:   #14171A;
  --fg-ink-2: #5C625F;

  --accent:      #F2571E;
  --accent-lift: #FF6B33;
  --accent-deep: #C63F0C;
  --on-accent: #FFFFFF;

  --line:      rgba(243, 244, 243, .11);
  --line-hi:   rgba(243, 244, 243, .22);
  --line-ink:  rgba(20, 23, 26, .14);

  --shell: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --sec: clamp(72px, 8.5vw, 136px);

  --ease: cubic-bezier(.16, 1, .3, 1);

  --f-disp: 'Unbounded', 'Trebuchet MS', sans-serif;
  --f-text: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--fg-3) var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--f-text);
  font-feature-settings: 'liga' 1, 'kern' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }
:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
  border-radius: 2px;
}
img { max-width: 100%; height: auto; display: block; }

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

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 60;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 3px;
  font: 500 .9375rem var(--f-text); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.shell--narrow > * { max-width: 880px; }

/* ---------- Типографика ---------- */

.h2 {
  margin: 0;
  font: 600 clamp(1.75rem, 3.6vw, 3rem)/1.08 var(--f-disp);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.head { margin-bottom: clamp(36px, 4vw, 64px); }
.head--split {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  align-items: flex-end; justify-content: space-between;
}
.head__note {
  margin: 18px 0 0;
  max-width: 56ch;
  color: var(--fg-2);
  font-size: 1.0625rem;
}
.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
}
.note {
  color: var(--fg-3);
  font-size: .875rem;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0;
}
.note--center { margin: 40px auto 0; text-align: center; }
.section--paper .note { color: var(--fg-ink-2); }

/* ---------- Кнопки и ссылки ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-hi);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: 3px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.2 var(--f-text);
  letter-spacing: .005em;
  text-decoration: none;
  text-align: center;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--accent {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent);
}
.btn--accent:hover { --btn-bg: var(--accent-lift); --btn-bd: var(--accent-lift); }
.btn--ghost:hover { --btn-bd: var(--fg-2); --btn-bg: rgba(243,244,243,.05); }
.btn--dark {
  --btn-bg: var(--fg-ink); --btn-fg: var(--paper); --btn-bd: var(--fg-ink);
}
.btn--dark:hover { --btn-bg: #000; --btn-bd: #000; }
.btn--sm { min-height: 44px; padding: 11px 20px; font-size: .9375rem; }

.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-weight: 500;
  text-decoration-color: rgba(242, 87, 30, .4);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.lnk:hover { color: var(--accent-lift); text-decoration-color: currentColor; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 15px; height: 15px; }

/* ---------- Шапка ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); }
.topbar__in {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  min-height: 76px;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--fg); text-decoration: none; flex: none;
}
.logo__mark {
  width: 10px; height: 22px;
  background: var(--accent);
  transform: skewX(-12deg);
}
.logo__name {
  font: 600 1.0625rem/1 var(--f-disp);
  letter-spacing: -.03em;
}
.topnav {
  display: flex; gap: clamp(18px, 2.2vw, 34px);
  margin-inline-end: auto;
}
.topnav a {
  color: var(--fg-2);
  font-size: .9375rem;
  text-decoration: none;
  padding-block: 6px;
  transition: color .2s var(--ease);
}
.topnav a:hover { color: var(--fg); }
.topbar__act { display: flex; align-items: center; gap: 20px; flex: none; }
.phone {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--fg); text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.phone:hover { color: var(--accent-lift); }

/* ---------- Первый экран ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 62%;
  animation: heroIn 1.6s var(--ease) both;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,16,17,.86) 0%, rgba(14,16,17,.44) 34%, rgba(14,16,17,.72) 76%, var(--ink) 100%),
    linear-gradient(96deg, rgba(14,16,17,.95) 0%, rgba(14,16,17,.72) 38%, rgba(14,16,17,.18) 74%);
}
.hero__in {
  position: relative;
  padding-block: clamp(64px, 11vw, 148px) clamp(56px, 7vw, 96px);
  min-height: min(84vh, 780px);
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-end;
}
.hero__h {
  margin: 0;
  max-width: 17ch;
  font: 800 clamp(2.25rem, 6.2vw, 5.25rem)/1.02 var(--f-disp);
  letter-spacing: -.045em;
  text-wrap: balance;
  animation: rise .9s .1s var(--ease) both;
}
.hero__h em {
  display: block;
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.58;
  color: var(--fg-2);
  animation: rise .9s .18s var(--ease) both;
}
.hero__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 26px 0 0;
  padding-top: 26px;
  font-size: .9375rem;
  color: var(--fg-2);
  border-top: 1px solid var(--line);
  align-self: stretch;
  max-width: 640px;
  animation: rise .9s .26s var(--ease) both;
}
.hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }
.hero__act {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 30px;
  animation: rise .9s .34s var(--ease) both;
}
.rating {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: clamp(34px, 4.5vw, 56px);
  padding-top: 22px;
  border-top: 2px solid var(--accent);
  color: var(--fg);
  text-decoration: none;
  animation: rise .9s .42s var(--ease) both;
}
.rating__num {
  font: 600 2.25rem/1 var(--f-disp);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.rating__txt { font-size: .875rem; line-height: 1.35; color: var(--fg-2); }
.rating:hover .rating__txt { color: var(--fg); }

@keyframes heroIn {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Секции ---------- */

.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }
.section--paper {
  background: var(--paper);
  color: var(--fg-ink);
}
.section--paper .h2 { color: var(--fg-ink); }
.section--paper .head__note { color: var(--fg-ink-2); }
.section--contacts { background: var(--ink-2); }

/* ---------- Услуги ---------- */

.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__i { border-bottom: 1px solid var(--line); }
.svc summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 28px;
  align-items: center;
  gap: 8px 32px;
  padding-block: clamp(22px, 2.4vw, 32px);
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.svc summary::-webkit-details-marker { display: none; }
.svc__t {
  font: 600 clamp(1.1875rem, 1.9vw, 1.625rem)/1.2 var(--f-disp);
  letter-spacing: -.035em;
  transition: color .22s var(--ease);
}
.svc__d { color: var(--fg-2); font-size: 1rem; }
.svc__c {
  width: 24px; height: 24px; justify-self: end;
  fill: none; stroke: var(--fg-3); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease), stroke .22s var(--ease);
}
.svc summary:hover .svc__t,
.faq summary:hover { color: var(--accent-lift); }
.svc summary:hover .svc__c { stroke: var(--accent-lift); }
.svc details[open] summary .svc__c,
.faq details[open] summary .svc__c { transform: rotate(180deg); stroke: var(--accent); }
.svc details[open] .svc__t { color: var(--accent); }

.svc__b { padding: 4px 0 clamp(26px, 3vw, 38px); }
.works {
  columns: 2;
  column-gap: 48px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  max-width: 900px;
}
.works li {
  break-inside: avoid;
  position: relative;
  padding: 7px 0 7px 20px;
  color: var(--fg-2);
  font-size: .9688rem;
}
.works li::before {
  content: '';
  position: absolute; left: 0; top: 16px;
  width: 8px; height: 1px;
  background: var(--accent);
}

details > div, details > .svc__b { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Почему ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 clamp(32px, 4vw, 72px);
}
.why__i {
  margin: 0;
  padding: clamp(22px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.5;
  color: var(--fg);
  text-wrap: pretty;
}

/* ---------- Как проходит работа ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(32px, 4vw, 64px);
  counter-reset: none;
}
.step { padding-top: 22px; border-top: 1px solid var(--line); }
.step__n {
  display: block;
  font: 600 1.125rem/1 var(--f-disp);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step p { margin: 0; color: var(--fg-2); line-height: 1.55; }

/* ---------- Цены ---------- */

.price {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price tr { border-top: 1px solid var(--line-ink); }
.price tr:last-child { border-bottom: 1px solid var(--line-ink); }
.price th {
  text-align: left;
  font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  padding: clamp(16px, 1.8vw, 22px) 24px clamp(16px, 1.8vw, 22px) 0;
  color: var(--fg-ink);
}
.price td {
  text-align: right;
  white-space: nowrap;
  padding: clamp(16px, 1.8vw, 22px) 0;
  font: 500 clamp(1rem, 1.5vw, 1.1875rem)/1.2 var(--f-disp);
  letter-spacing: -.03em;
  color: var(--fg-ink);
}
.price tr:hover th, .price tr:hover td { color: var(--accent-deep); }
.price.is-armed th, .price.is-armed td { opacity: 0; transform: translateY(10px); }
.price.is-in th, .price.is-in td {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.price.is-in tr:nth-child(1) th, .price.is-in tr:nth-child(1) td { transition-delay: 0ms; }
.price.is-in tr:nth-child(2) th, .price.is-in tr:nth-child(2) td { transition-delay: 55ms; }
.price.is-in tr:nth-child(3) th, .price.is-in tr:nth-child(3) td { transition-delay: 110ms; }
.price.is-in tr:nth-child(4) th, .price.is-in tr:nth-child(4) td { transition-delay: 165ms; }
.price.is-in tr:nth-child(5) th, .price.is-in tr:nth-child(5) td { transition-delay: 220ms; }
.price.is-in tr:nth-child(6) th, .price.is-in tr:nth-child(6) td { transition-delay: 275ms; }
.price.is-in tr:nth-child(7) th, .price.is-in tr:nth-child(7) td { transition-delay: 330ms; }
.price.is-in tr:nth-child(8) th, .price.is-in tr:nth-child(8) td { transition-delay: 385ms; }
.price.is-in tr:nth-child(9) th, .price.is-in tr:nth-child(9) td { transition-delay: 440ms; }
.price.is-in tr:nth-child(10) th, .price.is-in tr:nth-child(10) td { transition-delay: 495ms; }
.price__foot {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  align-items: center; justify-content: space-between;
  margin-top: clamp(28px, 3vw, 40px);
}

/* ---------- Запчасти ---------- */

.parts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
.parts__l .lead { margin: 24px 0 32px; }
.parts__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.parts__list li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
  color: var(--fg-2);
}

/* ---------- Галерея ---------- */

.gal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
  margin-bottom: clamp(28px, 3vw, 44px);
}
.gal__i { margin: 0; grid-column: span 2; overflow: hidden; border-radius: 3px; background: var(--ink-3); }
.gal__i--wide { grid-column: span 3; }
.gal__i img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gal__i--wide img { aspect-ratio: 3 / 2; }
.gal__i:hover img { transform: scale(1.03); }

a[href^="tel:"] { white-space: nowrap; }

/* ---------- Отзывы ---------- */

.score {
  display: inline-flex; align-items: baseline; gap: 12px;
  color: var(--fg); text-decoration: none;
}
.score__n {
  font: 600 2rem/1 var(--f-disp);
  letter-spacing: -.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.score__t { font-size: .9375rem; color: var(--fg-2); }
.score:hover .score__t { color: var(--fg); }

.rev {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 0 clamp(28px, 3vw, 56px);
}
.rev__i {
  margin: 0;
  padding: clamp(24px, 2.6vw, 32px) 0;
  border-top: 1px solid var(--line);
}
.rev__i p { margin: 0 0 18px; color: var(--fg); line-height: 1.58; }
.rev__i cite {
  display: flex; flex-direction: column; gap: 3px;
  font-style: normal;
  font-weight: 500;
  font-size: .9375rem;
}
.rev__i cite span { color: var(--fg-3); font-weight: 400; font-size: .875rem; }

/* ---------- FAQ ---------- */

.faq { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-ink); }
.faq li { border-bottom: 1px solid var(--line-ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(20px, 2.2vw, 26px);
  cursor: pointer;
  list-style: none;
  font: 500 clamp(1.0625rem, 1.5vw, 1.25rem)/1.35 var(--f-text);
  color: var(--fg-ink);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .svc__c { stroke: var(--fg-ink-2); flex: none; }
.faq summary:hover .svc__c { stroke: var(--accent-deep); }
.faq details[open] summary { color: var(--accent-deep); }
.faq details[open] summary .svc__c { stroke: var(--accent-deep); }
.faq__b { padding: 0 0 clamp(22px, 2.4vw, 30px); max-width: 68ch; }
.faq__b p { margin: 0; color: var(--fg-ink-2); line-height: 1.62; }

/* ---------- Контакты ---------- */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.contacts__l { grid-column: 1; grid-row: 1; }
.cx { margin: 0; grid-column: 2; grid-row: 1 / span 2; }
.cx__r:last-child { border-bottom: 1px solid var(--line); }
.cx__r {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cx dt { color: var(--fg-3); font-size: .875rem; padding-top: 3px; }
.cx dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.cx dd a {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  text-decoration-color: var(--line-hi);
  text-underline-offset: 4px;
  transition: color .2s var(--ease);
}
.cx dd a:hover { color: var(--accent-lift); }
.cx__sub { color: var(--fg-3); font-size: .9375rem; }
.contacts__act {
  display: flex; flex-wrap: wrap; gap: 12px;
  grid-column: 1; grid-row: 2;
  align-self: start;
  margin-top: clamp(28px, 3vw, 40px);
}
.cx dd .lnk { display: inline-flex; margin-top: 10px; }

/* ---------- Подвал ---------- */

.foot { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.foot__b { margin: 0; font: 600 1.0625rem/1.3 var(--f-disp); letter-spacing: -.03em; }
.foot__c { margin: 14px 0 0; color: var(--fg-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.foot__c a { color: var(--fg-2); text-underline-offset: 4px; transition: color .2s var(--ease); }
.foot__c a:hover { color: var(--accent-lift); }
.foot__n { margin: 22px 0 0; color: var(--fg-3); font-size: .875rem; max-width: 66ch; line-height: 1.55; }

.demo { border-top: 1px solid var(--line); background: var(--ink-2); }
.demo__in {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0; padding-block: 18px;
  color: var(--fg-2); font-size: .875rem; line-height: 1.55;
}
.demo__tag {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  color: var(--accent-lift);
  font: 600 .75rem/1 var(--f-disp);
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Закреплённая панель на мобильных ---------- */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none;
  gap: 10px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(14, 16, 17, .96);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform .45s var(--ease);
}
.bar.is-on { transform: none; }
.bar__max {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 3px;
  font: 500 1rem var(--f-text);
  text-decoration: none;
}
.bar__tel {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-hi);
  border-radius: 3px;
  color: var(--fg);
}

/* ---------- Адаптация ---------- */

@media (max-width: 1080px) {
  .topnav { display: none; }
  .topbar__act { margin-inline-start: auto; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__l, .cx, .contacts__act { grid-column: 1; grid-row: auto; }
}

@media (max-width: 860px) {
  .svc summary { grid-template-columns: minmax(0, 1fr) 24px; align-items: start; }
  .svc__t { grid-column: 1; grid-row: 1; }
  .svc__c { grid-column: 2; grid-row: 1; }
  .svc__d { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .parts { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal__i, .gal__i--wide { grid-column: span 1; }
  .gal__i--wide img { aspect-ratio: 4 / 3; }
  .gal__i:last-child { grid-column: span 2; }
  .gal__i:last-child img { aspect-ratio: 2 / 1; }
}

@media (max-width: 720px) {
  .phone span { display: none; }
  .phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-hi); border-radius: 3px; }
  .topbar__act .btn--sm { display: none; }
  .bar { display: flex; }
  body { padding-bottom: 0; }
  .demo__in { flex-direction: column; gap: 10px; }
  .demo { padding-bottom: 108px; }
  .works { columns: 1; }
  .hero__act .btn { flex: 1 1 100%; }
  .cx__r { grid-template-columns: 1fr; gap: 4px; }
  .cx dt { padding-top: 0; }
  .price th { padding-right: 16px; }
  .price td { font-size: 1rem; }
}

@media (max-width: 520px) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(14,16,17,.94) 0%, rgba(14,16,17,.82) 46%, rgba(14,16,17,.88) 78%, var(--ink) 100%),
      linear-gradient(96deg, rgba(14,16,17,.9) 0%, rgba(14,16,17,.66) 60%, rgba(14,16,17,.42) 100%);
  }
  .hero__meta { display: block; }
  .hero__meta .dot { display: none; }
  .hero__meta span + span { display: block; margin-top: 6px; }
  .gal { grid-template-columns: 1fr; }
  .gal__i:last-child { grid-column: span 1; }
  .gal__i img, .gal__i--wide img, .gal__i:last-child img { aspect-ratio: 4 / 3; }
  .price__foot .btn { width: 100%; }
  .contacts__act { display: grid; gap: 12px; }
  .contacts__act .btn { width: 100%; }
  #care .btn--ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .gal__i:hover img { transform: none; }
  .price.is-armed th, .price.is-armed td { opacity: 1; transform: none; }
}
