/* Оформление публичных страниц Formula Auto: адаптивная сетка, фильтры, карточки и галерея. */
:root {
  /* Цвета: красный, чёрный, белый */
  --accent: #c8102e;
  --accent-dark: #9e0b23;
  --accent-soft: #f1f1f1;
  --accent-bright: #ff4655;
  --ink: #111111;
  --muted: #666666;
  --line: #e3e3e3;
  --bg: #ffffff;
  --field-bg: #f0f0f0;
  --surface: #ffffff;
  --black: #0d0d0d;
  --black-line: #2a2a2a;
  --on-black: #ffffff;
  --on-black-soft: #d0d0d0;
  --on-black-muted: #a8a8a8;
  --wa: #1fa855;
  --tg: #229ed9;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body,
input,
select,
button {
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3vw, 34px);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

p {
  margin-bottom: 16px;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.page-container {
  padding-top: 28px;
  padding-bottom: 64px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--surface);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--accent-dark);
  color: var(--surface);
}

.button-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-wa {
  background: var(--wa);
  color: var(--surface);
}

.button-tg {
  background: var(--tg);
  color: var(--surface);
}

.button-wa:hover,
.button-tg:hover {
  filter: brightness(0.9);
  color: var(--surface);
}

.button-wide {
  width: 100%;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contacts-pending {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding-block: 18px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.logo-image {
  display: block;
  width: auto;
  height: 46px;
}

.header-navigation,
.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-navigation {
  gap: 34px;
}

.main-navigation a {
  padding-block: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
}

.main-navigation a:hover {
  color: var(--accent);
}

.header-contacts .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.menu-icon {
  width: 17px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.site-footer {
  padding: 44px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: 48px;
}

.footer-logo {
  display: inline-block;
  color: var(--ink);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.06em;
}

.footer-tagline {
  max-width: 320px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.footer-navigation {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 16px;
}

.footer-navigation a {
  color: var(--ink);
}

.footer-contacts p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 16px;
}

.footer-contacts .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
}

.footer-note {
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero {
  padding-top: 48px;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  padding-block: 12px;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.09;
  letter-spacing: -0.05em;
}

.hero-description {
  max-width: 460px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px 4px 20px 4px;
  background: var(--accent-dark);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  max-height: 440px;
  object-fit: cover;
}

.hero-photo-caption {
  position: absolute;
  inset: auto 16px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
}

.hero-photo-caption > span:last-child {
  margin-left: auto;
  color: var(--accent);
  font-size: 19px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.hero-photo-placeholder {
  display: flex;
  min-height: 360px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  color: var(--accent-soft);
  font-size: 16px;
}

.hero-placeholder-mark {
  color: var(--surface);
  font-size: 100px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.09em;
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 30px;
  margin-top: 32px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgb(0 0 0 / 5%);
}

.quick-search-heading h2 {
  margin-bottom: 7px;
  font-size: 22px;
}

.quick-search-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.quick-search-heading strong {
  color: var(--accent);
}

.quick-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 14px;
}

.field {
  min-width: 0;
}

.field label,
.field-group legend,
.sort-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

select,
input {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

select:hover,
input:hover {
  border-color: var(--muted);
}

select:disabled,
input:disabled {
  background: var(--bg);
  color: var(--muted);
}

.section {
  padding-top: 64px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 5px;
  font-size: 15px;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.brand-card {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease;
}

.brand-card:hover {
  border-color: var(--accent);
}

.brand-card > strong {
  font-size: 19px;
  letter-spacing: -0.04em;
}

.brand-card > span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.brand-card > span > span {
  color: var(--accent);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.car-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.car-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgb(0 0 0 / 7%);
  color: var(--ink);
}

.car-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-soft);
}

.car-card-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.car-year {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.photo-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
}

.car-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 0;
}

.car-card-link {
  color: inherit;
  text-decoration: none;
}

/* Вся карточка нажимается как ссылка на машину; кнопка «Купить» лежит поверх. */
.car-card-link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.car-card-link:focus-visible {
  outline: none;
}

.car-card:has(.car-card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.car-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.car-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 0;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.car-card-facts > span:not(:last-child)::after {
  margin-inline: 7px;
  content: "·";
  color: var(--muted);
}

.car-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.price-label {
  width: 100%;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.car-card-price strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.rub-price {
  color: var(--muted);
  font-size: 14px;
}

.car-card-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.car-card-more > span {
  font-size: 17px;
}

.button-buy {
  position: relative;
  z-index: 2;
  min-height: 38px;
  padding: 7px 20px;
  background: var(--accent);
  color: var(--surface);
  font-size: 15px;
  font-weight: 650;
}

.button-buy:hover {
  filter: brightness(0.9);
  color: var(--surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.steps-grid li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.step-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.steps-grid h3 {
  font-size: 19px;
}

.steps-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-banner {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  align-items: center;
  gap: 40px;
  margin-block: 64px;
  padding: 36px 40px;
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: var(--surface);
}

.contact-banner h2 {
  margin-bottom: 14px;
  font-size: 29px;
}

.contact-banner p {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--accent-soft);
  font-size: 16px;
}

.contact-banner .eyebrow {
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-size: 13px;
}

.contact-banner .contacts-pending {
  color: var(--accent-soft);
}

.contact-banner-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-soft);
  font-size: 14px;
}

.contact-banner-link:hover {
  color: var(--surface);
  text-decoration: underline;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.5vw, 42px);
}

.page-heading .eyebrow {
  margin-bottom: 8px;
}

.result-count {
  flex-shrink: 0;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
}

.result-count strong {
  color: var(--ink);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.filter-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.filter-panel > summary {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  list-style: none;
}

.filter-panel > summary::-webkit-details-marker {
  display: none;
}

.filter-indicator {
  color: var(--accent);
  font-size: 23px;
  font-weight: 400;
}

.filter-panel[open] .filter-indicator {
  transform: rotate(45deg);
}

.filter-form {
  display: grid;
  gap: 17px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field .small-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.filter-section,
.filter-options {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-section > legend,
.filter-options > summary {
  width: 100%;
  margin-bottom: 12px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.filter-hint {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.filter-section-content {
  display: grid;
  align-items: start;
  gap: 14px;
}

.filter-checkbox {
  display: flex;
  align-items: start;
  gap: 10px;
  min-height: 24px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.filter-options > summary::-webkit-details-marker {
  display: none;
}

.filter-options-indicator {
  color: var(--accent);
  font-size: 21px;
  font-weight: 400;
}

.filter-options[open] .filter-options-indicator {
  transform: rotate(45deg);
}

.filter-reset {
  justify-self: center;
  padding: 3px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.catalog-toolbar > p {
  max-width: 210px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.sort-field {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.sort-field label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.sort-field select {
  width: 230px;
  min-height: 42px;
  font-size: 14px;
}

.empty-state {
  padding: 50px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h2 {
  max-width: 460px;
  margin-inline: auto;
  font-size: 27px;
}

.empty-state p {
  color: var(--muted);
  font-size: 16px;
}

.empty-mark {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 36px;
  line-height: 1;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 32px;
}

.pagination a,
.pagination-current,
.pagination-gap {
  display: inline-flex;
  min-width: 42px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-current {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
  font-weight: 650;
}

.pagination-gap {
  min-width: 24px;
  padding-inline: 2px;
  border-color: transparent;
  background: transparent;
}

.pagination-direction {
  gap: 7px;
}

.detail-heading {
  margin-bottom: 28px;
}

.detail-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.5vw, 42px);
}

.detail-heading .eyebrow {
  margin-bottom: 8px;
}

.detail-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.detail-heading > p:last-child > span {
  margin-inline: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 30px;
}

.detail-main,
.price-sidebar {
  min-width: 0;
}

.gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 3px 3px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.gallery-thumbnail {
  width: 105px;
  flex: 0 0 105px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--accent-soft);
  opacity: 0.72;
}

.gallery-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.price-sidebar {
  position: sticky;
  top: 24px;
}

.price-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.price-panel .eyebrow {
  margin-bottom: 25px;
}

.price-panel > .price-label {
  margin-bottom: 4px;
  font-size: 14px;
}

.detail-price {
  margin-bottom: 4px;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.detail-rub-price {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-rub-price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}


.contact-invitation {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.price-panel .contact-buttons {
  flex-direction: column;
}

.price-panel .button {
  justify-content: space-between;
  width: 100%;
}

/* Кнопка «Купить» на странице машины: во всю ширину и на телефоне, текст по центру. */
.price-panel .button.button-buy {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  justify-content: center;
  font-size: 18px;
}

.price-panel .contact-invitation {
  margin-top: 24px;
}

.price-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-number {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.catalog-number strong {
  color: var(--ink);
  font-weight: 600;
}

.detail-process-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  /* Боковой отступ как у блока цены, чтобы текст стоял на одной линии. */
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
}

.detail-process-link > span {
  color: var(--muted);
  font-size: 13px;
}

.detail-process-link strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
}

.detail-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.detail-section .section-heading {
  align-items: baseline;
  margin-bottom: 20px;
}

.detail-section h2 {
  font-size: 25px;
}

.section-kicker {
  color: var(--muted);
  font-size: 12px;
}

.specifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.specifications > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.specifications dt {
  color: var(--muted);
}

.specifications dd {
  margin: 0;
  font-weight: 550;
  text-align: right;
}

.report-specifications {
  grid-template-columns: 1fr;
}

.subsection-heading {
  margin-top: 26px;
  margin-bottom: 12px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.report-list,
.insurance-events,
.options-list {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.report-list li strong {
  font-weight: 550;
}

.report-list li > span {
  color: var(--muted);
  text-align: right;
}

.insurance-events li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.insurance-events strong {
  font-weight: 550;
}

.insurance-events .event-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.insurance-events .event-costs {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 13px;
}

.insurance-events + .muted {
  margin-top: 14px;
}

.event-date {
  color: var(--muted);
  font-size: 13px;
}

.options-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.options-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}

.options-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.report-pending,
.muted {
  color: var(--muted);
  font-size: 16px;
}

.detail-section > p:last-child {
  margin-bottom: 0;
}

.data-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.editorial-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.page-intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.process-timeline {
  max-width: 980px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.process-timeline > li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.timeline-number {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 700;
}

.process-timeline h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.process-timeline p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.process-timeline .text-link {
  margin-top: 14px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
  gap: 56px;
}

.about-copy {
  padding-block: 10px;
}

.about-copy h2 {
  max-width: 520px;
  margin-bottom: 24px;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.contact-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-panel h2 {
  margin-bottom: 24px;
}

.contact-details {
  margin-bottom: 24px;
}

.contact-details:empty {
  display: none;
}

.contact-details > div {
  margin-bottom: 18px;
}

.contact-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.contact-details dd {
  margin: 0;
  font-size: 17px;
  font-weight: 550;
}

.about-catalog {
  margin-top: 54px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.about-catalog h2 {
  font-size: 27px;
}

.about-catalog p {
  color: var(--muted);
  font-size: 16px;
}

.error-page {
  display: flex;
  min-height: 65vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 80px;
  text-align: center;
}

.error-code {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: clamp(76px, 15vw, 130px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}

.error-page h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.error-page > p:not(.error-code) {
  max-width: 480px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.standalone-error .error-page {
  min-height: 100vh;
}

.standalone-error .footer-logo {
  margin-bottom: 40px;
}

@media (max-width: 1100px) {
  .header-navigation {
    gap: 20px;
  }

  .main-navigation {
    gap: 18px;
  }

  .header-contacts .button {
    padding-inline: 9px;
    gap: 6px;
    font-size: 13px;
  }

  .hero-grid {
    gap: 28px;
  }

  .catalog-layout {
    gap: 22px;
  }

  .catalog-toolbar > p {
    display: none;
  }

  .catalog-toolbar {
    justify-content: end;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
  }

  .price-panel,
  .detail-section {
    padding: 23px;
  }

  .detail-process-link {
    padding-inline: 23px;
  }

  .specifications {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 16px;
    min-height: 80px;
    padding-block: 15px;
  }

  .header-navigation {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
  }

  .main-navigation {
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .header-contacts .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .has-menu-js .menu-toggle {
    display: inline-flex;
  }

  .has-menu-js .header-navigation {
    display: none;
  }

  .has-menu-js .header-navigation.is-open {
    display: flex;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .quick-search-panel,
  .catalog-layout,
  .detail-layout,
  .about-layout,
  .contact-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-content {
    max-width: 680px;
    padding-block: 0;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(34px, 6vw, 50px);
  }

  .hero-description {
    max-width: 600px;
  }

  .hero-visual > img {
    min-height: 0;
    max-height: 390px;
    aspect-ratio: 16 / 9;
  }

  .hero-photo-placeholder {
    min-height: 280px;
  }

  .quick-search-panel {
    gap: 20px;
    margin-top: 24px;
  }

  .quick-search-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
  }

  .quick-search-heading h2 {
    margin-bottom: 0;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-banner {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .catalog-layout {
    gap: 20px;
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-section-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-reset {
    align-self: center;
  }

  .catalog-toolbar {
    justify-content: space-between;
  }

  .catalog-toolbar > p {
    display: block;
  }

  .detail-layout {
    gap: 20px;
  }

  .detail-main {
    display: contents;
  }

  .gallery {
    order: 0;
  }

  .price-sidebar {
    position: static;
    order: 1;
  }

  .detail-section {
    order: 2;
    margin-top: 0;
  }

  .data-note {
    order: 3;
    margin-top: 0;
  }

  .price-panel .contact-buttons {
    flex-direction: row;
  }

  .price-panel .button {
    width: auto;
    justify-content: center;
  }

  .price-panel .eyebrow {
    margin-bottom: 18px;
  }

  .about-layout {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .page-container {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .logo {
    gap: 9px;
    font-size: 21px;
  }

  .logo-image {
    height: 38px;
  }

  .main-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-navigation a {
    padding-block: 10px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(30px, 8vw, 40px);
  }

  .hero-description {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .hero-catalog-link {
    width: 100%;
  }

  .hero-visual {
    border-radius: 12px;
  }

  .hero-photo-caption {
    inset: auto 10px 10px;
    gap: 7px;
    padding: 10px;
    font-size: 12px;
  }

  .hero-photo-placeholder {
    min-height: 230px;
  }

  .quick-search-panel {
    padding: 22px 18px;
  }

  .quick-search-heading h2 {
    width: 100%;
    font-size: 21px;
  }

  .quick-search-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  select,
  input {
    min-height: 48px;
    font-size: 17px;
  }

  .section {
    padding-top: 42px;
  }

  .section-heading {
    flex-wrap: wrap;
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-heading .text-link {
    padding-block: 0;
    font-size: 14px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .brand-card {
    min-height: 92px;
    padding: 15px;
  }

  .brand-card > strong {
    font-size: 18px;
  }

  .car-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 18px;
  }

  .car-card-content {
    padding: 18px 20px 0;
  }

  .car-card h3 {
    font-size: 20px;
  }

  .car-card-facts {
    font-size: 14px;
  }

  .car-card-delivery {
    font-size: 13px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .steps-grid li {
    position: relative;
    padding: 22px 22px 22px 64px;
  }

  .step-number {
    position: absolute;
    top: 23px;
    left: 22px;
    margin-bottom: 0;
  }

  .steps-grid h3 {
    font-size: 18px;
  }

  .contact-banner {
    margin-block: 42px;
    padding: 28px 22px;
  }

  .contact-banner h2 {
    font-size: 27px;
  }

  .contact-banner .contact-buttons,
  .contact-panel .contact-buttons {
    flex-direction: column;
  }

  .contact-banner .button,
  .contact-panel .button {
    width: 100%;
  }

  .breadcrumbs {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .page-heading {
    flex-direction: column;
    align-items: start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .page-heading h1 {
    font-size: 31px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-section-content {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    min-height: 0;
    margin-bottom: 18px;
  }

  .catalog-toolbar > p {
    display: none;
  }

  .sort-field {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .sort-field select {
    width: min(245px, 72%);
    min-height: 46px;
    font-size: 16px;
  }

  .sort-field label {
    font-size: 13px;
  }

  .pagination {
    gap: 5px;
  }

  .pagination a,
  .pagination-current {
    min-width: 36px;
    padding-inline: 9px;
  }

  .pagination-direction span {
    display: none;
  }

  .detail-heading {
    margin-bottom: 22px;
  }

  .detail-heading h1 {
    font-size: 31px;
  }

  .gallery-thumbnail {
    width: 86px;
    flex-basis: 86px;
  }

  .price-panel,
  .detail-section {
    padding: 22px 20px;
  }

  .detail-process-link {
    padding-inline: 20px;
  }

  .detail-price {
    font-size: 32px;
  }

  .price-panel .contact-buttons {
    flex-direction: column;
  }

  .price-panel .button {
    width: 100%;
    justify-content: space-between;
  }

  .detail-section .section-heading {
    gap: 8px;
  }

  .detail-section h2 {
    width: 100%;
    font-size: 24px;
  }

  .specifications > div {
    font-size: 14px;
  }

  .specifications dt {
    max-width: 47%;
  }

  .specifications dd {
    max-width: 55%;
  }

  .report-list li {
    flex-direction: column;
    gap: 4px;
  }

  .report-list li > span {
    text-align: left;
  }

  .insurance-events li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
  }

  .insurance-events .event-date,
  .insurance-events .event-costs {
    grid-column: 1 / -1;
  }

  .options-list {
    grid-template-columns: 1fr;
  }

  .editorial-heading {
    margin-bottom: 28px;
  }

  .page-intro {
    font-size: 17px;
    line-height: 1.7;
  }

  .process-timeline > li {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 14px;
    padding: 24px 20px;
  }

  .timeline-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .process-timeline h2 {
    font-size: 24px;
  }

  .process-timeline p,
  .about-copy p {
    font-size: 16px;
  }

  .contact-panel {
    padding: 26px 22px;
  }

  .about-catalog {
    margin-top: 36px;
    padding: 26px 22px;
  }

  .about-catalog .button {
    width: 100%;
  }

  .error-page {
    padding-block: 56px;
  }

  .error-actions {
    width: 100%;
    flex-direction: column;
  }

  .site-footer {
    padding-top: 30px;
  }
}

/* Цена в Корее — второстепенная строка под ценой под ключ */
.korea-price {
  width: 100%;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Снижение цены под ценой под ключ */
.price-drop {
  display: inline-block;
  margin: 6px 0 0;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.4;
  background: var(--accent);
  color: var(--on-black);
  font-size: 15px;
  font-weight: 600;
}

/* Полный список проверки узлов: свёрнут, раскрывается по щелчку */
.checklist {
  margin-top: 8px;
}

.checklist > summary {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.checklist-group {
  margin: 18px 0 6px;
  font-size: 17px;
}

.report-list .is-problem strong,
.report-list .is-problem span {
  color: var(--accent);
}

/* Подвал прижат к низу окна, даже если страница короткая */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Главная: белый первый экран с поиском по центру */
.home-search {
  padding: 56px 0 40px;
  text-align: center;
}

.home-search h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.home-search-count {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.count-pill {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.search-box {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 22px;
  border-radius: 22px;
  background: var(--field-bg);
  color: var(--muted);
  cursor: text;
}

.search-field:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}

.search-field svg {
  flex: 0 0 22px;
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.search-chips select {
  width: auto;
  min-height: 38px;
  padding: 6px 30px 6px 14px;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.search-chips select:disabled {
  color: var(--muted);
  cursor: default;
}

.search-chips .button {
  min-height: 38px;
  padding: 6px 20px;
}

/* Страница «Найти по ссылке»: поле, кнопка и ответ — по левому краю */
.find-intro {
  max-width: 640px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 17px;
}

.find-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
}

.find-form .search-field {
  flex: 1 1 320px;
}

.find-form .button {
  min-height: 64px;
  padding-inline: 32px;
}

.find-result {
  max-width: 760px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.find-result h2 {
  margin-bottom: 8px;
  font-size: 23px;
}

.find-result p {
  color: var(--muted);
  font-size: 16px;
}

.find-result > :last-child {
  margin-bottom: 0;
}

/* Закладки стран на главной: на узком экране и телефоне — строка над заголовком */
.country-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.country-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
}

.country-tab:hover {
  color: var(--accent);
}

.country-tab.is-active {
  border-color: var(--accent);
}

.country-tab img,
.country-heading img {
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line);
}

.country-tab-label {
  display: none;
}

/* Закладки у левого края видны только на компьютере (правило ниже) */
.country-tabs-side {
  display: none;
}

/* Широкий экран с мышью: флаги у левого края на всех страницах, закладка выезжает при наведении */
@media (min-width: 1360px) and (hover: hover) {
  .country-tabs-row {
    display: none;
  }

  .country-tabs-side {
    display: flex;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
  }

  .country-tab {
    width: 52px;
    min-height: 44px;
    padding: 0 11px;
    gap: 14px;
    overflow: hidden;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 14px rgb(0 0 0 / 8%);
    white-space: nowrap;
    transition: width 0.2s ease;
  }

  .country-tab:hover,
  .country-tab:focus-visible {
    width: 230px;
  }

  .country-tab.is-active {
    box-shadow: inset 4px 0 0 var(--accent), 0 4px 14px rgb(0 0 0 / 8%);
  }

  .country-tab-name {
    display: none;
  }

  .country-tab-label {
    display: inline;
  }
}

/* Страница страны «скоро» */
.country-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.country-soon-link {
  display: inline-block;
  margin-top: 24px;
}

/* Марки со значками: список в несколько колонок */
.brand-logos {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 4 200px;
  column-gap: 24px;
}

.brand-logos li {
  break-inside: avoid;
}

.brand-logos a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  color: var(--ink);
  font-size: 17px;
}

.brand-logos a:hover {
  color: var(--accent);
}

.brand-logo {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  font-weight: 700;
}

.brand-logo img {
  width: 24px;
  height: 24px;
}

/* Текст только для экранных читалок */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .home-search {
    padding-top: 32px;
  }

  .search-field {
    min-height: 54px;
    border-radius: 16px;
  }

  .search-field input {
    font-size: 17px;
  }

  .find-form .button {
    flex: 1 1 100%;
    min-height: 54px;
  }

  .brand-logos {
    columns: 2;
  }
}

/* Чёрные блоки: баннер связи и подвал (верх страницы белый) */
.contact-banner .eyebrow {
  color: var(--accent-bright);
}

.contact-banner {
  background: var(--black);
}

.site-footer {
  border-top-color: var(--black);
  background: var(--black);
  color: var(--on-black);
}

.site-footer .footer-logo,
.site-footer .footer-navigation a {
  color: var(--on-black);
}

.site-footer .footer-navigation a:hover {
  color: var(--accent-bright);
}

.site-footer .footer-tagline,
.site-footer .footer-contacts p,
.site-footer .contacts-pending,
.site-footer .footer-note {
  color: var(--on-black-muted);
}

.site-footer .footer-note {
  border-top-color: var(--black-line);
}

/* Подвал: кнопки стран, каталогов которых ещё нет на сайте */
.footer-countries {
  margin-top: 32px;
}

.footer-countries-title {
  margin-bottom: 12px;
  color: var(--on-black-muted);
  font-size: 16px;
}

.footer-country-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 16px 6px 12px;
  border: 1px solid var(--black-line);
  border-radius: 10px;
  color: var(--on-black);
  font-size: 16px;
  font-weight: 550;
}

.footer-country:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.footer-country img {
  border-radius: 2px;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
