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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text-primary);
  background: var(--color-gray-50);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

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

.section {
  margin-top: var(--layout-section);
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 40px;
}

.section__title {
  font-size: 36px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.section__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-0);
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-3xl);
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.btn span {
  padding-inline: var(--space-2);
}

.btn--primary {
  background: var(--color-bg-button-primary);
  color: var(--color-text-white);
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-bg-button-primary-hover);
}

.btn--primary:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-bg-button-primary);
}

.btn--primary:disabled {
  background: var(--color-border-accent);
  color: var(--color-text-white);
}

.btn--dark {
  background: var(--color-bg-button-dark);
  color: var(--color-text-white);
}

.btn--dark:hover:not(:disabled) {
  background: var(--color-bg-button-dark-hover);
}

.btn--dark:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-bg-button-dark);
}

.btn--dark:disabled {
  background: var(--color-gray-200);
  color: var(--color-text-white);
}

.btn--gray {
  background: var(--color-bg-button-gray);
  color: var(--color-text-button);
}

.btn--gray:hover:not(:disabled) {
  background: var(--color-gray-100);
}

.btn--gray:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.btn--gray:disabled {
  color: var(--color-text-button-disabled);
}

.btn--outline {
  background: var(--color-bg-button-outline);
  color: var(--color-text-button);
  border-color: var(--color-border-outline);
  box-shadow: var(--shadow-xs);
}

.btn--outline:hover:not(:disabled) {
  background: var(--color-gray-50);
  border-color: var(--color-border-outline);
}

.btn--outline:focus-visible {
  background: var(--color-bg-button-outline);
  border-color: var(--color-border-outline);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.btn--outline:disabled {
  border-color: var(--color-border-outline-disabled);
  color: var(--color-text-button-disabled);
}

.btn--link {
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  gap: var(--space-2);
  color: var(--color-text-button);
}

.btn--link span {
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn--link:hover:not(:disabled) {
  background: transparent;
  color: var(--color-text-accent);
}

.btn--link:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.btn--link:disabled {
  color: var(--color-text-button-disabled);
}

.btn--white:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.btn--white:disabled {
  color: var(--color-text-button-disabled);
}

.btn--bold {
  font-weight: 700;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-3xl);
  flex: 0 0 auto;
}

.icon-btn--primary {
  background: var(--color-bg-button-primary);
}

.icon-btn--primary:hover:not(:disabled) {
  background: var(--color-bg-button-primary-hover);
}

.icon-btn--primary:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-bg-button-primary);
}

.icon-btn--primary:disabled {
  background: var(--color-border-accent);
}

.icon-btn img,
.btn img {
  flex: 0 0 auto;
}

.is-back img {
  transform: rotate(90deg);
}

.site-header .city__btn img {
  filter: brightness(0) invert(1);
}

/* Header */

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  padding-top: 80px;
  color: var(--color-text-white);
}

