:root {
  --blue: #033f97;
  --blue-deep: #002665;
  --blue-bright: #096cfb;
  --red: #e60012;
  --ink: #1c2836;
  --muted: #5c6b7a;
  --line: #d5dde6;
  --ice: #d6edfb;
  --footer: #3b3b3b;
  --white: #fff;
  --shadow: 0 10px 28px rgba(3, 63, 151, 0.08);
  --container: min(1240px, calc(100% - 48px));
  --wide: min(1480px, calc(100% - 28px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a {
  color: inherit;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.container--wide {
  width: var(--wide);
}

.arrow-circle {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.arrow-circle img {
  width: 12px;
  height: 12px;
  display: block;
}

.load-error {
  margin: 0;
  padding: 16px 24px;
  background: #8d1d1d;
  color: var(--white);
  text-align: center;
}

.hero {
  position: relative;
  line-height: 0;
  background: #16324d;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  aspect-ratio: 1920 / 600;
}

.hero__slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.hero__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

.hero__arrow {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(3, 63, 151, 0.28);
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-40%, -50%) rotate(45deg);
}

.hero__arrow--prev::before {
  transform: translate(-20%, -50%) rotate(-135deg);
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  background: rgba(3, 63, 151, 0.55);
  border-color: #fff;
  outline: none;
}

.hero__dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.category {
  position: relative;
  background: #d4ecfb url("../images/category-bg.png") center / 100% 100% no-repeat;
  aspect-ratio: 1920 / 590;
  overflow: hidden;
}

.category .container--wide {
  position: absolute;
  top: 19%;
  left: 6.7%;
  right: 6.7%;
  width: auto;
  margin: 0;
}

.category__grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
}

.cat-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: block;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.cat-card + .cat-card {
  margin-left: -7.3%;
}

.cat-card:hover,
.cat-card:focus-visible {
  z-index: 3;
  transform: translateY(-8px);
}

.cat-card > img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.22s ease;
}

.cat-card:hover > img,
.cat-card:focus-visible > img {
  filter: drop-shadow(0 14px 16px rgba(3, 36, 102, 0.42));
}

.cat-card__more {
  position: absolute;
  left: 39.3%;
  bottom: 14%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: var(--white);
  color: #163a86;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 30, 80, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cat-card:hover .cat-card__more,
.cat-card:focus-visible .cat-card__more {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.cat-card__more .arrow-circle {
  width: 26px;
  height: 26px;
  background: #0b6fe0;
  border: 0;
}

.cat-card__more .arrow-circle img {
  width: 13px;
  height: 13px;
}

.distributor {
  position: relative;
  color: var(--white);
  background-color: #036dc1;
  background-image: url("../images/distributor-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: calc(100vw * 698 / 1920);
  padding: 0 0 48px;
}

.distributor .container {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: calc(100vw * 115 / 1024) calc(100vw * 74 / 1024) 0;
}

.distributor__kicker {
  font-size: clamp(16px, calc(100vw * 52 / 1920), 52px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.distributor__title {
  margin: 40px 0 clamp(14px, 2.64vw, 48px);
  font-size: clamp(30px, calc(100vw * 72 / 1920), 72px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.finder__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finder__select {
  appearance: none;
  flex: 1 1 100%;
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 36px 0 14px;
  border: 0;
  border-radius: 2px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.2 L6 6.2 L11 1.2' fill='none' stroke='%238899aa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #8b9aab;
  font-size: 14px;
}

.finder__select.has-value {
  color: var(--ink);
}

.btn-find {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  min-width: 188px;
  height: 40px;
  padding: 0 18px 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn-find:hover {
  background: #001a4d;
}

.btn-find .arrow-circle {
  width: 26px;
  height: 26px;
  background: var(--white);
  border: 0;
}

.btn-find .arrow-circle img {
  width: 12px;
  height: 12px;
}

.finder-result {
  max-width: 640px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(0, 20, 60, 0.45);
}

.finder-result h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.finder-result a {
  display: inline-block;
  margin-top: 10px;
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 3px;
}

.info {
  background: #e7f4fb url("../images/info-bg.png") center / cover no-repeat;
  padding: 72px 0 calc(90px + clamp(78px, 9.4vw, 182px));
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.info-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f8fa;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.info-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 16px rgba(3, 36, 102, 0.42);
}

.info-card > img {
  width: 100%;
  height: auto;
  display: block;
  background: #f4f6f8;
}

.carousel-dots {
  display: none;
}

.info-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-top: auto;
  padding: 12px 16px 12px 22px;
  background: var(--blue-deep);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.page-hero {
  background: linear-gradient(180deg, #033f97 0%, #0450b8 70%, #0a6ed4 100%);
  color: var(--white);
  padding: 56px 0 46px;
}

.page-hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.breadcrumb {
  margin-bottom: 12px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-wrap {
  padding: 48px 0 220px;
  background: var(--white);
}

.prose {
  max-width: 760px;
}

.prose p + p,
.prose h2,
.prose ul {
  margin-top: 16px;
}

.prose h2 {
  font-size: 28px;
  line-height: 1.2;
  color: var(--blue);
}

.prose a {
  color: var(--blue);
  font-weight: 600;
}

.lead {
  font-size: 18px;
  color: #24384d;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.page-section + .page-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid #e4eef5;
}

.search-summary {
  margin-bottom: 28px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #eef6fc;
  color: var(--blue-deep);
  font-weight: 600;
}

.product-block + .product-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #e4eef5;
}

.product-block {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.product-block h2 {
  color: var(--blue);
  font-size: 32px;
  line-height: 1.1;
}

.product-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.product-list h3 {
  font-size: 16px;
  color: var(--blue-deep);
}

.product-list p {
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}

.btn-send {
  justify-self: start;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-send:hover {
  background: #001a4d;
}

.form-note,
.contact-success {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
}

.contact-success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #eef6fc;
  color: var(--ink);
}

.contact-success h2 {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 22px;
}

@media (min-width: 801px) {
  .finder__row {
    gap: 16px;
  }

  .finder__select {
    flex: 0 0 auto;
    width: clamp(168px, 12.7vw, 200px);
  }
}

@media (max-width: 1100px) {
  .info__grid {
    gap: 18px;
  }

  .info-card__bar {
    font-size: 13px;
    padding-left: 14px;
  }
}

@media (max-width: 800px) {
  .page-hero h1 {
    font-size: 28px;
  }

  .distributor {
    background-position: 70% center;
  }

  .distributor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 63, 151, 0.55), rgba(3, 63, 151, 0.28) 55%, rgba(3, 63, 151, 0.12));
  }

  .finder__select {
    width: 100%;
  }

  .info__grid,
  .split,
  .product-block {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .category {
    aspect-ratio: auto;
    padding: calc(100vw * 0.08) 0 36px;
    background-size: 100% auto;
    background-position: center top;
  }

  .category .container--wide {
    position: static;
    width: 100%;
    margin: 0;
  }

  .category__grid {
    overflow-x: auto;
    padding: 12px 14vw;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }

  .category__grid.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

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

  .cat-card {
    flex: 0 0 auto;
    width: 72vw;
    transition: none;
    scroll-snap-align: center;
  }

  .cat-card > img {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cat-card__more {
    left: 34%;
    bottom: 6%;
    z-index: 2;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .info {
    padding: 48px 0 56px;
  }

  .info__grid {
    display: flex;
    gap: 4vw;
    margin: 0 -24px;
    overflow-x: auto;
    padding: 12px 14vw;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }

  .info__grid.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

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

  .info-card {
    flex: 0 0 auto;
    width: 72vw;
    min-height: 0;
    scroll-snap-align: center;
    transition: none;
  }

  .info-card > img {
    -webkit-user-drag: none;
    user-select: none;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
  }

  .carousel-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(3, 63, 151, 0.22);
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .carousel-dots button.is-active {
    background: #033f97;
  }
}

@media (max-width: 700px) {
  .hero__slides {
    aspect-ratio: 1920 / 800;
  }

  .hero__arrow {
    width: 30px;
    height: 30px;
  }

  .hero__controls {
    gap: 10px;
    bottom: 12px;
  }
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 38, 101, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--blue);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.back-to-top__icon {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 800px) {
  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 42px;
    height: 42px;
  }

  .back-to-top__icon {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cat-card,
  .info-card,
  .hero__slide,
  .back-to-top {
    transition: none;
  }
}
