/* Сантехмакс — premium industrial B2B */
:root {
  --ink: #0e1a22;
  --steel: #1a2f3d;
  --slate: #3d5363;
  --muted: #5c717f;
  --line: #c8d3dc;
  --mist: #e8eef2;
  --paper: #f4f7f9;
  --white: #ffffff;
  --copper: #a85d2e;
  --copper-hot: #c46d36;
  --copper-soft: #f3e6db;
  --ok: #1f6b4a;
  --radius: 2px;
  --max: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --text-base: 1.0625rem;
  --text-base-lg: 1.125rem;
  --text-eyebrow: clamp(0.875rem, 1.6vw, 1rem);
  --text-lead: clamp(1.0625rem, 1.8vw, 1.2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.anchor-section {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

main {
  max-width: 100%;
  overflow-x: clip;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 0.6rem);
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  min-width: 0;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  justify-self: end;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
  min-width: 0;
  margin: 0;
  padding-inline: 0.15rem;
  justify-self: center;
  position: relative;
}

.nav__line {
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  height: 2px;
  width: 0;
  background: var(--copper);
  border-radius: 1px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
  will-change: transform, width;
}

.nav__line.is-on {
  opacity: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  justify-self: start;
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  min-width: 0;
}

.logo__text span {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--copper);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a {
  position: relative;
  z-index: 1;
  font-size: clamp(0.975rem, 1.15vw, 1.0625rem);
  color: var(--slate);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav a.is-active {
  color: var(--ink);
}

.nav__only-mobile {
  display: none;
}

.nav__cta {
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--white) !important;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease);
}

.nav__cta:hover {
  background: var(--copper);
}

.nav__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--copper);
  color: var(--copper) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__order:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white) !important;
}

.header-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.15;
  flex-shrink: 0;
  text-decoration: none;
}

.header-phone--bar,
.header-bar > .header-phone:not(.header-phone--menu) {
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--copper);
  border-radius: 8px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-phone--bar:hover,
.header-bar > .header-phone:not(.header-phone--menu):hover {
  background: var(--copper-soft);
  border-color: var(--copper-hot);
}

.header-phone__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone__hint {
  font-size: 0.75rem;
  color: var(--copper);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cart-btn--mobile {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

@media (min-width: 861px) {
  body {
    font-size: var(--text-base-lg);
  }

  .nav .nav__only-mobile {
    display: none !important;
  }

  .cart-btn--mobile {
    display: none !important;
  }

  .nav__order--bar {
    display: inline-flex;
  }

  .header-phone--bar,
  .header-bar > .header-phone:not(.header-phone--menu) {
    display: flex;
  }
}

@media (min-width: 1080px) {
  .logo__mark {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1079px) and (min-width: 861px) {
  .header-phone--bar,
  .header-bar > .header-phone:not(.header-phone--menu) {
    padding: 0.4rem 0.65rem;
  }

  .header-phone__num {
    font-size: 0.92rem;
  }

  .nav {
    gap: 0.65rem;
  }

  .nav a {
    font-size: 0.925rem;
  }
}

@media (max-width: 1199px) and (min-width: 861px) {
  .header-phone__hint {
    display: none;
  }
}

@media (max-width: 980px) and (min-width: 861px) {
  .logo__text span {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    display: flex;
    gap: 0.5rem;
  }

  .header-bar {
    margin-left: auto;
  }

  .nav {
    flex: none;
    order: 10;
    justify-self: stretch;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem clamp(0.75rem, 3vw, 1.25rem) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--mist);
    white-space: normal;
  }

  .nav__line {
    display: none;
  }

  .nav a.is-active,
  .nav a[aria-current="page"] {
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--copper);
    padding-left: 0.65rem;
  }

  .nav a.header-phone--menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    border: 2px solid var(--copper);
    border-radius: 8px;
    background: var(--white);
  }

  .nav a.header-phone--menu .header-phone__num {
    font-size: 1rem;
  }

  .nav a.header-phone--menu .header-phone__hint {
    margin-top: 0.15rem;
    white-space: normal;
  }

  .nav a.nav__cta,
  .nav a.nav__order--menu {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 0.85rem 1rem;
    border-bottom: none;
    border-radius: 8px;
  }

  .nav a.nav__cta {
    margin-top: 0.5rem;
    background: var(--ink);
    color: var(--white) !important;
  }

  .nav a.nav__order--menu {
    margin-top: 0.5rem;
    border: 1px solid var(--copper);
    background: var(--white);
  }

  .nav__only-mobile {
    display: block;
  }

  .nav__order--bar,
  .header-phone--bar,
  .header-bar > .header-phone:not(.header-phone--menu) {
    display: none !important;
  }

  .nav-toggle {
    display: block;
  }

  .cart-btn--mobile {
    display: inline-flex;
  }

  .logo__text span {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--copper);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--copper-hot);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 45%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  border-color: var(--white);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--steel);
}

