/* ═══ Galina Potekhina — Luxury Design System ═══ */
:root {
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --off-white: #f5f2ec;
  --off-white-dark: #ebe6dc;
  --gold: #b8975a;
  --gold-muted: #9a7d4a;
  --text: #0d0d0d;
  --text-muted: #6b6560;
  --border: rgba(13, 13, 13, 0.12);
  --glass: rgba(245, 242, 236, 0.72);
  --transition: all 0.4s ease-in-out;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --radius: 100px;
  --radius-card: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; transition: var(--transition); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { --reveal-delay: 0.1s; }
.reveal-delay-2 { --reveal-delay: 0.2s; }
.reveal-delay-3 { --reveal-delay: 0.3s; }
.reveal-delay-4 { --reveal-delay: 0.4s; }
.reveal-delay-5 { --reveal-delay: 0.5s; }

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--text);
  flex-shrink: 0;
  max-width: 220px;
}

.logo-link:hover { opacity: 0.85; }

.logo-link:hover .logo-frame {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 108, 0.25), 0 4px 16px rgba(26, 26, 26, 0.08);
}

/* ─── Logo frame ─── */
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 168, 108, 0.65);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(201, 168, 108, 0.12);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-frame--xs {
  padding: 4px;
  border-radius: 10px;
}

.logo-frame--sm {
  padding: 6px 8px;
  border-radius: 14px;
}

.logo-frame--hero-scale {
  padding: 18px 22px;
  border-radius: 14px;
}

