/* ========================================
   МилкАгроСервис — modern homepage
   ======================================== */

:root {
  --bg: #f3f6f8;
  --bg-soft: #e8eef2;
  --surface: #ffffff;
  --ink: #102033;
  --ink-soft: #4a5d70;
  --muted: #6e8090;
  --line: rgba(16, 32, 51, 0.1);
  --steel: #1a3a52;
  --steel-deep: #0b1c2c;
  --accent: #0f8f7b;
  --accent-2: #1bb89e;
  --accent-soft: rgba(15, 143, 123, 0.12);
  --milk: #f7fbfc;
  --glow: rgba(27, 184, 158, 0.35);
  --shadow: 0 24px 60px rgba(11, 28, 44, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-h: 78px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(27, 184, 158, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(26, 58, 82, 0.08), transparent 50%),
    linear-gradient(180deg, #edf2f5 0%, var(--bg) 40%, #eef3f6 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Yoast breadcrumbs */
.breadcrumbs {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eef4f7 0%, var(--bg) 100%);
}

.breadcrumbs__nav,
.breadcrumbs__nav span {
  display: inline;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.breadcrumbs__nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs__nav a:hover {
  color: var(--accent);
}

.breadcrumbs__nav .breadcrumb_last {
  color: var(--ink);
  font-weight: 600;
}

body:not(.home) .page-hero {
  padding-top: 2rem;
}

/* Topbar / Header */
.topbar {
  background: var(--steel-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
}

.topbar__tag {
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-2);
}

.topbar__contacts {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar__contacts a:hover {
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.menu-open .header {
  z-index: 220;
}

.header.is-scrolled {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(11, 28, 44, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo img {
  width: 58px;
  height: auto;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__text strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo__text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
  list-style: none;
}

.nav__row {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav__item--has-children > .nav__row {
  position: relative;
}

.nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
}

.nav a:hover,
.nav a.is-active,
.nav__item.is-current > .nav__row > a {
  color: var(--ink);
  background: rgba(16, 32, 51, 0.06);
}

.nav__toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}

.nav__toggle:hover {
  background: rgba(16, 32, 51, 0.06);
  color: var(--ink);
}

.nav__item.is-open > .nav__row .nav__toggle {
  transform: rotate(180deg);
  color: var(--ink);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 210px;
  margin: 0;
  padding: 0.55rem 0.45rem 0.45rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(11, 28, 44, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

/* Invisible hover bridge so the cursor can reach the dropdown */
.nav__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

.nav__item--has-children:hover > .nav__sub,
.nav__item--has-children:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__sub .nav__item {
  display: block;
}

.nav__sub a {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  white-space: nowrap;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.burger {
  display: none;
  position: relative;
  z-index: 240;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger__icon {
  display: block;
  flex-shrink: 0;
}

.burger__icon--close {
  display: none;
}

.burger[aria-expanded="true"] .burger__icon--open {
  display: none;
}

.burger[aria-expanded="true"] .burger__icon--close {
  display: block;
}

.nav__close {
  display: none;
}

.nav-overlay {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--steel);
  color: #fff;
  box-shadow: 0 14px 30px rgba(26, 58, 82, 0.28);
}

.btn--primary:hover {
  background: var(--steel-deep);
}

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  min-height: 44px;
  padding-inline: 1rem;
}

.btn--ghost:hover {
  border-color: var(--steel);
  background: rgba(16, 32, 51, 0.04);
}

.btn--accent {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #14b89a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 143, 123, 0.35);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--steel);
  white-space: nowrap;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Hero band: categories + slider */
.hero-band {
  padding: 1.25rem 0 0;
}

.hero-band__grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-cats {
  display: flex;
  flex-direction: column;
  min-height: min(62vh, 560px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-cats__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.05rem;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deep) 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-cats__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.hero-cats__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.2s, color 0.2s, padding-left 0.2s var(--ease);
}

.hero-cats__item:last-child {
  border-bottom: 0;
}

.hero-cats__item:hover {
  background: rgba(15, 143, 123, 0.06);
  color: var(--steel);
  padding-left: 1.2rem;
}

.hero-cats__item--all {
  background: rgba(26, 58, 82, 0.04);
}

.hero-cats__thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-cats__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cats__thumb--grid {
  color: var(--steel);
  background: var(--accent-soft);
  border-color: transparent;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__slider,
.hero__slide,
.hero__veil,
.hero__glow {
  position: absolute;
  inset: 0;
}

.hero__slider {
  z-index: -3;
}

.hero__slide {
  background-color: #0b1c2c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s var(--ease), transform 6.5s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 18, 28, 0.82) 0%, rgba(8, 18, 28, 0.52) 48%, rgba(8, 18, 28, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 18, 28, 0.2) 0%, rgba(8, 18, 28, 0.35) 100%);
}

.hero__glow {
  z-index: -1;
  background:
    radial-gradient(500px 280px at 70% 70%, var(--glow), transparent 70%),
    radial-gradient(420px 240px at 20% 85%, rgba(64, 140, 200, 0.22), transparent 70%);
  animation: glowPulse 7s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    opacity: 0.55;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2.75rem 2rem 4.25rem;
  max-width: 640px;
  width: 100%;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

.hero .eyebrow {
  color: rgba(155, 255, 230, 0.92);
}

.hero__title {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.brand-line {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  background: linear-gradient(120deg, #fff 20%, #b8fff0 55%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandShine 5s linear infinite;
}

@keyframes brandShine {
  to {
    background-position: 200% center;
  }
}

.hero__subline {
  font-family: var(--display);
  font-size: clamp(0.98rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22ch;
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero__cta .btn {
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero__cta .btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #12a88c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(15, 143, 123, 0.5);
}

.hero__cta .btn--primary:hover {
  background: linear-gradient(135deg, #12b896 0%, var(--accent) 100%);
  color: #fff;
}

.hero__cta .btn--light {
  background: #fff;
  color: var(--steel-deep);
  border-color: #fff;
  box-shadow: 0 14px 34px rgba(8, 18, 28, 0.28);
}

.hero__cta .btn--light:hover {
  background: #f3faf8;
  color: var(--steel-deep);
  border-color: #fff;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.85rem;
  max-width: 440px;
}

.stat {
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero__controls {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.hero__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.25s var(--ease);
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.hero__dots {
  display: flex;
  gap: 0.45rem;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.25s;
}

.hero__dots button.is-active {
  width: 28px;
  background: var(--accent-2);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* Advantages */
.advantages {
  margin-top: 0;
  position: relative;
  z-index: 3;
  padding: 4.5rem 0 1rem;
}

.section__head--center {
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section__head--center>div {
  width: 100%;
}

.section__head--center h2 {
  max-width: none;
  margin-inline: auto;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.adv {
  padding: 1.35rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(243, 248, 250, 0.9), #fff);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.adv:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 123, 0.35);
}

.adv__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.adv__icon svg {
  width: 28px;
  height: 28px;
}

.adv h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.adv p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: 4rem 0 1rem;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

.section__head h2,
.about__text h2,
.cta__copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.section__lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 46ch;
}

/* Categories — interactive tiles, not generic cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  perspective: 1200px;
}

.cat {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  isolation: isolate;
  transition: transform 0.45s var(--ease);
}

.cat--lg {
  min-height: 260px;
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
  background: #d7e0e6;
}

.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.05) 20%, rgba(8, 18, 28, 0.82) 100%);
  transition: background 0.4s var(--ease);
}

.cat__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem;
}

.cat__tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(27, 184, 158, 0.2);
  border: 1px solid rgba(27, 184, 158, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cat h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.cat--lg h3 {
  font-size: 1.15rem;
}

.cat p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  max-width: 28ch;
}

.cat:hover {
  transform: translateY(-6px);
}

.cat:hover img {
  transform: scale(1.08);
}

.cat:hover::after {
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.1) 10%, rgba(15, 143, 123, 0.55) 100%);
}

/* Products */
.products {
  padding-top: 5.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.featured-products__controls {
  display: flex;
  gap: 0.6rem;
}

.featured-products-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.featured-products-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 0;
  margin-bottom: 0;
}

.featured-products-swiper .swiper-wrapper {
  align-items: stretch;
}

.featured-products-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.featured-products-swiper .catalog-card,
.featured-products-swiper .product.catalog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  grid-template-columns: none;
}

.featured-products-swiper .product__media {
  min-height: 0;
  aspect-ratio: 16 / 11;
}

.featured-products-swiper .product__media img {
  padding: 0;
  object-fit: cover;
}

.featured-products__pagination {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: 100%;
  margin-top: 1.35rem;
  text-align: center;
}

.featured-products__pagination .swiper-pagination-bullet {
  background: rgba(16, 32, 51, 0.28);
  opacity: 1;
}

.featured-products__pagination .swiper-pagination-bullet-active {
  background: var(--accent);
}

.product-grid .product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 28, 44, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.product-grid .product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-grid .product__media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.product-grid .product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.6s var(--ease);
}

.product-grid .product:hover .product__media img {
  transform: scale(1.05) translateY(-4px);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--steel-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product__info {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.product__info h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.product__info p {
  margin: 0;
  color: var(--muted);
}

.product__info .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* About */
.about {
  padding-top: 6rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__frame {
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  min-height: 480px;
  box-shadow: var(--shadow);
}

.about__frame img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.about__float {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 30px rgba(11, 28, 44, 0.12);
  animation: floatY 4.5s ease-in-out infinite;
}

.about__float strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
}

.about__float span {
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about__text p {
  color: var(--ink-soft);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.8rem;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 4px var(--accent);
}

/* News */
.news {
  padding-bottom: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.news-card {
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card__media time {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 18, 28, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.news-card__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.news-card__body h2,
.news-card__body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.news-card__body h2 a,
.news-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card__body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__body .link-arrow {
  margin-top: auto;
  font-size: 0.84rem;
}

/* Blog / archive pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination .nav-links,
.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.pagination a.page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .page-numbers.current {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
  padding: 0 0.25rem;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  padding: 0 1rem;
}

/* Team */
.team {
  padding-bottom: 2rem;
}

.team__controls {
  display: flex;
  gap: 0.6rem;
}

.team__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease), color 0.25s;
}

.team__arrow:hover {
  background: var(--steel);
  border-color: var(--steel);
  color: #fff;
  transform: scale(1.05);
}

.team-slider {
  overflow: hidden;
}

.team-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.team-card {
  flex: 0 0 auto;
  min-width: 0;
}

.team-card__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 3 / 3.45;
  background: linear-gradient(160deg, #dce7ee, #eef4f7);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}

.team-card__info {
  padding: 0.85rem 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  display: grid;
  gap: 0.15rem;
}

.team-card__info h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.team-card__role {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.team-card__info a {
  color: var(--ink-soft);
  font-size: 0.8rem;
  transition: color 0.25s;
  word-break: break-word;
}

.team-card__info a:hover {
  color: var(--accent);
}

.team__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.team__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(16, 32, 51, 0.2);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s var(--ease), background 0.25s;
}

.team__dots button.is-active {
  width: 28px;
  background: var(--accent);
}

/* Contacts + Map */
.contacts {
  padding-bottom: 4rem;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contacts__info {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(11, 28, 44, 0.05);
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-item__icon svg {
  width: 26px;
  height: 26px;
}

.contact-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.contact-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.contact-item a:hover {
  color: var(--accent);
}

.contacts__form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(11, 28, 44, 0.05);
}

.contacts__form h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.contacts__form-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contacts__form label {
  display: grid;
  gap: 0.35rem;
}

.contacts__form span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contacts__form input,
.contacts__form select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7fafc;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contacts__form input:focus,
.contacts__form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 123, 0.18);
}

.form-note--dark {
  color: var(--muted);
}

.form-success--light {
  background: var(--accent-soft);
  border: 1px solid rgba(15, 143, 123, 0.3);
  color: var(--steel);
}

.contacts__map {
  margin-top: 0.25rem;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(11, 28, 44, 0.05);
  background: #dce5eb;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

/* CTA (legacy styles kept if reused) */
.cta {
  padding: 3rem 0 5rem;
}

.cta__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(27, 184, 158, 0.28), transparent 55%),
    linear-gradient(145deg, #0d2233 0%, #12324a 55%, #0b1c2c 100%);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.cta__inner::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(27, 184, 158, 0.2), transparent 65%);
  pointer-events: none;
}

.cta__copy,
.cta__form {
  position: relative;
  z-index: 1;
}

.cta__copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

.cta__meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta__meta a:hover {
  color: var(--accent-2);
}

.cta__form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.cta__form label {
  display: grid;
  gap: 0.4rem;
}

.cta__form span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.cta__form input,
.cta__form select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 18, 28, 0.35);
  color: #fff;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.cta__form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta__form select option {
  color: var(--ink);
}

.cta__form input:focus,
.cta__form select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(27, 184, 158, 0.25);
}

.form-note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.form-success {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(27, 184, 158, 0.18);
  border: 1px solid rgba(27, 184, 158, 0.35);
  color: #b8fff0;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 3.5rem 0 1.5rem;
  background: #0a1622;
  color: rgba(255, 255, 255, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer a:hover {
  color: var(--accent-2);
}

.footer__brand p {
  margin: 1rem 0 0;
  max-width: 32ch;
}

.logo--footer img {
  width: 72px;
  filter: brightness(1.05);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-band__grid {
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  }

  .hero-cats__item {
    font-size: 0.84rem;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid .product {
    grid-template-columns: 1fr;
  }

  .product-grid .product__media {
    min-height: 240px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .header__phone {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  body.menu-open .burger {
    border-color: rgba(16, 32, 51, 0.18);
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 28, 44, 0.12);
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(8, 18, 28, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 230;
    width: min(320px, 86vw);
    height: 100dvh;
    margin: 0;
    padding: 1.25rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: #fff;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px rgba(11, 28, 44, 0.18);
    transform: translateX(105%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
  }

  .nav__item {
    width: 100%;
  }

  .nav__item--has-children {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav__row {
    width: 100%;
    gap: 0.25rem;
  }

  .nav__row > a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__sub {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.15rem 0 0.15rem 0.75rem;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    transition: none;
  }

  .nav__sub::before {
    display: none;
  }

  .nav__item--has-children:hover > .nav__sub,
  .nav__item--has-children:focus-within > .nav__sub {
    display: none;
  }

  .nav__item.is-open > .nav__sub {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 1;
    visibility: visible;
  }

  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 44px;
    height: 44px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }

  .nav a {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .nav__sub a {
    font-size: 0.98rem;
    padding: 0.75rem 0.9rem;
    white-space: normal;
  }

  body.menu-open {
    overflow: hidden;
  }

  .about__grid,
  .cta__inner,
  .product-grid,
  .news-grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .hero-band__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-cats {
    order: 2;
    min-height: 0;
  }

  .hero {
    order: 1;
    min-height: min(68vh, 560px);
  }

  .hero-cats__nav {
    max-height: 280px;
  }

  .hero__content {
    padding: 3rem 1.35rem 4.5rem;
  }

  .hero__subline {
    max-width: none;
  }

  .hero__controls {
    left: 1rem;
    right: auto;
    bottom: 1rem;
  }

  .hero__scroll {
    display: none;
  }

  .section__head {
    flex-direction: column;
    align-items: start;
  }

  .section__head--center {
    align-items: center;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar__contacts span:last-child {
    display: none;
  }

  .logo__text {
    display: none;
  }

  .advantages__grid,
  .cat-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cat,
  .cat--lg {
    min-height: 220px;
  }

  .hero {
    min-height: min(72svh, 520px);
    align-items: center;
  }

  .hero__content {
    padding: 2.5rem 1.1rem 4rem;
  }

  .hero .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.5rem;
  }

  .brand-line {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
  }

  .hero__title {
    gap: 0.4rem;
  }

  .hero__subline {
    font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  }

  .hero__lead {
    margin-top: 0.7rem;
    font-size: 0.86rem;
  }

  .hero__cta {
    margin-top: 1.1rem;
    gap: 0.65rem;
  }

  .hero__cta .btn {
    min-height: 48px;
    padding: 0.7rem 1.15rem;
    font-size: 0.92rem;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 1.25rem;
    gap: 0.5rem;
  }

  .stat strong {
    font-size: 1.15rem;
  }

  .stat span {
    font-size: 0.68rem;
  }

  .hero-cats__head {
    font-size: 0.72rem;
    padding: 0.8rem 0.9rem;
  }

  .hero-cats__item {
    font-size: 0.82rem;
  }

  .about__frame,
  .about__frame img {
    min-height: 320px;
  }

  .contacts__map,
  .contacts__map iframe {
    min-height: 240px;
  }

  .advantages {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__slide,
  .cat,
  .product,
  .news-card,
  .brand-line,
  .hero__glow,
  .about__float,
  .hero__scroll span {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}