.btn--line {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn--line:hover {
  border-color: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1);
  transform-origin: 60% 40%;
  will-change: transform;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 34, 0.92) 0%, rgba(14, 26, 34, 0.6) 55%, rgba(14, 26, 34, 0.35) 100%),
    linear-gradient(0deg, rgba(14, 26, 34, 0.5) 0%, transparent 35%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 12ch;
  margin: 0 0 1.35rem;
  opacity: 1;
}

.hero__title {
  margin: 0 0 0.85rem;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  opacity: 1;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: color-mix(in srgb, var(--white) 82%, transparent);
  font-size: var(--text-lead);
  opacity: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero.js-hero .hero__media img {
    transform: scale(1.14);
    filter: brightness(0.72) saturate(0.9);
  }

  .hero.js-hero .hero__media::after {
    opacity: 0.35;
  }

  .hero.js-hero .hero__brand,
  .hero.js-hero .hero__badge,
  .hero.js-hero .hero__title,
  .hero.js-hero .hero__lead,
  .hero.js-hero .hero__actions {
    opacity: 0;
    transform: translateY(42px);
  }

  .hero.js-hero.is-animated .hero__media img {
    animation: hero-zoom 5.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero.js-hero.is-animated .hero__media::after {
    animation: hero-veil 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero.js-hero.is-animated .hero__brand {
    animation: hero-rise 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
  }

  .hero.js-hero.is-animated .hero__badge {
    animation: hero-rise 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
  }

  .hero.js-hero.is-animated .hero__title {
    animation: hero-rise 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.82s forwards;
  }

  .hero.js-hero.is-animated .hero__lead {
    animation: hero-rise 1.3s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  }

  .hero.js-hero.is-animated .hero__actions {
    animation: hero-rise 1.25s cubic-bezier(0.16, 1, 0.3, 1) 1.38s forwards;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.14);
    filter: brightness(0.72) saturate(0.9);
  }
  to {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes hero-veil {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  max-width: 100%;
}

.section--mist {
  background: var(--mist);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.section__lead {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--text-lead);
}

.section--ink .section__lead {
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

.section--ink .section__title,
.section__title--light {
  color: var(--white);
  max-width: 28ch;
}

.section__head {
  margin-bottom: 2.75rem;
}

.section__subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: none;
}

.section p,
.info-block p,
.coop-list,
.info-block ul {
  color: var(--slate);
}

.section p,
.info-block p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.section p:last-child,
.info-block p:last-child {
  margin-bottom: 0;
}

/* —— Categories (legacy catalog page) —— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-item {
  background: var(--white);
  padding: 1.5rem 1.35rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s var(--ease);
}

.cat-item:hover {
  background: var(--paper);
}

.cat-item__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.cat-item__meta {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* —— About —— */
.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.about__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 10px;
}

.about__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(14, 26, 34, 0.45), transparent);
  z-index: 1;
  pointer-events: none;
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--slate);
}

.about__text p:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__media {
    min-height: 280px;
  }

  .about__media img {
    min-height: 280px;
  }
}

/* —— Process strip —— */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.process--inline {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.process--inline .process__item h3 {
  font-size: 1.05rem;
}

.process--inline .process__item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.process__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.process__item p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 70%, transparent);
  max-width: 28ch;
}

.process__num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--copper-hot);
}

.cat-item--cta {
  background: var(--copper-soft);
}

.cat-item--cta:hover {
  background: color-mix(in srgb, var(--copper-soft) 70%, var(--white));
}

.catalog-teaser {
  margin: 2rem 0 0;
  text-align: center;
}