.logo-frame--round {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.logo-frame--round .logo-ornament {
  display: none;
}

.logo-frame--round .logo-img {
  height: 58px;
  width: 58px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(201, 168, 108, 0.85),
    0 0 16px rgba(201, 168, 108, 0.35),
    0 4px 12px rgba(13, 13, 13, 0.15);
  filter: none;
}

.logo-frame--round.logo-frame--hero-scale .logo-img {
  height: min(300px, 62vw);
  width: min(300px, 62vw);
  max-width: min(300px, 62vw);
  border-radius: 50%;
  object-fit: cover;
}

.logo-frame--round.logo-frame--about .logo-img {
  height: min(280px, 65vw);
  width: min(280px, 65vw);
  max-width: min(280px, 65vw);
}

.footer-brand .logo-frame--round .logo-img {
  height: 72px;
  width: 72px;
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.logo-frame--hero-scale .logo-img {
  height: min(280px, 58vw);
  max-width: min(420px, 88vw);
}

.logo-text {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.nav-admin { color: var(--gold-muted) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: var(--transition);
}

.inline-form { display: inline; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  color: var(--black);
  transition: var(--transition);
}

.btn-luxury {
  border-color: var(--black);
  background: var(--black);
  color: var(--off-white);
}

.btn-luxury:hover {
  background: transparent;
  color: var(--black);
  transform: scale(1.02);
  opacity: 0.92;
}

.btn-outline {
  border-color: var(--black);
  background: transparent;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--off-white);
}

.btn-ghost {
  border: none;
  padding: 8px 0;
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover { color: var(--gold); }

.btn-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--off-white);
}

.btn-gold:hover {
  background: var(--gold-muted);
  border-color: var(--gold-muted);
}

.btn-danger { background: #8b3a3a; border-color: #8b3a3a; color: #fff; }
.btn-danger:hover { background: #6d2e2e; border-color: #6d2e2e; color: #fff; }

.btn-delete-photo { min-width: 120px; }

.admin-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-actions-cell {
  white-space: nowrap;
}

.admin-actions-cell form { display: inline-block; margin-right: 6px; }

.row-muted { opacity: 0.55; }

.mb-lg { margin-bottom: 40px; }
.btn-sm { padding: 10px 20px; font-size: 0.62rem; }
.btn-lg { padding: 18px 44px; font-size: 0.72rem; }
.btn-block { width: 100%; }

/* ─── Cookie consent ─── */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  padding: 16px;
  background: rgba(13, 13, 13, 0.94);
  border-top: 1px solid rgba(184, 151, 90, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-consent__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cookie-consent__text {
  color: rgba(245, 242, 236, 0.92);
  font-size: 0.82rem;
  line-height: 1.55;
}

.cookie-consent__text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: #d7b77a;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-consent .btn {
  min-height: 42px;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  background-size: cover;
  background-position: center;
}

.hero-bg--pattern {
  background-image:
    linear-gradient(to bottom, rgba(245, 242, 236, 0.88) 0%, rgba(245, 242, 236, 0.94) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(184, 151, 90, 0.03) 12px,
      rgba(184, 151, 90, 0.03) 13px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(13, 13, 13, 0.02) 12px,
      rgba(13, 13, 13, 0.02) 13px
    );
}

.hero-bg[style*="--hero-bg-url"] {
  background-image:
    linear-gradient(to bottom, rgba(245, 242, 236, 0.82) 0%, rgba(245, 242, 236, 0.92) 100%),
    var(--hero-bg-url);
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(184, 151, 90, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.hero-logo-wrap {
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 18px;
  overflow: visible;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 184, 122, 0.42) 0%, rgba(212, 184, 122, 0.12) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: logoAura 4s ease-in-out infinite alternate;
}

@keyframes logoAura {
  from { opacity: 0.75; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.04); }
}

.hero-logo-circle {
  position: relative;
  z-index: 1;
  display: block;
  height: min(300px, 62vw);
  width: min(300px, 62vw);
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  box-shadow:
    0 0 0 3px rgba(201, 168, 108, 0.9),
    0 0 28px rgba(201, 168, 108, 0.5),
    0 0 56px rgba(201, 168, 108, 0.22),
    0 10px 36px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.hero-eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--gold-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.hero-btn-outline {
  border-color: var(--gold-muted);
  color: var(--text);
}

.hero-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184, 151, 90, 0.06);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  pointer-events: none;
}

.hero-scroll-hint.reveal {
  transform: translateY(28px);
}

.hero-scroll-hint.reveal.visible {
  transform: translateY(0);
}

.hero-scroll-hint span {
  display: block;
  width: 100%;
  text-align: center;
}

.hero-scroll-hint i {
  display: block;
  width: 1px;
  height: 40px;
  margin: 0 auto;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── Sections ─── */
.section { padding: 120px 0; }

.section-head {
  margin-bottom: 64px;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.ornament-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.ornament-line--center { margin: 0 auto; }

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 10px 32px;
}

.section-divider-line {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
}

.section-divider-line:first-child {
  background: linear-gradient(to right, transparent, rgba(184, 151, 90, 0.55));
}

.section-divider-line:last-child {
  background: linear-gradient(to left, transparent, rgba(184, 151, 90, 0.55));
}

.section-divider-diamond {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.gallery-section { background: var(--off-white-dark); }
.about-section { background: var(--off-white); }
.rental-section {
  position: relative;
  background: linear-gradient(180deg, #e8e2d6 0%, #ddd5c8 100%);
  border-top: 1px solid rgba(184, 151, 90, 0.35);
}
.rental-section-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(200px, 40vw);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contacts-section { background: var(--off-white); }

/* ─── Gallery ─── */
.gallery-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
  gap: 0;
}

.gallery-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
  gap: 40px 32px;
}

.gallery-grid--collection {
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.gallery-grid--editorial {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 36px;
}

.gallery-grid--rental {
  margin-top: 48px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-card--wide {
  grid-column: 1 / -1;
}

.gallery-card--wide .gallery-img-wrap {
  aspect-ratio: 21/9;
  max-height: 520px;
}

.gallery-card--lux .gallery-photo-frame {
  background: #fff;
  border: 1px solid rgba(184, 151, 90, 0.55);
  box-shadow:
    0 4px 20px rgba(13, 13, 13, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.gallery-card--lux:hover .gallery-photo-frame {
  box-shadow:
    0 16px 48px rgba(13, 13, 13, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}

.gallery-card--lux {
  transition: var(--transition);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 32px;
}

.gallery-card { background: transparent; }

.gallery-photo-frame {
  padding: 8px;
  background: linear-gradient(145deg, #f8f4ec 0%, #ebe3d4 100%);
  border: 1px solid var(--gold-muted);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 8px 24px rgba(13, 13, 13, 0.08);
  transition: var(--transition);
}

.gallery-card:hover .gallery-photo-frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 12px 32px rgba(13, 13, 13, 0.12);
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  background: var(--off-white-dark);
  border: 1px solid var(--gold);
  outline: none;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 24px;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.06); }

.gallery-overlay-info {
  text-align: center;
  color: var(--off-white);
  transform: translateY(12px);
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-overlay-info { transform: translateY(0); }

.gallery-overlay-info h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 8px;
  color: var(--off-white);
}

.gallery-overlay-info .gallery-price {
  color: var(--gold);
  font-size: 1.15rem;
}

.gallery-overlay-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--off-white);
}

.gallery-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.gallery-card-title a {
  color: inherit;
  text-decoration: none;
}

.gallery-card-title a:hover {
  color: var(--gold);
}

.gallery-card-body--mobile { padding: 24px 4px 0; }

.gallery-card-body--visible {
  display: block;
  text-align: center;
  padding-top: 28px;
}

@media (min-width: 901px) {
  .gallery-card-body--mobile:not(.gallery-card-body--visible) {
    display: none;
  }
}

.gallery-overlay-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-on-dark {
  border-color: rgba(245, 242, 236, 0.8);
  color: var(--off-white);
}

.btn-on-dark:hover {
  background: var(--off-white);
  color: var(--black);
}

.gallery-card-body { padding: 24px 4px 0; }

.gallery-card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.gallery-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.gallery-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-muted);
}

/* ─── Contacts ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.contact-card {
  background: var(--off-white);
  padding: 48px 36px;
  transition: var(--transition);
}

.contact-card:hover { background: var(--off-white-dark); }

.contact-num {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold-muted);
  display: block;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.contact-phone {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 12px;
}

.contact-phone:hover { color: var(--gold); }

.contact-note { color: var(--text-muted); font-size: 0.85rem; }

.social-links { display: flex; flex-direction: column; gap: 10px; }

.social-links-lg { align-items: flex-start; }

.social-btn {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  padding-left: 8px;
}

.social-placeholder { color: var(--text-muted); font-size: 0.85rem; font-style: italic; }

/* ─── Rental ─── */
.rental-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.rental-card {
  background: var(--off-white);
  padding: 48px 36px;
  transition: var(--transition);
}

.rental-card:hover { background: var(--off-white-dark); }

.rental-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.rental-cta { margin-top: 8px; }

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.about-photo-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid rgba(184, 151, 90, 0.55);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(13, 13, 13, 0.1);
}

.logo-frame--about {
  padding: 18px 24px;
  border-radius: 14px;
}

.about-studio-logo {
  display: block;
  height: min(360px, 48vw);
  max-width: min(420px, 92vw);
  width: auto;
  object-fit: contain;
  object-position: center;
}

.about-content { display: flex; flex-direction: column; gap: 32px; }

.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ─── Author ─── */
.author-section {
  background:
    linear-gradient(180deg, #f7f3ec 0%, #efe8dc 100%);
  border-top: 1px solid rgba(184, 151, 90, 0.18);
  border-bottom: 1px solid rgba(184, 151, 90, 0.18);
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1.15fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.author-photo-frame {
  margin: 0;
  padding: 10px;
  background: linear-gradient(145deg, #fbf8f2 0%, #efe6d7 100%);
  border: 1px solid rgba(184, 151, 90, 0.55);
  box-shadow:
    0 18px 48px rgba(13, 13, 13, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.author-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid rgba(184, 151, 90, 0.35);
  background: #ebe4d8;
}

.section-head--left {
  text-align: left;
  margin-bottom: 28px;
}

.section-head--left .ornament-line,
.section-head--left .ornament-line--center {
  margin-left: 0;
}

.author-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--gold-muted);
  margin: 0;
  font-style: italic;
}

.author-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.author-text p:last-child {
  margin-bottom: 0;
}

.author-sign {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--black);
  letter-spacing: 0.02em;
}

.author-photo-caption {
  margin: 12px 4px 2px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.author-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.author-seo-links a {
  color: var(--gold-muted);
  border-bottom: 1px solid transparent;
}

.author-seo-links a:hover {
  color: var(--gold);
  border-bottom-color: rgba(184, 151, 90, 0.55);
}

.about-features { display: flex; flex-direction: column; gap: 20px; }

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-feature span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold-muted);
  flex-shrink: 0;
  padding-top: 4px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-step--line::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-muted), rgba(184, 151, 90, 0.2));
  transform: translateX(18px);
  pointer-events: none;
}

.timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
  margin-bottom: 12px;
  background: var(--off-white);
}

.timeline-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.messenger-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.contacts-single {
  max-width: 560px;
  margin: 0 auto;
}

.contact-card--centered {
  text-align: center;
  padding: 56px 40px;
}

.contact-card--soft {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 60px) clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow:
    0 8px 32px rgba(13, 13, 13, 0.06),
    0 0 0 1px rgba(184, 151, 90, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card--soft:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 48px rgba(13, 13, 13, 0.08),
    0 0 0 1px rgba(184, 151, 90, 0.18);
}

.contact-card--soft h3 {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-card--soft .contact-note {
  margin-top: 8px;
  line-height: 1.6;
}

.contact-address {
  margin: 0 0 24px;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-map-link {
  margin: -12px 0 28px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-map-link a {
  color: var(--gold-muted);
  border-bottom: 1px solid rgba(184, 151, 90, 0.35);
}

.contact-map-link a:hover {
  color: var(--gold);
}

.contact-card--soft .social-icon-row {
  margin-top: 32px;
}

.contact-card--centered .contact-num,
.contact-card--centered .contact-note,
.contact-card--centered .contact-hint {
  margin-left: auto;
  margin-right: auto;
}

.contact-hint {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.social-icon-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: stretch;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 82px;
  min-width: 82px;
  height: 88px;
  padding: 10px 8px 12px;
  border: 1px solid rgba(184, 151, 90, 0.18);
  border-radius: 22px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 242, 236, 0.96) 100%);
  box-shadow:
    0 10px 28px rgba(13, 13, 13, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 48%);
  pointer-events: none;
}

.social-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 8px 18px rgba(13, 13, 13, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.social-icon svg {
  width: 21px;
  height: 21px;
}

.social-icon-vk-mark {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  transform: translateY(1px);
}

.social-icon-label {
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(13, 13, 13, 0.72);
  font-weight: 600;
}

.social-icon--inactive {
  opacity: 0.72;
  cursor: default;
}

.social-icon--wa { border-color: rgba(37, 211, 102, 0.2); }
.social-icon--tg { border-color: rgba(34, 158, 217, 0.2); }
.social-icon--ig { border-color: rgba(193, 53, 132, 0.2); }
.social-icon--max { border-color: rgba(107, 78, 255, 0.2); }
.social-icon--vk { border-color: rgba(0, 119, 255, 0.2); }
.social-icon--wa .social-icon-badge { background: linear-gradient(135deg, #34d97b 0%, #1fb35d 100%); }
.social-icon--tg .social-icon-badge { background: linear-gradient(135deg, #36b9f1 0%, #178fca 100%); }
.social-icon--ig .social-icon-badge { background: linear-gradient(135deg, #f77737 0%, #c13584 55%, #6f39c7 100%); }
.social-icon--max .social-icon-badge { background: linear-gradient(135deg, #7a63ff 0%, #5a3ff5 100%); }
.social-icon--vk .social-icon-badge { background: linear-gradient(135deg, #2787f5 0%, #0067dd 100%); }
.social-icon--max svg { fill: none; }

.social-icon:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 34px rgba(13, 13, 13, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.social-icon--wa:hover { border-color: rgba(37, 211, 102, 0.42); }
.social-icon--tg:hover { border-color: rgba(34, 158, 217, 0.42); }
.social-icon--ig:hover { border-color: rgba(193, 53, 132, 0.42); }
.social-icon--max:hover { border-color: rgba(107, 78, 255, 0.42); }
.social-icon--vk:hover { border-color: rgba(0, 119, 255, 0.42); }

.subsection-title-sm {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 16px 0 12px;
  color: var(--gold-muted);
}

.progress-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.progress-photo-item {
  margin: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.progress-photo-item figcaption {
  font-size: 0.75rem;
  padding: 6px 8px;
  color: var(--text-muted);
}

.gallery-edit-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: start;
}

.gallery-edit-prices { display: flex; flex-direction: column; gap: 6px; }

.gallery-edit-flags { display: flex; flex-direction: column; gap: 6px; }

.gallery-edit-actions { display: flex; flex-direction: column; gap: 6px; }

.input-sm {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: var(--off-white);
}

.admin-progress-photos { margin-bottom: 20px; }

.bonus-info { list-style: none; margin: 20px 0 28px; }

.bonus-info li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--black);
  color: rgba(245, 242, 236, 0.7);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px 32px;
  align-items: start;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-nav a {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 242, 236, 0.65);
}

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

.footer-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-brand .logo-frame { margin: 0 auto 16px; }

.footer-brand p { font-size: 0.8rem; letter-spacing: 0.1em; }

.footer-phone {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}

.footer-contacts .social-icon-row {
  justify-content: center;
  margin-top: 16px;
}

.footer-contacts .social-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 242, 236, 0.15);
}

.footer-contacts .social-icon-label { color: rgba(245, 242, 236, 0.5); }

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  opacity: 0.45;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 242, 236, 0.08);
}

.footer-legal {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
  opacity: 0.7;
}

.footer-legal a {
  color: rgba(245, 242, 236, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--gold);
}

.meta-disclaimer {
  margin: 10px auto 0;
  max-width: 28rem;
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(245, 242, 236, 0.42);
  text-align: center;
}

.contact-card .meta-disclaimer {
  color: rgba(26, 26, 26, 0.45);
  margin-top: 12px;
}

/* ─── Mobile contact bar ─── */
.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  padding: 12px 16px;
  gap: 10px;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184, 151, 90, 0.3);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.mobile-contact-btn {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(245, 242, 236, 0.25);
  color: var(--off-white);
  border-radius: var(--radius);
}

.mobile-contact-btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--off-white);
}

/* ─── Auth drawer (боковая панель справа) ─── */
.auth-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.4s ease;
}

.auth-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.auth-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.auth-drawer.open .auth-drawer-backdrop {
  opacity: 1;
}

.auth-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: min(420px, 92vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--off-white);
  padding: 48px 36px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  z-index: 10001;
}

.auth-drawer.open .auth-drawer-panel {
  transform: translateX(0);
}

.auth-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: var(--transition);
  z-index: 2;
}

.auth-drawer-close:hover { color: var(--black); }

.auth-drawer-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-muted);
  margin-bottom: 12px;
}

