/* ================================================================
   1. Переменные и базовые правила
   ================================================================ */

:root {
  --ink: #1d201a;
  --cream: #f4f1ea;
  --paper: #d2d2d2;
  --gold: #b69355;
  --muted: #73736e;
  --line: #d9d5ca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px Manrope, Arial, sans-serif;
}

.wrap {
  width: min(1200px, calc(100% - 56px));
  margin: auto;
}

h1,
h2 {
  margin: 0;
  font: 500 clamp(52px, 6.1vw, 88px) / 0.96 "Playfair Display", serif;
  letter-spacing: -0.045em;
}

.eyebrow {
  margin: 0 0 21px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ================================================================
   2. Общие элементы: кнопки, поля, уведомления
   ================================================================ */

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding: 0 19px;
  border: 0;
  cursor: pointer;
  font: 600 11px Manrope, sans-serif;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.dark {
  background: var(--ink);
  color: white;
  margin-top: 40px;
  margin-bottom: 40px;
}

.button.gold {
  background: #c1a16a;
  color: white;
}

.button span {
  font-size: 17px;
}

.text-button,
.link-button,
.auth-switch {
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: 700 10px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  font-weight: 500;
  font-size: 13px;
}

/* Профиль показывается только в режиме аукциона после загрузки данных изделия. */
#accountButton[hidden] {
  display: none;
}

.play {
  border: 0;
  background: none;
  cursor: pointer;
  font: 600 10px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play i {
  margin-right: 8px;
  font: 400 21px Arial;
  font-style: normal;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 10;
  padding: 14px 21px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  transform: translate(-50%, 100px);
  transition: 0.3s;
}

.toast.show {
  transform: translate(-50%, 0);
}

/* ================================================================
   3. Шапка и первый экран
   ================================================================ */

.announcement {
  height: 31px;
  background: #252720;
  color: #e9e6dc;
  font-size: 10px;
  line-height: 31px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}

.header::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: #b69355;
  content: "";
}

.brand {
  display: inline-flex;
  width: 75px;
  height: 52px;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 75px;
  height: 52px;
  object-fit: contain;
}

.header .brand {
  width: 145px;
  height: 94px;
  margin-left: -50px;
}

.header .brand-logo {
  width: 145px;
  height: 94px;
}

.header-question {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6e6e68;
  cursor: pointer;
  font: 700 13px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(3px);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.header-question:hover,
.header-question:focus-visible {
  color: #11130f;
  outline: none;
}

.header-interest {
  display: none;
}

.header nav {
  display: flex;
  gap: 33px;
  margin-left: 95px;
}

.user-icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero {
  position: relative;
  display: grid;
  min-height: 640px;
  grid-template-columns: 44% 56%;
  padding: 70px 0 76px;
}

.hero h1 {
  font-size: clamp(66px, 7.4vw, 108px);
  letter-spacing: -0.07em;
  text-transform: none;
}

.hero h1.has-title-placeholder {
  margin-bottom: 118px;
}

.product-title-name {
  display: inline-block;
  transform-origin: left center;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.7s ease;
}

.product-title-type {
  position: relative;
  display: inline-block;
}

.product-title-name.is-revealed {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-10px) scale(0.98);
}

.product-title-name.is-revealed.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) scale(1);
}

.product-title-placeholder {
  position: absolute;
  top: calc(100% + 0.08em + 15px);
  left: 50%;
  display: flex;
  width: max-content;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 0.76em;
  font-weight: 500;
  line-height: 0.66;
  letter-spacing: -0.03em;
  transform: translateX(-50%);
}

.product-title-placeholder-word {
  display: block;
  line-height: 0.5;
  font-size: 0.8em;
  opacity: 0.58;
}

.product-title-placeholder small {
  margin-top: 37px;
  color: var(--muted);
  font: 700 0.15em / 1.2 Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lead {
  width: 400px;
  margin: 34px 5px 33px;
  font: 500 19px / 1.45 "Playfair Display", serif;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}

.product-characteristics {
  width: min(100%, 520px);
  margin-top: 34px;
}

.product-characteristics h2 {
  display: block;
  margin: 0 0 17px;
  padding: 0;
  font: 600 16px / 1.2 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-characteristics dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.product-characteristics dl div {
  min-height: 82px;
  padding: 16px 17px 14px;
  border: 1px solid rgba(29, 32, 26, 0.1);
  background: rgba(255, 255, 255, 0.16);
}

.product-characteristics dt {
  color: #c09a5b;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-characteristics dd {
  margin: 0;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
}

.product-characteristics dl div.characteristic-placeholder {
  position: relative;
  grid-column: 1 / -1;
  min-height: 70px;
  overflow: hidden;
  border-color: rgba(182, 147, 85, 0.24);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.1), rgb(87 84 79 / 7%));
}

