* {
  box-sizing: border-box;
}

:root {
  --brand-accent: #8faeca;
  --brand-accent-hover: #a9c2d8;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --hero-gap: 28px;
  --card-width: 220px;
  --card-image-height: 190px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #1f2a30;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  animation: pageEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main.page-delivery {
  animation: none;
}

html.page-leaving main {
  animation: pageLeave 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }

  html.page-leaving main {
    animation: none;
  }
}

html {
  scrollbar-width: auto;
  scrollbar-color: #1b272d #e9eef2;
  height: 100%;
}

body::-webkit-scrollbar {
  width: 18px;
}

body::-webkit-scrollbar-track {
  background: #e9eef2;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2b3a42 0%, #1b272d 100%);
  border-radius: 999px;
  border: 3px solid #e9eef2;
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3a4b54 0%, #26343b 100%);
}

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

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topline {
  border-bottom: 1px solid #1b2a31;
  color: #9aaeb4;
  font-size: 15px;
  background: #0b1016;
}

.topline__inner {
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-3);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  white-space: nowrap;
  min-height: 46px;
  font-size: 14px;
  font-weight: 500;
}

.topline__inner .contact-item:first-child {
  justify-self: start;
}

.topline__inner .contact-item:nth-child(2),
.topline__inner .contact-item:nth-child(3) {
  justify-self: center;
}

.topline__inner .contact-item:nth-child(4) {
  justify-self: end;
}

.contact-item i {
  color: var(--brand-accent);
  font-size: 14px;
}

.header {
  border-bottom: 1px solid #1b2a31;
  background: #0b1016;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  column-gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: start;
  grid-column: 1;
}

.brand__logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav {
  position: relative;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.4vw, 22px);
  font-size: clamp(12px, 1.05vw, 14px);
  white-space: nowrap;
  padding-bottom: var(--space-1);
  justify-self: center;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #c1d0d4;
  font-weight: 500;
  padding: 0 2px;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}

.nav__link--hover,
.nav__link--active {
  color: var(--brand-accent);
}

.nav__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-accent);
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.search {
  width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #9fb0b8;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search i {
  color: #6f848d;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search input {
  width: 100%;
  padding: 11px 0;
  background: transparent;
  border: none;
  color: #24343c;
  outline: none;
}

.search input::placeholder {
  color: #7a9098;
}

.search:focus-within {
  border-color: var(--brand-accent);
  box-shadow: 0 1px 0 0 var(--brand-accent);
}

.search:focus-within i {
  color: var(--brand-accent);
  transform: scale(1.08);
}

.home {
  padding-bottom: var(--space-6);
}

.hero-slider {
  margin-top: var(--space-4);
}

.hero-slider__frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce8ef;
  box-shadow:
    0 24px 48px rgba(24, 44, 56, 0.12),
    0 8px 20px rgba(24, 44, 56, 0.06);
}

.hero-slider__viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-slider__viewport:active {
  cursor: grabbing;
}

.hero-slider__track {
  display: flex;
  will-change: transform;
}

.hero-slider__slide {
  flex: 0 0 100%;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) calc(var(--space-5) + 28px);
}

.hero-slider__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-1);
}

.hero-slider__badge {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c62828;
}

.hero-slider__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  color: #1f2a30;
}

.hero-slider__price {
  margin: var(--space-1) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: #1565a8;
}

.hero-slider__price small {
  font-size: 16px;
  font-weight: 500;
  color: #5f747c;
}

.hero-slider__cta {
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: 11px 22px;
  border-radius: 8px;
  background: #1565a8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}

.hero-slider__cta:hover {
  background: #1a75c0;
  transform: translateY(-1px);
}

.hero-slider__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}

.hero-slider__media img {
  width: 100%;
  max-width: 300px;
  max-height: 260px;
  object-fit: contain;
}