.site-header__bar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 80px;
  margin: 0;
  padding-inline: max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2));
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.page-catalog .site-header__bar {
  background: #fff;
  color: var(--color-text-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header__side {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.site-header__side--end {
  justify-content: flex-end;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: 0;
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  max-width: 100%;
  color: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-contacts img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex: 0 0 auto;
  margin-right: var(--space-2);
  color: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.header-phone img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.header-call {
  flex: 0 0 auto;
}

.site-header__logo {
  display: block;
  width: 258px;
  height: 40px;
}

.site-header__logo img {
  width: 258px;
  height: 40px;
}

.logo-dark,
.only-mobile {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  height: 60px;
  border-bottom: 1px solid var(--color-gray-200);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

body.header-stuck .site-header__bar {
  background: #fff;
  color: var(--color-text-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--color-gray-200);
}

body.header-stuck .logo-light {
  filter: brightness(0);
}

body.header-stuck .site-header__side--end .icon-btn:not(.icon-btn--primary) img:not([src*="heart"]),
body.header-stuck .site-header .city__btn img {
  filter: brightness(0);
}

body.header-stuck .site-header a[aria-label="Избранное"]:not([aria-current="page"]) img {
  content: url("../images/icons/heart-dark.svg");
}

a.icon-btn[aria-label="Избранное"]:hover:not([aria-current="page"]) img,
body.header-stuck a.icon-btn[aria-label="Избранное"]:hover:not([aria-current="page"]) img {
  content: url("../images/icons/heart-gray.svg");
  filter: none;
}

a.icon-btn[aria-label="Избранное"][aria-current="page"] img,
body.header-stuck a.icon-btn[aria-label="Избранное"][aria-current="page"] img,
a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img,
body.header-stuck a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img {
  content: url("../images/icons/heart-fill-24.svg");
  filter: none;
}

html.has-saved .site-header a.icon-btn[aria-label="Избранное"] img,
html.has-saved .mobile-menu a.icon-btn[aria-label="Избранное"] img,
html.has-saved body.header-stuck .site-header a.icon-btn[aria-label="Избранное"] img,
html.has-saved .site-header a.icon-btn[aria-label="Избранное"]:hover img,
html.has-saved .mobile-menu a.icon-btn[aria-label="Избранное"]:hover img,
html.has-saved body.header-stuck .site-header a.icon-btn[aria-label="Избранное"]:hover img {
  content: url("../images/icons/heart-badge.svg");
  filter: none;
}

html.has-saved body:not(.header-stuck):not(.search-open) .site-header a.only-desktop[aria-label="Избранное"] img[src*="heart-light"] {
  content: url("../images/icons/heart-badge-light.svg");
}

html:not(.has-saved) .site-header a.icon-btn[aria-label="Избранное"][aria-current="page"] img,
html:not(.has-saved) .mobile-menu a.icon-btn[aria-label="Избранное"][aria-current="page"] img,
html:not(.has-saved) body.header-stuck .site-header a.icon-btn[aria-label="Избранное"][aria-current="page"] img {
  content: url("../images/icons/heart-dark.svg");
  filter: none;
}

html:not(.has-saved) .site-header a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img,
html:not(.has-saved) .mobile-menu a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img,
html:not(.has-saved) body.header-stuck .site-header a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img {
  content: url("../images/icons/heart-gray.svg");
  filter: none;
}

body.header-stuck .city__btn {
  color: var(--color-text-primary);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-text-white);
}

.nav-link span {
  padding-inline: var(--space-1);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-drop {
  position: relative;
}

.nav-drop__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-2) 0;
  background: var(--surface-overlay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}

.nav-drop__menu[hidden] {
  display: none;
}

.nav-drop__menu a {
  display: block;
  padding: var(--space-1) 24px var(--space-1) var(--space-4);
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  white-space: nowrap;
}

.nav-drop__menu a:hover {
  background: var(--color-gray-50);
}

.city {
  position: relative;
}

.city__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-0);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-white);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.city__btn span {
  padding-inline: var(--space-1);
}

.city__menu,
.dropdown__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  background: var(--surface-overlay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}

.city__menu button,
.dropdown__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 16px;
  border-radius: 0;
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.city__menu button:hover,
.dropdown__menu button:hover,
.city__menu button:focus-visible,
.dropdown__menu button:focus-visible,
.city__menu button[aria-selected="true"],
.dropdown__menu button[aria-selected="true"] {
  background: var(--color-gray-50);
  outline: none;
}

/* Hero */

.hero {
  position: relative;
}

.hero__visual {
  position: relative;
  height: var(--hero-height);
  overflow: visible;
  background: #f7f7f8;
  container-type: size;
}

.hero__banner {
  position: relative;
  height: 100%;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__photo--mobile {
  display: none;
}

.hero__copy {
  position: absolute;
  z-index: 2;
  top: 236px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(1347px, calc(100% - 160px));
  text-align: center;
}

.hero__title {
  width: 100%;
  margin: 0;
  color: var(--color-text-white);
  font-size: 96px;
  line-height: 96px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.hero__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--color-text-white);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.hero__lead-line {
  display: block;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  font-family: Inter;
}

.hero__arrow {
  position: absolute;
  z-index: 3;
  top: 407px;
}

.hero__arrow--prev {
  left: max(24px, var(--layout-gutter));
}

.hero__arrow--next {
  right: max(24px, var(--layout-gutter));
}

.hero__dots {
  display: none;
}

.hero__title-break,
.hero__cta {
  display: none;
}

.search {
  --hero-scale: 1;
  --hero-scale: max(100cqw / 1920px, 100cqh / 740px);
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(-19px * var(--hero-scale));
  transform: translateX(-50%) scale(var(--hero-scale));
  transform-origin: center bottom;
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  box-sizing: border-box;
  width: 632px;
  height: 136px;
  padding: var(--space-4) var(--space-6);
  background: var(--color-gray-50);
  border-radius: var(--radius-card);
}

.search__filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1 1 auto;
}

.search .tabs {
  width: max-content;
}

.search .btn {
  height: 40px;
  padding-block: 0;
}

.filters {
  display: flex;
  gap: var(--space-1);
}

.dropdown {
  position: relative;
  width: 241px;
}

.dropdown__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 var(--space-3);
  background: var(--color-bg-button-outline);
  border: 1px solid var(--color-border-outline);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xs);
  color: var(--color-text-button-disabled);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.dropdown__btn:hover:not(:disabled) {
  background: var(--color-gray-50);
}

.dropdown__btn:focus-visible {
  outline: none;
  border-color: var(--color-border-outline);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.dropdown__btn img {
  transition: transform 0.2s ease;
}

.dropdown__btn[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.dropdown__btn span {
  padding-inline: var(--space-2);
}

.dropdown.is-set .dropdown__btn {
  color: var(--color-text-primary);
}

.range-tip {
  position: fixed;
  z-index: 80;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-red-500);
  color: var(--color-text-white);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.range-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-top: 8px solid var(--color-red-500);
}

.dropdown__menu {
  width: 100%;
  max-height: 240px;
  overflow: auto;
}

/* Tabs */

.tabs {
  position: relative;
  display: flex;
  gap: var(--space-2);
}

.tabs::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-border-tab);
  pointer-events: none;
}

.tab {
  display: flex;
  align-items: flex-start;
  height: 48px;
  padding: 8px 12px 0;
  border-bottom: 2px solid transparent;
  color: var(--color-text-tab);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}

.tab:hover:not(.is-active) {
  border-bottom-color: var(--color-gray-200);
  color: var(--color-text-primary);
}

.tab span {
  padding-inline: var(--space-1);
}

.tab.is-active {
  border-bottom-color: var(--color-border-tab-active);
  color: var(--color-text-tab-active);
  font-weight: 500;
}

/* Promos */

.promos {
  margin-top: 48px;
}

.promos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 244px;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-promo);
  overflow: hidden;
  color: var(--color-text-white);
}

.promo--dark,
.promo--pink {
  background: linear-gradient(180deg, #f53d6b 0%, #d50b3e 100%);
}

.promo--dark:hover,
.promo--pink:hover {
  background: var(--color-gray-900);
}

.promo--dark .btn--primary {
  background: var(--color-bg-button-gray);
  color: var(--color-text-button);
}

.promo:hover .btn--primary,
.promo:hover .btn--gray {
  background: var(--color-bg-button-primary);
  color: var(--color-text-white);
}

.promo:hover .btn--primary:hover:not(:disabled),
.promo:hover .btn--gray:hover:not(:disabled) {
  background: var(--color-bg-button-primary-hover);
}

.promo__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 302px;
}

.promo__copy h3 {
  margin: 0;
  font-size: 30px;
  line-height: 40px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.promo__copy p {
  font-size: 14px;
  line-height: 20px;
}

.promo .btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.promo__media {
  position: absolute;
  object-fit: cover;
  pointer-events: none;
}

.promo__media--credit {
  width: 309px;
  height: 309px;
  left: 280px;
  top: 10px;
}

.promo__media--trade {
  width: 333px;
  height: 333px;
  left: 252px;
  top: 17px;
}

.promo__media--osago {
  width: 325px;
  height: 325px;
  left: 266px;
  top: 4px;
}

/* Brands */

.brands__head {
  margin-bottom: 16px;
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.brand-col {
  display: flex;
  flex-direction: column;
  min-height: 48px;
}

.brand-col--last {
  justify-content: space-between;
}

.brand-col--last > .btn {
  justify-content: flex-start;
  height: 48px;
  min-height: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 24px;
}

.brand__logo {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: var(--color-gray-50);
  padding: 4px;
}

.brand b {
  font-weight: 400;
  min-width: 0;
}

.brand span {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.brand:hover b {
  color: var(--color-text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand:focus-visible {
  outline: none;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.brands__extra {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
}

.brands__extra.is-open {
  display: grid;
}

.brands__mobile,
.brands__all {
  display: none;
}

/* Hits */

.hits .section__head,
.hits__more {
  width: min(var(--layout-content), calc(100% - var(--layout-gutter) * 2));
  margin-inline: auto;
}

.hits--grid .hits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hits--grid .hits-grid .card {
  flex: initial;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.hits--grid .hits-grid .card__body {
  flex: 1;
}

.hits--grid .hits-grid .card__actions {
  margin-top: auto;
}

.hits--grid .hits-grid .card__actions .btn {
  height: 40px;
  border-width: 0;
}

.hits--grid .hits__more {
  display: none;
}

.hits__viewport {
  width: calc(100% - max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2)));
  margin-left: max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2));
  overflow: hidden;
}

/* Homepage hits: the first card lines up with the title, then the row
   scrolls to the screen edge and that inset leaves with the scroll. */
#hits {
  --hits-inset: max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2));
}