.product-characteristics dl div.characteristic-placeholder::after {
  position: absolute;
  right: 17px;
  bottom: 0;
  left: 17px;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 147, 85, 0.65), rgba(182, 147, 85, 0));
  content: "";
}

.product-characteristics .characteristic-placeholder dt {
  color: #a48550;
}

.product-characteristics .characteristic-placeholder dd {
  color: #777870;
  font-size: 13px;
  font-weight: 500;
}

.characteristics-reveal-explanation {
  margin-top: 14px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 91px;
}

.product-meta span {
  padding: 8px 11px;
  border: 1px solid #cfcbc0;
  border-radius: 30px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 23px;
  left: 0;
  font-size: 10px;
}

/* ================================================================
   4. Слайдер фотографий
   ================================================================ */

.product-stage {
  position: relative;
  min-height: 500px;
  align-self: center;
  margin-left: 30px;
  overflow: visible;
}

.empty-product-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #696a64;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-slider {
  position: relative;
  z-index: 3;
  height: 500px;
  overflow: hidden;
  background: transparent;
}

/* Лёгкая цветная вуаль соединяет края слайдера с фоном страницы. */
.product-slider::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--paper) 0%,
      transparent 20%,
      transparent 80%,
      var(--paper) 100%
    ),
    linear-gradient(
      90deg,
      var(--paper) 0%,
      transparent 15%,
      transparent 85%,
      var(--paper) 100%
    );
  content: "";
  opacity: 0.5;
}

.slider-track {
  position: relative;
  z-index: 0;
  display: flex;
  height: 100%;
  transition: transform 0.9s cubic-bezier(0.33, 0.98, 0.45, 1);
}

.slider-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.slider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-reveal-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.photo-reveal-segment {
  border: 1px solid rgba(182, 147, 85, 0.15);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.3) 0 0.7px, transparent 1px),
    radial-gradient(circle at 75% 62%, rgba(29, 32, 26, 0.07) 0 0.6px, transparent 1px),
    linear-gradient(135deg, rgba(244, 241, 234, 0.94), rgba(228, 225, 216, 0.92));
  background-size: 7px 7px, 9px 9px, auto;
  backdrop-filter: blur(11px) saturate(0.72);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), backdrop-filter 0.65s ease;
}

.photo-reveal-cover.reveal-ready .photo-reveal-segment.is-revealed {
  opacity: 0;
  transform: scale(0.965);
  backdrop-filter: blur(0);
}

.photo-reveal-cover:not(.reveal-ready) .photo-reveal-segment.is-revealed {
  transition: none;
}

.photo-reveal-progress {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 0 3px;
}

.photo-reveal-progress span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.photo-reveal-progress i {
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(29, 32, 26, 0.16);
}

.photo-reveal-progress b {
  display: block;
  width: 0;
  height: 100%;
  background: #b69355;
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-explanation {
  position: relative;
  z-index: 4;
  margin-top: 3px;
}

.reveal-explanation button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(133, 133, 127, 0.5);
  background: transparent;
  color: #85857f;
  cursor: help;
  font: 500 9px / 1.45 Manrope, sans-serif;
  text-align: left;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.reveal-explanation button:hover,
.reveal-explanation button:focus-visible {
  border-color: rgba(29, 32, 26, 0.58);
  color: var(--ink);
  outline: none;
}

.reveal-explanation p {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  max-width: 370px;
  margin: 0;
  color: #85857f;
  font-size: 9px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  visibility: hidden;
  transition: opacity 0.32s ease, transform 0.4s ease, visibility 0.4s ease;
}

.reveal-explanation:hover p,
.reveal-explanation:focus-within p {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.slider-control {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 64px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s ease;
}

.slider-control:hover {
  background: rgba(20, 21, 17, 0.01);
}

.slider-control.prev {
  left: 0;
}

.slider-control.next {
  right: 0;
}

.slider-control img {
  display: block;
  width: 25px;
  height: 62px;
  margin: auto;
  opacity: 0.7;
  object-fit: fill;
}

.slider-control.prev img {
  transform: scaleX(-1);
}

.slider-dots {
  position: absolute;
  bottom: 17px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid white;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: 0.25s;
}

.slider-dot.active {
  background: white;
}

/* ================================================================
   5. Описание изделия
   ================================================================ */

.details {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 9%;
  padding: 56px 0 112px;
}

.details .product-characteristics {
  margin-top: 0;
}

#salePanel {
  width: 100%;
}

.image-card {
  position: relative;
  height: 538px;
  background: #e3e1d8;
}

.image-card::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Фотографии и паспорт изделия";
  color: #696a64;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.image-card span {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: white;
}