.hero-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e2ea;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2a3f4a;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(20, 40, 50, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider__btn:hover {
  background: #fff;
  border-color: var(--brand-accent);
  color: #1f2a30;
}

.hero-slider__btn--prev {
  left: 14px;
}

.hero-slider__btn--next {
  right: 14px;
}

.hero-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(31, 42, 48, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider__dot--active {
  background: #1565a8;
  transform: scale(1.15);
}

.home-categories {
  max-width: 980px;
  margin: var(--space-5) auto 0;
}

.home-categories__heading {
  margin: 0 0 var(--space-4);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: #1f2a30;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.home-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.2s ease;
}

.home-category:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.88;
}

.home-category__frame {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border: 1px solid #dce8ef;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

.home-category__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-category__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.home-category__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f2a30;
  text-transform: lowercase;
}

.home-category__subtitle {
  font-size: 12px;
  line-height: 1.35;
  color: #5f747c;
  text-transform: lowercase;
}

.hero {
  margin-top: var(--space-4);
  min-height: 200px;
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  background: #f7fafc;
}

.hero.hero--featured {
  display: block;
  margin-top: var(--space-4);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  column-gap: var(--space-5);
  row-gap: var(--hero-gap);
  align-items: center;
  width: 100%;
}

.hero__media {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0 var(--space-2);
  background: transparent;
}

.hero__image {
  width: 100%;
  max-width: min(320px, 100%);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.hero__content-col {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: auto auto;
  row-gap: var(--hero-gap);
  align-content: center;
  padding: var(--space-2) 0;
}

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

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

.hero__season {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d7a52;
}

.hero__badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2d8a4e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero--featured h1 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  color: #1a3328;
}

.hero__text {
  margin: 0;
  color: #4a6358;
  font-size: 14px;
  line-height: 1.5;
  max-width: 52ch;
}

.hero__footer {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.hero__price {
  margin: 0;
  font-size: 15px;
  color: #3d5c4a;
}

.hero__price strong {
  font-size: 24px;
  font-weight: 700;
  color: #1f6b3a;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: #1f6b3a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero__cta:hover {
  background: #268247;
  transform: translateY(-1px);
}

.home-section {
  margin-top: var(--space-6);
}

.home-section__head {
  margin-bottom: var(--space-4);
}

.home-section__head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  color: #1f2a30;
}

.home-section__lead {
  margin: 10px 0 0;
  max-width: 72ch;
  color: #5f747c;
  font-size: 15px;
  line-height: 1.5;
}

.promo-row {
  width: 100%;
}

.promo-row .grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}

.promo-row .grid::-webkit-scrollbar {
  display: none;
}

.promo-row .card {
  position: relative;
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  scroll-snap-align: start;
  background: transparent;
}

.promo-row .card__image {
  height: var(--card-image-height);
}

.promo-row .card:hover {
  background: transparent;
  border-color: #b8c9d2;
  box-shadow: none;
}

.promo-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 6px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.promo-card__meta {
  margin: 0;
  font-size: 12px;
  color: #5f747c;
  line-height: 1.35;
}

.promo-card__meta span {
  color: #7a9098;
}

.promo-card__price {
  color: #1e6bb8;
}

.delivery-section {
  padding: 0;
  margin-top: var(--space-5);
  background: transparent;
  border: none;
}

.home-section__head--compact {
  margin-bottom: var(--space-3);
}

.home-section__head--compact .home-section__lead {
  margin-top: 4px;
  font-size: 14px;
}

.delivery-grid--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: var(--space-3) var(--space-5);
}

.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 88px;
  padding: var(--space-3) var(--space-2);
  background: transparent;
  border: none;
  border-bottom: 1px solid #e8eff3;
  box-sizing: border-box;
}

.delivery-card i {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--brand-accent);
  margin-top: 2px;
}

.delivery-card__body {
  min-width: 0;
}

.delivery-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #24343c;
}

.delivery-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #5f747c;
}

.delivery-list {
  margin: 0;
  padding-left: 16px;
  color: #5f747c;
  font-size: 13px;
  line-height: 1.4;
}

.delivery-list li + li {
  margin-top: 4px;
}

.delivery-carriers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delivery-carriers li {
  padding: 4px 8px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid #d8e2e8;
  font-size: 12px;
  font-weight: 500;
  color: #3a4f58;
}

.delivery-actions {
  margin-top: var(--space-4);
}

.delivery-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #c8d7df;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #24343c;
  background: #fff;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.delivery-more i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.delivery-more:hover {
  border-color: var(--brand-accent);
  color: #1f2a30;
  background: #f5f9fc;
}

.delivery-more:hover i {
  transform: translateX(3px);
}

.page-delivery {
  width: 100%;
  max-width: 900px;
  margin: var(--space-5) auto var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.page-delivery__head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e2ebf0;
  text-align: center;
}

.page-delivery__head h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: #1f2a30;
}

.page-delivery__lead {
  margin: var(--space-2) auto 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: #5f747c;
  text-align: center;
}

.page-delivery__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.delivery-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.delivery-page__card {
  min-height: 196px;
  padding: var(--space-4);
  border: 1px solid #e2ebf0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 1px 2px rgba(31, 42, 48, 0.04);
}

.delivery-page__card-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
}

.delivery-page__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.delivery-page__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f9fc;
  color: var(--brand-accent);
  font-size: 18px;
}

.delivery-page__card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #24343c;
}

.delivery-page__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5f747c;
}

.delivery-page__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f747c;
}

.delivery-page__list li + li {
  margin-top: 8px;
}

.delivery-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-page__tags li {
  padding: 6px 12px;
  border: 1px solid #d8e2e8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #3a4f58;
  line-height: 1.3;
  background: #fafcfd;
}

