:root {
  --page-bg: #ececf1;
  --surface: #ffffff;
  --surface-muted: #f5f5f9;
  --line: #dfe2e8;
  --text: #333333;
  --muted: #666c76;
  --accent: #9fd430;
  --accent-dark: #85bc17;
  --shadow: 0 14px 40px rgba(34, 38, 47, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(159, 212, 48, 0.16), transparent 28%),
    linear-gradient(180deg, #f5f6fa 0%, var(--page-bg) 100%);
}

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

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  background: #f4f4f9;
  border-bottom: 1px solid rgba(51, 51, 51, 0.07);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
}

.topbar__phones,
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar__phones a {
  font-weight: 600;
  color: var(--muted);
}

.topbar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.94rem;
}

.topbar__pill--cart {
  background: rgba(159, 212, 48, 0.18);
  border-color: rgba(159, 212, 48, 0.35);
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 51, 51, 0.06);
}

.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand__text {
  display: grid;
  gap: 6px;
}

.brand__title {
  font-size: 1.4rem;
  font-weight: 800;
}

.brand__subtitle {
  color: var(--muted);
  max-width: 440px;
  line-height: 1.35;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface-muted);
  border: 1px solid rgba(51, 51, 51, 0.05);
  border-radius: 999px;
}

.search input {
  width: 320px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.96rem;
}

.search button,
.cart-button,
.button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search button,
.cart-button,
.button--primary {
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.search button:hover,
.cart-button:hover,
.button--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-shell {
  background: linear-gradient(90deg, #95c92e 0%, #a8d740 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.nav-shell__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 18px 18px;
  color: #ffffff;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  padding: 30px 0 22px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: stretch;
}

.hero__content,
.hero__media {
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: 38px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.04;
}

.hero p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button--ghost {
  padding: 12px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button--ghost:hover {
  transform: translateY(-1px);
  background: var(--surface-muted);
}

.hero__media {
  overflow: hidden;
  min-height: 360px;
}

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

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 350px;
  gap: 26px;
  padding-bottom: 42px;
}

.section,
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 28px;
}

.section + .section {
  margin-top: 26px;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section__head h2,
.panel__title,
.footer h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

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

.catalog-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border: 1px solid rgba(51, 51, 51, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(34, 38, 47, 0.12);
  border-color: rgba(159, 212, 48, 0.32);
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.catalog-card span {
  font-weight: 700;
  line-height: 1.35;
}

.search-empty {
  margin: 18px 0 0;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--accent-dark);
  font-weight: 700;
}

.breadcrumbs span:last-child {
  color: var(--text);
  font-weight: 700;
}

.hero--category {
  padding-top: 18px;
}

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

.split-section .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(159, 212, 48, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(159, 212, 48, 0.18);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-list li + li {
  margin-top: 8px;
}

.sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.panel {
  padding: 24px;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sidebar-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover {
  background: rgba(159, 212, 48, 0.16);
  transform: translateX(3px);
}

.sidebar-nav a.is-current {
  background: rgba(159, 212, 48, 0.22);
  font-weight: 800;
}

.schedule {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.schedule li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule span {
  color: var(--muted);
}

.contacts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contacts p,
.footer p {
  margin: 0;
  line-height: 1.55;
}

.contacts a {
  color: var(--accent-dark);
  font-weight: 700;
}

.panel--map iframe {
  width: 100%;
  height: 280px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
}

.footer {
  background: #242932;
  color: #eef2f6;
  padding-top: 42px;
}

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

.footer__grid div {
  display: grid;
  gap: 10px;
}

.footer__grid a {
  color: rgba(238, 242, 246, 0.8);
}

.footer__grid a:hover {
  color: #ffffff;
}

.footer__bottom {
  width: min(calc(100% - 32px), var(--container));
  margin: 32px auto 0;
  padding: 20px 0 28px;
  display: grid;
  gap: 8px;
  color: rgba(238, 242, 246, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-card[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .header__main,
  .hero__inner,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .header__main {
    align-items: flex-start;
  }

  .header__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar__inner,
  .topbar__phones,
  .topbar__meta,
  .section__head,
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 68px;
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero__content,
  .section,
  .panel {
    padding: 20px;
  }

  .breadcrumbs {
    padding-top: 18px;
  }

  .catalog-grid,
  .info-grid--three,
  .split-section .info-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