.specs {
  padding-top: 29px;
}

.specs h2 {
  margin-bottom: 45px;
  font-size: 52px;
}

.specs dl {
  margin: 0 0 25px;
}

.specs dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.specs dd {
  margin: 0;
  text-align: right;
}

/* ================================================================
   6. Блок продажи и форма заявки
   ================================================================ */

.sale {
  padding: 115px 0;
  background: #24261f;
  color: #f7f4eb;
}

.sale-grid {
  display: grid;
  grid-template-columns: 43% 49%;
  justify-content: space-between;
}

.sale h2 {
  font-size: 59px;
}

.sale .eyebrow {
  color: #c8ad77;
}

.sale-note {
  max-width: 330px;
  margin-top: 31px;
  color: #b8b8af;
  font-size: 13px;
  line-height: 1.8;
}

.request-card {
  padding: 31px 33px;
  background: #e7e7e7;
  color: var(--ink);
}

.contact-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: #f3f3ef;
}

.request-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status {
  color: #738373;
}

.request-top .status:only-child {
  margin-left: auto;
}

.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #718d70;
}

.request-card strong {
  display: block;
  margin-top: 42px;
  font: 500 57px / 1 "Playfair Display", serif;
}

.contact-card strong {
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(29, 32, 26, 0.18);
}

.contact-card-copy {
  margin: 13px 0 30px;
}

.contact-request-top {
  align-items: flex-start;
}

.contact-request-top h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: none;
  transform: translateY(-5px);
}

.contact-request-top .status {
  flex: 0 0 auto;
  margin-top: 4px;
}

.contact-card-copy p {
  max-width: 360px;
  margin: 0;
  color: #5f6159;
  font-size: 12px;
  line-height: 1.65;
}

.contact-button {
  display: flex;
  width: 100%;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px 0 24px;
  margin-top: 22px;
  border: 0;
  background: #1d201a;
  box-shadow: 0 12px 24px rgba(29, 32, 26, 0.18);
  color: white;
  cursor: pointer;
  font: 700 11px Manrope, sans-serif;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-button span:last-child {
  font-size: 23px;
  font-weight: 400;
}

.contact-button:hover {
  background: #34382e;
  box-shadow: 0 16px 30px rgba(29, 32, 26, 0.25);
  transform: translateY(-2px);
}

.auction-auth-button {
  margin-top: 30px;
}

.request-card > p {
  margin: 11px 0 31px;
  color: var(--muted);
  font-size: 11px;
}

.request-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-row {
  display: flex;
}

.input-row input,
.input-row select {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 1px solid #cfcbc0;
  border-right: 0;
  background: #fbfaf6;
  color: var(--ink);
  font: 600 13px Manrope, sans-serif;
}

.input-row .bid-amount-input {
  font: 500 20px / 1 "Playfair Display", serif;
  letter-spacing: 0.01em;
}

.input-row .button.gold {
  min-width: 190px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}

#bidForm .button.gold {
  justify-content: flex-start;
  gap: 3px;
  border: 1px solid #8d6d3a;
  background: #a17f48;
  box-shadow: 0 2px 0 rgba(106, 78, 33, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#bidForm .button.gold:hover {
  background: #94723e;
  box-shadow: 0 4px 8px rgba(106, 78, 33, 0.18);
  transform: translateY(0);
}

#bidForm .button.gold:active {
  box-shadow: 0 1px 0 rgba(106, 78, 33, 0.18);
  transform: translateY(1px);
}

