:root {
  --ink: #1b1b1b;
  --muted: #6e6862;
  --bg: #f7f2ec;
  --paper: #ffffff;
  --line: #ebe4dc;
  --accent: #e4572e;
  --accent-hot: #e86a33;
  --serif: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
  border-radius: 4px;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

h1, h2, .phone-big {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: #d24c24; }
.btn-line, .btn-vk {
  background: #fff;
  color: var(--ink);
  border: 1px solid #e4ddd4;
  border-radius: 3px;
}
.btn-line:hover, .btn-vk:hover { background: #fff; border-color: #cfc6bc; }
.btn-write { min-height: 42px; padding: 0 16px; border-radius: 3px; }
.ghost {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #e4ddd4;
  background: #fff;
  font-weight: 700;
}
.ghost[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 10px 22px;
  background: #fff;
  border-bottom: 1px solid #f1ebe5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.brand strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.head-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.search {
  display: flex;
  align-items: center;
  width: 230px;
  height: 40px;
  padding: 0 4px 0 12px;
  background: #f6f3ef;
  border-radius: 6px;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}
.search input::-webkit-search-cancel-button { appearance: none; }
.search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  flex: none;
}
.phone {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
  white-space: nowrap;
}
.phone strong { display: block; font-size: 14px; font-weight: 800; }
.phone small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex: none;
}
.cart-link:hover { background: #f6f3ef; }
.cart-link [data-cart-count] {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.cart-link [data-cart-count][hidden] { display: none; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #f6f3ef;
  flex: none;
}

.hero-block { padding-top: 18px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); max-width: 11ch; }
.hero h1 span { color: var(--accent-hot); }
.hero-lead {
  max-width: 42ch;
  margin: 14px 0 22px;
  color: #3f3b37;
  font-size: 16px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 4px;
  background: #efe8e0;
}

.facts-line {
  margin: 0;
  padding: 14px 0 4px;
  border-top: 1px solid #e4ddd4;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.block { margin-top: 42px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 { display: flex; align-items: center; gap: 8px; }
.section-head.with-pills {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.more-link { font-size: 14px; font-weight: 700; white-space: nowrap; }
.more-link:hover { color: var(--accent); }
.title-arrow { color: var(--muted); font-family: var(--sans); font-size: 22px; font-weight: 500; }

.pills { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.pills button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.pills button[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.occasion-mosaic {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}
.occasion { min-width: 0; }
.occasion img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 4px;
  background: #efe8e0;
}
.occasion--feature { grid-row: span 2; }
.occasion--feature img {
  height: 380px;
  border-radius: 6px;
}
.occasion--compact img { height: 148px; border-radius: 3px; }
.occasion--wide { grid-column: span 2; }
.occasion--wide img { height: 148px; border-radius: 5px; }
.occasion span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}
.occasion-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4ddd4;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.occasion-links a {
  color: var(--ink);
  font-weight: 700;
}
.occasion-links a:hover { color: var(--accent); }

.shelf, .catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}
.good-photo { position: relative; }
.good-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #efe8e0;
}
.fav {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}
.fav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.fav.is-on svg { fill: var(--accent); stroke: var(--accent); }
.good-name {
  display: block;
  min-height: 2.6em;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.good-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}
.good-price { font-size: 16px; font-weight: 800; }
.good .btn { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 3px; }

.turnkey {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}
.turnkey img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  background: #efe8e0;
}
.turnkey p { max-width: 46ch; color: #3f3b37; }
.turnkey .btn { margin-top: 6px; }

.hours {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr auto;
  gap: 12px 18px;
  align-items: center;
  margin: 28px auto 8px;
  padding: 18px 0;
  background: transparent;
  border-radius: 0;
  border-top: 1px solid #e4ddd4;
}
.hours strong, .hours span { display: block; }
.hours span { color: var(--muted); font-size: 14px; }

.site-footer {
  margin-top: 36px;
  padding: 28px 0 34px;
  background: #fff;
  border-top: 1px solid #f0ebe6;
}
.footer-grid {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 22px;
  align-items: start;
}
.footer-phone { font-size: 20px; font-weight: 800; }
.footer-grid p { margin: 4px 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}
.footer-links a:hover { border-color: var(--accent); color: var(--accent); }

.page-intro,
.filters,
.catalog-note,
.catalog-grid,
.cart-list,
.split-text,
.why {
  width: min(1200px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.page-intro { margin-top: 28px; margin-bottom: 16px; }
.page-intro p:last-child { max-width: 62ch; color: #3f3b37; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 10px;
}
.filters a {
  padding: 6px 2px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.filters a[aria-current="true"] {
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.catalog-note { margin-bottom: 16px; color: var(--muted); }
.catalog-grid { margin-bottom: 64px; }
main p a:not(.btn) { color: var(--accent); font-weight: 700; }

.product {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.product > img {
  width: 100%;
  border-radius: 10px;
  background: #efe8e0;
}
.product-price {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.desc { color: #3f3b37; }

.cart-list { margin-bottom: 64px; }
.cart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.qty button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.qty [data-remove] { padding: 0 12px; }
.cart-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 20px;
}
.finale-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.band {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 0 0 22px;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.band > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}
.band h2 { margin-bottom: 8px; }
.mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.mini img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}
.mini strong, .mini span { display: block; }
.mini strong { margin-top: 6px; font-size: 13px; line-height: 1.3; }
.mini span { color: var(--accent); font-weight: 800; font-size: 14px; }

.split-text {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}
.note, .contact-card, .desk-form {
  background: #fff;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid var(--line);
}
.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  margin-bottom: 48px;
}
.why article {
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.why strong, .why span { display: block; }
.why span { color: var(--muted); }

.desk {
  width: min(1100px, calc(100% - 40px));
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  align-items: start;
}
.desk > img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 760px;
  object-fit: cover;
  border-radius: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  font-weight: 500;
}
.field textarea { min-height: 110px; resize: vertical; }
.field:has(textarea), .form-grid .btn { grid-column: 1 / -1; }

.contact {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}
.phone-big { display: inline-block; margin: 0 0 10px; font-size: clamp(32px, 4vw, 46px); }
.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.map a { display: inline-block; margin-top: 8px; font-weight: 700; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav, .head-tools { display: none; }
  .site-header { flex-wrap: wrap; }
  .cart-link { margin-left: auto; }
  .site-header.menu-open .nav,
  .site-header.menu-open .head-tools {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }
  .site-header.menu-open .nav { order: 5; gap: 12px; padding-top: 8px; }
  .site-header.menu-open .head-tools { order: 6; padding-bottom: 8px; }
  .search { width: 100%; }
  .section-head.with-pills { grid-template-columns: 1fr; justify-items: start; }
  .pills { justify-content: flex-start; }
  .shelf, .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid, .hours { grid-template-columns: 1fr 1fr; }
  .occasion-mosaic { grid-template-columns: 1.3fr 1fr 1fr; }
  .occasion--feature img { height: 340px; }
  .occasion--wide { grid-column: span 2; }
}

@media (max-width: 800px) {
  .wrap { width: min(1240px, calc(100% - 28px)); }
  .hero { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero h1 { max-width: none; }
  .hero-photo img { height: 320px; border-radius: 3px; }
  .facts-line { padding-top: 12px; font-size: 13px; }
  .occasion-mosaic {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    align-items: start;
  }
  .occasion { flex: 0 0 148px; }
  .occasion--feature { flex: 0 0 176px; grid-row: auto; }
  .occasion--feature img { height: 220px; }
  .occasion--wide { flex: 0 0 220px; grid-column: auto; }
  .occasion--wide img { height: 148px; }
  .occasion--compact img, .occasion img { height: 148px; }
  .occasion-links { margin-top: 10px; }
  .turnkey, .product, .band, .split-text, .desk, .contact, .why { grid-template-columns: 1fr; }
  .turnkey img, .band > img { height: 240px; }
  .desk > img { max-height: 280px; min-height: 0; }
  .mini-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .shelf, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro, .filters, .catalog-note, .catalog-grid, .cart-list, .split-text, .why,
  .band, .desk, .contact {
    width: min(1200px, calc(100% - 28px));
  }
}

@media (max-width: 420px) {
  .brand small { display: none; }
  .brand strong { font-size: 11px; letter-spacing: 0; }
  .brand img { width: 36px; height: 36px; }
  .btn-write { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .site-header { gap: 8px; padding: 8px 10px; }
  .hours { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-row > strong { grid-column: 2; }
}
