:root {
  --bg: #171412;
  --bg-soft: #241d18;
  --graphite: #222326;
  --brown: #342219;
  --burgundy: #5f1f2a;
  --gold: #c9a461;
  --gold-soft: #ead6a3;
  --paper: #f5efe4;
  --paper-2: #fffaf0;
  --text: #f7f1e6;
  --muted: #cbbfae;
  --ink: #201b17;
  --ink-muted: #6d6256;
  --line: rgba(201, 164, 97, 0.24);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 20, 18, 0.93);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.domain-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.domain-strip__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.domain-strip a {
  color: var(--gold-soft);
  font-weight: 600;
  white-space: nowrap;
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(201, 164, 97, 0.2), rgba(95, 31, 42, 0.3));
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.brand__text {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-soft);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 700;
}

.cart-link__icon {
  width: 16px;
  height: 16px;
  position: relative;
  border: 1.5px solid currentColor;
  border-top: 0;
}

.cart-link__icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -6px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
}

.cart-link__count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  background: var(--gold);
  color: #1b130d;
  font-size: 12px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 20, 18, 0.98) 0%, rgba(23, 20, 18, 0.84) 40%, rgba(23, 20, 18, 0.45) 78%, rgba(23, 20, 18, 0.78) 100%),
    url("/products/product-18-01.webp") right center / contain no-repeat,
    radial-gradient(circle at 78% 26%, rgba(201, 164, 97, 0.18), transparent 32%),
    linear-gradient(135deg, #171412, #2d1d18 52%, #111);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(23, 20, 18, 0.78), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 78px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 112px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 700;
}

h2 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
}

h3 {
  font-size: 25px;
  font-weight: 700;
}

.hero__lead {
  max-width: 540px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 21px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.button--gold {
  background: linear-gradient(135deg, var(--gold), #f0dca3);
  color: #20160f;
  border-color: rgba(255, 255, 255, 0.15);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button--outline {
  border-color: rgba(32, 27, 23, 0.22);
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px));
  gap: 14px;
  margin: 72px 0 0;
}

.hero__facts div {
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.hero__facts dt {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.hero__facts dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.catalog-section {
  background:
    linear-gradient(180deg, #f8f1e7 0%, #f1e6d7 100%);
  color: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 17px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 16px;
  margin-bottom: 18px;
}

.search-box,
.sort-box,
.request-panel label {
  display: grid;
  gap: 8px;
}

.search-box span,
.sort-box span,
.request-panel label span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(32, 27, 23, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 97, 0.16);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(32, 27, 23, 0.15);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--text);
}

.catalog-meta {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(32, 27, 23, 0.12);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink-muted);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(32, 27, 23, 0.1);
  background: var(--paper-2);
  box-shadow: 0 12px 28px rgba(32, 27, 23, 0.08);
}

.product-card__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(231, 214, 188, 0.5)),
    #eee1d0;
}

.product-card__image::after,
.modal-gallery__main::after,
.cart-item__image::after {
  content: "Фото товара";
  position: absolute;
  inset: auto 14px 14px;
  color: rgba(32, 27, 23, 0.42);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
}

.product-card__image.is-missing::after,
.modal-gallery__main.is-missing::after,
.cart-item__image.is-missing::after {
  opacity: 1;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(32, 27, 23, 0.16));
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-card h3 {
  font-size: 25px;
  color: var(--ink);
}

