:root {
  --green: #28b735;
  --green-dark: #159b24;
  --text: #24252d;
  --muted: #6f7480;
  --soft: #f5f8f6;
  --line: #e6e9ee;
  --shadow: 0 18px 46px rgba(29, 42, 59, 0.06);
}

* { box-sizing: border-box; }
body.app-page {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }
button, input, textarea, select { font: inherit; }

.app-shell {
  width: min(100% - 72px, 1200px);
  margin: 0 auto;
}
.app-header {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-header__inner {
  display: grid;
  grid-template-columns: 270px 1fr 250px;
  align-items: center;
  height: 72px;
}
.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.app-logo img { width: 40px; height: 40px; object-fit: contain; }
.app-logo span { display: grid; gap: 2px; }
.app-logo strong { font-size: 20px; line-height: 1; }
.app-logo strong span { display: inline; color: var(--green); }
.app-logo small { color: var(--muted); font-size: 10px; }
.app-nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  font-size: 12px;
}
.app-nav a {
  height: 72px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.app-nav a.is-active {
  color: var(--green-dark);
  border-color: var(--green);
  font-weight: 700;
}
.app-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
}
.app-icon {
  font-size: 30px;
  line-height: 1;
}
.app-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 36px;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a9099;
  font-size: 12px;
  margin: 28px 0 28px;
}
.breadcrumbs a { color: #707681; }
.hero-split {
  position: relative;
  min-height: 288px;
  overflow: hidden;
}
.hero-split__image {
  position: absolute;
  right: 0;
  top: 0;
  width: 610px;
  height: 288px;
  object-fit: cover;
}
.hero-split__copy {
  position: relative;
  z-index: 2;
  width: 480px;
  padding-top: 8px;
}
.hero-split::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0 42%, rgba(255,255,255,.86) 52%, rgba(255,255,255,0) 70%);
}
.hero-split h1, .page-title h1 {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
}
.hero-split p, .page-title p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.trust-row, .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0 34px;
}
.trust-item, .stat-card, .soft-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 12px;
}
.trust-item b { display: block; color: var(--text); font-size: 13px; }
.round-icon, .benefit-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef8f0;
  color: var(--green);
  font-weight: 800;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 20px;
}
.section-head h2 { font-size: 22px; }
.section-head a { color: var(--green); font-size: 12px; font-weight: 700; }
.category-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.category-strip h2 {
  text-align: center;
  margin: 0 0 24px;
  font-size: 22px;
}
.category-tile {
  min-height: 116px;
  padding: 20px 12px 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.category-tile strong { font-size: 13px; line-height: 1.2; }
.category-tile span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.line-mini {
  position: relative;
  width: 54px;
  height: 42px;
  color: var(--green);
}
.line-mini::before, .line-mini::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}
.line-mini--gate::before, .line-mini--sliding::before { inset: 10px 5px 4px; background: repeating-linear-gradient(90deg, transparent 0 8px, currentColor 9px 10px); }
.line-mini--gate::after, .line-mini--sliding::after { left: 4px; right: 4px; top: 7px; height: 32px; border-width: 0 2px; }
.line-mini--fence::before { inset: 10px 6px 4px; border-top: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, currentColor 9px 10px); }
.line-mini--fence::after { left: 8px; right: 8px; top: 7px; height: 10px; border-width: 0 2px 2px; transform: skewX(-18deg); }
.line-mini--roof::before { left: 6px; top: 16px; width: 40px; height: 28px; transform: skewX(-25deg) rotate(-24deg); border-width: 2px 2px 0; }
.line-mini--roof::after { left: 13px; top: 24px; width: 36px; height: 14px; border-width: 2px 0 0; transform: rotate(-39deg); }
.line-mini--barrier::before { left: 9px; top: 9px; width: 16px; height: 34px; }
.line-mini--barrier::after { left: 25px; top: 17px; width: 42px; height: 7px; background: currentColor; border-left: 0; }
.line-mini--house::before { left: 12px; top: 20px; width: 32px; height: 26px; }
.line-mini--house::after { left: 10px; top: 5px; width: 34px; height: 34px; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.line-mini--tree::before { left: 16px; top: 2px; width: 28px; height: 36px; border-radius: 50%; }
.line-mini--tree::after { left: 27px; top: 35px; width: 30px; height: 13px; border-width: 0 0 2px 2px; }
.line-mini--garage::before, .line-mini--industrial::before, .line-mini--roll::before, .line-mini--automation::before { inset: 9px 8px 3px; }
.line-mini--garage::after, .line-mini--industrial::after, .line-mini--roll::after, .line-mini--automation::after { left: 15px; right: 15px; top: 17px; height: 14px; border-width: 2px 0; }

.catalog-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 26px;
  align-items: start;
}
.filters {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.filters header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 800;
}
.filters header a { color: var(--green); font-size: 12px; }
.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.filter-group h3 { margin-bottom: 10px; font-size: 12px; }
.filter-line {
  display: flex;
  justify-content: space-between;
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
}
.fake-check {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  background: #edf0f2;
  vertical-align: -2px;
}
.filter-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-inputs input, .search-row input, .select-like, .form-control {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.offer-list { display: grid; gap: 14px; }
.offer-row {
  display: grid;
  grid-template-columns: 262px 1fr 210px;
  gap: 18px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.offer-row__image { position: relative; }
.offer-row__image img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 0 0 6px 0;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.offer-row__body { padding: 18px 0; }
.offer-row__body small, .article-tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 5px;
  background: #e9f8ea;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}
.offer-row h3 { margin: 9px 0 9px; font-size: 18px; }
.offer-row p { color: var(--muted); font-size: 13px; }
.meta {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 15px;
}
.offer-row__action {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 18px;
  padding: 18px;
}
.heart { color: #24262e; font-size: 24px; }
.green-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}
.green-button { background: var(--green); color: #fff; }
.ghost-button { border: 1px solid var(--line); background: #fff; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 36px;
}
.pagination span, .pagination a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}
.pagination .active { border-color: var(--green); background: var(--green); color: #fff; }

.wide-newsletter, .side-newsletter, .cta-strip {
  border-radius: 9px;
  background: linear-gradient(100deg, #eef8f0 0%, #fff 58%, #eef9f0 100%);
  overflow: hidden;
}
.wide-newsletter {
  display: grid;
  grid-template-columns: 370px 1fr 180px;
  align-items: center;
  gap: 26px;
  min-height: 118px;
  padding: 0 28px;
  margin: 36px 0 0;
}
.wide-newsletter h2, .side-newsletter h2 { font-size: 22px; }
.wide-newsletter p, .side-newsletter p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.wide-newsletter form { display: grid; grid-template-columns: 1fr 138px; }
.wide-newsletter input, .side-newsletter input, .search-row input { width: 100%; }
.wide-newsletter input, .side-newsletter input { height: 44px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; padding: 0 16px; }
.wide-newsletter button, .side-newsletter button { height: 44px; border: 0; border-radius: 0 6px 6px 0; background: var(--green); color: #fff; font-weight: 800; }
.wide-newsletter img { width: 170px; }
.side-newsletter { padding: 24px; }
.side-newsletter form { display: grid; margin-top: 18px; }
.side-newsletter input { border-radius: 6px; }
.side-newsletter button { margin-top: 10px; border-radius: 6px; }
.side-newsletter img { width: 180px; margin: 18px auto 0; }

.detail-hero {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 36px;
  margin-top: 12px;
}
.gallery-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 356px; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs img, .gallery-more {
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef0f2;
}
.gallery-more { display: grid; place-items: center; font-weight: 800; }
.detail-info h1 { margin-top: 18px; font-size: 28px; }
.detail-info p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.check-list { display: grid; gap: 10px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.check-list span::before { content: "✓"; color: var(--green); margin-right: 10px; font-weight: 800; }
.price-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.price-box { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.price-box b { color: var(--green); font-size: 26px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0; }
.feature-row article { display: flex; gap: 12px; align-items: center; }
.detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.spec-card, .shop-card, .content-card, .sidebar-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.spec-card, .shop-card { padding: 22px; }
.spec-card h2, .shop-card h2, .content-card h2, .sidebar-card h2 { font-size: 18px; margin-bottom: 18px; }
.spec-line { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.spec-line b { color: #565c66; font-weight: 400; }
.shop-card { margin-top: 14px; }
.rating { color: #f2a900; margin-top: 12px; }
.content-card { padding: 26px; }
.content-card p { color: var(--muted); margin: 0 0 14px; }
.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 28px 0; }
.steps-flow article { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
}
.page-title { margin-bottom: 28px; }
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.featured-article img { height: 260px; width: 100%; object-fit: cover; }
.featured-article div { padding: 32px; }
.featured-article h2 { margin: 18px 0 16px; font-size: 24px; line-height: 1.25; }
.article-tabs, .search-sort { display: flex; gap: 10px; margin: 28px 0 16px; }
.article-tabs a { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.article-tabs .active { background: var(--green); color: #fff; border-color: var(--green); }
.search-sort { display: grid; grid-template-columns: 1fr 300px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.article-card img { width: 100%; height: 120px; object-fit: cover; }
.article-card div { padding: 14px; }
.article-card h3 { margin: 8px 0; font-size: 14px; line-height: 1.35; }
.article-card p { color: var(--muted); font-size: 12px; }
.sidebar-card { padding: 22px; margin-bottom: 22px; }
.sidebar-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sidebar-item img { width: 70px; height: 62px; border-radius: 6px; object-fit: cover; }
.sidebar-item b { display: block; font-size: 12px; line-height: 1.35; }
.sidebar-item small { color: var(--muted); font-size: 11px; }
.topic-line { display: flex; justify-content: space-between; margin: 12px 0; font-size: 13px; }
.topic-line span { min-width: 28px; text-align: center; border-radius: 12px; background: #e8f6e9; color: var(--green); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 42px;
}
.article-body h1 { font-size: 40px; line-height: 1.18; margin: 18px 0; }
.article-body > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.article-body .hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 8px; margin: 28px 0; }
.article-body h2 { margin: 28px 0 12px; font-size: 22px; }
.article-body ul, .article-body ol { color: var(--muted); line-height: 1.8; padding-left: 22px; }
.number-list { display: grid; gap: 18px; counter-reset: item; padding: 0; list-style: none; }
.number-list li { position: relative; padding-left: 42px; color: var(--muted); }
.number-list li::before { counter-increment: item; content: counter(item); position: absolute; left: 0; top: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.vote-bar { display: flex; align-items: center; gap: 20px; margin: 30px 0; padding: 18px 24px; border-radius: 8px; background: #f7f8f7; }

.about-hero { min-height: 318px; }
.stat-card { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 16px; min-height: 106px; padding: 24px; }
.stat-card b { font-size: 26px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
}
.about-text p { color: var(--muted); margin: 0 0 16px; }
.work-steps, .benefit-grid, .audience-grid {
  display: grid;
  gap: 16px;
}
.work-steps { grid-template-columns: repeat(4, 1fr); margin: 28px 0; }
.benefit-grid { grid-template-columns: repeat(3, 1fr); }
.benefit-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; min-height: 92px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.audience-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.audience-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.audience-card img { width: 120px; height: 86px; object-fit: cover; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 48px;
}
.form-section { margin: 30px 0; }
.form-section h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 18px; }
.step-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 12px; font-weight: 800; }
.field.full { grid-column: 1 / -1; }
.field textarea { min-height: 92px; border: 1px solid var(--line); border-radius: 6px; padding: 14px; resize: vertical; }
.required { color: #d53a3a; }
.editor-toolbar { height: 38px; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; display: flex; align-items: center; gap: 18px; padding: 0 14px; }
.upload-box { height: 72px; border: 1px dashed #cfd5dc; border-radius: 6px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.submit-row { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.hint { color: var(--muted); font-size: 12px; }
.side-info { display: grid; gap: 22px; }
.info-panel { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.info-panel.soft { background: linear-gradient(135deg, #eef8f0, #fff); border: 0; }
.info-panel h3 { margin-bottom: 14px; font-size: 18px; }
.info-panel p, .info-panel li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.success-box { margin: 18px 0; padding: 18px; border-radius: 8px; background: #eef8f0; color: var(--green-dark); font-weight: 800; }

.error-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: center;
}
.error-hero img {
  position: absolute;
  right: 0;
  top: 64px;
  width: 650px;
  height: 360px;
  object-fit: cover;
}
.error-copy { position: relative; z-index: 2; width: 410px; }
.error-copy strong { font-size: 150px; line-height: .9; }
.error-copy h1 { margin: 18px 0; font-size: 32px; }
.error-copy p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.error-buttons { display: flex; gap: 14px; margin-top: 28px; }
.search-panel { display: grid; grid-template-columns: 160px 1fr 260px; align-items: center; gap: 24px; padding: 36px; border-radius: 9px; background: #f4f8f4; margin: 26px 0 54px; }
.search-panel .big-search { font-size: 72px; color: var(--green); }
.search-panel form { display: grid; grid-template-columns: 1fr 94px; }

.app-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}
.app-footer__inner {
  display: grid;
  grid-template-columns: 300px 1fr 240px;
  gap: 50px;
  padding: 34px 0 44px;
}
.app-footer__brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 118px; }
.app-footer small, .app-footer a { color: var(--muted); font-size: 11px; }
.app-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.app-footer h3 { margin-bottom: 12px; font-size: 12px; }
.app-footer__cols a { display: block; margin: 8px 0; }
.app-socials { display: flex; flex-direction: column; justify-content: space-between; }
.app-socials div { display: flex; gap: 12px; }
.app-socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f1f3f4; color: var(--text); font-weight: 800; }

@media (max-width: 980px) {
  .app-shell { width: min(100% - 36px, 1200px); }
  .app-header, .app-header__inner { height: auto; }
  .app-header__inner, .catalog-layout, .detail-hero, .detail-grid, .two-col, .article-layout, .about-grid, .form-layout, .app-footer__inner { grid-template-columns: 1fr; gap: 22px; padding: 16px 0; }
  .app-nav { justify-content: flex-start; overflow-x: auto; gap: 22px; }
  .app-nav a { height: 36px; }
  .app-actions { justify-content: flex-start; }
  .hero-split__image, .error-hero img { position: relative; width: 100%; height: 280px; top: auto; margin-top: 22px; }
  .hero-split::after { display: none; }
  .hero-split__copy, .error-copy { width: auto; }
  .category-cards, .article-grid, .benefit-grid, .work-steps, .audience-grid, .trust-row, .stats-row, .feature-row { grid-template-columns: repeat(2, 1fr); }
  .offer-row { grid-template-columns: 220px 1fr; }
  .offer-row__action { grid-column: 1 / -1; justify-items: start; }
  .wide-newsletter, .search-panel { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 620px) {
  .category-cards, .article-grid, .benefit-grid, .work-steps, .audience-grid, .trust-row, .stats-row, .feature-row, .form-grid, .price-boxes, .detail-actions, .wide-newsletter form, .search-sort, .search-panel form, .app-footer__cols { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 1fr; }
  .offer-row__image { height: 180px; }
  .hero-split h1, .page-title h1, .article-body h1 { font-size: 34px; }
  .error-copy strong { font-size: 98px; }
}