.auth-drawer-head h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.auth-drawer-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.auth-drawer-error {
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.auth-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  background: none;
  border: none;
  padding: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.auth-tab.active,
.auth-tab:hover {
  color: var(--black);
  border-bottom-color: var(--gold);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ─── Forms ─── */
.form { margin-top: 8px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  transition: var(--transition);
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ─── Auth pages ─── */
.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.auth-container { max-width: 440px; margin: 0 auto; }

.auth-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 48px 40px;
}

.auth-card h1 { text-align: center; font-size: 2rem; margin-bottom: 8px; }

.auth-note, .auth-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.ornament-line.center { margin: 16px auto; }

/* ─── Alerts ─── */
.alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  border: 1px solid;
}

.alert-error { background: #faf5f4; border-color: #dcc; color: #633; }
.alert-success { background: #f4f8f4; border-color: #cdc; color: #363; }
.alert-info { background: #f4f6f8; border-color: #cde; color: #456; }

.hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.empty-state { text-align: center; color: var(--text-muted); padding: 48px; }
.mt-lg { margin-top: 64px; }
.mt-md { margin-top: 32px; }

/* ─── Order pages ─── */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 100px;
  align-items: start;
}

.order-back { margin-bottom: 24px; grid-column: 1 / -1; }

.link-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.link-back:hover { color: var(--gold); }

.order-product img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.order-product h1 { font-size: 2rem; margin: 20px 0; }

.order-form-wrap { padding: 40px 0; }

.receipt-info {
  padding: 16px 0;
  margin-bottom: 24px;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.success-container { max-width: 520px; margin: 0 auto; text-align: center; padding-top: 120px; }

.success-card { padding: 48px; border: 1px solid var(--border); }

.success-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-actions { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ─── Dashboard ─── */
.dashboard-section { padding: 120px 0 80px; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.dashboard-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dash-nav-link {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.dash-nav-link:hover,
.dash-nav-link.active {
  color: var(--black);
  border-bottom-color: var(--gold);
}

.dashboard-block {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.dashboard-block h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.block-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

/* Loyalty card */
.account-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
}

.loyalty-card-compact .loyalty-card-inner { min-height: auto; padding: 24px 28px; }

.loyalty-card-inner {
  background: linear-gradient(145deg, #1a1814 0%, #0d0d0d 45%, #151210 100%);
  border: 1px solid rgba(184, 151, 90, 0.4);
  padding: 32px;
  color: var(--off-white);
  min-height: 220px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.loyalty-card-inner--premium::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(184, 151, 90, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.loyalty-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  pointer-events: none;
}

.loyalty-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.loyalty-logo {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.loyalty-brand {
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.loyalty-card-chip {
  width: 42px;
  height: 28px;
  background: linear-gradient(135deg, #c9a86c, #9a7d4a);
  border-radius: 4px;
  margin-bottom: 20px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.loyalty-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.loyalty-login {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 8px 0 16px;
  position: relative;
  z-index: 1;
}

.loyalty-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.balance-label { font-size: 0.65rem; opacity: 0.5; letter-spacing: 0.1em; }

.balance-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
}

.loyalty-expire { font-size: 0.65rem; opacity: 0.4; margin-top: 10px; }

.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 20px;
}

.info-list dt { color: var(--text-muted); font-size: 0.8rem; }

/* Measurements */
.measurements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Order progress */
.order-cards { display: flex; flex-direction: column; gap: 24px; }

.order-card {
  border: 1px solid var(--border);
  padding: 28px 32px;
  background: var(--off-white);
  transition: var(--transition);
}

.order-card:hover { border-color: var(--gold-muted); }

.order-card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.order-status { color: var(--gold-muted); }

.order-card h3 { font-size: 1.35rem; margin-bottom: 8px; }

.order-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

.progress-wrap {
  height: 2px;
  background: var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.8s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.progress-step {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.4;
  transition: var(--transition);
}

.progress-step.done { color: var(--gold-muted); opacity: 1; }

.progress-steps--icons {
  gap: 8px;
  margin-top: 8px;
}

.progress-steps--icons .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  opacity: 0.35;
}

.progress-steps--icons .progress-step.done {
  opacity: 1;
}

.progress-steps--icons .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--off-white);
  transition: var(--transition);
}

.progress-steps--icons .progress-step.done .step-icon {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184, 151, 90, 0.08);
}

.progress-steps--icons .step-label {
  font-size: 0.5rem;
  text-align: center;
  line-height: 1.2;
}

/* Fitting calendar */
.fitting-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calendar-widget {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--off-white);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cal-header button {
  background: none;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  cursor: pointer;
  transition: var(--transition);
}

.cal-header button:hover { border-color: var(--gold); color: var(--gold); }

.cal-header span {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-day-name {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.cal-day:hover:not(.disabled):not(.empty) {
  border-color: var(--gold);
}

.cal-day.selected {
  background: var(--black);
  color: var(--off-white);
}

.cal-day.disabled { opacity: 0.25; cursor: default; }
.cal-day.empty { cursor: default; }

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 24px;
}

.time-slot {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  font-family: var(--font-sans);
}

.time-slot:hover:not(.disabled) { border-color: var(--gold); }

.time-slot.selected {
  background: var(--black);
  color: var(--off-white);
  border-color: var(--black);
}

.time-slot.disabled {
  opacity: 0.3;
  cursor: default;
  text-decoration: line-through;
}

.fitting-selected {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fitting-list { margin-top: 16px; }

.fitting-item {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 400;
}

.row-expired { opacity: 0.45; }

.status {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-new, .status-pending { color: var(--gold-muted); }
.status-done { color: #4a6; }
.status-cancelled { color: #a44; }

/* ─── Admin (preserved) ─── */
.admin-section { background: var(--off-white); min-height: 80vh; padding-top: 100px; }

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.admin-nav a {
  padding: 8px 16px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.admin-nav a:hover,
.admin-nav a.active {
  border-color: var(--gold);
  color: var(--black);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-muted);
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.admin-form-card {
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 32px;
}

.admin-form-card h2 {
  font-size: 1.2rem;
  margin: 24px 0 16px;
  color: var(--gold-muted);
}

.admin-form-card h2:first-child { margin-top: 0; }

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.admin-gallery-item { border: 1px solid var(--border); overflow: hidden; background: var(--off-white); }
.admin-gallery-item.inactive { opacity: 0.5; }
.admin-gallery-item .gallery-photo-frame {
  margin: 12px;
  padding: 10px;
}
.admin-gallery-item .gallery-photo-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border: 2px solid var(--gold);
}
.admin-gallery-info { padding: 12px; }
.admin-gallery-info h3 { font-size: 1rem; }
.admin-actions { display: flex; gap: 8px; margin-top: 8px; }

.error-container { text-align: center; padding: 120px 0; }

/* ─── Responsive ─── */
.contacts-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .contacts-grid-2 { grid-template-columns: 1fr; }
}

.bonus-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 24px 28px;
  max-width: 520px;
}

.subsection-title {
  font-size: 0.68rem;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.order-card-full { padding: 32px; }

.order-stage-desc { color: var(--text-muted); margin-bottom: 8px; font-size: 0.9rem; }

.order-deadline, .order-admin-note {
  font-size: 0.875rem;
  margin-bottom: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.order-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-action-block {
  border: 1px solid var(--border);
  padding: 12px 16px;
}

.order-action-block summary {
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.warning-box {
  background: #faf6ef;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin: 12px 0;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  margin: 12px 0;
  cursor: pointer;
}

.btn-cancel { color: #a44 !important; }

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.bonus-form { margin-top: 16px; }

.request-box {
  background: var(--off-white-dark);
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
}

.request-box p { margin: 8px 0 12px; font-size: 0.9rem; }

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

@media (max-width: 900px) {
  .admin-two-col { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .rental-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head--left { text-align: center; }
  .author-sign { text-align: center; }
  .author-seo-links { justify-content: center; }
  .author-photo-frame { max-width: 420px; margin: 0 auto; }
  .process-timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline-step--line::after { display: none; }
  .gallery-grid--collection { grid-template-columns: 1fr; }
  .gallery-grid--duo,
  .gallery-grid--single,
  .gallery-grid--editorial,
  .gallery-grid--rental { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .gallery-card--wide { grid-column: auto; }
  .gallery-card--wide .gallery-img-wrap { aspect-ratio: 3/4; max-height: none; }
  .gallery-card-body--mobile { display: block; }
  .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(13,13,13,0.6), transparent 60%); }
  .gallery-overlay-info { transform: none; }
  .gallery-edit-grid { grid-template-columns: 1fr; }
  .mobile-contact-bar { display: flex; }
  body { padding-bottom: 72px; }
  .account-grid,
  .order-layout,
  .fitting-layout,
  .footer-inner,
  .form-row { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }

  .logo-img { height: 44px; max-width: 130px; }
  .logo-frame--sm { padding: 4px 6px; border-radius: 12px; }
  .logo-frame--hero-scale:not(.logo-frame--round) { padding: 14px 16px; border-radius: 12px; }
  .logo-frame--round.logo-frame--hero-scale { padding: 0; border-radius: 0; }
  .hero-logo-circle {
    height: min(220px, 50vw);
    width: min(220px, 50vw);
  }

  .logo-frame--hero-scale .logo-img {
    height: min(220px, 50vw);
    max-width: min(340px, 82vw);
  }
  .logo-frame--about { padding: 14px 18px; }
  .about-studio-logo {
    height: min(280px, 65vw);
    max-width: min(320px, 95vw);
  }
}

@media (max-width: 640px) {
  .gallery-grid--collection { grid-template-columns: 1fr; }
  .cookie-consent {
    padding: 14px 12px;
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__actions .btn {
    flex: 1;
    padding-left: 12px;
    padding-right: 12px;
  }
}
