:root {
  --bg: #f1f5f9;
  --bg-panel: #ffffff;
  --panel-strong: #ffffff;
  --panel-soft: #f8fafc;
  --text: #020617;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #000000;
  --brand-dark: #000000;
  --accent: #4f46e5;
  --success: #34c759;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
  --radius-xl: 34px;
  --radius-lg: 27px;
  --radius-md: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before,
body::after {
  content: none;
}

body::before {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(10, 132, 255, 0.18) 55%, transparent 72%);
}

body::after {
  width: 240px;
  height: 240px;
  left: 2%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(94, 92, 230, 0.16) 58%, transparent 76%);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1160px, calc(100% - 96px));
  margin: 0 auto;
  padding: 22px 0 60px;
  position: relative;
  z-index: 1;
}

.topbar,
.hero,
.works-section,
.configurator-section,
.contacts-section,
.page-content > *,
.admin-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 22px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 12px;
  z-index: 30;
  overflow: visible;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand > span {
  min-width: 0;
}

.brand strong,
.hero h1,
.section-heading h2,
.page-heading h1,
.order-summary h2 {
  font-family: "Inter", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.brand strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #000000;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.mobile-nav {
  display: none;
}

.mobile-nav-toggle {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.nav a {
  color: var(--muted);
  transition: color 0.22s ease, opacity 0.22s ease;
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.nav a:hover {
  color: var(--text);
}

.cart-link {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 44px;
  background: #000000;
  color: #ffffff !important;
  padding: 0;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  letter-spacing: 0;
}

.cart-link::before {
  content: "";
  width: 22px;
  height: 22px;
  background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 8.5h12l-1 9.3a2 2 0 0 1-2 1.7H9a2 2 0 0 1-2-1.7L6 8.5Z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 9V7a3 3 0 1 1 6 0v2' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cart-link > span {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 0.42rem;
  font-weight: 900;
  line-height: 1;
}

.hero,
.works-section,
.configurator-section,
.contacts-section,
.page-content > section,
.order-summary,
.cart-items,
.admin-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero {
  margin-top: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 32px;
  overflow: hidden;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.52rem;
  font-weight: 900;
  color: var(--muted);
  margin: 0 0 10px;
}

.hero h1,
.section-heading h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.0;
  letter-spacing: -0.08em;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
}

.hero-text {
  max-width: 640px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 16px 0 0;
  line-height: 1.6;
  font-weight: 600;
}

.hero-actions,
.hero-metrics {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.5rem;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
}

.button-primary {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: none;
}

.button-secondary {
  background: #ffffff;
  color: var(--text);
  border: 2px solid #dbe2ea;
  box-shadow: none;
}

.button-block {
  width: 100%;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.hero-metrics li {
  min-width: 130px;
  padding: 15px 17px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-metrics strong {
  display: block;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-metrics span,
.section-heading p,
.work-card p,
.price-box p,
.form-note,
.preview-caption span,
.contact-card span,
.summary-row span,
.admin-order small,
.empty-state,
.checkout-item small {
  color: var(--muted);
}

.hero-stage {
  position: relative;
  min-height: 480px;
}

.sample-frame {
  position: absolute;
  border-radius: 28px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.frame-tall {
  inset: 0 auto 38px 18px;
  width: 58%;
}

.frame-wide {
  right: 0;
  bottom: 0;
  width: 56%;
}

.frame-art {
  border-radius: 24px;
  min-height: 260px;
}

.art-aurora {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("./images/20x30.webp") center / cover no-repeat;
}

.art-industrial {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/30x40.webp") center / cover no-repeat;
}

.frame-note {
  color: var(--text);
  padding: 14px 6px 2px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.works-section,
.configurator-section,
.contacts-section,
.info-section,
.page-content > section {
  margin-top: 28px;
  padding: 34px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  max-width: 820px;
}

.works-grid,
.contacts-grid,
.info-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.work-card,
.contact-card,
.info-card,
.stat-card,
.admin-order {
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 15px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.work-card:hover,
.contact-card:hover,
.info-card:hover,
.stat-card:hover,
.admin-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.work-art {
  height: 420px;
  border-radius: 28px;
  margin-bottom: 16px;
}

.work-1 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/40x60.webp") center / cover no-repeat;
}

.work-2 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/60x80.webp") center / cover no-repeat;
}

.work-3 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, #174141, #7ab6aa 46%, #f5cb7e);
}

.work-4 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/20x30.webp") center / cover no-repeat;
}

.work-5 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/30x40.webp") center / cover no-repeat;
}

.work-6 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/40x60.webp") center / cover no-repeat;
}

.work-7 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/60x80.webp") center / cover no-repeat;
}