#hits .hits__viewport {
  width: 100%;
  margin-left: 0;
}

#hits .hits__track {
  gap: 0;
  scroll-padding-left: 0;
  scroll-snap-type: none;
}

#hits .hits__track::before,
#hits .hits__track::after {
  content: "";
  flex: 0 0 var(--hits-inset);
  scroll-snap-align: none;
}

#hits .hits__track .card {
  scroll-snap-align: none;
}

#hits .hits__track .card:not(:last-child) {
  margin-right: var(--space-3);
}

.hits__track {
  display: flex;
  width: 100%;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  padding-bottom: 2px;
}

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

.hits__more {
  display: none;
}

.card {
  position: relative;
  isolation: isolate;
  flex: 0 0 326px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface-canvas);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-card);
}

.card__media {
  position: relative;
  height: 230px;
  padding: var(--space-2);
}

.card__frame {
  position: relative;
  height: 100%;
  border-radius: var(--space-6);
  overflow: hidden;
  background: var(--color-gray-50);
}

.card__frame img {
  position: absolute;
  width: 128.31%;
  height: 103.74%;
  left: -14.16%;
  top: -1.75%;
  max-width: none;
  object-fit: cover;
}

.card__track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.card__slide img {
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
}

.card__slide img.is-hero {
  inset: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
}

.badge {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 16px;
  left: 16px;
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-accent);
  color: var(--color-text-accent);
  font-size: 14px;
  line-height: 20px;
}

.badge span {
  padding-inline: var(--space-1);
}

.card__fav {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-3xl);
  background: var(--color-bg-button-outline);
  border: 1px solid var(--color-border-outline);
  box-shadow: var(--shadow-xs);
}

.card__fav:not(.is-active) img {
  content: url("../images/icons/heart-dark.svg");
}

.card__fav:hover:not(.is-active) img {
  content: url("../images/icons/heart-gray.svg");
}

.card__fav.is-active img,
.card__fav.is-active:hover img {
  content: url("../images/icons/heart-fill.svg");
}

.card__dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.card__dot {
  display: grid;
  place-items: center;
  width: 8px;
  height: 8px;
  padding: 0;
}

.card__dot::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 0.5px rgba(18, 18, 23, 0.28);
}

.card__dot.is-on::before {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .card__track {
    transition: none;
  }
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 20px;
}

.card__name {
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
}

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

a.card__name::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

a.card__name:hover {
  color: var(--color-text-accent);
}

.card__prices {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  flex-wrap: nowrap;
}

.card__price,
.card__old {
  white-space: nowrap;
}

.card__price {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.card__old {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: line-through;
}

.card__trim {
  display: flex;
  gap: var(--space-1);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.card-trim {
  position: relative;
  z-index: 3;
  width: 100%;
}

.card:has(.card-trim.is-open) {
  z-index: 20;
}

.card-trim__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-outline);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-button-outline);
  box-shadow: var(--shadow-xs);
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.card-trim__btn:hover {
  background: var(--color-gray-50);
}

.card-trim__btn span {
  min-width: 0;
  padding-inline: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-trim__btn img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.card-trim__btn[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.card-trim__btn:focus,
.card-trim__btn[aria-expanded="true"] {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.card-trim__menu {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  margin: 0;
  padding: 8px 0;
  background: var(--surface-overlay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-overlay);
}

.card-trim__menu[hidden] {
  display: none;
}

.card-trim__group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-trim__title {
  margin: 0;
  padding: 4px 16px;
  font-size: 12px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.card-trim__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-trim__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 12px 4px 16px;
  cursor: pointer;
}

.card-trim__option:hover,
.card-trim__option:has(input:checked) {
  background: var(--color-gray-50);
}

.card-trim__option:has(input:checked)::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-bg-button-primary);
}

.card-trim__option:has(input:focus-visible) {
  outline: 2px solid var(--color-red-500);
  outline-offset: -2px;
}

.card-trim__option input,
.card-trim__mark,
.card-trim__price {
  display: none;
}

.card-trim__text {
  display: contents;
}

.card-trim__name {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  white-space: nowrap;
}

.card-trim__line {
  height: 1px;
  background: var(--color-gray-100);
}

.card-trim-sheet[hidden] {
  display: none;
}

.card-trim-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
}

.card-trim-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(18, 18, 23, 0.34);
}

.card-trim-sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: min(556px, calc(100% - 24px));
  background: #fff;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -4px 36px rgba(0, 0, 0, 0.25);
}

.card-trim-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 16px auto;
  border-radius: 100px;
  background: var(--color-text-button-disabled);
}

.card-trim-sheet__head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 20px;
}

.card-trim-sheet__head h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 32px;
  font-weight: 600;
}

.card-trim-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.card-trim-sheet__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 0 20px 24px;
}

.card-trim-sheet__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.card-trim-sheet__group + .card-trim-sheet__group {
  margin-top: 12px;
  border-top: 1px solid var(--color-gray-200);
}

.card-trim-sheet__title {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.card-trim-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-trim-sheet__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.card-trim-sheet__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-trim-sheet__mark {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--color-border-checkbox);
  border-radius: 50%;
  background: #fff;
}

.card-trim-sheet__option input:checked + .card-trim-sheet__mark {
  border-color: var(--color-bg-button-primary);
}

.card-trim-sheet__option input:checked + .card-trim-sheet__mark::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-bg-button-primary);
}

.card-trim-sheet__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 24px;
}

.card-trim-sheet__price {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
}

.card-trim-sheet__foot {
  padding: 12px 20px 24px;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(18, 18, 23, 0.12);
}

