:root {
  --ink: #222;
  --paper: #fff;
  --line: #d5d5d5;
  --muted: #666;
  --soft: #f2f2f2;
  --draft: #855000;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 Arial,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-block;
  border: 1px solid #222;
  padding: 12px 19px;
  background: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
}
button.secondary,
.button.secondary {
  background: white;
  color: #222;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a77928;
  outline-offset: 3px;
}
h1 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -2px;
  max-width: 850px;
  margin: 20px 0 25px;
}
h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -1px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
}
p {
  max-width: 750px;
}
.eyebrow,
small {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.lead {
  font-size: 21px;
  color: #555;
}
.bar {
  background: #eee;
  padding: 9px 4%;
  font-size: 13px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.bar select {
  max-width: 240px;
  padding: 4px;
}
header {
  padding: 20px 4%;
  display: flex;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: white;
}
header strong {
  font-size: 22px;
  margin-right: auto;
}
nav {
  display: flex;
  gap: 22px;
}
main,
.hub {
  max-width: 1280px;
  padding: 0 36px;
  margin: auto;
}
.hub {
  padding-top: 70px;
  padding-bottom: 60px;
}
section {
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 55px;
  align-items: center;
}
.hero-image {
  height: 560px;
  position: relative;
  background: #eee;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.hero-image .caption {
  position: absolute;
  bottom: 0;
  background: #ffffffed;
  padding: 18px;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.panel {
  padding: 28px;
  background: var(--soft);
  text-decoration: none;
}
.note {
  font-size: 13px;
  color: #666;
}
.draft {
  padding: 12px 16px;
  background: #fff5df;
  color: var(--draft);
  font-size: 13px;
  border-left: 3px solid #b97f21;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}
.tabs button {
  background: white;
  color: #222;
}
.tabs button[aria-pressed="true"] {
  background: #222;
  color: white;
}
.product {
  border: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.product .photo {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f6f6f6;
  filter: grayscale(1);
}
.product h3 {
  min-height: 52px;
  margin-bottom: 12px;
}
.product select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
}
.product .price {
  font-size: 22px;
  font-weight: bold;
}
.product del {
  font-size: 14px;
  color: #777;
  margin-left: 9px;
}
.product button {
  margin-top: 15px;
}
.product .note {
  margin: 6px 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.gallery button {
  padding: 0;
  background: #eee;
  border: 0;
  color: #222;
  text-align: left;
}
.gallery img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  filter: grayscale(1);
}
.gallery span {
  display: block;
  padding: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}
.wide {
  padding: 40px;
  background: #eee;
}
.center {
  text-align: center;
  margin-top: 25px;
}
.center p {
  margin: auto;
}
.steps {
  counter-reset: steps;
}
.steps p {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}
.steps p:before {
  counter-increment: steps;
  content: "0" counter(steps) " / ";
  font-weight: bold;
}
footer {
  padding: 35px 4%;
  background: #eee;
}
details {
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
dialog {
  width: min(960px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #aaa;
  padding: 30px;
}
dialog::backdrop {
  background: #0009;
}
.close {
  float: right;
  background: white;
  color: #222;
  padding: 7px 14px;
}
.detail-img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: #f5f5f5;
}
.thumbs {
  display: flex;
  gap: 8px;
}
.thumbs button {
  padding: 0;
  background: white;
}
.thumbs img {
  height: 70px;
  width: 60px;
  object-fit: contain;
}
label {
  display: block;
  margin: 15px 0;
}
input,
select,
textarea {
  border: 1px solid #aaa;
  padding: 10px;
  max-width: 100%;
  background: white;
}
label > input:not([type="checkbox"]),
label > select,
label > textarea {
  width: 100%;
}
label.check {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.cartline {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
}
.cartline input {
  width: 80px;
}
.options {
  display: grid;
  gap: 10px;
  margin: 25px 0;
}
.options button {
  text-align: left;
  background: #fff;
  color: #222;
}
.options button.selected {
  background: #222;
  color: #fff;
}
.sticky {
  position: fixed;
  bottom: 18px;
  right: 20px;
  box-shadow: 0 3px 12px #0003;
  z-index: 2;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  padding: 15px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ccc;
}
th {
  background: #eee;
}
.money {
  font-size: 48px;
  font-weight: bold;
}
.bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bulbs i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background: #fff;
  box-shadow: 0 0 13px 5px #fff8;
  animation: glow 2.8s infinite alternate;
}
.bulbs i:nth-child(even) {
  animation-delay: 1.3s;
}
@keyframes glow {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bulbs i {
    animation: none;
  }
}
@media (max-width: 800px) {
  main,
  .hub {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hero-image {
    height: 380px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  header {
    flex-wrap: wrap;
    gap: 10px;
  }
  nav {
    display: none;
  }
  h1 {
    letter-spacing: -1px;
  }
  section {
    padding: 42px 0;
  }
  .product .photo {
    height: 210px;
  }
  .product h3 {
    min-height: 75px;
  }
  .product {
    padding: 12px;
  }
  .product button {
    padding: 11px 8px;
  }
  .gallery img {
    height: 240px;
  }
  dialog {
    padding: 20px;
  }
  .cartline {
    grid-template-columns: 1fr 75px;
  }
  .hub .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .product h3 {
    min-height: 0;
  }
}
@media print {
  .bar,
  .sticky,
  button {
    display: none;
  }
  section {
    break-inside: avoid;
  }
  .hub {
    padding-top: 10px;
  }
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  width: 200px;
  margin-right: auto;
  text-decoration: none;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.footer-logo {
  width: 190px;
  margin-bottom: 24px;
}
@media (max-width: 800px) {
  .brand-logo {
    width: 145px;
  }
  .footer-logo {
    width: 170px;
  }
}

/* ===== Кнопка подбора рядом с корзиной и «Интернет-магазин» в конце каталога ===== */
.sticky-bar {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.sticky-bar .sticky {
  position: static;
}
.sticky.sticky--quiz,
body[data-mode] .sticky.sticky--quiz {
  background: #f9f8f7;
  border-color: #174b38;
  color: #174b38;
}
.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 760px) {
  .sticky-bar {
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }
}
@media print {
  .sticky-bar {
    display: none;
  }
}

.catalog-actions .button.secondary,
.catalog-actions .button.secondary:hover {
  background: #f9f8f7;
  border-color: #174b38;
  color: #174b38;
}
.catalog-actions .button.secondary:hover {
  background: #eef3ef;
}