.work-8 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/krep.png") center / cover no-repeat;
}

.work-9 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    url("./images/sizes.png") center / cover no-repeat;
}

.configurator-layout,
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.68fr);
  gap: 28px;
  margin-top: 24px;
}

.config-panel,
.checkout-form {
  display: grid;
  gap: 20px;
}

@media (min-width: 981px) {
  .configurator-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  }
}

.checkout-section {
  display: grid;
  gap: 22px;
  padding: 28px 32px 32px;
  background: #ffffff;
  border: 1px solid #e5ebf2;
  border-radius: 36px;
  box-shadow: 0 18px 44px rgba(148, 163, 184, 0.18);
}

.checkout-section-head {
  padding-bottom: 16px;
  border-bottom: 1px solid #e8edf4;
}

.checkout-section-head h2 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-section-head h2 span {
  margin-right: 8px;
}

.checkout-fields {
  display: grid;
  gap: 15px;
}

.pickup-note {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #dce4ee;
}

.pickup-note strong {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pickup-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.checkout-fields-two,
.checkout-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.upload-zone {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: none;
}

.upload-zone input {
  display: none;
}

.choice-grid,
.stacked-options {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.scene-grid {
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 12px;
}

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

.choice-card,
.option-card {
  border: 2px solid #dce4ee;
  background: #ffffff;
  border-radius: 20px;
  padding: 17px 15px;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.choice-card:hover,
.option-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(88, 117, 188, 0.1);
}

.choice-card.active,
.option-card.active {
  border-color: #000000;
  outline: none;
  background: #ffffff;
}

.choice-card strong,
.option-card strong {
  display: block;
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.choice-card small,
.option-card small {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 800;
}

.scene-card {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 24px rgba(88, 117, 188, 0.1);
}

.scene-card strong,
.scene-card small {
  display: none;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.scene-card[data-scene="gallery"]::before {
  background: url("./images/gallery.jpg") center / cover no-repeat;
}

.scene-card[data-scene="sunset"]::before {
  background: url("./images/sunset.jpg") center / cover no-repeat;
}

.scene-card[data-scene="midnight"]::before {
  background: url("./images/midnight.jpg") center / cover no-repeat;
}

.scene-card[data-scene="forest"]::before {
  background: url("./images/forest.jpg") center / cover no-repeat;
}

.scene-card.active {
  transform: scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 4px rgba(10, 132, 255, 0.12),
    0 12px 28px rgba(88, 117, 188, 0.14);
}

.price-box,
.preview-panel,
.order-summary {
  padding: 18px;
}

.price-box {
  border-radius: var(--radius-lg);
  background: #4f46e5;
  border: 0;
  box-shadow: none;
}

.price-box strong {
  font-size: 2rem;
  color: #ffffff;
}

.price-box span,
.price-box p {
  color: rgba(255, 255, 255, 0.72);
}

.price-box p {
  font-size: 0.78rem;
  line-height: 1.45;
}

.preview-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

.room-scene {
  min-height: 520px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(180deg, #dfe9f8 0%, #f9fbff 62%, #d6dde8 62%, #c6cfdd 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.room-scene[data-scene="gallery"] {
  background: url("./images/gallery.jpg") center / cover no-repeat;
}

.room-scene[data-scene="sunset"] {
  background: url("./images/sunset.jpg") center / cover no-repeat;
}

.room-scene[data-scene="midnight"] {
  background: url("./images/midnight.jpg") center / cover no-repeat;
}

.room-scene[data-scene="forest"] {
  background: url("./images/forest.jpg") center / cover no-repeat;
}

.room-scene::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 24%;
  height: 16px;
  background: rgba(65, 91, 163, 0.12);
  filter: blur(14px);
}

.preview-frame {
  width: var(--frame-width, 180px);
  height: var(--frame-height, 270px);
  max-width: min(70vw, 380px);
  max-height: 70%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: 0 30px 70px rgba(73, 102, 179, 0.18);
  position: relative;
  transition: width 0.25s ease, height 0.25s ease;
  overflow: hidden;
}

.preview-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 28%);
  pointer-events: none;
  z-index: 1;
}

.preview-frame img,
.preview-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.preview-frame img {
  display: none;
  position: absolute;
  max-width: none;
  max-height: none;
  border-radius: 0;
  transform-origin: center center;
  cursor: grab;
}

.preview-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(225, 236, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
}

.crop-modal {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  box-shadow: 0 30px 100px rgba(37, 57, 120, 0.3);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding: 24px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.32);
  display: grid;
  place-items: center;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.crop-modal-head,
.crop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.crop-modal-head small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.crop-stage-wrap {
  margin-top: 18px;
  border-radius: 24px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.crop-stage {
  width: min(100%, 620px);
  height: min(64vh, 520px);
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(180deg, #edf3fe 0%, #fafcff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  touch-action: none;
}

.crop-stage img {
  position: absolute;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
}

.crop-stage.is-dragging img,
.preview-frame.is-dragging img {
  cursor: grabbing;
}

.crop-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.78), inset 0 0 0 10px rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.crop-controls {
  margin-top: 18px;
}

.crop-actions {
  margin-top: 18px;
}

.preview-caption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

.contact-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: uppercase;
}

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

.info-card {
  display: grid;
  gap: 18px;
  min-height: 340px;
  padding: 34px 32px 28px;
  text-align: center;
  align-content: start;
}

.info-card h3 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 900;
}

.info-icon {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #3467df;
  background: #e8f0fc;
  border: 0;
  box-shadow: none;
  margin: 0 auto 18px;
}

.info-icon svg {
  width: 44px;
  height: 44px;
}

.info-intro {
  margin: 10px 0 0;
  color: #6780a3;
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}

.info-copy {
  margin: 0;
  color: #5c7395;
  font-size: 0.88rem;
  line-height: 1.6;
}

.info-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e8edf5;
  display: grid;
  gap: 10px;
}

