/* Типографическая шкала для широких экранов, ноутбуков и телефонов. */
:root {
  --font-meta: clamp(11px, 0.60vw, 13px);
  --font-small: clamp(12px, 0.72vw, 15px);
  --font-body-sm: clamp(13px, 0.77vw, 16px);
  --font-body: clamp(14px, 0.85vw, 18px);
}

/* Midnight Garden — общий дизайн для обеих версий. Только theme.css задаёт цвета. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h1,
h2,
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.wrap {
  width: min(1400px, calc(100% - 112px));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  z-index: 900;
  background: var(--accent);
  color: var(--button-ink);
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.muted {
  color: var(--muted);
}
.smallcaps,
.eyebrow,
.sub-label {
  font-size: var(--font-small);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--accent);
  margin-bottom: 20px;
}
.dot {
  color: var(--accent);
}
.section {
  padding-top: 120px;
  padding-bottom: 120px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 43px;
}
.section-heading h2 {
  font-size: clamp(66px, 8vw, 120px);
  line-height: 0.83;
  letter-spacing: -0.035em;
  margin: 0;
}
.text-link {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  font-size: var(--font-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
  padding: 8px 0 12px;
  transition: color 0.2s;
}
.text-link:hover {
  color: var(--accent);
}
.text-link span {
  font-size: 19px;
}
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;
  min-width: 210px;
  padding: 17px 23px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--font-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.25s, background-color 0.25s, border-color 0.25s;
}
.button:hover {
  transform: translateY(-3px);
}
.button span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.button-light {
  background: var(--hero-button);
  color: var(--hero-button-text);
}
.button-light:hover {
  background: var(--hero-button-hover);
}
.button-main {
  background: var(--accent);
  color: var(--button-ink);
}
.button-main:hover {
  background: var(--accent-hover);
}
.fullwidth {
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 1.5vw, 29px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.brand i {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-style: italic;
}
.site-header {
  position: absolute;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  color: var(--hero-ink);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-shell {
  height: 88px;
  width: min(1600px, calc(100% - 112px));
  margin: auto;
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hero-border);
}
.site-header.scrolled {
  position: fixed;
  background: var(--nav-bg);
  color: var(--text);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 45px var(--nav-shadow);
}
.site-header.scrolled .nav-shell {
  border-color: var(--border);
}
.page-inner .site-header {
  position: relative;
  background: var(--surface);
  color: var(--text);
}
.page-inner .nav-shell {
  border-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  font-size: var(--font-small);
  letter-spacing: 0.085em;
  transition: color 0.2s;
}
.nav a:hover,
.header-order:hover {
  color: var(--accent);
}
.nav-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  line-height: 1.3;
}
.hours {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-meta);
  letter-spacing: 0.14em;
  opacity: 0.7;
  white-space: nowrap;
}
.header-order {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1.3;
  font-size: var(--font-small);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.header-order span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 1px;
  background: currentColor;
  display: block;
}
.hero {
  position: relative;
  min-height: 720px;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background: var(--hero-bg);
  overflow: hidden;
  color: var(--hero-ink);
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/hero.webp");
  background-position: center 47%;
  background-size: cover;
  transform: scale(1.04);
  animation: hero-zoom 1.9s ease-out both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      var(--hero-overlay-left) 4%,
      var(--hero-overlay-right) 90%
    ),
    linear-gradient(0deg, var(--hero-overlay-bottom), transparent 40%);
  z-index: -1;
}
.hero-content {
  position: relative;
  padding-top: 65px;
  margin-top: auto;
  margin-bottom: auto;
}
.hero-eyebrow {
  font-size: var(--font-small);
  letter-spacing: 0.24em;
  font-weight: 600;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-eyebrow .line {
  width: 36px;
  height: 1px;
  background: var(--hero-ink);
}
.hero h1 {
  font-size: clamp(92px, 15vw, 236px);
  line-height: 0.68;
  letter-spacing: -0.065em;
  margin: 0 0 45px;
  font-weight: 400;
  max-width: 1130px;
}
.hero h1 em {
  display: block;
  font-weight: 400;
  letter-spacing: -0.075em;
  margin-left: 11%;
  font-style: italic;
}
.hero-content p {
  font-size: var(--font-body);
  line-height: 1.7;
  margin: 0 0 29px;
  max-width: 300px;
}
.hero-bottom {
  position: absolute;
  bottom: 31px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--font-meta);
  letter-spacing: 0.18em;
}
.hero-bottom a {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-bottom a span {
  font-size: 18px;
}
@keyframes hero-zoom {
  from {
    transform: scale(1.13);
  }
  to {
    transform: scale(1.04);
  }
}
.slider-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sub-label {
  color: var(--muted);
  margin-right: 28px;
}
.arrow-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  height: 47px;
  width: 47px;
  font-size: 21px;
  transition: 0.2s;
}
.arrow-btn:hover {
  background: var(--accent);
  color: var(--button-ink);
  border-color: var(--accent);
}
.products-slider {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.products-slider::-webkit-scrollbar {
  display: none;
}
.products-track {
  display: flex;
  gap: 22px;
}
.products-slider .product-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.product-card {
  min-width: 0;
}
.product-visual {
  position: relative;
  display: block;
  aspect-ratio: 3/3.7;
  overflow: hidden;
  background: var(--image-fallback);
}
.product-visual img,
.category-tile img,
.story-image-frame img,
.promo img,
.detail-image img,
.order-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Editorial-настройка карточек категорий: разный масштаб и фокус у каждой плитки. */
.category-tile img {
  --cat-scale: 1;
  --cat-origin-x: 50%;
  --cat-origin-y: 50%;
  transform: scale(var(--cat-scale));
  transform-origin: var(--cat-origin-x) var(--cat-origin-y);
}
.category-grid > .cat-small:first-child img {
  --cat-scale: 1.84;
  --cat-origin-x: 97%;
  --cat-origin-y: 45%;
}
.category-grid > .cat-small:nth-child(2) img {
  --cat-scale: 1.54;
  --cat-origin-x: 9%;
  --cat-origin-y: 0%;
}
.category-grid > .cat-tall img {
  --cat-scale: 1.75;
  --cat-origin-x: 15%;
  --cat-origin-y: 16%;
}
.category-grid > .cat-wide img {
  --cat-scale: 1.78;
  --cat-origin-x: 28%;
  --cat-origin-y: 7%;
}
.product-visual:hover img {
  transform: scale(1.055);
}
.category-tile:hover img {
  transform: scale(calc(var(--cat-scale, 1) + 0.055));
}
.product-info {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 19px;
}
.product-cat {
  font-size: var(--font-meta);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.product-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  line-height: 1.08;
  margin: 0 0 11px;
}
.product-card h3 a:hover {
  color: var(--accent);
}
.price {
  font-size: var(--font-body);
  color: var(--accent);
}
.product-buy {
  align-self: flex-end;
  white-space: nowrap;
  font-size: var(--font-small);
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
}
.product-buy:hover {
  color: var(--accent);
}
.more-products {
  margin-top: 42px;
}
.story {
  background: var(--story-bg);
  padding-top: 100px;
  padding-bottom: 100px;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px) 1fr;
  align-items: end;
  gap: 55px;
}
.story-side-note {
  align-self: start;
  font-size: var(--font-small);
  letter-spacing: 0.17em;
  color: var(--muted);
  writing-mode: vertical-rl;
  justify-self: center;
  margin-top: 20px;
}
.story-image-frame {
  width: 100%;
  aspect-ratio: 4/5.1;
  overflow: hidden;
  background: var(--image-fallback);
}
.story-copy {
  padding-bottom: 22px;
  max-width: 360px;
}
.story-copy h2 {
  font-size: clamp(68px, 6.2vw, 115px);
  line-height: 0.79;
  letter-spacing: -0.045em;
  margin: 23px 0 33px;
}
.story-copy h2 em,
.promo-content h2 em,
.order-side h1 em {
  font-weight: 400;
  color: var(--accent);
}
.story-copy p {
  max-width: 320px;
  font-size: var(--font-body-sm);
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0;
}
.values-section {
  padding-top: 0;
  padding-bottom: 135px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.value-item {
  background: var(--page);
  min-height: 245px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.value-item span {
  font-size: var(--font-small);
  color: var(--muted);
  margin-bottom: 22px;
}
.value-item h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.02;
  margin-bottom: auto;
}
.value-item p {
  font-size: var(--font-meta);
  line-height: 1.65;
  color: var(--muted);
  max-width: 240px;
  margin: 12px 0 0;
}
.value-item.highlight {
  background: var(--accent-deep);
  color: var(--highlight-text);
}
.value-item.highlight span,
.value-item.highlight p {
  color: var(--highlight-text-muted);
}
.categories {
  padding-top: 20px;
  padding-bottom: 140px;
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.65fr;
  grid-template-rows: 275px 275px;
  gap: 10px;
}
.category-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--image-fallback);
  isolation: isolate;
}
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 5, 11, 0.42) 0%,
    rgba(8, 5, 11, 0.26) 18%,
    rgba(8, 5, 11, 0.08) 36%,
    rgba(8, 5, 11, 0) 52%
  );
}
.cat-small {
  grid-column: auto;
  grid-row: 1;
}
.cat-tall {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.cat-wide {
  grid-column: 1 / span 2;
  grid-row: 2;
}
.cat-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 19px;
  background: none;
  color: var(--hero-ink);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: var(--font-small);
  font-weight: 600;
}
.cat-label span {
  font-size: 21px;
  line-height: 1;
}
.promo {
  height: 550px;
  position: relative;
  isolation: isolate;
  color: var(--hero-ink);
  background: var(--hero-bg);
  overflow: hidden;
}
.promo img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.promo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--hero-overlay-left),
    var(--promo-shade)
  );
  z-index: -1;
}
.promo-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.promo-content .eyebrow {
  color: var(--hero-ink);
  opacity: 0.8;
}
.promo-content h2 {
  font-size: clamp(70px, 8.3vw, 126px);
  line-height: 0.83;
  letter-spacing: -0.045em;
  margin: 8px 0 22px;
}
.promo-content h2 em {
  color: var(--hero-ink);
}
.promo-content p {
  font-size: var(--font-body-sm);
  margin: 0 0 26px;
}
.site-footer {
  background: var(--footer-bg);
}
.footer-top {
  padding: 90px 0 86px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}