.delivery-page__steps {
  padding: var(--space-4);
  border: 1px solid #e2ebf0;
  border-radius: 10px;
  background: #f7fafc;
}

.delivery-page__steps h2 {
  margin: 0 0 var(--space-4);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #24343c;
}

.delivery-page__steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  counter-reset: delivery-step;
}

.delivery-page__steps-list li {
  position: relative;
  min-height: 132px;
  padding: calc(var(--space-4) + 18px) var(--space-3) var(--space-3);
  border: 1px solid #e6eef3;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  color: #5f747c;
  text-align: center;
  counter-increment: delivery-step;
}

.delivery-page__steps-list li::before {
  content: counter(delivery-step);
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.delivery-page__steps ol:not(.delivery-page__steps-list) {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.delivery-page__steps ol:not(.delivery-page__steps-list) li {
  font-size: 14px;
  line-height: 1.45;
  color: #5f747c;
}

.page-delivery__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: var(--space-5) auto 0;
  font-size: 14px;
  font-weight: 500;
  color: #4a5d66;
  transition: color 0.25s ease;
}

.page-delivery__back:hover {
  color: var(--brand-accent);
}

.catalog {
  margin: 32px 0 52px;
  padding: 0 4px;
}

.catalog__layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 96px;
  background: transparent;
  border: none;
  padding: 8px 0 8px 28px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.category-panel__title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #24343c;
}

.category-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-panel__link {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: #5f747c;
  cursor: pointer;
}

.category-panel__link:hover {
  color: #3a4f58;
}

.category-panel__link--active {
  color: var(--brand-accent);
  font-weight: 500;
}

.catalog-section__head {
  margin-bottom: 16px;
}

.sidebar h3 {
  margin: 0 0 9px;
  font-size: 15px;
  color: #20343d;
  white-space: nowrap;
}

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

.price-range input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #d8e2e8;
  outline: none;
}

.price-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-accent);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.price-range input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-accent);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.price-range__value {
  margin: 0;
  color: #60757d;
  font-size: 13px;
  white-space: nowrap;
}

#sortSelect {
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #1f2a30;
  white-space: nowrap;
  font: inherit;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  color: #2f434c;
}

.filters label {
  font-size: 14px;
  color: #2a3f47;
  white-space: normal;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.filters input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #97aab3;
  border-radius: 0;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  flex: 0 0 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.filters input[type="checkbox"]:checked {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: scale(1.08);
}

.filters input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #0b1016;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkPop 0.18s ease;
}

@keyframes checkPop {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0.6);
  }
  to {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.catalog__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  min-height: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3ebf0;
}

.catalog__top p {
  margin: 0;
  color: #60757d;
  white-space: nowrap;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #60757d;
  white-space: nowrap;
}

.catalog__tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search--catalog {
  width: min(320px, 42vw);
}

.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.catalog-section__title {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 600;
  color: #24343c;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.catalog-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: var(--space-2);
}

.catalog-row__btn {
  width: 40px;
  height: 40px;
  border: 1px solid #c8d7df;
  border-radius: 50%;
  background: #ffffff;
  color: #3a4f58;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.catalog-row__btn i {
  font-size: 18px;
  line-height: 1;
}

.catalog-row__btn:hover:not(:disabled) {
  border-color: var(--brand-accent);
  color: #1f2a30;
  background: #f5f9fc;
}

.catalog-row__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.catalog-section .grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.catalog-section .grid::-webkit-scrollbar {
  display: none;
}

.catalog-section .card {
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  scroll-snap-align: start;
}

.empty-results {
  width: 100%;
  padding: 28px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #6a7f88;
}

.card {
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  background: #ffffff;
  border-color: #b8c9d2;
  box-shadow: 0 8px 18px rgba(28, 53, 66, 0.08);
}

.card--enter {
  animation: cardFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__image {
  width: 100%;
  height: var(--card-image-height);
  object-fit: contain;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: var(--space-2);
}

.price {
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.title {
  min-height: 2.8em;
  font-size: clamp(12px, 0.95vw, 13px);
  color: #4a5d66;
  margin: 0;
  white-space: normal;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.btn {
  border: 1px solid #35505c;
  border-radius: 6px;
  background: #1d2c35;
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #233641;
}

.btn--small {
  font-size: 13px;
  padding: 8px 10px;
}

.btn--secondary {
  background: #131e26;
}

#clearFilters,
#showMoreBtn {
  margin: 22px auto 0;
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #0b1016;
  transition: background-color 0.2s ease;
}

#showMoreBtn {
  display: block;
  min-width: 320px;
  padding: 10px 18px;
  margin-bottom: 34px;
}

#showMoreBtn:disabled {
  cursor: pointer;
  opacity: 0.92;
}