#bidForm .button .bid-button-label {
  font-size: inherit;
  white-space: nowrap;
}

.bid-hammer-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin-left: -2px;
  margin-right: -10px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

#bidForm .button.gold:hover .bid-hammer-icon {
  transform: rotate(7deg);
}

@media (prefers-reduced-motion: reduce) {
  #bidForm .button.gold,
  .bid-hammer-icon {
    transition: none;
  }
}

.bid-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.bid-quick-button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #cfcbc0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 600 10px Manrope, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bid-quick-button:hover {
  border-color: var(--gold);
  background: rgba(182, 147, 85, 0.12);
}

.auction-next-bid {
  margin-bottom: 23px !important;
}

.recent-bids {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid #d9d5ca;
}

.recent-bids-title {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recent-bids ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.my-active-bid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 13px;
  padding: 10px 0;
  border-top: 1px solid rgba(182, 147, 85, 0.45);
  border-bottom: 1px solid rgba(182, 147, 85, 0.45);
}

.my-active-bid div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.my-active-bid span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.my-active-bid b {
  font: 500 17px / 1 "Playfair Display", serif;
}

.recent-bids li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  color: var(--ink);
  font-size: 12px;
}

.recent-bids li b {
  font: 500 17px / 1 "Playfair Display", serif;
}

.recent-bid-amount {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.own-bid-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.own-bid-label::before {
  margin-right: 5px;
  content: "—";
}

.cancel-bid-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font: 600 9px Manrope, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cancel-bid-button:hover:not(:disabled) {
  color: var(--ink);
}

.cancel-bid-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.payment-note {
  margin: 13px 0 0 !important;
  color: #898a82 !important;
  font-size: 9px !important;
  letter-spacing: 0.02em;
}

.request-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 31px;
  padding-top: 18px;
  border-top: 1px solid #d9d5ca;
  font-size: 10px;
}

.request-bottom button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  font: 700 9px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ================================================================
   7. Преимущества и подвал
   ================================================================ */

.trust {
  padding: 112px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  margin-top: 39px;
}

.trust article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust article span {
  color: var(--gold);
  font-size: 10px;
}

.trust h3 {
  margin: 36px 0 14px;
  font: 500 27px / 1.15 "Playfair Display", serif;
}

.trust article p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer {
  padding: 31px 0;
  background: #e5e1d7;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 25px;
}