.footer-logo {
  font-size: clamp(65px, 7vw, 120px);
  line-height: 0.73;
  letter-spacing: -0.055em;
  margin-top: 35px;
}
.footer-logo em {
  font-weight: 400;
  margin-left: 9%;
}
.footer-right {
  display: flex;
  gap: 120px;
  padding-top: 7px;
}
.footer-right > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-right p {
  margin-bottom: 12px;
}
.footer-right a,
.footer-right span {
  font-size: var(--font-small);
}
.footer-right a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  padding-bottom: 25px;
  color: var(--muted);
  font-size: var(--font-meta);
  letter-spacing: 0.12em;
}
.footer-bottom a:hover {
  color: var(--accent);
}
/* Внутренние страницы */
.inner-main {
  min-height: 70vh;
  padding-top: 70px;
  padding-bottom: 140px;
}
.inner-intro {
  padding-bottom: 66px;
}
.inner-intro h1,
.detail-copy h1,
.order-side h1 {
  font-size: clamp(80px, 10vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 10px 0 26px;
}
.inner-intro p,
.order-side > p {
  font-size: var(--font-body);
  color: var(--muted);
}
.catalog-area {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-strong);
  width: min(380px, 100%);
}
.search-form input {
  border: 0 !important;
  background: transparent !important;
  padding: 15px 4px !important;
  flex: 1;
  min-width: 0;
}
.search-form button {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 22px;
}
.results-count {
  font-size: var(--font-small);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 42px;
}
.filter {
  padding: 10px 17px;
  border: 1px solid var(--border);
  font-size: var(--font-small);
  letter-spacing: 0.06em;
  transition: 0.2s;
}
.filter:hover,
.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-ink);
}
.catalog-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 62px;
}
.empty-state {
  padding: 80px 0;
}
.empty-state h2 {
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.12;
  max-width: 940px;
}
.empty-state p {
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  font-size: var(--font-small);
  color: var(--muted);
  margin-bottom: 40px;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: min(9vw, 130px);
  align-items: center;
}
.detail-image {
  aspect-ratio: 4/4.65;
  background: var(--image-fallback);
}
.detail-copy {
  padding: 30px 0;
}
.detail-copy h1 {
  font-size: clamp(75px, 8vw, 138px);
  overflow-wrap: anywhere;
  margin: 16px 0 30px;
}
.detail-price {
  color: var(--accent);
  font-size: 23px;
  margin: 0 0 29px;
}
.detail-copy > p {
  max-width: 440px;
  color: var(--muted);
  font-size: var(--font-body);
  line-height: 1.9;
  margin-bottom: 35px;
}
.detail-notes {
  margin-top: 68px;
  border-top: 1px solid var(--border);
}
.detail-notes > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 20px;
  font-size: var(--font-small);
}
.detail-notes span {
  color: var(--muted);
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 490px;
  gap: 8vw;
  margin-top: 40px;
}
.order-side h1 {
  font-size: clamp(76px, 8vw, 128px);
}
.order-side > p {
  max-width: 400px;
  line-height: 1.9;
}
.order-art {
  height: 370px;
  max-width: 500px;
  overflow: hidden;
  margin-top: 45px;
}
.order-panel {
  background: var(--surface);
  padding: 45px 40px;
  align-self: start;
}
.order-panel h2 {
  font-size: 54px;
  line-height: 1;
  margin: 16px 0 30px;
}
.order-panel form,
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.order-panel label,
.login-box label,
.admin-form label {
  display: block;
  font-size: var(--font-small);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 19px 0 9px;
  color: var(--muted);
}
input:not([type="checkbox"]),
textarea,
select {
  background: var(--input-bg);
  color: var(--text);
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: 0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}
.picked-product {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  padding: 16px 15px;
  font-size: var(--font-body-sm);
}
.picked-product span {
  color: var(--accent);
}
.order-panel .button {
  margin-top: 26px;
}
.legal-small {
  font-size: var(--font-meta);
  color: var(--muted);
  line-height: 1.8;
  margin: 17px 0 0;
}
.form-errors {
  background: var(--error-bg);
  border-left: 2px solid var(--error-border);
  padding: 12px 16px;
  margin: 10px 0;
  color: var(--text);
  font-size: var(--font-small);
}
.form-errors p {
  margin: 4px 0;
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
}
.success-message {
  text-align: center;
  padding: 25px 0;
}
.success-message h2 {
  margin: 20px 0;
}
.success-message p {
  color: var(--muted);
}
.success-icon {
  font-size: 35px;
  border: 1px solid var(--accent);
  color: var(--accent);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: auto;
}
.success-message .button {
  margin-top: 28px;
}
/* Админка */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  width: min(460px, 100%);
  padding: 48px;
}
.login-box .brand {
  margin-bottom: 68px;
}
.login-box h1 {
  font-size: 62px;
  line-height: 0.93;
  margin-bottom: 15px;
}
.login-box > p {
  color: var(--muted);
  font-size: var(--font-body-sm);
}
.login-box form {
  margin-top: 28px;
}
.login-box .button {
  margin-top: 29px;
}
.back-link {
  display: block;
  font-size: var(--font-small);
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
}
.admin-body {
  background: var(--page);
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.admin-sidebar > .brand {
  margin-bottom: 75px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 25px;
}
.admin-nav a {
  padding: 14px 13px;
  font-size: var(--font-body-sm);
  display: flex;
  justify-content: space-between;
}
.admin-nav a.active,
.admin-nav a:hover {
  background: var(--accent-deep);
  color: var(--highlight-text);
}
.admin-nav span {
  opacity: 0.6;
}
.admin-sidebar form {
  margin-top: auto;
}
.admin-logout {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--font-small);
}
.admin-main {
  padding: 36px min(5vw, 78px) 80px;
  min-width: 0;
}
.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.admin-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: var(--font-small);
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 48px 0 30px;
}
.admin-heading h1 {
  font-size: 85px;
  line-height: 0.9;
  margin: 0 0 12px;
}
.admin-heading p {
  font-size: var(--font-body-sm);
  color: var(--muted);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}
.stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 27px 24px;
}
.stats span {
  display: block;
  font-size: var(--font-small);
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 17px;
}
.stats strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 57px;
  font-weight: 400;
  line-height: 1;
}
.admin-empty {
  padding: 45px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 26px;
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-small);
  letter-spacing: 0.11em;
  color: var(--muted);
}
.order-num {
  color: var(--accent);
}
.order-card-body {
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1.25fr 1.2fr 0.75fr 180px;
  gap: 20px;
  align-items: start;
}
.order-card-body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  margin: 0 0 9px;
}
.order-card-body p {
  font-size: var(--font-small);
  color: var(--muted);
  margin: 8px 0;
}
.order-card-body strong {
  font-size: var(--font-body-sm);
  font-weight: 600;
}
.admin-overline {
  display: block;
  font-size: var(--font-meta);
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 10px;
}
.status-form select {
  padding: 9px;
  font-size: var(--font-small);
}
.status-form button {
  background: transparent;
  color: var(--accent);
  border: 0;
  padding: 10px 0;
  font-size: var(--font-small);
}
.order-comment {
  font-size: var(--font-small);
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
}
.order-comment strong {
  color: var(--text);
}
.admin-notice {
  background: var(--accent-deep);
  color: var(--highlight-text);
  padding: 13px 18px;
  font-size: var(--font-body-sm);
}
.admin-product-list {
  border-top: 1px solid var(--border);
}
.admin-product {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--font-body-sm);
}
.admin-product img {
  width: 64px;
  height: 73px;
  object-fit: cover;
  background: var(--image-fallback);
}
.admin-product-title {
  min-width: 140px;
  flex: 1;
}
.admin-product-title strong,
.admin-product-title span {
  display: block;
}
.admin-product-title span {
  font-size: var(--font-small);
  color: var(--muted);
  margin-top: 5px;
}
.admin-product > a {
  color: var(--accent);
}
.delete-button {
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 21px;
}
.editor-panel {
  margin-top: 65px;
  background: var(--surface);
  padding: 34px;
  border: 1px solid var(--border);
}
.editor-panel h2 {
  font-size: 55px;
  line-height: 1;
  margin: 10px 0 20px;
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.admin-form label {
  margin: 15px 0;
}
.admin-form label.full {
  grid-column: span 2;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  display: block;
  margin-top: 10px;
}
.admin-form .checkline {
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
.admin-form .checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0;
}
.admin-form .button {
  grid-column: span 2;
  max-width: 250px;
  margin-top: 20px;
}
@media (max-width: 1200px) {
  .nav-shell,
  .wrap {
    width: calc(100% - 72px);
  }
  .nav {
    gap: 23px;
  }
  .nav-shell {
    gap: 24px;
  }
  .hours {
    display: none;
  }
  .story-inner {
    grid-template-columns: 35px minmax(0, 440px) 1fr;
    gap: 32px;
  }
  .story-copy h2 {
    font-size: 83px;
  }
  .footer-right {
    gap: 60px;
  }
}
@media (max-width: 820px) {
  .wrap,
  .nav-shell {
    width: calc(100% - 42px);
  }
  .nav-shell {
    height: 72px;
  }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    background: var(--surface);
    padding: 26px 22px;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    color: var(--text);
  }
  .nav.nav-open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .header-order {
    display: none;
  }
  .hero {
    min-height: 640px;
  }
  .hero h1 {
    font-size: clamp(86px, 16vw, 140px);
    margin-bottom: 32px;
  }
  .hero h1 em {
    margin-left: 5%;
  }
  .hero-content {
    padding-top: 90px;
  }
  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .section-heading h2 {
    font-size: 84px;
  }
  .products-slider .product-card {
    flex-basis: calc((100% - 20px) / 2);
  }
  .sub-label {
    display: none;
  }
  .story-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .story-side-note {
    display: none;
  }
  .story-copy h2 {
    font-size: 70px;
  }
  .values-section {
    padding-bottom: 100px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-item {
    min-height: 235px;
  }
  .category-grid {
    grid-template-rows: 220px 220px;
  }
  .footer-top {
    padding: 75px 0;
    flex-direction: column;
  }
  .footer-right {
    gap: 65px;
  }
  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .order-art {
    display: none;
  }
  .detail-layout {
    gap: 35px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    padding: 20px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .admin-sidebar > .brand {
    margin: 0 auto 0 0;
  }
  .admin-sidebar > .smallcaps {
    display: none;
  }
  .admin-nav {
    flex-direction: row;
    margin: 0;
    gap: 0;
  }
  .admin-nav a {
    padding: 10px;
  }
  .admin-sidebar form {
    margin: 0;
  }
  .admin-main {
    padding: 30px 24px;
  }
  .order-card-body {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 8px;
  }
}
@media (max-width: 570px) {
  .section-heading {
    flex-wrap: wrap;
  }
  .slider-actions {
    margin-left: auto;
  }
  .wrap,
  .nav-shell {
    width: calc(100% - 34px);
  }
  .brand {
    font-size: clamp(22px, 6vw, 26px);
  }
  .hero {
    min-height: 640px;
    height: 100svh;
  }
  .hero-image {
    background-position: 57% center;
  }
  .hero-eyebrow {
    font-size: var(--font-meta);
    letter-spacing: 0.13em;
  }
  .hero h1 {
    font-size: clamp(66px, 16vw, 100px);
    margin-bottom: 39px;
    line-height: 0.78;
  }
  .hero h1 em {
    margin-left: 0;
  }
  .hero-content p {
    font-size: var(--font-body-sm);
  }
  .hero-bottom {
    font-size: var(--font-meta);
    bottom: 20px;
  }
  .hero-bottom > span:first-child {
    display: none;
  }
  .hero-bottom > span:last-child {
    margin-left: auto;
  }
  .section-heading {
    align-items: flex-end;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: clamp(64px, 14vw, 90px);
  }
  .section-heading .eyebrow {
    font-size: var(--font-meta);
    margin-bottom: 14px;
  }
  .arrow-btn {
    height: 36px;
    width: 36px;
    font-size: 18px;
  }
  .products-slider .product-card {
    flex-basis: 78%;
  }
  .product-card h3 {
    font-size: 27px;
  }
  .story {
    padding-top: 75px;
    padding-bottom: 70px;
  }
  .story-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .story-image-frame {
    width: 76%;
    align-self: flex-end;
    aspect-ratio: 4/4.5;
  }
  .story-copy {
    align-self: flex-start;
    padding: 0;
  }
  .story-copy h2 {
    font-size: 78px;
    margin: 20px 0;
  }
  .story-copy p {
    max-width: 300px;
  }
  .values-section {
    padding-bottom: 70px;
  }
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .value-item {
    min-height: 235px;
    padding: 16px 13px;
  }
  .value-item h3 {
    font-size: 21px;
  }
  .value-item p {
    font-size: var(--font-meta);
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 170px 260px;
    gap: 7px;
  }
  .cat-small {
    grid-row: 1;
  }
  .cat-tall {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  .cat-wide {
    grid-column: 1 / span 2;
    grid-row: 2;
  }
  .cat-label {
    padding: 12px;
    font-size: var(--font-meta);
    letter-spacing: 0.09em;
  }
  .promo {
    height: 530px;
  }
  .promo-content h2 {
    font-size: 73px;
  }
  .footer-top {
    gap: 46px;
    padding: 65px 0;
  }
  .footer-logo {
    font-size: clamp(60px, 15vw, 85px);
  }
  .footer-right {
    gap: 30px;
    flex-wrap: wrap;
  }
  .footer-bottom {
    font-size: var(--font-meta);
    flex-wrap: wrap;
  }
  .footer-bottom > span:nth-child(2) {
    display: none;
  }
  .inner-main {
    padding-top: 48px;
    padding-bottom: 90px;
  }
  .inner-intro h1 {
    font-size: 85px;
  }
  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 11px;
  }
  .catalog-products .product-card h3 {
    font-size: 22px;
  }
  .catalog-products .product-buy {
    font-size: var(--font-meta);
  }
  .catalog-products .product-info {
    display: block;
  }
  .catalog-products .product-buy {
    display: inline-block;
    margin-top: 12px;
  }
  .catalog-controls {
    align-items: flex-end;
  }
  .results-count {
    font-size: var(--font-meta);
    white-space: nowrap;
  }
  .filters {
    gap: 7px;
  }
  .filter {
    padding: 9px 11px;
    font-size: var(--font-meta);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-image {
    aspect-ratio: 4/4.5;
  }
  .detail-copy h1 {
    font-size: 78px;
  }
  .detail-notes > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .order-side h1 {
    font-size: 72px;
  }
  .order-panel {
    padding: 30px 20px;
    margin-inline: -5px;
  }
  .order-panel h2 {
    font-size: 46px;
  }
  .login-box {
    padding: 34px 25px;
  }
  .login-box h1 {
    font-size: 56px;
  }
  .admin-sidebar {
    padding: 15px;
  }
  .admin-sidebar .brand {
    flex-basis: 100%;
  }
  .admin-nav {
    flex-wrap: wrap;
  }
  .admin-nav a {
    font-size: var(--font-small);
  }
  .admin-logout {
    font-size: var(--font-small);
  }
  .admin-main {
    padding: 22px 15px;
  }
  .admin-heading {
    align-items: start;
    flex-direction: column;
  }
  .admin-heading h1 {
    font-size: 70px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats > div {
    padding: 15px 10px;
  }
  .stats span {
    font-size: var(--font-meta);
  }
  .stats strong {
    font-size: 45px;
  }
  .order-card {
    padding: 15px;
  }
  .order-card-body {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .admin-product {
    gap: 10px;
    flex-wrap: wrap;
  }
  .admin-product img {
    width: 48px;
    height: 59px;
  }
  .admin-product-title {
    min-width: 95px;
  }
  .admin-product > a {
    font-size: var(--font-small);
  }
  .editor-panel {
    padding: 20px;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form label.full,
  .admin-form .button {
    grid-column: span 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  .category-grid > .cat-small:first-child img {
    --cat-scale: 1.5;
    --cat-origin-x: 56%;
    --cat-origin-y: 44%;
  }
  .category-grid > .cat-small:nth-child(2) img {
    --cat-scale: 1.72;
    --cat-origin-x: 58%;
    --cat-origin-y: 45%;
  }
  .category-grid > .cat-tall img {
    --cat-scale: 1.78;
    --cat-origin-x: 54%;
    --cat-origin-y: 45%;
  }
  .category-grid > .cat-wide img {
    --cat-scale: 1.82;
    --cat-origin-x: 66%;
    --cat-origin-y: 47%;
  }
}

/* Мобильные подписи и предотвращение обрезания очень крупных заголовков. */
@media (max-width: 570px) {
  .cat-label {
    letter-spacing: 0.035em;
    line-height: 1.35;
    gap: 5px;
  }
  .cat-label span { flex-shrink: 0; }
  .value-item { min-height: 235px; }
  .hero h1 { font-size: clamp(56px, 14.3vw, 95px); }
  .inner-intro h1, .detail-copy h1, .order-side h1 {
    font-size: clamp(52px, 13vw, 85px);
  }
}
/* На крупных мониторах растут не только заголовки, но и мелкие элементы интерфейса. */
@media (min-width: 1900px) {
  .wrap { width: min(1560px, calc(100% - 144px)); }
  .nav-shell { width: min(1720px, calc(100% - 144px)); }
  .category-grid { grid-template-rows: 300px 300px; }
  .product-card h3 { font-size: 35px; }
}

/* Очень узкие телефоны: длинные названия не должны создавать горизонтальный скролл. */
@media (max-width: 370px) {
  .section-heading h2 { font-size: clamp(44px, 13.5vw, 58px); }
  .promo-content h2 { font-size: clamp(47px, 14vw, 62px); }
  .story-copy h2 { font-size: clamp(59px, 19vw, 75px); }
}

/* Форма входа: длинный заголовок не расширяет страницу на узких телефонах. */
.admin-login { grid-template-columns: minmax(0, 1fr); }
.login-box { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 570px) {
  .login-box h1 { font-size: clamp(44px, 12vw, 56px); }
}

/* Узкие телефоны: длинный логотип не должен выталкивать кнопку меню. */
@media (max-width: 370px) {
  .nav-shell { gap: 12px; }
  .brand { font-size: 20px; letter-spacing: 0; }
  .menu-toggle { flex: 0 0 38px; }
}

/* Privacy content and admin deletion controls */
.privacy-content { max-width: 850px; }
.privacy-content p { line-height: 1.85; margin: 22px 0; }
.admin-order-delete { margin-top: 16px; display: flex; justify-content: flex-end; }
.admin-order-delete .admin-logout { cursor: pointer; padding: 10px 0; }
.admin-form input[type=file] { width: 100%; max-width: 100%; }
.admin-form small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.5; letter-spacing: normal; }