.card-trim-sheet__foot .btn {
  width: 100%;
}

body.card-trim-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .card-trim__menu {
    display: none;
  }
}

.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.spec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-0);
  padding-block: var(--space-1);
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.spec span {
  padding-inline: var(--space-05);
}

.card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Offers */

.offers__grid {
  display: grid;
  grid-template-columns: minmax(0, 326fr) minmax(0, 665fr) minmax(0, 327fr) minmax(0, 326fr);
  gap: var(--space-3);
}

.offer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 495px;
  padding: var(--space-1);
  border-radius: var(--radius-promo);
  background: var(--color-gray-100);
}

.offer__media {
  position: relative;
  height: 290px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.offer__shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
}

.offer__media:has(.offer__shot--trade),
.offer__media:has(.offer__shot--hours) {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.offer__shot--trade,
.offer__shot--hours {
  top: 0;
  left: 50%;
  height: auto;
  transform: translateX(-50%);
}

.offer__shot--trade {
  width: 106.7%;
}

.offer__shot--hours {
  width: 98.1%;
}

.offer__shot--gifts-mobile,
.offer__shot--gov-mobile,
.offer__shot--trade-mobile,
.offer__shot--hours-mobile {
  display: none;
}

.offer__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.offer__body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.offer__body p {
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 20px;
}

.offer .btn--link:focus-visible {
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

/* Perks */

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 15px;
  row-gap: var(--space-8);
}

.perks__line {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--color-gray-100);
}

.perk {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.perk__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 9px;
  background: var(--color-red-50);
}

.perk h3 {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.perk p {
  font-size: 14px;
  line-height: 20px;
  max-width: 32ch;
}

/* Lead */

.lead {
  position: relative;
  min-height: 296px;
  margin-top: var(--layout-section);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lead__bg {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
  object-fit: cover;
}

.lead__bg--mobile {
  display: none;
}

.lead__content {
  position: relative;
  z-index: 1;
  width: min(685px, 100%);
  padding-block: 40px;
  color: var(--color-text-white);
}

.lead__content h2 {
  font-size: 36px;
  line-height: 48px;
}

.lead__content > p {
  max-width: 552px;
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 20px;
}

.lead__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.lead__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.field {
  width: 270px;
}

.field input {
  width: 100%;
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-input);
  box-shadow: var(--shadow-xs);
  color: var(--color-text-primary);
  outline: none;
}

.field input::placeholder {
  color: var(--color-text-secondary);
}

.field input:hover,
.ask__form input:hover,
.offer-ask__phone:hover,
.contact-field__control:hover,
.search-field__box:hover,
.calc-phone__box:hover,
.cta__field:hover,
.estimate__control:hover,
.pill:hover,
.pair:hover,
.range-sheet__field:hover,
.brand-sheet__search:hover {
  border-color: var(--color-border-input-hover);
}

.field input:focus,
.ask__form input:focus,
.offer-ask__phone:focus,
.contact-field__control:focus-within,
.search-field__box:focus-within,
.calc-phone__box:focus-within,
.cta__field:focus-within,
.estimate__control:focus-within,
.pill:focus-within,
.pair:focus-within,
.range-sheet__field:focus-within,
.brand-sheet__search:focus-within {
  border-color: var(--color-border-input-focus);
  box-shadow: 0 0 0 1px var(--color-border-input-focus);
}

.pill--disabled:hover,
.pill--disabled:focus-within {
  border-color: var(--color-border-input);
  box-shadow: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 12px;
  line-height: 14px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
}

.check__box::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-border-checkbox);
  border-radius: var(--radius-sm);
  background: var(--color-bg-input);
}

.check input:checked + .check__box::before {
  border-color: var(--color-red-500);
  background: var(--color-red-500) url("../images/icons/check-white.svg") center / 16px 16px no-repeat;
}

.check input:focus-visible + .check__box::before {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.check a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead__success {
  margin-top: var(--space-6);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.form-error {
  color: #ffe1e8;
  font-size: 14px;
  line-height: 20px;
}

/* Reviews */

.reviews__layout {
  display: grid;
  grid-template-columns: minmax(280px, 552px) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.reviews__title {
  max-width: 459px;
  margin-bottom: 24px;
}

.score {
  font-size: 72px;
  line-height: 80px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

.stars {
  display: flex;
  gap: 11px;
  margin-top: var(--space-2);
}

.reviews__note {
  margin-top: 19px;
  max-width: 552px;
  font-size: 14px;
  line-height: 20px;
}

.reviews__stage {
  position: relative;
  height: 294px;
  overflow: hidden;
  border-radius: var(--space-6);
  background: var(--color-gray-100);
}

.reviews__cols {
  position: absolute;
  left: 32px;
  top: -20px;
  display: flex;
  gap: 12px;
  width: max-content;
}

.reviews__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 367px;
}

.reviews__col--offset {
  margin-top: 92px;
}

.reviews__track {
  display: flex;
  flex-direction: column;
}

.reviews__set {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.reviews__col--offset .reviews__track {
  animation: reviews-down 36s linear infinite;
}

.reviews__col:not(.reviews__col--offset) .reviews__track {
  animation: reviews-up 36s linear infinite;
}

.reviews__stage:hover .reviews__track {
  animation-play-state: paused;
}

@keyframes reviews-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@keyframes reviews-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes reviews-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews__track,
  .reviews__marquee {
    animation: none;
  }
}

.review {
  padding: var(--space-4);
  border-radius: var(--space-3);
  background: var(--surface-overlay);
  border: 1px solid var(--color-gray-100);
  box-shadow: var(--shadow-xs);
}

.review__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}

.review__person {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-width: 0;
}

.review__person img,
.review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 36px;
}

.review__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
  color: inherit;
}

.review__person strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.review__person > div > span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 16px;
}

.stars--sm {
  gap: 6px;
  margin-top: 0;
  flex: 0 0 auto;
}

.review p {
  margin-top: var(--space-3);
  font-size: 12px;
  line-height: 16px;
}

.ring {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 215px;
  height: 215px;
}

.ring img {
  width: 215px;
  height: 215px;
}

.ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 8px;
}

