/* ==========================================================================
   FotKA — Modern Light Design v2.0
   Clean · Spacious · Premium · Логичный
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Caveat:wght@600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-page:        #f9fafb;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f0f4ff;
  --bg-subtle:      #f3f6ff;
  --bg-glass:       rgba(255, 255, 255, 0.85);

  /* Brand Colors */
  --blue:           #2563eb;
  --blue-hover:     #1d4ed8;
  --blue-soft:      rgba(37, 99, 235, 0.09);
  --blue-glow:      rgba(37, 99, 235, 0.18);
  --teal:           #0891b2;
  --teal-soft:      rgba(8, 145, 178, 0.08);
  --amber:          #f59e0b;
  --amber-soft:     rgba(245, 158, 11, 0.10);
  --green:          #10b981;
  --red:            #ef4444;

  /* Text */
  --text-h:         #0f172a;
  --text-body:      #1e293b;
  --text-muted:     #64748b;
  --text-dim:       #94a3b8;

  /* Borders */
  --border:         #e2e8f0;
  --border-focus:   var(--blue);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;

  /* Shadows */
  --shadow-card:  0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.06), 0 16px 40px rgba(37,99,235,0.10);
  --shadow-btn:   0 4px 16px rgba(37,99,235,0.28);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-h);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.20);
  color: var(--blue);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

/* ── Section spacing ──────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ── Badge / Chip ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,0.15);
}

.badge-amber {
  background: var(--amber-soft);
  color: #b45309;
  border-color: rgba(245,158,11,0.2);
}

.badge-green {
  background: rgba(16,185,129,0.08);
  color: #047857;
  border-color: rgba(16,185,129,0.2);
}

.gradient-badge {
  background: var(--blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.20);
  color: var(--blue);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Navbar ─────────────────────────────────────────────────────────────  */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

/* Single Authentic Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-h);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-h);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Nav Links - Strict single line, no text wrapping or overlapping */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  flex-shrink: 1;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.42rem 0.68rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  line-height: 1.2;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-select-icon {
  position: absolute;
  left: 0.55rem;
  color: #0284c7;
  pointer-events: none;
  z-index: 2;
}

.nav-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  padding: 0.42rem 1.6rem 0.42rem 0.65rem;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.nav-select.city-select {
  padding-left: 1.7rem;
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.nav-select:hover {
  border-color: var(--blue);
}

.nav-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  position: relative;
}

/* ── Buttons ─────────────────────────────────────────────────────────────  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--blue-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-h);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.btn-amber:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(37,99,235,0.35);
}

.btn-outline:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--r-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn-crm {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-crm:hover {
  background: rgba(16, 185, 129, 0.16);
}

/* Cart */
.cart-badge { position: relative; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ── Hero ────────────────────────────────────────────────────────────────  */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.1rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
  max-width: 500px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-body);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hero-feature-tag .check {
  color: var(--green);
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero Image Box */
.hero-visual {
  position: relative;
}

.hero-img-box {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 200px;
}

.hero-float-card .float-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-float-card .float-row strong {
  color: var(--text-h);
  font-size: 0.9rem;
}

.hero-float-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Stats Bar ────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 2rem;
  border-right: 1px solid var(--border);
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.stat-text h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-h);
}

.stat-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── ID Photo Promo ───────────────────────────────────────────────────── */
.idphoto-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 60%, #0e7490 100%);
  border-radius: var(--r-xl);
  padding: 3rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.idphoto-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.idphoto-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.idphoto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.idphoto-card h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.idphoto-card p {
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.idphoto-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.idphoto-preset-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

.idphoto-price-box {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  min-width: 160px;
  position: relative;
  z-index: 1;
}

.idphoto-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fde68a;
}

.idphoto-price-desc {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ── Paper Cards ──────────────────────────────────────────────────────── */
.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.paper-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.paper-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow-hover);
}

.paper-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.paper-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.paper-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.paper-label {
  display: inline-flex;
  align-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.paper-body h3 {
  font-size: 1.1rem;
  margin: 0;
}

.paper-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.paper-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.paper-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.paper-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.paper-action {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ── Gift Cert Card ───────────────────────────────────────────────────── */
.gift-cert-card {
  width: 100%;
  height: 280px;
  border-radius: var(--r-lg);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
}

.gift-cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.80) 100%);
  z-index: 1;
}