.material-badge {
  align-self: flex-start;
  max-width: 130px;
  padding: 5px 8px;
  border: 1px solid rgba(95, 31, 42, 0.2);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

.product-card__price,
.modal-price {
  color: var(--burgundy);
  font-size: 22px;
  font-weight: 900;
}

.product-card__description {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.product-card__actions .button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
}

.process-section {
  background:
    linear-gradient(180deg, rgba(23, 20, 18, 0.94), rgba(42, 30, 24, 0.96)),
    url("/products/product-19-01.webp") center / contain no-repeat;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.step-card,
.info-panel,
.request-panel,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.step-card {
  min-height: 230px;
  padding: 22px;
}

.step-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: var(--gold);
  color: #1d140e;
  font-weight: 900;
}

.step-card h3 {
  font-size: 22px;
}

.step-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.info-band {
  background: linear-gradient(180deg, #201a16, #171412);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-panel {
  padding: 34px;
}

.info-panel p:not(.eyebrow) {
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.clean-list li {
  padding-left: 18px;
  position: relative;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.cart-section {
  background: var(--paper);
  color: var(--ink);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.cart-main {
  min-width: 0;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(32, 27, 23, 0.1);
  background: var(--paper-2);
}

.cart-item__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 6px;
  background: #eadcc9;
}

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

.cart-item h3 {
  font-size: 22px;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.cart-item__controls {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 46px 34px;
  min-height: 36px;
  border: 1px solid rgba(32, 27, 23, 0.14);
  background: #fff;
}

.qty-control button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.qty-control input {
  min-height: auto;
  border: 0;
  padding: 0;
  text-align: center;
  font-weight: 800;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.remove-button,
.text-button {
  border: 0;
  background: transparent;
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-empty {
  padding: 22px;
  border: 1px solid rgba(32, 27, 23, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-muted);
}

.cart-empty.is-hidden {
  display: none;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 27, 23, 0.13);
}

.cart-summary div {
  display: grid;
  gap: 2px;
  text-align: right;
}

.cart-summary span {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-summary strong {
  color: var(--burgundy);
  font-size: 28px;
}

.request-panel {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--paper-2);
  border-color: rgba(32, 27, 23, 0.12);
  box-shadow: 0 16px 38px rgba(32, 27, 23, 0.1);
}

.request-panel h3 {
  color: var(--ink);
}

.pdf-status {
  min-height: 42px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.pdf-status.is-success {
  color: #3f6128;
}

.pdf-status.is-error {
  color: var(--burgundy);
}

.contacts-section {
  background: #171412;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: start;
}

.contacts-section .section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.contact-card {
  min-height: 138px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.contact-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0d0c;
  color: var(--muted);
}

.footer-inner {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 26px;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-inner div:last-child {
  display: grid;
  gap: 5px;
  text-align: right;
  font-size: 14px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 28px;
}

.product-modal.is-open {
  display: grid;
  place-items: center;
}

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 10, 8, 0.72);
  backdrop-filter: blur(12px);
}

.product-modal__dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 28px;
  overflow: auto;
  padding: 28px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 27, 23, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 20px;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

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

.modal-gallery__main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 217, 196, 0.54)),
    #eadcc9;
}

.modal-gallery__main img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(32, 27, 23, 0.16));
}

.modal-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.thumb-button {
  aspect-ratio: 1;
  border: 1px solid rgba(32, 27, 23, 0.12);
  background: #eadcc9;
  padding: 5px;
}

.thumb-button.is-active {
  border-color: var(--burgundy);
  box-shadow: inset 0 0 0 2px var(--burgundy);
}

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

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
}

.modal-info h2 {
  font-size: clamp(38px, 5vw, 56px);
}

.modal-description {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.specs {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(32, 27, 23, 0.12);
}

.specs h3 {
  margin-bottom: 14px;
}

.specs dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.specs dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(32, 27, 23, 0.08);
}

.specs dt {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

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

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-shell {
    min-height: 68px;
    gap: 12px;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 104px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    background: #171412;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .cart-link {
    margin-left: auto;
  }

  .cart-link__text {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 640px;
    background:
      linear-gradient(90deg, rgba(23, 20, 18, 0.98) 0%, rgba(23, 20, 18, 0.86) 55%, rgba(23, 20, 18, 0.74) 100%),
      url("/products/product-18-01.webp") center bottom / 72% auto no-repeat,
      linear-gradient(135deg, #171412, #2d1d18 52%, #111);
  }

  .hero__inner {
    padding-top: 80px;
  }

  .hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-tools,
  .info-grid,
  .cart-layout,
  .contacts-layout,
  .product-modal__dialog {
    grid-template-columns: 1fr;
  }

  .request-panel {
    position: static;
  }

  .product-modal__dialog {
    max-height: calc(100vh - 32px);
    padding: 18px;
  }

  .modal-gallery__main {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .domain-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 7px 0;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .brand__text {
    max-width: 142px;
    font-size: 21px;
  }

  .site-nav {
    top: 124px;
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero {
    min-height: 660px;
    align-items: flex-start;
  }

  .hero__inner {
    padding: 70px 0 260px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .hero__facts div {
    min-height: auto;
  }

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

  .product-card__body {
    padding: 14px;
  }

  .product-card__top {
    display: grid;
    gap: 8px;
  }

  .material-badge {
    max-width: 100%;
    text-align: left;
  }

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

  .steps,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cart-item__controls {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
  }

  .qty-control {
    width: 116px;
  }

  .remove-button {
    justify-self: end;
  }

  .cart-summary {
    align-items: flex-start;
  }

  .modal-gallery__main {
    min-height: 360px;
  }

  .modal-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
  }

  .footer-inner div:last-child {
    text-align: left;
  }
}

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

  .cart-link {
    padding: 0 9px;
  }

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

  .product-card__image {
    aspect-ratio: 4 / 3;
  }

  .hero__actions,
  .cart-summary {
    flex-direction: column;
  }

  .hero__actions .button,
  .cart-summary .text-button,
  .cart-summary div {
    width: 100%;
  }

  .cart-summary div {
    text-align: left;
  }

  .product-modal {
    padding: 10px;
  }

  .product-modal__dialog {
    max-height: calc(100vh - 20px);
  }

  .specs dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
