:root {
  --bg: #f5fbf2;
  --surface: #ffffff;
  --surface-soft: #edf8e8;
  --text: #17311f;
  --muted: #536b5b;
  --line: #cfe4ca;
  --brand: #1b7f22;
  --brand-dark: #0f561d;
  --brand-light: #73e22b;
  --blue: #1c9ed4;
  --blue-dark: #063b70;
  --accent: #f1b437;
  --accent-soft: #fff6d8;
  --coral: #e6a326;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(10, 64, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

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

.topbar {
  background: var(--blue-dark);
  color: #f8faf8;
  font-size: 14px;
}

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

.topbar__links,
.contacts-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar a {
  color: #f8faf8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 251, 242, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

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

.brand__logo {
  flex: 0 0 auto;
  height: 56px;
  width: 56px;
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 25px;
  line-height: 1.1;
  color: var(--brand-dark);
}

.brand__tagline {
  color: var(--muted);
  font-size: 13px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 650;
  padding: 10px 12px;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.button,
button {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-align: center;
}

.button:hover,
button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.button--accent {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: #10351b;
}

.button--accent:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

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

.button--ghost:hover {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--brand-dark);
}

.button--danger {
  background: var(--danger);
  border-color: var(--danger);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 36px;
  padding: 34px 0 26px;
}

.hero__content {
  align-self: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 62px);
  max-width: 780px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 21px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  margin: 20px 0 0;
  max-width: 680px;
}

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

.hero__media {
  align-items: center;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 45%, rgba(115, 226, 43, 0.16), transparent 52%),
    linear-gradient(145deg, #ffffff 0%, #effae8 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.hero__logo {
  height: min(390px, 78vw);
  object-fit: contain;
  width: min(390px, 86%);
}

.hero__badge {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(207, 228, 202, 0.88);
  border-radius: var(--radius);
  bottom: 18px;
  box-shadow: 0 12px 26px rgba(21, 36, 38, 0.12);
  left: 18px;
  max-width: 300px;
  padding: 14px 16px;
  position: absolute;
}

.hero__badge strong {
  display: block;
  font-size: 18px;
}

.hero__badge span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.section {
  padding: 56px 0;
}

.section--tight {
  padding-top: 24px;
}

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

.section__head p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 620px;
}

.category-grid,
.price-grid,
.benefit-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.price-card,
.benefit-card,
.contact-panel,
.filter-panel,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-card {
  min-height: 150px;
  padding: 20px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card::before {
  background: linear-gradient(90deg, var(--brand-light), var(--blue));
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 20px;
  position: absolute;
  top: 16px;
  width: 42px;
}

.category-card h3 {
  margin-top: 16px;
}

.category-card:hover,
.price-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-card__count {
  color: var(--accent);
  display: block;
  font-weight: 800;
  margin-top: 18px;
}

.category-card p,
.price-card p,
.benefit-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

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

.price-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 20px;
}

.price-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  padding: 5px 10px;
}

.pill--accent {
  background: var(--accent-soft);
  color: #714d00;
}

.price-card__bottom {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  color: var(--brand-dark);
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.unit {
  color: var(--muted);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px) auto;
  margin-bottom: 24px;
  padding: 16px;
}

.prices-category-grid {
  margin-bottom: 24px;
}

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

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.filter-panel__actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 190px;
  padding: 18px;
}

.price-row__body {
  display: grid;
  gap: 8px;
}

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

.price-row__price {
  text-align: right;
}

.price-row__download {
  margin-top: 12px;
  width: 100%;
}

.price-detail {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 24px;
}

.price-detail__main,
.price-detail__aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-detail__main {
  display: grid;
  gap: 28px;
  padding: 30px;
}

.price-detail__description {
  display: grid;
  gap: 12px;
}

.price-detail__description p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.price-detail__facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-detail__facts div,
.price-detail__contact {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 14px;
}

.price-detail__facts strong,
.price-detail__contact strong,
.price-detail__contact span {
  display: block;
}

.price-detail__aside {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.price-detail__price {
  color: var(--brand-dark);
  font-size: 42px;
  font-weight: 850;
  line-height: 1;
}

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

.detail-back {
  width: fit-content;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.pagination a,
.pagination span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 12px;
}

.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.about-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  padding-top: 44px;
}

.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 520px;
  object-fit: cover;
  width: 100%;
}

.about-copy {
  align-self: center;
}

.about-copy p {
  color: var(--muted);
  margin: 18px 0 0;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.benefit-card {
  padding: 18px;
}

.contact-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px;
}

.contact-panel strong {
  display: block;
}

.contact-panel span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.empty-state {
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.site-footer {
  background: var(--blue-dark);
  color: #f8faf8;
  margin-top: 56px;
  padding: 34px 0;
}

.site-footer__inner {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.footer-brand div {
  display: grid;
  gap: 4px;
}

.footer-brand__logo {
  height: 58px;
  width: 58px;
}

.site-footer a,
.site-footer span {
  color: #dbe5df;
}

@media (max-width: 980px) {
  .hero,
  .about-layout,
  .price-detail {
    grid-template-columns: 1fr;
  }

  .price-detail__aside {
    position: static;
  }

  .hero__media,
  .about-photo {
    height: 360px;
    min-height: 0;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-panel__actions {
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar__inner,
  .site-footer__inner,
  .section__head {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    min-width: 0;
  }

  .nav__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .nav__links a {
    text-align: center;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .hero__actions,
  .filter-panel__actions {
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
  }

  .category-grid,
  .price-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .price-row__price {
    text-align: left;
  }

  .price-detail__main,
  .price-detail__aside {
    padding: 20px;
  }

  .price-detail__facts {
    grid-template-columns: 1fr;
  }
}