.gift-cert-card > * { position: relative; z-index: 2; }

.gift-cert-card.ai-gold {
  background-image: url('assets/gift_cert_gold.jpg');
  border: 2px solid #f59e0b;
}

.gift-cert-card.ai-floral {
  background-image: url('assets/gift_cert_floral.jpg');
  border: 2px solid #f472b6;
}

.gift-cert-card.ai-cozy {
  background-image: url('assets/gift_cert_cozy.jpg');
  border: 2px solid #38bdf8;
}

.gift-cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.gift-cert-logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gift-cert-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fde68a;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.gift-cert-body { margin: 0.6rem 0; }

.gift-cert-to {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.gift-cert-greeting {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.gift-cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  padding-top: 0.65rem;
}

.gift-cert-code {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Gift Certificate Banner */
.giftcert-banner {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 100%);
  border-radius: var(--r-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.giftcert-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.giftcert-banner h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.5rem; }
.giftcert-banner p { opacity: 0.85; font-size: 0.95rem; max-width: 420px; line-height: 1.65; margin-bottom: 1.3rem; }

.giftcert-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.giftcert-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
}

.giftcert-preview {
  position: relative; z-index: 1;
  width: 260px;
  flex-shrink: 0;
}

/* ── Price Table ──────────────────────────────────────────────────────── */
.price-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table thead {
  background: var(--bg-subtle);
  border-bottom: 2px solid var(--border);
}

.price-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.price-table thead th:first-child { text-align: left; }
.price-table thead th:not(:first-child) { text-align: right; }

.price-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.price-table tbody tr:last-child { border-bottom: none; }

.price-table tbody tr:hover { background: var(--blue-soft); }

.price-table tbody td {
  padding: 0.85rem 1.25rem;
  color: var(--text-body);
}

.price-table tbody td:first-child { font-weight: 600; }
.price-table tbody td:not(:first-child) { text-align: right; color: var(--text-muted); }

.price-table .price-highlight { color: var(--blue); font-weight: 700; }

.price-table .popular-row { background: rgba(37,99,235,0.04); }
.price-table .popular-row .format-name::after {
  content: 'Популярный';
  display: inline-block;
  margin-left: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

/* ── Configurator / Upload ────────────────────────────────────────────── */
.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.dropzone.dropzone-compact {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-style: solid;
  border-width: 1.5px;
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1rem;
}

.dropzone.dropzone-compact:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.dropzone h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

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

/* Mass Edit Bar */
.mass-edit-bar {
  background: var(--bg-card);
  border: 1.5px solid var(--blue);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  margin-top: 1.25rem;
  box-shadow: 0 4px 12px var(--blue-soft);
}

.mass-edit-bar h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
  letter-content: 0.02em;
}

.mass-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto;
  gap: 0.65rem;
  align-items: flex-end;
}

/* ── Photo Item Card (2-Row Batch UX) ────────────────────────────── */
.photo-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.photo-item-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.photo-item-card.photo-item-selected {
  border-color: var(--blue);
  background: #f8faff;
  box-shadow: 0 0 0 2px var(--blue-glow);
}

/* Thumbnail */
.photo-thumb-container {
  width: 140px;
  height: 140px;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.photo-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-thumb-container.mode-fit .photo-thumb-img {
  object-fit: contain;
  background: #ffffff;
}

.photo-thumb-container.mode-polaroid {
  background: #ffffff;
  padding: 6px 6px 24px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.photo-thumb-container.mode-polaroid .photo-thumb-img {
  object-fit: cover;
  border-radius: 4px;
}

.polaroid-caption-tag {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.fit-mode-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fit-mode-tag.tag-fit { background: rgba(8, 145, 178, 0.85); }
.fit-mode-tag.tag-polaroid { background: rgba(245, 158, 11, 0.85); }

.dpi-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.dpi-badge.excel { background: rgba(16, 185, 129, 0.9); color: #fff; }
.dpi-badge.good { background: rgba(37, 99, 235, 0.9); color: #fff; }
.dpi-badge.warn { background: rgba(239, 68, 68, 0.9); color: #fff; }

/* Filter effects */
.filter-bw { filter: grayscale(100%); }
.filter-sepia { filter: sepia(90%) contrast(90%); }

/* Info Column */
.photo-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.photo-filename-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.photo-filename {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-h);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-dims {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.photo-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.photo-row .select-control {
  flex: 1;
  min-width: 140px;
}

.photo-row-filters {
  justify-content: space-between;
}

.filter-btn-group {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 2px;
}

.filter-btn {
  border: none;
  background: transparent;
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text-h);
}

.filter-btn.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-weight: 700;
}

.options-check-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-body);
  cursor: pointer;
  user-select: none;
}

.check-label em {
  font-style: normal;
  color: var(--blue);
  font-weight: 600;
  margin-left: 0.15rem;
}

.info-help-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.info-help-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Qty + Price Column */
.photo-qty-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
  padding-left: 0.5rem;
  flex-shrink: 0;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qty-btn {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-h);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-h);
}

.photo-price-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.photo-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--r-sm);
  transition: all var(--transition);
}

