:root {
  --blue: #005bff;
  --violet: #6b4be8;
  --yellow: #ffd84d;
  --leaf: #23b26d;
  --coral: #ff6b57;
  --text: #1f2430;
  --muted: #697386;
  --line: #e6e9ef;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --green: #11a05b;
  --pink: #f91155;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #eef5ff 0, #f7fbf1 360px, #f5f7fb 860px),
    var(--soft);
}

a {
  color: var(--blue);
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px 42px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.logo-text {
  font-size: 23px;
}

.search {
  display: flex;
  min-width: 0;
  border: 2px solid var(--blue);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  width: 100%;
  border: 0;
  padding: 12px 16px;
  outline: 0;
}

.search button {
  border: 0;
  padding: 0 26px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.top-actions a {
  color: var(--muted);
  font-size: 14px;
}

.top-actions .cart-link {
  color: var(--blue);
  font-weight: 700;
}

.product-shell,
.content-band,
.details,
.reviews,
.contacts,
.stores {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 42px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: 72px minmax(360px, 540px) minmax(280px, 1fr) 320px;
  gap: 28px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.2), rgba(35, 178, 109, 0.08) 38%, rgba(0, 91, 255, 0.06)),
    var(--surface);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(26, 52, 88, 0.08);
}

.gallery {
  display: grid;
  gap: 12px;
}

.thumb {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

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

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

.photo-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 25%, rgba(255, 216, 77, 0.38), transparent 32%),
    linear-gradient(145deg, #ffffff, #e9f7ed);
}

.photo-panel::before {
  content: "";
  position: absolute;
  inset: auto -30px -70px -30px;
  height: 180px;
  background: linear-gradient(90deg, rgba(35, 178, 109, 0.28), rgba(0, 91, 255, 0.16), rgba(255, 107, 87, 0.18));
  transform: rotate(-4deg);
}

.photo-panel img {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(31, 36, 48, 0.16));
}

.photo-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  border-radius: 8px;
  padding: 10px 14px;
  color: #173b21;
  background: #dff7a8;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 36, 48, 0.12);
}

.badge-row {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 8px;
}

.badge {
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.badge-sale {
  background: var(--pink);
}

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

.product-info h1 {
  margin: 14px 0 12px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.promo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.promo-strip span {
  border-radius: 8px;
  padding: 9px 12px;
  color: #173b21;
  background: #dff7a8;
  font-weight: 800;
}

.promo-strip span:nth-child(2) {
  color: #123d7d;
  background: #dbe8ff;
}

.promo-strip span:nth-child(3) {
  color: #69320c;
  background: #ffe6a6;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.stars {
  color: #f5a400;
  font-weight: 800;
}

.quick-specs {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.quick-specs div,
.seller-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.buy-box {
  position: sticky;
  top: 86px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(29, 40, 58, 0.08);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.price {
  font-size: 36px;
  font-weight: 800;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.discount {
  border-radius: 6px;
  padding: 6px 9px;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
}

.installment,
.stock {
  margin: 14px 0;
  color: var(--muted);
}

.stock {
  color: var(--green);
  font-weight: 700;
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.order-form input,
.order-form select {
  width: 100%;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
}

.order-form button,
.footer a {
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.content-band {
  padding-top: 32px;
}

.band-grid,
.contacts-grid,
.review-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.band-grid article,
.review-grid article,
.contacts-grid article,
.store-list article,
.usage-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
}

.band-grid h2,
.details h2,
.reviews h2,
.contacts h2,
.stores h2,
.benefits h2,
.usage h2,
.faq h2 {
  margin: 0 0 10px;
}

.band-grid p,
.section-head p,
.description p,
.review-grid p,
.contacts p,
.plain-list,
.store-list span,
.usage-card p,
.faq-list p,
.benefit p {
  color: var(--muted);
  line-height: 1.58;
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.benefits,
.usage,
.faq {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 42px;
}

.benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.benefit {
  min-height: 260px;
  border-radius: 8px;
  padding: 24px;
  color: #102034;
}

.benefit span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.benefit h3 {
  margin: 0 0 12px;
}

.benefit-blue {
  background: linear-gradient(160deg, #dbe8ff, #ffffff);
}

.benefit-green {
  background: linear-gradient(160deg, #dff7a8, #ffffff);
}

.benefit-yellow {
  background: linear-gradient(160deg, #ffe6a6, #ffffff);
}

.benefit-coral {
  background: linear-gradient(160deg, #ffd8d1, #ffffff);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.description,
.spec-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
}

.description h3 {
  margin: 0 0 10px;
}

.description p + h3 {
  margin-top: 26px;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.spec-table th,
.spec-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 400;
}

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

.usage-card {
  border-top: 5px solid var(--leaf);
}

.usage-card:nth-child(2) {
  border-top-color: var(--blue);
}

.usage-card:nth-child(3) {
  border-top-color: var(--coral);
}

.usage-card h3 {
  margin: 0 0 10px;
}

.warning-box {
  margin-top: 18px;
  border-radius: 8px;
  padding: 18px 22px;
  color: #543800;
  background: #fff1bd;
}

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

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.store-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.store-list article {
  display: grid;
  gap: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 24px 42px;
  background: #fff;
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: 74px minmax(280px, 1fr) minmax(260px, 1fr);
  }

  .buy-box {
    position: static;
    grid-column: 2 / -1;
  }
}

@media (max-width: 820px) {
  .topbar,
  .product-shell,
  .content-band,
  .details,
  .reviews,
  .contacts,
  .stores,
  .benefits,
  .usage,
  .faq,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-grid,
  .details-grid,
  .band-grid,
  .contacts-grid,
  .review-grid,
  .store-list,
  .benefit-grid,
  .usage-layout {
    grid-template-columns: 1fr;
  }

  .gallery {
    display: flex;
    order: 2;
  }

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

  .product-info h1 {
    font-size: 25px;
  }

  .buy-box {
    grid-column: auto;
  }

  .top-actions {
    display: none;
  }
}

@media (max-width: 520px) {
  .search {
    display: none;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
  }

  .product-grid {
    padding: 16px;
    gap: 18px;
  }

  .photo-panel {
    min-height: 300px;
  }

  .price {
    font-size: 31px;
  }

  .quick-specs div,
  .seller-note,
  .footer {
    display: grid;
  }
}