#showMoreBtn.btn--loading {
  position: relative;
}

#showMoreBtn.btn--loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgb(11, 16, 22);
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: btnSpin 0.65s linear infinite;
}

#clearFilters {
  margin: 8px 0 0;
}

#clearFilters:hover,
#showMoreBtn:hover {
  background: var(--brand-accent-hover);
}

.footer {
  border-top: 1px solid #1b2a31;
  padding: 24px 0 44px;
  color: #90aab0;
  background: #0b1016;
}

main {
  flex: 1;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 6px;
}

.footer__menu a {
  font-size: 13px;
  font-weight: 600;
  color: #b8cacf;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer__menu a:hover {
  color: var(--brand-accent);
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.footer__contacts p {
  margin: 0;
  white-space: nowrap;
}

.footer__contacts a {
  color: #c9d8dc;
  white-space: nowrap;
}

.footer__contacts a:hover {
  color: var(--brand-accent);
}

.footer__bottom {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #1b2a31;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.footer__bottom p {
  margin: 0;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1050px) {
  :root {
    --card-width: 200px;
    --card-image-height: 175px;
  }
}

@media (max-width: 900px) {
  .topline__inner {
    grid-template-columns: 1fr 1fr;
    padding: 10px 0;
    gap: 10px 16px;
  }

  .header__inner {
    padding: 10px 0;
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: var(--space-2);
    justify-items: center;
  }

  .brand {
    justify-self: center;
    grid-column: 1;
  }

  .nav {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    justify-self: center;
  }

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

  .catalog__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-panel {
    position: static;
    max-height: none;
    padding-left: 0;
  }

  .category-panel__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-panel__link {
    width: auto;
    padding: 4px 0;
  }

  .catalog__top {
    flex-wrap: wrap;
  }

  .catalog__tools {
    width: 100%;
    justify-content: space-between;
  }

  .search--catalog {
    width: 100%;
  }

  .footer__contacts {
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: var(--space-4);
  }

  .hero__media {
    grid-column: 1;
    grid-row: 2;
    padding: var(--space-2) 0;
  }

  .hero__content-col {
    grid-column: 1;
    display: contents;
  }

  .hero__top {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__bottom {
    grid-column: 1;
    grid-row: 3;
  }

  .delivery-grid--compact {
    grid-template-columns: 1fr;
  }

  .hero-slider__slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--space-4) var(--space-4) calc(var(--space-4) + 28px);
    text-align: center;
  }

  .hero-slider__content {
    align-items: center;
    padding-left: 0;
  }

  .hero-slider__cta {
    align-self: center;
  }

  .hero-slider__media img {
    max-width: 220px;
    max-height: 180px;
  }

}

@media (max-width: 640px) {
  .topline__inner {
    grid-template-columns: 1fr;
  }

  .catalog-row {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .catalog-row__btn {
    width: 34px;
    height: 34px;
  }

  :root {
    --card-width: 170px;
    --card-image-height: 155px;
    --hero-gap: 20px;
  }

  .nav {
    gap: 8px 12px;
    font-size: 12px;
  }

  .delivery-page__steps-list {
    grid-template-columns: 1fr;
  }

  .hero-slider__btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .hero-slider__btn--prev {
    left: 8px;
  }

  .hero-slider__btn--next {
    right: 8px;
  }

  .home-category__frame {
    padding: var(--space-2);
  }

  .home-category__title {
    font-size: 13px;
  }

  .home-category__subtitle {
    font-size: 11px;
  }

  .brand__logo {
    height: 46px;
  }

  .hero__inner {
    row-gap: var(--space-3);
  }

  .hero__content-col {
    row-gap: var(--space-3);
  }

  .hero__image {
    max-width: 260px;
  }

  .delivery-grid--compact {
    gap: var(--space-2);
  }

  .delivery-page__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

}

/* ===== ПРАВКИ ДЛЯ ГЛАВНОЙ: убираем фон и тени, оставляем рамки ===== */
.home .hero-slider__frame {
  background: transparent;
  box-shadow: none;
  /* border оставляем как есть */
}

.home .hero-slider__slide {
  background: transparent;
}

.home .home-category__frame {
  background: transparent;
  /* border оставляем как есть */
}

/* ===== НОВЫЙ БЛОК: С нами работают ===== */
.home-trust {
  max-width: 980px;
  margin: var(--space-6) auto 0;
}

.home-trust__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  border: 1px solid #dce8ef;
  background: transparent;
}

.home-trust__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-trust__heading {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: #1f2a30;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-trust__subheading {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-trust__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
}

.home-trust__placeholder {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: #5f747c;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* Адаптация для планшетов и телефонов */
@media (max-width: 768px) {
  .home-trust__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
  }

  .home-trust__placeholder {
    font-size: 20px;
  }
}