/* АгроВикинг — светлый каталог (DESIGN.md). radius: 0 */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f6;
  --line: #e2e4e8;
  --text: #121417;
  --muted: #6b7280;
  --accent: #1b6b3a;
  --accent-hover: #155a30;
  --accent-ink: #ffffff;
  --blue: #2b6cb0;
  --max: 1240px;
  --header: 64px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  border-radius: 0;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 1rem;
}

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

.topbar-addr {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(100%, 720px);
  line-height: 1.3;
}

.topbar-addr .i {
  flex-shrink: 0;
}

/* Lucide via mask */
.i {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  vertical-align: -0.15em;
}

.i-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.i-accent {
  color: var(--accent);
}

/* Desktop hero banner under menu — full image, no crop */
.hero-banner {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Mobile first screen (like DK PAR, mobile only) */
.mobile-hero {
  display: none;
  position: relative;
  min-height: min(88vh, 640px);
  min-height: min(88dvh, 640px);
  align-items: flex-end;
  overflow: hidden;
  color: #f2f5f0;
}

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

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

.mobile-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 14, 0.28) 0%, rgba(10, 18, 14, 0.72) 48%, rgba(10, 18, 14, 0.94) 100%);
}

.mobile-hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.25rem;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.mobile-hero__badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(230, 180, 34, 0.45);
  background: rgba(10, 18, 14, 0.4);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: #e6b422;
}

.mobile-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 7vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mobile-hero__lead {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(242, 245, 240, 0.82);
  max-width: 34ch;
}

.mobile-hero__perks {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.mobile-hero__perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13px;
  font-weight: 500;
  color: #f2f5f0;
}

.mobile-hero__perks .i {
  color: #7dcea0;
  flex-shrink: 0;
}

.btn-hero {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

@media (max-width: 960px) {
  .mobile-hero {
    display: flex;
  }
}

@media (min-width: 961px) {
  .hero-banner {
    display: block;
  }

  .mobile-hero {
    display: none !important;
  }
}

/* Info panels: delivery / payment */
.info-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.info-panel {
  padding: 1.5rem 1.6rem;
  background: var(--bg);
}

.info-panel + .info-panel {
  border-left: 1px solid var(--line);
}

.info-panel__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.info-panel__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.info-panel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.info-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0;
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.info-panel li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* About company */
.about {
  border: 1px solid var(--line);
  background: var(--bg);
}

.about__intro {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.about__intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.about__intro p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.about-block {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.about-block:nth-child(2n) {
  border-right: 0;
}

.about-block__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  font-size: 14px;
  font-weight: 600;
}

.about-block p,
.about-block li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.about-block p {
  margin: 0;
}

.about-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-block li {
  position: relative;
  padding: 0.2rem 0 0.2rem 0.9rem;
}

.about-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.about-block--wide {
  grid-column: 1 / -1;
  border-right: 0;
}

@media (max-width: 860px) {
  .info-panels,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .info-panel + .info-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .about-block {
    border-right: 0;
  }

  .topbar-addr {
    font-size: 11px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
}

.logo strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.search {
  display: flex;
  border: 1px solid var(--line);
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.search input {
  flex: 1;
  border: 0;
  padding: 0.65rem 0.85rem;
  outline: none;
  background: var(--bg);
}

.search button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 0 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.search button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

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

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

/* Nav */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav .wrap {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav a {
  padding: 0.7rem 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Brands strip — static grid, not marquee */
.brands {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 0.85rem 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.brand-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.4rem 0.6rem;
}

.brand-cell img {
  max-height: 32px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: none;
}

.brand-cell img[alt="УРАЛЕЦ"],
.brand-cell img[alt="LISICKI"] {
  max-height: 36px;
}

.brand-cell:has(img[alt="УРАЛЕЦ"]) {
  background: #111;
}

/* Promo / compact hero — not 100vh */
.promo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--line);
  min-height: 280px;
}

.promo-media {
  background: var(--bg-soft);
  overflow: hidden;
}

.promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.promo-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  border-left: 1px solid var(--line);
}

.promo-body h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.promo-body p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
}

/* Section */
.section {
  padding: 1.75rem 0 2.25rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.section-head a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* Categories dense */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.cat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  border-right: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.15s var(--ease);
  min-height: 88px;
}

.cat-item:last-child {
  border-right: 0;
}

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

.cat-item strong {
  font-size: 13px;
  font-weight: 600;
}

.cat-item span {
  font-size: 12px;
  color: var(--muted);
}

/* Product grid — dense */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.15s var(--ease);
}

.card.is-in {
  opacity: 1;
  transform: none;
}

.card:hover {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  z-index: 1;
}

.card-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-brand {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.price {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}

/* Layout catalog page */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  min-height: 60vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.25rem 1rem;
}

.sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-link {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 13px;
  color: var(--text);
  border: 1px solid transparent;
  margin-bottom: 2px;
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
}

.side-link:hover,
.side-link.is-active {
  background: var(--bg);
  border-color: var(--line);
}

.catalog-main {
  padding: 1.25rem;
}

.page-title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.crumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 12px;
  color: var(--muted);
}