.info-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.info-meta-row span,
.info-brands span {
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-meta-row strong {
  color: #020617;
  font-size: 0.86rem;
  font-weight: 900;
}

.info-brands {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: center;
  gap: 22px;
}

.info-card-delivery {
  background: #ffffff;
}

.info-card-delivery .info-icon:first-child {
  background: #e8f8ef;
  color: #16a34a;
}

.info-card-delivery + .info-card-delivery .info-icon:first-child {
  background: #e8f0fc;
  color: #3467df;
}

.info-card-accent {
  background: linear-gradient(180deg, #5b4df2 0%, #4b3fe0 100%);
  color: #ffffff;
  border: 0;
}

.info-card-accent:hover {
  background: linear-gradient(180deg, #5b4df2 0%, #4b3fe0 100%);
}

.info-card-accent h3,
.info-card-accent .info-copy,
.info-card-accent .info-brands span {
  color: #ffffff;
}

.info-card-accent .info-copy {
  opacity: 0.92;
}

.info-card-accent .info-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.info-section .section-heading {
  justify-content: center;
  text-align: center;
}

.info-section .section-heading > div {
  width: 100%;
}

.info-section .section-heading h2 {
  margin: 0 auto;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.page-content {
  margin-top: 22px;
}

.site-footer {
  margin-top: 28px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 22px;
}

.footer-brand strong,
.footer-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer-brand strong {
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.footer-brand p,
.footer-block p,
.footer-bottom p,
.footer-links a {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-block {
  display: grid;
  gap: 6px;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.page-heading h1 {
  font-size: clamp(1.02rem, 3.4vw, 1.7rem);
}

.cart-items,
.admin-panel {
  padding: 18px;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item,
.checkout-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.cart-thumb,
.checkout-thumb {
  width: 120px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
}

.cart-thumb {
  height: auto;
  aspect-ratio: 1 / 1;
}

.checkout-thumb {
  height: auto;
  aspect-ratio: 3 / 4;
}

.item-actions {
  display: flex;
  gap: 10px;
}

.ghost-button {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row.total {
  margin-top: 12px;
  padding-top: 18px;
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  align-items: end;
}

.order-summary {
  padding: 18px;
  background: #000000;
  color: #ffffff;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.24);
  height: fit-content;
  position: sticky;
  top: 32px;
}

.order-summary h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.05em;
}

.order-summary .button-primary {
  background: #facc15;
  color: #111827;
}

.order-summary .button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.order-summary .button + .button {
  margin-top: 10px;
}

.order-summary .summary-row span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.68rem;
  font-weight: 500;
}

.order-summary .summary-row strong {
  color: #ffffff;
  font-weight: 700;
}

.summary-free {
  color: #34d399 !important;
}

.order-summary .summary-row.total span {
  color: #94a3b8;
  font-size: 0.48rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.order-summary .summary-row.total strong {
  color: #facc15;
  font-size: clamp(1.24rem, 2.5vw, 1.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

input,
textarea {
  width: 100%;
  padding: 15px 17px;
  border-radius: 15px;
  border: 1px solid #d5dee9;
  background: #f8fafc;
  box-shadow: none;
  font-size: 0.92rem;
  color: #0f172a;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.checkout-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-item {
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-thumb {
  width: 72px;
  border-radius: 14px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.checkout-thumb::before {
  content: "Нет фото";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.38rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}

.checkout-thumb:has(.thumb-image)::before {
  content: none;
}

.checkout-item-copy {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
}

.checkout-item-copy strong {
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.checkout-item-copy small {
  color: #94a3b8;
  font-size: 0.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.checkout-item-price {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.thumb-image {
  position: absolute;
  max-width: none;
  max-height: none;
  left: 50%;
  top: 50%;
  transform-origin: center center;
}

.stats-grid {
  margin-top: 22px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
}

.admin-panel {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.admin-order {
  display: grid;
  gap: 16px;
}

.admin-order-head,
.admin-order-meta,
.admin-order-items,
.admin-order-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef2ff;
  border: 0;
  box-shadow: none;
}

.status-pill[data-status="new"] {
  background: rgba(177, 77, 40, 0.12);
}

.status-pill[data-status="processing"] {
  background: rgba(15, 91, 99, 0.12);
}

.status-pill[data-status="shipped"] {
  background: rgba(52, 111, 62, 0.12);
}

.status-pill[data-status="done"] {
  background: rgba(30, 27, 24, 0.12);
}

.admin-order-items {
  align-items: stretch;
}

.admin-order-item {
  min-width: 220px;
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-thumb {
  width: 88px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
}

.admin-order-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-download-link {
  width: fit-content;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.admin-download-link:hover {
  color: var(--accent);
}

.empty-state {
  padding: 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 980px) {
  .hero,
  .configurator-layout,
  .cart-layout,
  .checkout-layout,
  .contacts-grid,
  .info-grid,
  .works-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 360px;
  }

  .frame-wide {
    width: 48%;
  }

  .section-heading,
  .preview-caption {
    flex-direction: column;
    align-items: start;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
  }

  .nav {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .order-summary {
    position: static;
  }

  .checkout-fields-two,
  .checkout-options-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 36px, 1200px);
  }

  .topbar {
    gap: 10px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand strong {
    font-size: 0.98rem;
    white-space: nowrap;
    line-height: 1.05;
  }

  .brand small {
    display: none;
  }

  .nav {
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: relative;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--text);
    font-size: 0.48rem;
    letter-spacing: 0.14em;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-nav-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    padding: 10px;
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  .mobile-nav-list a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
  }

  .mobile-nav-list a:hover {
    background: #f8fafc;
  }

  .cart-link {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    letter-spacing: 0;
  }

  .cart-link::before {
    content: "";
    width: 22px;
    height: 22px;
    background: center / contain no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 8.5h12l-1 9.3a2 2 0 0 1-2 1.7H9a2 2 0 0 1-2-1.7L6 8.5Z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 9V7a3 3 0 1 1 6 0v2' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }

  .cart-link > span {
    position: absolute;
    right: 4px;
    top: 4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 0.42rem;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .hero,
  .works-section,
  .configurator-section,
  .contacts-section,
  .info-section,
  .page-content > section,
  .cart-items,
  .order-summary,
  .admin-panel {
    padding: 22px;
  }

  .site-footer {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .checkout-section {
    padding: 24px 22px 26px;
    border-radius: 30px;
    gap: 18px;
  }

  .checkout-section-head {
    padding-bottom: 16px;
  }

  .checkout-section-head h2 {
    font-size: 0.92rem;
  }

  .field-label {
    font-size: 0.64rem;
  }

  .option-card {
    padding: 16px 14px;
  }

  .option-card strong {
    font-size: 0.78rem;
  }

  .option-card small {
    font-size: 0.7rem;
  }

  input,
  textarea {
    padding: 16px 16px;
    font-size: 0.95rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .item-actions {
    flex-wrap: wrap;
  }

  .crop-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    padding: 16px;
    border-radius: 24px;
    overflow-x: hidden;
  }

  .crop-stage-wrap {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
  }

  .crop-stage {
    width: min(100%, 280px);
    height: min(52vh, 360px);
    border-radius: 18px;
  }

  .crop-controls,
  .crop-controls .field-group,
  .crop-controls .choice-grid,
  .crop-controls input[type="range"] {
    min-width: 0;
    max-width: 100%;
  }

  .crop-modal-head,
  .crop-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
