*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

/*
  1rem: fluid только от планшета (1101px) до 1920px → 8px…10px.
  На ≤1100px html = 10px; размеры в rem при этом совпадают с макетом (1rem = 10px).
  Толщина и радиус бордеров — в px (не сжимаются).
*/
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 10px;
}

@media (min-width: 1101px) {
  html {
    font-size: clamp(
      8px,
      calc(8px + (100vw - 1101px) * (2 / 819)),
      10px
    );
  }
}

body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: var(--fs-text-m);
  line-height: var(--lh-text-m);
  letter-spacing: var(--ls);
  font-feature-settings: "lnum" 1, "pnum" 1;
  background: var(--bg-base);
  color: var(--text-primary);
  min-width: 32rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: var(--ls);
  font-feature-settings: "lnum" 1, "pnum" 1;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: var(--ls);
  font-family: var(--font);
  font-feature-settings: "lnum" 1, "pnum" 1;
}

.page {
  width: 100%;
  max-width: 192rem;
  margin: 0 auto;
  padding: var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.section {
  background: var(--bg-main);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.section-label {
  font-size: var(--fs-text-s);
  line-height: var(--lh-text-s);
  font-weight: var(--fw-regular);
  color: var(--text-tertiary);
  letter-spacing: var(--ls);
  white-space: nowrap;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls);
}

.section-desc {
  font-size: var(--fs-text-l);
  line-height: var(--lh-text-l);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  letter-spacing: var(--ls);
}

/* Buttons — Figma: pill 32px + round 24px / 40×40 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  align-self: flex-start;
  transition: gap var(--dur-fast) var(--ease-out);
}

.btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  padding: 1rem 2rem;
  background: var(--buttons-main);
  color: var(--text-white);
  font-size: var(--fs-text-s);
  line-height: var(--lh-text-s);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls);
  border-radius: var(--radius-xl);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--buttons-main);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out);
}

.btn:hover:not(.btn--outline),
.btn:focus-visible:not(.btn--outline) {
  gap: 0.6rem;
}

.btn:not(.btn--outline):hover .btn__label,
.btn:not(.btn--outline):hover .btn__icon,
.btn:not(.btn--outline):focus-visible .btn__label,
.btn:not(.btn--outline):focus-visible .btn__icon {
  background: var(--bg-dark);
  opacity: 1;
}

.btn:not(.btn--outline):active .btn__label,
.btn:not(.btn--outline):active .btn__icon {
  background: var(--buttons-main);
}

.btn--outline .btn__label {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--stroke-primary);
}

.btn--outline:hover .btn__label {
  opacity: 1;
  border-color: var(--buttons-main);
  background: var(--bg-base);
}

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 1rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.round-btn--primary {
  background: var(--buttons-main);
  color: var(--text-white);
}

.round-btn--primary:hover,
.round-btn--primary:focus-visible {
  background: var(--bg-dark);
  border-color: var(--stroke-light);
}

.round-btn--secondary {
  border: 1px solid var(--stroke-primary);
  background: transparent;
  color: var(--text-primary);
}

.round-btn--secondary:hover,
.round-btn--secondary:focus-visible {
  background: var(--bg-brand);
  border-color: transparent;
  color: var(--text-primary);
}

.product-card:hover .round-btn--secondary,
.product-card:focus-visible .round-btn--secondary,
.catalog-card:hover .round-btn--secondary,
.catalog-card:focus-visible .round-btn--secondary,
.doc-card:hover .round-btn--secondary,
.doc-card:focus-visible .round-btn--secondary,
.career-card:hover .round-btn--secondary,
.career-card:focus-visible .round-btn--secondary,
.file-card:hover .round-btn--secondary,
.file-card:focus-visible .round-btn--secondary,
.news-card:hover .round-btn--secondary,
.news-card:focus-visible .round-btn--secondary {
  background: var(--bg-brand);
  border-color: transparent;
  color: var(--text-primary);
}

.round-btn img,
.round-btn svg {
  width: 1.6rem;
  height: 1.6rem;
}

.icon-arrow {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.nav-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 2.4rem;
  border: 1px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  flex-shrink: 0;
  color: currentColor;
  transition: width var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}

.nav-go .icon-arrow {
  width: 1.2rem;
  height: 1.2rem;
}

.hero__menu a:hover .nav-go,
.hero__menu a:focus-visible .nav-go,
.hero__menu a.is-active .nav-go,
.site-header__nav a:hover .nav-go,
.site-header__nav a:focus-visible .nav-go {
  width: 2.4rem;
  opacity: 1;
  border-color: currentColor;
}

@media (min-width: 1101px) {
  .hero__menu a:hover span.nav-go:hover {
    background: #ffd331;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

.logo__mark {
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.logo__mark img {
  height: 100.03%;
  width: 397.73%;
  max-width: none;
  position: absolute;
  left: 0;
  top: -0.01%;
  object-fit: cover;
  object-position: left center;
}

.logo__text {
  font-size: var(--fs-text-l);
  line-height: var(--lh-text-l);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls);
}

.visually-hidden {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  padding: 0;
  margin: -0.1rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}