.ring__label strong {
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.ring__label span {
  width: 102px;
  font-size: 14px;
  line-height: 20px;
}

/* Footer */

.map-block {
  position: relative;
  height: 326px;
  margin-top: var(--layout-section);
  overflow: hidden;
  background: var(--color-gray-100);
}

.map-block__shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-block__img {
  width: 100%;
  height: 416px;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.contacts {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  min-height: 72px;
  padding: var(--space-4) max(var(--layout-gutter), calc((100% - var(--layout-content)) / 2));
  background: var(--color-gray-900);
  color: var(--color-text-white);
}

.contacts h2 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.contacts__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: min(1116px, 72%);
}

.contacts__info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.contacts__info a,
.contacts__hours {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.contacts__info a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts__actions {
  display: flex;
  gap: var(--space-2);
  flex: 0 0 auto;
}

.footer {
  background: var(--color-gray-900);
  color: var(--color-text-white);
  padding: 32px 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 258px 1fr minmax(280px, 652px);
  gap: 48px;
  align-items: start;
}

.footer__logo {
  width: 258px;
  height: 40px;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 92px;
}

.footer__nav a {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal {
  opacity: 0.4;
  font-size: 12px;
  line-height: 16px;
}

.footer__legal p + p {
  margin-top: 16px;
}

.footer__line {
  height: 1px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.16);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer__docs {
  display: flex;
  gap: var(--space-6);
}

.footer__docs a,
.footer__bottom p {
  font-size: 14px;
  line-height: 24px;
}

.footer__docs a {
  font-weight: 500;
}

.footer__docs a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile menu */

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: transparent;
}

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

.mobile-menu {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: auto;
  background: var(--surface-canvas);
  color: var(--color-text-primary);
  box-shadow: 0 4px 6px -2px rgba(18, 18, 23, 0.05), 0 10px 15px -3px rgba(18, 18, 23, 0.08);
}

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

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 56px;
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--surface-canvas);
}

.mobile-menu__group {
  display: flex;
  gap: var(--space-1);
}

.mobile-menu__logo {
  width: 141px;
  height: 22px;
}

.mobile-menu__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 8px;
  background: var(--surface-canvas);
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-inline: 12px;
  padding: 16px 20px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
}

.mobile-menu__contacts a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mobile-menu__contacts img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  text-align: left;
}

.mobile-nav__link--buy {
  justify-content: space-between;
}

.mobile-nav__link--buy img {
  width: 24px;
  height: 24px;
}

.mobile-nav__sub {
  display: flex;
  padding-left: var(--space-4);
}

.mobile-nav__sub ul {
  border-left: 1.5px solid var(--color-gray-200);
  flex: 1;
}

.mobile-nav__sub a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

/* Dialog */

.contact-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  width: min(1120px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-canvas);
  box-shadow: var(--shadow-xl);
  color: var(--color-text-primary);
}

.contact-dialog[open] {
  display: flex;
}

.contact-dialog::backdrop {
  background: rgba(18, 18, 23, 0.45);
}

.contact-dialog:not(:has(.contact-dialog__media)) {
  width: min(560px, calc(100% - 32px));
}

.contact-dialog:not(:has(.contact-dialog__media)) .contact-dialog__panel {
  flex: 1 1 auto;
  width: 100%;
}

.contact-dialog__media {
  position: relative;
  flex: 0 0 560px;
  width: 560px;
  overflow: hidden;
  background: #4a4a4a;
}

.contact-dialog__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.contact-dialog__art {
  position: absolute;
  left: -234px;
  top: -223px;
  width: 878px;
  height: 655px;
  max-width: none;
  object-fit: cover;
}

.contact-dialog__logo {
  position: absolute;
  z-index: 1;
  left: 44px;
  top: 407px;
  width: 472px;
  height: 72px;
  max-width: none;
}

.contact-dialog__panel {
  display: flex;
  flex: 0 0 560px;
  flex-direction: column;
  gap: var(--space-6);
  width: 560px;
  padding: var(--space-9);
}

.contact-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.contact-dialog h2 {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: 0;
}

.contact-dialog__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 7px;
}