/* —— Advantages —— */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.advantage {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.advantage:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.advantage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--copper-hot);
  background: rgba(168, 93, 46, 0.15);
}

.advantage h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.advantage p {
  margin: 0;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .advantages {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* —— Catalog home section —— */
.section--catalog {
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

/* Catalog page opens with products (no page-hero); header is sticky so no nav-h offset */
main > .section--catalog:first-child {
  --catalog-gap: 1.25rem;
  padding-top: var(--catalog-gap);
}

main > .section--catalog:first-child .catalog-notice {
  margin-bottom: var(--catalog-gap);
}

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

.catalog-head__text .section__lead {
  margin-bottom: 0;
}

.catalog-perks {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.catalog-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate);
  box-shadow: 0 1px 0 rgba(14, 26, 34, 0.03);
}

.catalog-perk__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--copper-soft);
  color: var(--copper);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 1rem;
}

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
  border-radius: 16px;
  min-height: 240px;
  box-shadow: 0 4px 20px rgba(14, 26, 34, 0.08);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.catalog-card--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 100%;
}

.catalog-card:nth-last-child(-n+2) {
  grid-column: span 2;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(14, 26, 34, 0.16);
}

.catalog-card__media {
  position: absolute;
  inset: 0;
  background: var(--steel);
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.5s var(--ease), opacity 0.35s var(--ease);
}

.catalog-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 34, 0.05) 0%, rgba(14, 26, 34, 0.82) 100%);
  pointer-events: none;
}

