:root {
  --green: #2fbb58;
  --green-dark: #23994a;
  --text: #333333;
  --muted: #777777;
  --line: #e5e5e5;
  --bg: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

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

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

.top-strip {
  background: #f5f5f5;
  border-bottom: 1px solid var(--line);
  color: #666666;
  font-size: 13px;
}

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

.header-main {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #222222;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0;
}

.search {
  display: flex;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.search input {
  width: 100%;
  border: 0;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.search button {
  width: 48px;
  border: 0;
  background: var(--green);
  position: relative;
  cursor: pointer;
}

.search button::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.search button::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  right: 12px;
  bottom: 13px;
  background: #ffffff;
  transform: rotate(45deg);
}

.header-note {
  color: #555555;
  font-size: 14px;
  white-space: nowrap;
}

.callback,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.callback {
  border: 1px solid var(--green);
  color: var(--green-dark);
}

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

.nav__inner {
  display: flex;
  flex-wrap: wrap;
}

.nav a {
  color: #ffffff;
  padding: 16px 22px;
  font-weight: 700;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nav a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.page-title {
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 24px;
}

.breadcrumbs {
  color: #999999;
  font-size: 13px;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
}

h2 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.product {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 44px;
  padding: 38px 0 28px;
}

.main-photo {
  min-height: 470px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.main-photo img {
  max-width: 94%;
  max-height: 440px;
  object-fit: contain;
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.thumb {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  padding: 6px;
  cursor: pointer;
}

.thumb.is-active {
  border-color: var(--green);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
}

.short-specs {
  margin: 0;
}

.short-specs div,
.specs tr {
  border-bottom: 1px dotted #d8d8d8;
}

.short-specs div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 12px 0;
}

dt {
  color: #666666;
}

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

.all-specs,
.cheap {
  display: inline-block;
  margin-top: 18px;
  color: var(--green-dark);
  border-bottom: 1px dotted currentColor;
}

.buy-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  align-self: start;
}

.price {
  font-size: 18px;
  color: #222222;
  margin-bottom: 12px;
}

.price span {
  font-size: 34px;
  font-weight: 700;
}

.price small {
  color: #777777;
}

.code {
  color: #777777;
  margin-bottom: 14px;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  margin-bottom: 18px;
  font-weight: 700;
}

.stock-pill::before,
.store strong::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 187, 88, 0.18);
}

.button {
  width: 100%;
  border: 0;
  margin-top: 10px;
  font-size: 15px;
}

.button-primary {
  background: var(--green);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid var(--green);
}

.tabs,
.specs-section,
.stock-section,
.delivery {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.tabs-head {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.tabs-head a {
  padding: 14px 22px;
  color: #777777;
  border: 1px solid transparent;
  border-bottom: 0;
}

.tabs-head a.is-active {
  color: var(--green-dark);
  border-color: var(--line);
  background: #ffffff;
  transform: translateY(1px);
}

.content {
  max-width: 920px;
  color: #555555;
}

.content p {
  margin: 0 0 12px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  max-width: 850px;
}

.specs th,
.specs td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.specs th {
  width: 42%;
  color: #666666;
  font-weight: 400;
  background: #fbfbfb;
}

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

.store {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: #ffffff;
}

.store p {
  margin: 8px 0;
  color: #666666;
}

.store strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--green-dark);
}

.delivery {
  background: #fbfbfb;
}

.delivery-grid,
.order-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.delivery p {
  color: #555555;
}

.order-section {
  background: #f2f6f3;
  padding: 42px 0;
}

.order-form {
  display: grid;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}

.order-form label {
  display: grid;
  gap: 6px;
  color: #555555;
  font-size: 14px;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
}

.order-form textarea {
  min-height: 90px;
  resize: vertical;
}

.policy {
  margin: 0;
  color: #777777;
  font-size: 12px;
}

.footer {
  background: #333333;
  color: #d9d9d9;
  padding: 34px 0;
}

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

.footer .brand-mark {
  border-color: #ffffff;
  color: #ffffff;
}

.footer .brand-text {
  color: #ffffff;
}

.footer h2 {
  color: #ffffff;
  font-size: 18px;
}

.footer p {
  margin: 7px 0;
}

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

  .header-note {
    white-space: normal;
  }

  .search {
    order: 4;
  }

  .main-photo {
    min-height: 360px;
  }

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

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

  .top-strip__inner,
  .nav__inner {
    display: grid;
  }

  .nav a {
    padding: 12px;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  h1 {
    font-size: 25px;
  }

  .main-photo {
    min-height: 290px;
  }

  .thumb {
    width: 70px;
    height: 70px;
  }

  .price span {
    font-size: 30px;
  }

  .specs th,
  .specs td {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }
}