.contact-dialog__lead {
  margin-top: var(--space-4);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

.contact-dialog__form {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.contact-dialog__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-dialog__row {
  display: flex;
  gap: var(--space-4);
}

.contact-field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.contact-field__label {
  display: flex;
  gap: var(--space-1);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.contact-field__req {
  color: var(--color-red-500);
  font-weight: 400;
}

.contact-field__control {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 7px var(--space-2);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-3xl);
  background: var(--color-bg-input);
  box-shadow: var(--shadow-xs);
}

.contact-field__control input,
.contact-field__control textarea {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text-primary);
}

.contact-field__control input::placeholder,
.contact-field__control textarea::placeholder {
  color: var(--color-text-secondary);
}

.contact-field__prefix {
  padding-left: var(--space-2);
  font-size: 14px;
  line-height: 24px;
}

.contact-field--comment {
  flex: none;
  height: 135px;
}

.contact-field--comment .contact-field__control {
  flex: 1 1 auto;
  align-items: flex-start;
  height: auto;
  min-height: 0;
  border-radius: 16px;
}

.contact-field--comment textarea {
  height: 100%;
  resize: none;
}

.contact-dialog__submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-dialog__submit .btn {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding-block: var(--space-2);
  border-width: 0;
}

.contact-dialog .form-error {
  color: var(--color-text-accent);
}

.contact-dialog__success {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

@media (max-width: 1152px) and (min-width: 769px) {
  .contact-dialog {
    width: min(560px, calc(100% - 32px));
  }

  .contact-dialog__media {
    display: none;
  }

  .contact-dialog__panel {
    flex-basis: auto;
    width: auto;
  }
}

@media (max-width: 768px) {
  .contact-dialog[open] {
    position: fixed;
    inset: auto;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    flex-direction: column;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .contact-dialog__media {
    flex: 0 0 314px;
    width: 100%;
    height: 314px;
  }

  .contact-dialog__art {
    left: -69px;
    top: -102px;
    width: 484px;
    height: 361px;
  }

  .contact-dialog__logo {
    left: 20px;
    top: 242px;
    width: 350px;
    height: 52px;
  }

  .contact-dialog__panel {
    flex: 1 1 auto;
    width: 100%;
    gap: var(--space-5);
    padding: var(--space-5);
  }

  .contact-dialog__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius-3xl);
    background: var(--color-bg-button-gray);
  }

  .contact-dialog h2 {
    font-size: 30px;
    line-height: 32px;
  }

  .contact-dialog__lead {
    margin-top: var(--space-3);
    font-size: 14px;
    line-height: 20px;
  }

  .contact-dialog__form {
    gap: var(--space-5);
  }

  .contact-dialog__fields {
    gap: var(--space-2);
  }

  .contact-dialog__row {
    flex-direction: column;
    gap: var(--space-2);
  }

  .contact-field--comment {
    height: auto;
  }

  .contact-field--comment .contact-field__control {
    flex: none;
    align-items: center;
    height: 40px;
  }

  .contact-field--comment textarea {
    height: 24px;
  }
}

body.menu-open {
  overflow: hidden;
}

/* Below the 1920 artboard the promo art must stay to the right of the copy */

@media (max-width: 1600px) {
  .hero__copy {
    top: 188px;
    width: min(1080px, calc(100% - 96px));
  }

  .hero__title {
    font-size: 72px;
    line-height: 80px;
  }

  .promo__media--credit,
  .promo__media--trade,
  .promo__media--osago {
    width: min(240px, 46%);
    height: auto;
    aspect-ratio: 1;
    left: auto;
    right: -8px;
    top: auto;
    bottom: -28px;
  }
}

/* 1280 */

@media (max-width: 1280px) {
  .hero__copy {
    top: 160px;
    width: min(920px, calc(100% - 120px));
  }

  .hero__title {
    font-size: 64px;
    line-height: 72px;
  }

  .hero__arrow {
    top: 320px;
  }

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

  .promo__media--credit,
  .promo__media--trade,
  .promo__media--osago {
    width: 220px;
    height: 220px;
    left: auto;
    right: -20px;
    top: auto;
    bottom: -40px;
  }

  .brands__grid,
  .brands__extra.is-open {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .offer--wide {
    grid-column: 1 / -1;
  }

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

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

  .reviews__stage {
    height: 360px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__nav {
    justify-content: flex-start;
  }

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

  .contacts__main {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 768 mobile design */

@media (max-width: 768px) {
  .logo-light,
  .only-desktop {
    display: none !important;
  }

  .logo-dark {
    display: block;
  }

  .only-mobile {
    display: inline-flex;
  }

  .btn--section {
    width: 100%;
    margin-top: 20px;
  }

  .site-header {
    position: sticky;
    height: auto;
    padding-top: 0;
    background: var(--color-gray-50);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-gray-200);
  }

  .site-header__bar,
  .page-catalog .site-header__bar {
    position: relative;
    z-index: auto;
    top: auto;
    left: auto;
    right: auto;
    height: 56px;
    width: 100%;
    margin: 0;
    padding-inline: var(--space-5);
    background: transparent;
    color: inherit;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
  }

  .site-header__side {
    width: auto;
    gap: var(--space-1);
  }

  .site-header__logo,
  .site-header__logo img {
    width: 141px;
    height: 22px;
  }

  .site-nav {
    display: none;
  }

  .hero__visual {
    height: auto;
    min-height: 0;
    background: transparent;
    overflow: visible;
    container-type: normal;
  }

  .hero__banner {
    height: 603px;
    overflow: hidden;
    background: #071433;
  }

  .hero__photo {
    display: none;
  }

  .hero__photo--mobile {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    top: 0.02%;
    object-fit: cover;
  }

  .hero__copy {
    position: absolute;
    z-index: 2;
    top: 21px;
    left: 25px;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    width: min(350px, calc(100% - 40px));
    text-align: left;
  }

  .hero__title-break {
    display: block;
  }

  .hero__cta {
    display: inline-flex;
    border-width: 0;
    min-height: 40px;
  }

  .hero__dots {
    position: static;
  }

  .hero__title {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0;
  }

  .hero__lead {
    display: block;
    position: static;
    z-index: 2;
    width: 302px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: var(--color-text-white);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: left;
  }

  .hero__lead-line {
    display: inline;
    white-space: normal;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
  }

  .hero__lead-line + .hero__lead-line::before {
    content: " ";
  }

  .hero__arrow {
    display: none;
  }

  .hero__dots {
    display: flex;
    gap: var(--space-2);
  }

  .hero__dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    mix-blend-mode: plus-lighter;
  }

  .hero__dots button.is-active {
    background: #fff;
    mix-blend-mode: normal;
  }

  .search {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 12px 20px 0;
    border-radius: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search__filters {
    gap: 16px;
  }

  .search .tabs {
    width: 100%;
  }

  .filters {
    flex-direction: column;
    gap: var(--space-2);
  }

  .search .filters {
    flex-direction: row;
    gap: 8px;
  }

  .dropdown,
  .field {
    width: 100%;
  }

  .search .dropdown {
    width: auto;
    flex: 1 1 0;
  }

  .search .btn {
    width: 100%;
  }

  .promos {
    width: 100%;
    margin-top: 48px;
    background: var(--color-gray-50);
  }

  .promos__grid {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: var(--space-5);
    scrollbar-width: none;
    padding-inline: var(--space-5);
  }

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

  .promo {
    flex: 0 0 281px;
    width: 281px;
    height: 376px;
    min-height: 376px;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--space-6);
    scroll-snap-align: start;
  }

  .promo--dark {
    background: linear-gradient(180deg, #f53d6b 0%, #d50b3e 100%);
  }

  .promo__copy {
    max-width: none;
  }

  .promo__copy h3 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.24px;
    white-space: nowrap;
  }

  .promo .btn {
    align-self: stretch;
    width: 100%;
    justify-content: center;
  }

  .promo--dark .btn--primary {
    background: var(--color-bg-button-gray);
    color: var(--color-text-button);
  }

  .promo__media--credit {
    width: 230px;
    height: 230px;
    left: 20px;
    right: auto;
    top: 135px;
    bottom: auto;
  }

  .promo__media--trade {
    width: 236px;
    height: 236px;
    left: 21px;
    right: auto;
    top: 135px;
    bottom: auto;
  }

  .promo__media--osago {
    width: 219px;
    height: 218px;
    left: 31px;
    right: auto;
    top: 147px;
    bottom: auto;
  }

  .section__title,
  .lead__content h2,
  .reviews__title {
    font-size: 30px;
    line-height: 32px;
    letter-spacing: 0;
    max-width: none;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .section__head .btn,
  .brands__all {
    width: 100%;
  }

  .brands__grid,
  .brands__extra,
  .brands .only-desktop {
    display: none;
  }

  .brands__mobile {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

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

  .brands__mobile > div {
    flex: 0 0 calc(50% - 5px);
    scroll-snap-align: start;
  }

  .brands__bar {
    position: relative;
    display: block;
    height: 4px;
    margin: 16px 0 22px;
    border-radius: var(--radius-3xl);
    background: var(--color-gray-100);
    cursor: pointer;
    touch-action: none;
  }

  .brands__bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    bottom: -12px;
  }

  .brands__bar span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 48%;
    height: 4px;
    border-radius: var(--radius-3xl);
    background: var(--color-red-500);
    cursor: grab;
  }

  .brands__all {
    display: inline-flex;
  }

  .hits__viewport {
    width: min(var(--layout-content), calc(100% - var(--layout-gutter) * 2));
    margin-inline: auto;
    overflow: visible;
  }

  #hits .hits__viewport {
    width: min(var(--layout-content), calc(100% - var(--layout-gutter) * 2));
    margin-inline: auto;
  }

  #hits .hits__track {
    gap: 16px;
  }

  #hits .hits__track::before,
  #hits .hits__track::after {
    content: none;
  }

  #hits .hits__track .card:not(:last-child) {
    margin-right: 0;
  }

  .hits__track {
    flex-direction: column;
    overflow: visible;
    gap: 16px;
    touch-action: auto;
  }

  .card {
    flex-basis: auto;
    width: 100%;
  }

  .card.is-extra {
    display: none;
  }

  .hits.is-expanded .card.is-extra {
    display: flex;
  }

  .hits__more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-top: var(--space-4);
  }

  .hits__more:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  .hits--grid .hits-grid {
    grid-template-columns: 1fr;
    width: min(var(--layout-content), calc(100% - var(--layout-gutter) * 2));
    margin-inline: auto;
  }

  .hits--grid .hits__more {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hits .section__tools {
    display: none;
  }

  .brand__logo {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

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

  .offer--wide {
    grid-column: auto;
  }

  .offer__media {
    height: auto;
  }

  .offer__shot--gifts,
  .offer__shot--gov,
  .offer__shot--trade,
  .offer__shot--hours {
    display: none;
  }

  .offer__shot--gifts-mobile,
  .offer__shot--gov-mobile,
  .offer__shot--trade-mobile,
  .offer__shot--hours-mobile {
    display: block;
    position: static;
    width: 100%;
    height: auto;
  }

  .offer__media:has(.offer__shot--trade-mobile),
  .offer__media:has(.offer__shot--hours-mobile) {
    height: 290px;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  }

  .offer__shot--trade-mobile,
  .offer__shot--hours-mobile {
    position: absolute;
    top: 0;
    left: 50%;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
  }

  .offer__shot--trade-mobile {
    width: 107%;
  }

  .offer__shot--hours-mobile {
    width: 98%;
  }

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

  .perks__line {
    display: none;
  }

  .perk {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-gray-100);
  }

  #perks .perk:last-child {
    border-bottom: 0;
  }

  .perk p {
    max-width: none;
  }

  .lead {
    height: 637px;
    min-height: 637px;
    align-items: flex-start;
  }

  .lead__bg:not(.lead__bg--mobile) {
    display: none;
  }

  .lead__bg--mobile {
    display: block;
    width: 100%;
    object-fit: cover;
  }

  .lead__content {
    width: 345px;
    max-width: calc(100% - 5px);
    margin-left: 5px;
    padding: 33px 0 0;
  }

  .lead__content h2 {
    font-size: 30px;
    line-height: 32px;
  }

  .lead__content > p {
    max-width: none;
    margin-top: 12px;
  }

  .lead__form {
    margin-top: 24px;
    gap: 8px;
  }

  .lead__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lead .field,
  .lead__row .btn {
    width: 100%;
  }

  .reviews__stage {
    height: auto;
    min-width: 0;
    overflow: hidden;
    background: var(--color-gray-100);
    padding: 20px 0 0;
  }

  .reviews__cols {
    position: static;
    display: block;
    width: auto;
    overflow: hidden;
  }

  .reviews__marquee {
    display: flex;
    width: max-content;
    animation: reviews-marquee 40s linear infinite;
  }

  .reviews__stage:hover .reviews__marquee {
    animation-play-state: paused;
  }

  .reviews__marquee .reviews__set {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0 12px 0 0;
  }

  .reviews__marquee .review {
    flex: 0 0 268px;
    width: 268px;
  }

  .ring {
    position: relative;
    top: auto;
    right: auto;
    width: 260px;
    height: 260px;
    margin: 45px;
  }

  .ring img {
    width: 260px;
    height: 260px;
  }

  .ring__label strong {
    font-size: 60px;
    line-height: 60px;
  }

  .ring__label span {
    width: 140px;
    font-size: 16px;
    line-height: 24px;
  }

  .map-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    margin-top: var(--layout-section);
    padding: 20px var(--layout-gutter);
    overflow: visible;
    background: var(--color-gray-900);
  }

  .map-block__shot {
    position: relative;
    inset: auto;
    order: 2;
    height: 123px;
    border-radius: 16px;
  }

  .map-block__img {
    position: absolute;
    width: 262.44%;
    height: 485.61%;
    left: -74.92%;
    top: -184.24%;
    max-width: none;
    object-fit: fill;
  }

  .contacts {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: var(--color-text-white);
    backdrop-filter: none;
  }

  .contacts h2 {
    font-size: 20px;
    line-height: 32px;
  }

  .contacts__main {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .contacts__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contacts__info a,
  .contacts__hours {
    color: var(--color-text-white);
    white-space: nowrap;
  }

  .contacts__actions {
    display: flex;
    gap: 8px;
  }

  .contacts__actions .btn--gray {
    flex: 0 0 auto;
  }

  .contacts__actions .btn--primary {
    flex: 1 1 auto;
  }

  .footer {
    padding-top: 20px;
  }

  .footer__logo {
    width: 258px;
    height: 40px;
  }

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

  .footer__docs {
    flex-direction: column;
    gap: 4px;
  }
}