.catalog-card__media--truby { background: linear-gradient(135deg, #1a3a4a, #2d5a6b); }
.catalog-card__media--armatura { background: linear-gradient(135deg, #2a3540, #4a5560); }
.catalog-card__media--nasosy { background: linear-gradient(135deg, #1e3344, #3d5a72); }
.catalog-card__media--kotly { background: linear-gradient(135deg, #3a2820, #6b4a32); }
.catalog-card__media--radiatory { background: linear-gradient(135deg, #2c3038, #505868); }
.catalog-card__media--kipia { background: linear-gradient(135deg, #1a2840, #334860); }
.catalog-card__media--santehnika { background: linear-gradient(135deg, #243038, #4a6070); }

.catalog-card:hover .catalog-card__media img {
  transform: scale(1.06);
  opacity: 1;
}

.catalog-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.35rem 3.5rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.catalog-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--white);
}

.catalog-card--featured .catalog-card__name {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.catalog-card__meta {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--white) 75%, transparent);
}

.catalog-card__arrow {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.catalog-card:hover .catalog-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.catalog-card:hover .catalog-card__arrow {
  background: var(--copper);
  border-color: var(--copper);
}

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--ink);
  border-radius: 16px;
  color: var(--white);
  box-shadow: 0 16px 40px rgba(14, 26, 34, 0.12);
}

.catalog-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.catalog-bar__text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.catalog-bar__text span {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }

  .catalog-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .catalog-card:nth-last-child(-n+2) {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .catalog-perks {
    flex-direction: column;
  }

  .catalog-perk {
    width: 100%;
    border-radius: 12px;
  }

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

  .catalog-card--featured {
    grid-column: span 1;
    min-height: 240px;
  }

  .catalog-card:nth-last-child(-n+2) {
    grid-column: span 1;
  }

  .catalog-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    border-radius: 14px;
  }

  .catalog-bar .btn {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .process,
  .process--inline {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* —— Contacts —— */
.contacts {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
  min-width: 0;
}

.form-panel {
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.contact-list__label {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list__value {
  font-size: 1.05rem;
  color: var(--ink);
}

.contact-list a:hover {
  color: var(--copper);
}

.form-panel h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.form-panel > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  color: var(--slate);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' stroke='%233d5363' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--steel);
  background-color: var(--white);
}

.field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' stroke='%231a2f3d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field--check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}

.field--check input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--copper);
}

.form-note {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form-note.is-ok {
  color: var(--ok);
}

.form-note.is-err {
  color: #9b2c2c;
}

@media (max-width: 900px) {
  .contacts {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* —— Catalog page —— */
.page-hero {
  position: relative;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.page-hero .container,
.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero .section__title {
  max-width: 24ch;
}

.page-hero .section__title--light {
  max-width: 28ch;
}

.page-hero .section__lead {
  max-width: 52ch;
}

.page-hero--catalog {
  color: var(--white);
}

.page-hero--catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 34, 0.88) 0%, rgba(14, 26, 34, 0.55) 100%),
    url("../assets/images/catalog-hero.jpg") center / cover no-repeat;
  z-index: 0;
}

.page-hero--catalog .section__eyebrow,
.page-hero--partners .section__eyebrow {
  color: var(--copper-hot);
}

.page-hero--catalog .section__lead,
.page-hero--partners .section__lead {
  color: color-mix(in srgb, var(--white) 82%, transparent);
}

.page-hero .hero__actions {
  margin-top: 1.75rem;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.5rem;
}

.catalog-search {
  flex: 1 1 280px;
  max-width: 420px;
  position: relative;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  outline: none;
}

.catalog-search input:focus {
  border-color: var(--steel);
}

.catalog-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--steel);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-bottom: 4rem;
}

.product {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.25s var(--ease);
}

.product:hover {
  border-color: var(--steel);
}

.product__visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.product__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef2f5;
  padding: 0.75rem;
  transition: transform 0.4s var(--ease);
}

.product:hover .product__visual img {
  transform: scale(1.04);
}

.product__visual--empty {
  background: #e4eaef;
}

.product__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8a9aa6;
}

.product__placeholder-icon {
  display: block;
  opacity: 0.85;
}

.product__body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product__cat {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.product__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.product__sku {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.product__footer {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product__actions .btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.btn--ghost-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: center;
}

.btn--ghost-line:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.product__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.product__price small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}


.product__brand {
  margin: 0;
  font-size: 0.82rem;
  color: var(--steel);
}

.product__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.product__specs li {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.4rem;
  line-height: 1.35;
}

.product__specs li span:first-child {
  color: #7b8790;
}

.product__specs li span:last-child {
  color: var(--ink);
  text-align: right;
}

.catalog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.5rem 0 2.5rem;
}

.catalog-pager__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.catalog-pager__btn.is-active,
.catalog-pager__btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.catalog-pager__meta {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.product__visual img {
  object-fit: contain;
  background: #eef2f5;
  padding: 0.75rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: var(--white);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 2rem 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--ink);
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Cart —— */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cart-btn:hover {
  border-color: var(--steel);
  color: var(--copper);
}

.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--copper);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nav__cart-link {
  display: none;
}

body.cart-open {
  overflow: hidden;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 34, 0.45);
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 440px);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(14, 26, 34, 0.12);
  animation: cart-slide 0.35s var(--ease);
}

@keyframes cart-slide {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cart-drawer__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.cart-drawer__sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--slate);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.cart-drawer__foot {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1rem 1.25rem 1.25rem;
  max-height: 55%;
  overflow-y: auto;
}

.cart-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-empty a {
  color: var(--copper);
  text-decoration: underline;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.cart-item__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.cart-item__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.qty__btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--slate);
}

.qty__btn:hover {
  color: var(--ink);
  background: var(--mist);
}

.qty__val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item__remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.cart-item__remove:hover {
  color: #9b2c2c;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--slate);
}

.order-form h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.order-form__hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.order-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.order-form__full {
  grid-column: 1 / -1;
}

.order-form__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.btn.is-added,
.js-add-cart.is-added {
  background: var(--copper-soft);
  border-color: var(--copper);
  color: var(--copper-hot);
}

@media (max-width: 860px) {
  .cart-drawer__foot {
    max-height: 50%;
  }

  .order-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item__controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* —— B2B partnership enhancements —— */
.hero__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.85rem;
  background: rgba(168, 93, 46, 0.85);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__actions {
  flex-wrap: wrap;
}

.btn--ghost-muted {
  border-color: color-mix(in srgb, var(--white) 25%, transparent);
  color: color-mix(in srgb, var(--white) 85%, transparent);
}

.btn--ghost-muted:hover {
  color: var(--white);
  border-color: var(--white);
}

.section--solutions {
  background: var(--white);
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.solution-card {
  padding: 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.solution-card:hover {
  border-color: color-mix(in srgb, var(--copper) 35%, var(--line));
  box-shadow: 0 8px 24px rgba(14, 26, 34, 0.06);
}

.solution-card__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.solution-card__tag--urgent {
  background: var(--copper-soft);
  border-color: color-mix(in srgb, var(--copper) 40%, var(--line));
  color: var(--copper-hot);
}

.solution-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.solution-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--slate);
}

.section--cases {
  background: var(--paper);
}

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.clients__item {
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.case-card {
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.case-card__metric {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}

.case-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.case-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.section--trust {
  background: var(--white);
}

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.trust-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--slate);
}

.trust-list li {
  margin-bottom: 0.45rem;
}

.trust-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.trust-card:hover {
  border-color: var(--copper);
  background: var(--white);
}

.trust-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.trust-card span {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}

.form-tabs__btn {
  flex: 1 1 calc(33.333% - 0.35rem);
  min-width: 0;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

@media (max-width: 480px) {
  .form-tabs__btn {
    flex: 1 1 100%;
  }
}

.form-tabs__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.form-tabs__btn:hover:not(.is-active) {
  border-color: var(--copper);
  color: var(--copper);
}

.field--check-urgent {
  padding: 0.65rem 0.75rem;
  background: var(--copper-soft);
  border-radius: 4px;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: var(--steel);
  background: var(--white);
}

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

.file-picker__button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.file-picker__name {
  min-width: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-picker.is-filled .file-picker__name {
  color: var(--ink);
}

.form-panel__alt {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.form-panel__alt a {
  color: var(--copper);
  font-weight: 600;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.site-footer__brand p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 28ch;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__nav a {
  font-size: 0.88rem;
  color: var(--slate);
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.site-footer__contacts a {
  font-size: 0.88rem;
  color: var(--slate);
}

.site-footer__copy {
  padding: 1rem 0 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.urgent-fab {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.65rem 0.95rem;
  background: var(--copper);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(168, 93, 46, 0.45);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.urgent-fab:hover {
  background: var(--copper-hot);
  transform: translateY(-2px);
}

.catalog-notice {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--copper-soft);
  border: 1px solid color-mix(in srgb, var(--copper) 25%, var(--line));
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--slate);
}

.catalog-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.catalog-page {
  padding: 0;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero--partners {
  position: relative;
  min-height: clamp(420px, 55vh, 540px);
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--white);
  border-bottom: none;
  overflow: hidden;
}

.page-hero--partners .page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero--partners .page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.page-hero--partners .page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 34, 0.92) 0%, rgba(14, 26, 34, 0.65) 55%, rgba(14, 26, 34, 0.4) 100%),
    linear-gradient(0deg, rgba(14, 26, 34, 0.55) 0%, transparent 40%);
}

.page-hero--partners .page-hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.coop-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.coop-step {
  padding: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--mist);
}

.coop-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  background: var(--copper-soft);
  color: var(--copper);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 50%;
}

.coop-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.coop-step p {
  margin: 0;
  font-size: 1rem;
  color: var(--slate);
}

.coop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.coop-list {
  margin: 1rem 0;
  padding-left: 1.15rem;
  color: var(--slate);
  font-size: 1.05rem;
}

.coop-list li {
  margin-bottom: 0.5rem;
}

.coop-docs a {
  color: var(--copper);
  font-weight: 600;
}

.info-page {
  max-width: 720px;
}

.info-page .section__title,
.info-page .section__lead {
  max-width: none;
}

.info-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.info-nav a {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--slate);
}

.info-nav a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.info-block {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.info-block ul {
  padding-left: 1.15rem;
}

.info-block li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.doc-card {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 10px;
}

.doc-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.doc-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--slate);
}

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

@media (max-width: 900px) {
  .solutions,
  .cases,
  .coop-steps,
  .doc-cards {
    grid-template-columns: 1fr;
  }

  .trust,
  .coop-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 860px) {
  .header-phone {
    display: none;
  }

  .section {
    padding: 3.75rem 0;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .page-hero--partners .page-hero__content {
    padding: 2rem 0;
  }

  .page-hero--partners .section__title {
    max-width: none;
  }

  .page-hero .section__title {
    max-width: none;
  }

  .hero__content {
    padding: 2rem 0;
  }

  .hero__title {
    max-width: none;
  }
}

/* —— reduced-motion safety —— */
@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__badge,
  .hero__media img,
  .hero__media::after {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