.footer p {
  margin-right: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

/* ================================================================
   8. Окно авторизации
   ================================================================ */

dialog {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(20, 21, 17, 0.58);
  backdrop-filter: blur(4px);
}

dialog[open]::backdrop {
  animation: dialog-backdrop-in 0.28s ease-out both;
}

dialog.is-closing::backdrop {
  animation: dialog-backdrop-out 0.22s ease-in both;
}

.modal {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  padding: 42px;
  background: #f8f6f0;
  color: var(--ink);
}

dialog.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

dialog[open] .modal {
  animation: modal-enter 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

dialog[open].modal {
  animation: direct-modal-enter 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

dialog.is-closing .modal {
  animation: modal-leave 0.22s ease-in both;
}

dialog.is-closing.modal {
  animation: direct-modal-leave 0.22s ease-in both;
}

@keyframes dialog-backdrop-in {
  from {
    backdrop-filter: blur(0);
    opacity: 0;
  }

  to {
    backdrop-filter: blur(4px);
    opacity: 1;
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-backdrop-out {
  from {
    backdrop-filter: blur(4px);
    opacity: 1;
  }

  to {
    backdrop-filter: blur(0);
    opacity: 0;
  }
}

@keyframes modal-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
}

@keyframes direct-modal-enter {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes direct-modal-leave {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 6px)) scale(0.99);
  }
}

.modal h2 {
  margin-bottom: 15px;
  font-size: 43px;
}

.modal > p:not(.eyebrow) {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.mode-change-modal {
  width: min(500px, calc(100vw - 32px));
}

#auctionSwitchDialog[open] {
  display: flex;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.mode-change-modal h2 {
  max-width: 360px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions .button.dark {
  min-height: 44px;
  margin: 0;
}

.modal-cancel {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #d5d0c5;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 10px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.close {
  position: absolute;
  top: 11px;
  right: 15px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 300 31px / 1 Arial;
}

.modal form {
  display: grid;
  gap: 15px;
}

.modal label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal label[hidden] {
  display: none;
}

.modal input {
  height: 47px;
  padding: 0 13px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  font: 13px Manrope, sans-serif;
}

.modal textarea {
  min-height: 84px;
  padding: 13px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  font: 13px / 1.5 Manrope, sans-serif;
  resize: vertical;
}

.form-error {
  min-height: 14px;
  margin: -7px 0 0;
  color: #a35348;
  font-size: 10px;
  line-height: 1.4;
}

.modal label span {
  color: var(--muted);
  font-weight: 500;
}

.contact-modal .contact-button {
  margin-top: 4px;
}

.modal small {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
}

/* ================================================================
   9. Административная панель
   ================================================================ */

.admin-page {
  background: #efede6;
}

.admin-header {
  display: flex;
  height: 72px;
  align-items: center;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.admin-header span {
  margin-right: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-header a:last-child,
.logout {
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: 700 10px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-wrap {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 85px 0;
}

.admin-login {
  max-width: 455px;
  margin: 0 auto;
  padding: 42px;
  background: var(--paper);
}

.admin-login h1,
.dashboard-title h1 {
  font-size: 54px;
}

.admin-login form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.admin-login label,
.product-form label {
  display: grid;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login input,
.product-form input,
.product-form textarea,
.product-form select {
  width: 100%;
  padding: 11px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  color: var(--ink);
  font: 13px Manrope, sans-serif;
}

.product-form input[readonly] {
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  cursor: not-allowed;
}

.admin-login input {
  height: 47px;
}

.admin-error {
  color: #9f3930;
  font-size: 12px;
}

.dashboard-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 35px;
}

.dashboard-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(229, 225, 215, 0.72);
}

.admin-sidebar a {
  display: flex;
  min-height: 39px;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.admin-content {
  display: grid;
  gap: 22px;
}

.admin-section {
  scroll-margin-top: 24px;
}

.admin-section > h2,
.admin-section-heading h2 {
  margin: 0 0 24px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-section-heading h2 {
  margin-bottom: 16px;
}

.admin-section-heading b {
  color: var(--muted);
  font: 500 21px "Playfair Display", serif;
}

.admin-section .photo-manager {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.dashboard-card {
  padding: 30px;
  background: var(--paper);
}

.dashboard-card h2 {
  font-size: 29px;
}

.product-form {
  display: grid;
  gap: 13px;
  margin: 27px 0 34px;
  padding: 23px;
  background: var(--paper);
}

.product-form textarea {
  min-height: 80px;
  resize: vertical;
}

.characteristics-manager {
  padding-top: 19px;
  border-top: 1px solid #d5d0c5;
}

.characteristics-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.characteristics-heading h3 {
  margin: 0 0 4px;
  font: 500 24px "Playfair Display", serif;
}

.characteristics-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.characteristic-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 0.8fr) minmax(0, 1.2fr) auto auto;
  gap: 8px;
  margin-top: 8px;
}

.characteristic-row-base {
  grid-template-columns: 28px minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
}

.characteristic-row input {
  min-width: 0;
}

.base-characteristic-label {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.characteristic-visible {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
}

.characteristic-visible input {
  width: 14px;
  height: 14px;
  accent-color: var(--ink);
}

.characteristic-reveal {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(182, 147, 85, 0.2);
  background: rgba(182, 147, 85, 0.05);
  color: var(--muted);
  font-size: 10px;
}

.characteristic-reveal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.characteristic-drag-handle {
  display: inline-flex;
  grid-row: 1;
  grid-column: 1;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  width: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
}

.characteristic-drag-handle span {
  display: block;
  width: 13px;
  height: 1px;
  background: #8c8c85;
  transition: background-color 160ms ease, width 160ms ease;
}

.characteristic-drag-handle:hover span,
.characteristic-drag-handle:focus-visible span {
  width: 16px;
  background: var(--ink);
}

.characteristic-drag-handle:focus-visible {
  outline: 1px solid rgba(182, 147, 85, 0.8);
  outline-offset: 2px;
}

.characteristic-drag-handle:active {
  cursor: grabbing;
}

.characteristic-row.is-dragging {
  opacity: 0.4;
}

.characteristic-row.drag-over-before {
  box-shadow: inset 0 2px 0 #b69355;
}

.characteristic-row.drag-over-after {
  box-shadow: inset 0 -2px 0 #b69355;
}

.characteristic-reveal-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--ink);
}

.characteristic-reveal-times {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.characteristic-reveal-times label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.characteristic-reveal-times input {
  width: 46px;
  min-height: 28px;
  padding: 3px 5px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
}

.characteristic-reveal-times input:disabled {
  opacity: 0.45;
}

.characteristic-row:not(.has-characteristic-reveal) .characteristic-reveal {
  background: rgba(255, 255, 255, 0.22);
}

.characteristic-row:not(.characteristic-row-base) .remove-characteristic {
  grid-row: 1;
  grid-column: 5;
}

.remove-characteristic {
  width: 38px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  color: #8f3934;
  cursor: pointer;
  font-size: 20px;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auction-end-row {
  display: grid;
  grid-template-columns: minmax(0, 50%) auto;
  align-items: end;
  gap: 12px;
}

.auction-finish-button {
  min-height: 43px;
  margin: 0 0 0 0;
  padding: 0 17px;
  background: #8d5148;
  font-size: 10px;
}

.auction-finish-button:hover {
  background: #a26156;
}

.auction-fields[hidden],
.fixed-fields[hidden] {
  display: none;
}

.admin-success {
  color: #537a57;
  font-size: 12px;
}

.requests-card {
  margin-top: 22px;
}

.bids-manager {
  margin-top: 22px;
  padding: 0 30px 30px;
  background: var(--paper);
}

.bids-manager summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
  font: 500 29px "Playfair Display", serif;
}

.bids-manager summary::-webkit-details-marker {
  display: none;
}

.bids-manager summary::after {
  margin-left: auto;
  color: var(--gold);
  content: "+";
  font: 400 27px Manrope, sans-serif;
}

.bids-manager[open] summary::after {
  content: "−";
}

.bids-manager summary b {
  min-width: 29px;
  margin: 0 18px 0 auto;
  color: var(--muted);
  font: 500 18px "Playfair Display", serif;
  text-align: right;
}

.bids-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 17px;
  border: 1px solid rgba(29, 32, 26, 0.1);
  background: rgba(255, 255, 255, 0.16);
}

.bid-person,
.bid-info {
  display: grid;
  gap: 4px;
}

.bid-person strong {
  font-size: 13px;
}

.bid-person span,
.bid-info time {
  color: var(--muted);
  font-size: 11px;
}

.bid-contact-line {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
}

.copy-contact-button {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-contact-button img {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.copy-contact-button:hover,
.copy-contact-button.copied {
  opacity: 0.9;
}

.copy-contact-button:active {
  transform: translateY(1px);
}

.questions-list {
  display: grid;
}

.question-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.question-row:first-child {
  padding-top: 0;
}

.question-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.question-actions {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 4px;
}

.question-actions > .record-delete {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.lead-row-actions {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: start;
}

.lead-row-actions > .record-delete {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}

.question-heading strong {
  font-size: 12px;
}

.question-heading time,
.question-row small {
  color: var(--muted);
  font-size: 9px;
}

.question-row p {
  max-width: 720px;
  margin: 12px 0 8px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.record-delete {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.delete-record-button {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.delete-record-button img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.delete-record-button:hover,
.delete-record-button:focus-visible {
  opacity: 0.9;
  outline: none;
}

.delete-record-button:active {
  transform: translateY(1px);
}

.delete-confirmation {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: calc(100% + 8px);
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 9px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  box-shadow: 0 7px 16px rgba(29, 32, 26, 0.1);
  color: var(--ink);
  font-size: 9px;
  white-space: nowrap;
  transform: translateY(-50%);
}

.delete-confirmation[hidden] {
  display: none;
}

.delete-confirmation button {
  min-width: 22px;
  min-height: 20px;
  padding: 0 5px;
  border: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: 700 8px Manrope, sans-serif;
}

.delete-confirmation button[data-cancel-delete] {
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}

.bid-info {
  min-width: 150px;
  text-align: right;
}

.bid-info b {
  color: var(--gold);
  font: 500 22px "Playfair Display", serif;
}

.empty-bids {
  margin: 0;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.archives-manager {
  margin-top: 22px;
  padding: 0 30px 30px;
  background: var(--paper);
}

.archives-manager > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font: 500 29px "Playfair Display", serif;
}

.archives-manager > summary::-webkit-details-marker,
.archive-item summary::-webkit-details-marker {
  display: none;
}

.archives-manager > summary::after {
  margin-left: auto;
  color: var(--gold);
  content: "+";
  font: 400 27px Manrope, sans-serif;
}

.archives-manager[open] > summary::after {
  content: "−";
}

.archives-manager > summary b {
  min-width: 29px;
  margin: 0 18px 0 auto;
  color: var(--muted);
  font: 500 18px "Playfair Display", serif;
  text-align: right;
}

.archives-list {
  display: grid;
  gap: 9px;
  padding-top: 15px;
}

.archive-item {
  border: 1px solid rgba(29, 32, 26, 0.1);
  background: rgba(255, 255, 255, 0.16);
}

.archive-item summary {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.archive-item summary span {
  font-size: 13px;
  font-weight: 700;
}

.archive-item summary small {
  color: var(--muted);
  font-size: 10px;
}

.archive-item summary::after {
  position: absolute;
  right: 16px;
  color: var(--gold);
  content: "+";
  font-size: 18px;
}

.archive-item {
  position: relative;
}

.archive-item[open] summary::after {
  content: "−";
}

.archive-bids {
  display: grid;
  gap: 9px;
  padding: 0 10px 10px;
}

.archive-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 12px;
}

.archive-actions span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.resume-auction {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #9b773f;
  background: #a17f48;
  color: white;
  cursor: pointer;
  font: 700 9px Manrope, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resume-auction:hover {
  background: #94723e;
}

.archive-bid-row {
  background: rgba(255, 255, 255, 0.24);
}

.crm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 23px;
}

.crm-stats div {
  padding: 16px;
  background: rgb(197, 197, 197);
}

.crm-stats span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crm-stats b {
  font: 500 30px "Playfair Display", serif;
}

.lead-table {
  overflow: auto;
  border-top: 1px solid var(--line);
}

.lead-row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1fr 0.8fr;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.table-title {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-row i {
  color: #61755f;
  font-style: normal;
}

.requests-table {
  margin-top: 24px;
}

.lead-message {
  color: var(--muted);
  line-height: 1.45;
}

.empty-lead-row {
  display: block;
  color: var(--muted);
}

/* ================================================================
   10. Загрузка фотографий в админке
   ================================================================ */

.photo-manager {
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.photo-manager h3 {
  margin: 0 0 16px;
  font: 500 24px "Playfair Display", serif;
}

.photo-manager form {
  display: block;
}

.photo-manager input[type="file"] {
  max-width: 100%;
  font-size: 12px;
}

.file-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.photo-manager form .button {
  margin-top: 14px;
}

.upload-progress {
  margin-top: 15px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: #d8d3c8;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.2s ease;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 160px);
  gap: 14px;
  margin-top: 17px;
}

.image-item {
  position: relative;
  aspect-ratio: 1;
  background: #ddd;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 32, 26, 0.76);
  color: white;
  cursor: pointer;
}

.reveal-form {
  display: grid;
  gap: 20px;
  max-width: 620px;
  padding: 23px;
  background: rgba(255, 253, 249, 0.38);
}

.reveal-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.reveal-toggle input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.reveal-toggle b,
.reveal-toggle small {
  display: block;
}

.reveal-toggle b {
  font-size: 12px;
}

.reveal-toggle small,
.reveal-status {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.reveal-interval {
  display: grid;
  gap: 7px;
  max-width: 280px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal-interval span {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.reveal-interval input {
  width: 100%;
  padding: 11px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  color: var(--ink);
  font: 13px Manrope, sans-serif;
}

.reveal-segments-input,
.reveal-manual-open {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.reveal-segments-input input,
.reveal-manual-open input {
  width: 58px;
  padding: 9px;
  border: 1px solid #d5d0c5;
  background: #fffdf9;
  color: var(--ink);
  font: 13px Manrope, sans-serif;
}

.reveal-manual-open {
  justify-content: space-between;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.reveal-manual-open label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.reveal-manual-open .link-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.reveal-time-inputs label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.reveal-status {
  margin: -3px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.reveal-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.name-reveal-divider {
  height: 1px;
  margin: 34px 0 30px;
  background: var(--line);
}

.name-reveal-heading {
  margin: 0 0 17px;
  font: 500 24px "Playfair Display", serif;
}

.reveal-actions .button.dark {
  margin: 0;
}

/* ================================================================
   11. Адаптация под мобильные устройства
   ================================================================ */

@media (max-width: 760px) {
  .wrap,
  .admin-wrap {
    width: calc(100% - 32px);
  }

  .header {
    height: 68px;
  }

  .header .brand,
  .header .brand-logo {
    width: 113px;
    height: 74px;
  }

  .header .brand {
    margin-left: -47px;
  }

  .header-question {
    min-height: 34px;
    font-size: 8px;
  }

  .header-interest {
    display: inline-flex;
    position: absolute;
    top: 50%;
    left: calc(50% - 12px);
    z-index: 1;
    min-height: 34px;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: 700 11px Manrope, sans-serif;
    letter-spacing: 0.04em;
    text-transform: none;
    transform: translate(-50%, -50%) translateY(3px);
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .header-interest:hover,
  .header-interest:focus-visible {
    color: #11130f;
    outline: none;
  }

  .header nav {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px 0 14px;
  }

  .hero-copy {
    order: 2;
  }

  .product-stage {
    order: 1;
    min-height: 350px;
    margin: 0 0 28px;
  }

  .product-slider {
    height: 350px;
  }

  .lead {
    width: auto;
    margin: 22px 0 0;
  }

  .product-meta {
    margin-top: 46px;
  }

  .scroll-hint {
    display: none;
  }

  .details,
  .sale,
  .trust {
    padding: 24px 0 71px;
  }

  .details,
  .sale-grid,
  .dashboard-grid {
    display: block;
  }

  .details #salePanel {
    margin-top: 28px;
  }

  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 18px;
    padding: 8px;
  }

  .admin-sidebar a {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .bids-manager {
    padding: 0 18px 20px;
  }

  .archives-manager {
    padding: 0 18px 20px;
  }

  .archives-manager > summary {
    min-height: 62px;
    font-size: 24px;
  }

  .bids-manager summary {
    min-height: 62px;
    font-size: 24px;
  }

  .bid-row {
    display: grid;
  }

  .bid-info {
    min-width: 0;
    text-align: left;
  }

  .image-card {
    height: 380px;
  }

  .specs {
    padding-top: 54px;
  }

  .specs h2,
  .sale h2 {
    font-size: 46px;
  }

  .sale-note {
    margin-bottom: 40px;
  }

  .request-card {
    padding: 24px 18px;
  }

  .request-card strong {
    font-size: 44px;
  }

  .contact-request-top {
    position: relative;
    display: block;
  }

  .contact-request-top h3 {
    padding-top: 23px;
    transform: none;
  }

  .contact-request-top .status {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }

  .input-row {
    display: block;
  }

  .input-row input,
  .input-row select {
    width: 100%;
    height: 48px;
    margin-bottom: 10px;
    border-right: 1px solid #cfcbc0;
  }

  .input-row .button {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer p {
    width: 100%;
    order: 3;
  }

  .admin-header {
    padding: 0 16px;
  }

  .admin-header span {
    display: none;
  }

  .admin-wrap {
    padding: 40px 0;
  }

  .admin-login {
    padding: 28px;
  }

  .admin-login h1,
  .dashboard-title h1 {
    font-size: 43px;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .auction-end-row {
    grid-template-columns: 1fr;
  }

  .auction-finish-button {
    width: 100%;
  }

  .characteristic-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) auto auto;
  }

  .characteristic-row-base {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .product-characteristics dl div {
    min-height: 76px;
  }

  .product-characteristics dl {
    grid-template-columns: 1fr;
  }

  .photo-manager form {
    display: block;
  }

  .photo-manager form .button {
    margin-top: 12px;
  }

  .image-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 160px));
  }

  .reveal-interval span {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slider-control {
    width: 54px;
    height: auto;
  }

  .slider-control img {
    height: 50px;
  }

  .lead-row {
    grid-template-columns: 1fr 1fr;
  }

  .table-title span:nth-child(3),
  .table-title span:nth-child(4) {
    display: none;
  }
}