.photo-delete-btn:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
}

/* Batch Select Checkbox */
.batch-check {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  cursor: pointer;
}

.batch-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.batch-checkbox.checked {
  background: var(--blue);
  border-color: var(--blue);
}

.batch-checkbox.checked::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.dpi-warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dpi-warning-box button {
  background: none;
  border: none;
  color: #b45309;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Order Summary Sidebar */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}

.order-summary h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.summary-line strong { color: var(--text-h); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-h);
  padding-top: 0.75rem;
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
}

.summary-total .amount { color: var(--blue); }

/* Promo Box */
.promo-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
}

.promo-input {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 140px;
  outline: none;
  transition: border-color var(--transition);
  color: var(--text-h);
  font-family: inherit;
}

.promo-input:focus { border-color: var(--blue); }

/* ── Delivery Section ─────────────────────────────────────────────────── */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.delivery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
}

.delivery-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.delivery-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.delivery-card h4 { font-size: 1rem; }

.delivery-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.delivery-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: auto;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 760px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--blue); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  gap: 1rem;
  user-select: none;
}

.faq-q h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-h);
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.8rem;
}

.faq-item.open .faq-chevron {
  background: var(--blue-soft);
  color: var(--blue);
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-a-inner {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-a { max-height: 400px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-h);
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #475569;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #475569;
  text-decoration: none;
}

.footer-bottom a:hover { color: #94a3b8; }

/* ── Forms & Inputs ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input,
.form-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-h);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  width: 100%;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full-width { grid-column: 1 / -1; }

/* ── CRM Panel ────────────────────────────────────────────────────────── */
.crm-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.crm-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.crm-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-card);
}

.crm-tabs::-webkit-scrollbar { display: none; }

.crm-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}

.crm-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.crm-tab:hover:not(.active) { color: var(--text-h); }

.crm-body { padding: 1.5rem; }

/* Multi-Printer Analytics */
.printers-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.printer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.printer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
}

.printer-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.printer-stat-row strong { color: var(--text-h); }

/* Before/After Compare */
.compare-box {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  user-select: none;
  box-shadow: var(--shadow-card);
  background: #0f172a;
}

.compare-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.compare-overlay {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  border-right: 2px solid #ffffff;
  box-shadow: 4px 0 12px rgba(0,0,0,0.25);
}

.compare-overlay img {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  object-fit: cover;
}

.compare-badge {
  position: absolute;
  top: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.compare-badge.before {
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
}

.compare-badge.after {
  right: 10px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
}

.compare-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

/* ── Cookie Banner ────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  width: calc(100% - 2rem);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-banner-text h5 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-h);
}

/* ── Utility ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--blue); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-links a {
    font-size: 0.82rem;
    padding: 0.38rem 0.5rem;
  }
  .brand-subtitle {
    display: none;
  }
  .nav-wrap {
    gap: 0.75rem;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .paper-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem; }
  .configurator-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .paper-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .idphoto-card { grid-template-columns: 1fr; }
  .idphoto-price-box { display: none; }
  .giftcert-banner { grid-template-columns: 1fr; }
  .giftcert-preview { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .photo-item-card {
    grid-template-columns: 1fr;
  }
  .photo-thumb-container {
    width: 100%;
    height: 180px;
  }
  .photo-qty-price {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
  }
  .mass-edit-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 1.15rem; }
  .brand-logo-img { width: 32px; height: 32px; }
  .nav-select.city-select { max-width: 110px; text-overflow: ellipsis; overflow: hidden; }
}