/* Search sheet */

.search-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  background: rgba(18, 18, 23, 0.34);
}

.search-sheet {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--header-height) 0 32px;
  background: var(--surface-canvas);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: 0 10px 5px rgba(18, 18, 23, 0.04), 0 20px 12.5px rgba(18, 18, 23, 0.1);
}

.search-sheet[hidden],
.search-backdrop[hidden] {
  display: none !important;
}

body.search-open .search-backdrop {
  animation: search-fade-in 0.22s ease;
}

body.search-open .search-sheet {
  animation: search-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes search-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.search-open .search-backdrop,
  body.search-open .search-sheet {
    animation: none;
  }
}

.search-sheet__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  width: min(var(--layout-content), calc(100% - var(--layout-gutter) * 2));
  margin-inline: auto;
  padding-top: 20px;
}

.search-sheet__find {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 551px;
  flex: 0 1 551px;
}

.search-sheet__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.search-sheet__row {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.search-field {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.search-field__label,
.search-often > p,
.search-sheet__popular > p {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.search-field__box {
  display: flex;
  align-items: flex-start;
  padding: var(--space-2);
  background: var(--color-bg-input);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-xs);
}

.search-field__box img {
  width: 24px;
  height: 24px;
  margin-left: var(--space-1);
}

.search-field__box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 var(--space-2);
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text-primary);
}

