:root {
  --green: #009661;
  --green-dark: #007b50;
  --green-soft: #e8f6ef;
  --yellow: #ffd84d;
  --red: #e72f2f;
  --text: #222;
  --muted: #6f7772;
  --line: #e3e7e4;
  --bg: #f6f7f6;
  --white: #fff;
  --shadow: 0 8px 24px rgba(20, 60, 40, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

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

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

.topline {
  background: #f1f4f2;
  color: #59615d;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.topline__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.header-main {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) 220px 150px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  background: var(--white);
}

.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.logo img {
  width: 260px;
}

.search {
  display: flex;
  min-width: 0;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 12px 14px;
  font: inherit;
}

.search button,
.header-cta,
.btn,
.lead-form button,
.sticky-buy a {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.search button {
  border-radius: 0 6px 6px 0;
  padding: 0 18px;
}

.phones {
  display: grid;
  gap: 4px;
  text-align: right;
}

.phone-main {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

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

.header-cta {
  padding: 11px 14px;
  text-align: center;
}

.greenbar {
  background: var(--green);
}

.greenbar__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--white);
  font-weight: 700;
}

.greenbar a {
  padding: 14px 0;
}

.catalog-button {
  min-width: 270px;
  background: var(--green-dark);
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.product {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
}

.catalog,
.content-card,
.info-block,
.product-card,
.buybox {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.catalog {
  align-self: start;
  overflow: hidden;
}

.catalog h2 {
  margin: 0;
  padding: 14px 16px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
}

.catalog-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-item.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.catalog-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.catalog-links {
  margin: 0;
  padding: 10px 18px 16px 34px;
  color: #3d4641;
}

.catalog-links li {
  margin: 7px 0;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(260px, 52%) minmax(280px, 1fr);
  gap: 22px;
}

.gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.gallery img {
  width: min(100%, 500px);
}

.sticker {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-block;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.sticker.small {
  position: static;
  margin-bottom: 8px;
  width: fit-content;
}

.buybox {
  padding: 20px;
}

.model {
  margin-bottom: 14px;
  color: var(--muted);
}

.short-specs,
.spec-table {
  margin: 0;
}

.short-specs div,
.spec-table div {
  display: grid;
  grid-template-columns: minmax(150px, 40%) 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 700;
}

.price {
  margin: 18px 0 10px;
  color: var(--green);
  font-size: 32px;
  font-weight: 800;
}

.minimum {
  padding: 12px;
  border-radius: 6px;
  background: #fff5d1;
}

.discount {
  margin: 12px 0;
  padding: 12px;
  border-left: 4px solid var(--yellow);
  background: #fffdf0;
}

.discount p,
.shipment {
  margin: 6px 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
}

.btn-secondary {
  background: #2f3532;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.benefits div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.benefits strong {
  color: var(--green-dark);
}

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

.tabs,
.specs,
.info-grid,
.related {
  margin-bottom: 26px;
}

.tab-head {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--green);
}

.tab-head a {
  padding: 13px 18px;
  border-radius: 6px 6px 0 0;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.content-card {
  padding: 22px;
  border-top-left-radius: 0;
}

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

.info-block {
  padding: 22px;
}

.info-block img {
  margin-top: 10px;
  max-width: 150px;
}

.related h2 {
  margin-bottom: 16px;
}

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

.product-card {
  position: relative;
  padding: 18px;
}

.product-card img {
  width: 220px;
  margin: 0 auto 12px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.product-card p {
  margin: 7px 0;
  color: var(--muted);
}

.product-card strong {
  color: var(--green);
  font-size: 20px;
}

.order {
  margin-top: 28px;
  padding: 34px 0;
  background: var(--green);
  color: var(--white);
}

.order__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 26px;
  align-items: center;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

.lead-form button {
  min-height: 43px;
  background: var(--yellow);
  color: #1d2a24;
  font: inherit;
  font-weight: 800;
}

.lead-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}

.footer {
  padding: 30px 0 88px;
  background: #303733;
  color: #dce4df;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer h2 {
  color: var(--white);
  font-size: 18px;
}

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

.footer li,
.footer p {
  margin: 9px 0;
}

.footer a {
  color: #dce4df;
}

.copyright {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #aeb9b3;
  font-size: 13px;
}

.sticky-buy {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 6px 6px 0 0;
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .14);
}

.sticky-buy strong {
  color: var(--green);
  font-size: 20px;
}

.sticky-buy a {
  padding: 10px 18px;
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: 1fr 1fr;
  }

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

  .greenbar__inner {
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .catalog-button {
    min-width: auto;
  }

  .product,
  .product-grid,
  .order__inner {
    grid-template-columns: 1fr;
  }

  .catalog {
    order: 2;
  }

  .benefits,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .topline__inner,
  .header-main,
  .info-grid,
  .related-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .topline__inner {
    display: grid;
  }

  .logo img {
    width: 230px;
  }

  .phones {
    text-align: left;
  }

  .greenbar__inner {
    display: grid;
  }

  h1 {
    font-size: 24px;
  }

  .gallery {
    min-height: 300px;
    padding: 16px;
  }

  .short-specs div,
  .spec-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .actions,
  .tab-head {
    flex-direction: column;
  }

  .sticky-buy {
    width: 100%;
    grid-template-columns: 1fr auto;
    border-radius: 0;
  }

  .sticky-buy a {
    grid-column: 1 / -1;
    text-align: center;
  }
}
