.section {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.section--light {
  background: var(--surface-1);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.section--striped {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(24, 24, 27, 0.018) 0,
      rgba(24, 24, 27, 0.018) 0.0625rem,
      transparent 0.0625rem,
      transparent 0.625rem
    ),
    var(--surface-0);
}

.section__header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section__title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}

.section__title--inverse {
  color: var(--text-inverse);
}

.section__text {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: clamp(0.975rem, 2vw, 1.0625rem);
}

.section__text--inverse {
  color: var(--text-muted-inverse);
}

.card-grid,
.stats-grid,
.category-grid,
.product-grid,
.why-grid,
.contacts-grid {
  display: grid;
  gap: 1rem;
}

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

.stat-card,
.category-card,
.product-card,
.why-card,
.request-card,
.contact-card {
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
}

.stat-card,
.category-card,
.why-card,
.contact-card {
  background: var(--surface-0);
  border: 1px solid rgba(39, 39, 42, 0.08);
}

.stat-card {
  min-height: 100%;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.stat-card:hover {
  transform: translate3d(0, -0.375rem, 0);
  box-shadow: var(--shadow-card-hover);
}

.stat-card__value {
  color: var(--accent);
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 800;
}

.stat-card__icon {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1;
}

.stat-card__title {
  margin: 0.75rem 0 0;
  color: var(--text-primary);
  font-size: var(--font-size-body);
  font-weight: 700;
}

.stat-card__text {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

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

.category-card {
  display: grid;
  gap: 1rem;
  min-height: 100%;
  padding: clamp(1.25rem, 4vw, 1.6rem);
  border-left: 0.25rem solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-card:hover {
  transform: translate3d(0, -0.4375rem, 0);
  border-left-color: var(--accent);
  box-shadow: 0 1.375rem 2.75rem rgba(159, 18, 57, 0.14);
}

.category-card__icon {
  width: 3rem;
  color: var(--accent);
}

.category-card__title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.35;
}

.category-card__list {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card__list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: 1.55;
}

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

.category-card__button {
  justify-self: start;
}

.catalog-controls {
  margin-bottom: 1.5rem;
}

.catalog-tabs {
  position: relative;
  overflow-x: auto;
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.125rem solid rgba(113, 113, 122, 0.22);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-tabs::-webkit-scrollbar {
  display: none;
}

.catalog-tabs__indicator {
  position: absolute;
  left: 0;
  bottom: -0.125rem;
  width: 0.0625rem;
  height: 0.125rem;
  background: var(--accent);
  transform-origin: left center;
  transform: translate3d(var(--indicator-x, 0), 0, 0) scaleX(var(--indicator-scale, 0));
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.filter-button.is-active {
  color: var(--text-primary);
}

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

.product-card {
  overflow: hidden;
  background: var(--surface-0);
  border: 1px solid rgba(39, 39, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translate3d(0, -0.5rem, 0);
  box-shadow: 0 1.5rem 3.25rem rgba(159, 18, 57, 0.14);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(39, 39, 42, 1) 0%, rgba(24, 24, 27, 1) 100%);
  min-height: clamp(11rem, 30vw, 13rem);
  padding: 0.75rem;
}

.product-card__picture {
  width: 100%;
}

.product-card__picture img {
  width: 100%;
  aspect-ratio: 1024 / 571;
  object-fit: contain;
}

.product-card__sku {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.1875rem 0.625rem;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.6875rem;
  font-weight: 700;
}

.product-card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.product-card__tag {
  justify-self: start;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-card__tag--accent {
  background: rgba(190, 18, 60, 0.08);
  color: var(--accent);
}

.product-card__tag--neutral {
  background: rgba(113, 113, 122, 0.1);
  color: #575762;
}

.product-card__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.975rem;
  line-height: 1.45;
  font-weight: 700;
}

.product-card__text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.status-dot--available {
  background: #16a34a;
}

.status-dot--request {
  background: #ef4444;
}

.price-button,
.form-submit {
  position: relative;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 0.09375rem solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.price-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translate3d(-101%, 0, 0);
  transition: transform 220ms ease;
}

.price-button:hover {
  color: var(--text-inverse);
}

.price-button:hover::before {
  transform: translate3d(0, 0, 0);
}

.price-button > span,
.form-submit > span,
.button > span,
.button--ghost > span,
.button--accent > span {
  position: relative;
  z-index: 1;
}

.product-card.is-filtered-in {
  animation: productIn 300ms ease both;
}

@keyframes productIn {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.steps-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: grid;
  gap: 0.75rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--surface-0);
  border: 1px solid rgba(39, 39, 42, 0.08);
  box-shadow: var(--shadow-card);
}

.step-card__top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.step-card__number {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 800;
  box-shadow: 0 0 1.5rem rgba(190, 18, 60, 0.34);
}

.step-card__icon {
  font-size: 1.625rem;
  line-height: 1;
}

.step-card__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.step-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

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

.why-card {
  position: relative;
  padding: 1.5rem;
  border-left: 0.25rem solid var(--accent);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.why-card:hover {
  transform: translate3d(0, -0.375rem, 0);
  box-shadow: 0 1.25rem 2.75rem rgba(159, 18, 57, 0.12);
}

.why-card__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.why-card__icon {
  width: 1.75rem;
  color: var(--accent);
  flex: 0 0 auto;
}

.why-card__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.why-card__text {
  margin: 0.375rem 0 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
  line-height: 1.6;
}

.request-card {
  max-width: 40rem;
  margin-inline: auto;
  background: var(--surface-0);
  padding: clamp(1.5rem, 5vw, 2rem);
}

.request-form {
  display: grid;
  gap: 1rem;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 1.25rem 1rem 0.625rem;
  border: 0.09375rem solid rgba(113, 113, 122, 0.18);
  border-radius: 0.875rem;
  background: rgba(244, 244, 245, 0.9);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.1875rem rgba(190, 18, 60, 0.12);
}

.field label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 180ms ease, color 180ms ease, top 180ms ease, font-size 180ms ease;
}

.field textarea ~ label {
  top: 1.25rem;
  transform: none;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: 0.5rem;
  transform: none;
  color: var(--accent);
  font-size: 0.75rem;
}

.form-submit {
  border: 0;
  background: var(--accent);
  color: var(--text-inverse);
}

.form-submit:hover {
  transform: translate3d(0, -0.125rem, 0);
  background: var(--accent-strong);
}

.form-submit[disabled] {
  cursor: progress;
  opacity: 0.82;
}

.form-submit__spinner,
.form-submit__success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit.is-loading .form-submit__label,
.form-submit.is-success .form-submit__label {
  display: none;
}

.form-submit.is-loading .form-submit__spinner {
  display: inline-flex;
}

.form-submit.is-success .form-submit__success {
  display: inline-flex;
}

.form-submit.is-success {
  background: #166534;
}

.form-submit.is-success:hover {
  background: #166534;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 0.1875rem solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--text-inverse);
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

.form-status.is-error {
  color: #fecaca;
}

.form-status.is-success {
  color: #86efac;
}

.contacts-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.contact-card {
  padding: clamp(1.5rem, 5vw, 2rem);
}

.contact-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.contact-brand__mark {
  width: 2.5rem;
  color: var(--accent);
}

.contact-brand__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.contact-brand__subtitle {
  margin: 0.1875rem 0 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(190, 18, 60, 0.08);
  color: var(--accent);
  flex: 0 0 auto;
}

.contact-item__meta {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.contact-item__value,
.contact-item__value a {
  margin: 0.25rem 0 0;
  color: var(--text-primary);
  font-size: 0.975rem;
  line-height: 1.55;
  text-decoration: none;
  font-style: normal;
}

.contact-item__value a:hover {
  color: var(--accent);
}

.contact-item__value a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.map-card {
  overflow: hidden;
  min-height: clamp(18rem, 50vw, 26rem);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(39, 39, 42, 1) 0%, rgba(24, 24, 27, 1) 100%);
  box-shadow: var(--shadow-card);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  border-top: 0.0625rem solid var(--accent);
  background: #0f0f10;
}

.site-footer__inner {
  padding-block: 2rem;
}

.site-footer__top,
.site-footer__bottom {
  display: grid;
  gap: 1rem;
}

.site-footer__top {
  align-items: center;
  padding-bottom: 1.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-inverse);
  font-weight: 700;
}

.site-footer__brand svg {
  width: 1.875rem;
  color: var(--accent);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-footer__nav a,
.site-footer__contacts a,
.site-footer__bottom {
  color: rgba(244, 244, 245, 0.78);
  text-decoration: none;
}

.site-footer__nav a,
.site-footer__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer__nav a:hover,
.site-footer__contacts a:hover {
  color: var(--text-inverse);
}

.site-footer__contacts {
  display: grid;
  gap: 0.375rem;
  justify-items: start;
}

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 0.0625rem solid rgba(244, 244, 245, 0.08);
  color: rgba(212, 212, 216, 0.58);
  font-size: 0.8125rem;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
  transition-delay: var(--delay, 0ms);
}

[data-reveal="left"] {
  transform: translate3d(-2rem, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(2rem, 0, 0);
}

[data-reveal="flip"] {
  transform: perspective(60rem) rotateY(12deg);
  transform-origin: left center;
  backface-visibility: hidden;
}

[data-reveal="pop"] {
  transform: scale(0.94);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (min-width: 481px) {
  .stats-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 769px) {
  .section__header {
    margin-bottom: 3rem;
  }

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

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

  .steps-list {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .steps-list::before,
  .steps-list::after {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 1.375rem;
    height: 0.125rem;
  }

  .steps-list::before {
    border-top: 0.125rem dashed rgba(159, 18, 57, 0.32);
  }

  .steps-list::after {
    right: auto;
    width: 75%;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1.2s ease;
  }

  .steps-list.is-drawn::after {
    transform: scaleX(1);
  }

  .step-card {
    position: relative;
    z-index: 1;
    padding-top: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
  }

  .step-card__top {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-card__body {
    max-width: 12rem;
    margin-inline: auto;
  }

  .contacts-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
    gap: 2rem;
  }

  .site-footer__top,
  .site-footer__bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .site-footer__contacts {
    justify-items: end;
  }

  .site-footer__bottom p:last-child {
    text-align: right;
  }
}

@media (min-width: 1025px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .catalog-controls {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1440px) {
  .product-card__body,
  .category-card,
  .why-card,
  .stat-card,
  .contact-card {
    padding-inline: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card.is-filtered-in,
  .spinner {
    animation: none;
  }

  .steps-list::after {
    transition: none;
    transform: scaleX(1);
  }
}