.search-field__box input::placeholder {
  color: var(--color-text-secondary);
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.search-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-3xl);
  color: var(--color-text-accent);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.search-chip span {
  padding-inline: var(--space-1);
}

.search-chip:hover:not(:disabled) {
  background: var(--color-bg-accent);
}

.search-chip:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.search-chip:disabled {
  border-color: var(--color-border-outline-disabled);
  color: var(--color-text-button-disabled);
}

.search-often,
.search-often__list,
.search-sheet__popular {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.search-often__btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-3xl);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.search-often__btn img {
  width: 20px;
  height: 20px;
}

.search-often__btn span {
  padding-inline: var(--space-1);
}

.search-often__btn:hover:not(:disabled) {
  background: var(--color-gray-50);
}

.search-often__btn:focus-visible {
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-red-500);
}

.search-often__btn:disabled {
  color: var(--color-text-button-disabled);
}

.search-often__btn:disabled img {
  opacity: 0.45;
}

.search-sheet__popular {
  width: 1003px;
  flex: 0 1 1003px;
  min-width: 0;
}

.search-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
}

.search-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

.search-card__media {
  position: relative;
  height: 214px;
}

.search-card__photo {
  position: relative;
  height: 100%;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--space-6);
  overflow: hidden;
}

.search-card__photo img,
.search-card__photo .card__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.search-card__photo .card__track,
.search-card__photo .card__slide {
  height: 100%;
}

.search-card__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 28px;
  height: 4px;
  transform: translateX(-50%);
}

.search-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.search-card__title {
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
}

.search-card__prices {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}

.search-card__price {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.search-card__old {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

.search-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-card__trim {
  display: flex;
  gap: var(--space-1);
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.search-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.search-card__tag {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-1);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.search-card__tag img {
  width: 16px;
  height: 16px;
}

.search-card__tag span {
  padding-inline: var(--space-05);
}

body.search-open .site-header {
  position: fixed;
  z-index: 50;
  color: var(--color-text-primary);
}

body.search-open .site-header__bar {
  background: #fff;
  color: var(--color-text-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--color-gray-200);
}

body.search-open .logo-light {
  display: none;
}

body.search-open .logo-dark {
  display: block;
}

body.search-open .site-header .city__btn {
  color: var(--color-text-primary);
}

body.search-open .site-header__side--end .icon-btn:not(.icon-btn--primary) img:not([src*="heart"]),
body.search-open .site-header .city__btn img {
  filter: brightness(0);
}

body.search-open .site-header a[aria-label="Избранное"]:not([aria-current="page"]) img {
  content: url("../images/icons/heart-dark.svg");
  filter: none;
}

body.search-open a.icon-btn[aria-label="Избранное"]:hover:not([aria-current="page"]) img {
  content: url("../images/icons/heart-gray.svg");
  filter: none;
}

body.search-open a.icon-btn[aria-label="Избранное"][aria-current="page"] img,
body.search-open a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img {
  content: url("../images/icons/heart-fill-24.svg");
  filter: none;
}

html.has-saved body.search-open .site-header a.icon-btn[aria-label="Избранное"] img,
html.has-saved body.search-open .site-header a.icon-btn[aria-label="Избранное"]:hover img {
  content: url("../images/icons/heart-badge.svg");
  filter: none;
}

html:not(.has-saved) body.search-open .site-header a.icon-btn[aria-label="Избранное"][aria-current="page"] img {
  content: url("../images/icons/heart-dark.svg");
  filter: none;
}

html:not(.has-saved) body.search-open .site-header a.icon-btn[aria-label="Избранное"][aria-current="page"]:hover img {
  content: url("../images/icons/heart-gray.svg");
  filter: none;
}

body.search-open .nav-link {
  color: var(--color-text-primary);
}

body.search-open .nav-link:hover {
  background: var(--color-gray-50);
}

@media (max-width: 1280px) {
  .search-sheet__body {
    flex-direction: column;
  }

  .search-sheet__find,
  .search-sheet__popular {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 768px) {
  .search-backdrop {
    background: transparent;
  }

  body.search-open {
    overflow: hidden;
  }

  body.search-open .site-header {
    background: var(--surface-canvas);
  }

  .search-sheet {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    padding: 20px;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 6px -2px rgba(18, 18, 23, 0.05), 0 10px 15px -3px rgba(18, 18, 23, 0.08);
  }

  .search-sheet__body {
    width: 100%;
    padding-top: 0;
    gap: 24px;
  }

  .search-sheet__find {
    gap: 24px;
  }

  .search-field__label,
  .search-sheet__row > .btn {
    display: none;
  }

  .search-sheet__row {
    display: block;
  }

  .search-field {
    width: 100%;
  }

  .search-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .search-cards {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .search-card {
    flex: none;
    width: 100%;
  }

  .search-card__photo,
  .card__frame {
    touch-action: pan-y;
  }
}

.reviews__marquee {
  display: none;
}

@media (max-width: 768px) {
  .reviews__col {
    display: none;
  }

  .reviews__marquee {
    display: flex;
  }
}

.hits__viewport.swiper {
  overflow: hidden;
}

.hits__viewport.swiper .swiper-slide {
  width: 326px;
  height: auto;
}

.hits__viewport.swiper .card {
  width: 100%;
  flex-basis: auto;
}

.hero__banner.swiper .swiper-slide {
  height: var(--hero-height);
}

.hero__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.hero__dots .swiper-pagination-bullet-active {
  background: #fff;
}

.search .dropdown__btn select,
.pill select {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.used-frame.swiper,
.used-thumbs.swiper {
  overflow: hidden;
}

.used-frame .swiper-slide img,
.car-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-panel][hidden] {
  display: none !important;
}