/* Trust strip — flat, not cards cluster */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.trust div {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
}

.trust div:last-child {
  border-right: 0;
}

.trust strong {
  display: block;
  font-size: 13px;
  margin-bottom: 0.25rem;
}

.trust p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Form */
.form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--bg-soft);
}

.form-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

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

.form-grid label {
  display: grid;
  gap: 0.25rem;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.form-grid input,
.form-grid textarea {
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  background: var(--bg);
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.form-ok {
  display: none;
  padding: 0.65rem;
  border: 1px solid var(--accent);
  background: var(--bg);
  font-size: 13px;
}

.form-ok.is-visible {
  display: block;
}

/* Product detail */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}

.product-gallery {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 13px;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.specs th {
  color: var(--muted);
  font-weight: 500;
  width: 42%;
}

/* Marquee before footer */
.ticker {
  margin-top: 2rem;
  border-top: 3px solid #c62828;
  background: #fff;
  overflow: hidden;
  padding: 0.7rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: ticker-rtl 48s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 0 0.35rem 0 1.75rem;
  letter-spacing: 0.01em;
}

.ticker-item::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 1.75rem;
  background: #c62828;
  flex-shrink: 0;
}

@keyframes ticker-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* Footer — dark */
.footer {
  border-top: 0;
  background: #121417;
  padding: 2.25rem 0 1.35rem;
  margin-top: 0;
  color: #c5c9ce;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer .logo strong {
  color: #f2f5f0;
}

.footer .logo span {
  color: #8b929a;
}

.footer h4 {
  margin: 0 0 0.6rem;
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa1a9;
}

.footer a,
.footer p {
  display: block;
  font-size: 13px;
  color: #a8aeb5;
  margin: 0 0 0.35rem;
}

.footer a:hover {
  color: #7dcea0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #2a2e33;
  font-size: 11px;
  color: #7a8189;
}

.demo {
  color: #7dcea0;
}

/* FAB */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fab a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0;
}

.fab a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fab svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-item:nth-child(3n) {
    border-right: 0;
  }
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .promo,
  .form-box,
  .product-layout,
  .catalog-layout,
  .footer-grid,
  .trust {
    grid-template-columns: 1fr;
  }
  .promo-body {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .product-gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .search {
    display: none;
  }
  .phone {
    display: none;
  }
  .menu-btn {
    display: grid;
    place-items: center;
  }
  .nav .wrap {
    display: none;
  }
  .nav.is-open .wrap {
    display: flex;
    flex-direction: column;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-row {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 520px) {
  .products,
  .cat-grid,
  .brands-grid {
    grid-template-columns: 1fr;
  }
  .cat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
