/* Шрифт Inter подключается через <link rel="stylesheet"> в <head> каждой страницы (display=swap). */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-sm: 8px;
}

/* color-scheme: native controls and scrollbars follow the site theme, not the OS */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F2F2;
  --accent-text: #D93000;   /* accent is 3.2:1 on light bg — too low for 12px text */
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --text: #0A0A0A;
  --text-secondary: #555555;
  --muted: #6E6E6E;         /* 4.6:1 on --bg, 5.1:1 on white (WCAG AA for small text) */
  --accent: #FF3D00;
  --accent-hover: #E63600;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.2);   /* outline buttons, inactive stars */
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --hero-overlay: rgba(255, 255, 255, 0.85);
  --noise-opacity: 0.03;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505;
  --accent-text: #FF5722;
  --surface: rgba(20, 20, 20, 0.65);
  --surface-solid: #111111;
  --text: #F0F0F0;
  --text-secondary: #AAAAAA;
  --muted: #8A8A8A;         /* 5.9:1 on --bg, 5.4:1 on --surface-solid */
  --accent: #FF3D00;
  --accent-hover: #FF5722;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --hero-overlay: rgba(5, 5, 5, 0.75);
  --noise-opacity: 0.05;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Long Russian words and e-mails must wrap instead of pushing the page wider */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

/* Sections reached via /#anchor land below the fixed nav (top 20px + 68px) */
section[id] {
  scroll-margin-top: 24px;
}

/* Scroll lock while the mobile menu or the lightbox is open */
html.is-scroll-locked,
html.is-scroll-locked body {
  overflow: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* The full-screen blended overlay is expensive to composite while scrolling on phones/tablets */
@media (max-width: 900px), (hover: none) {
  body::before {
    display: none;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 3px;
}

/* Liquid Glass */
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow);
}

.glass-strong {
  background: var(--surface);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100vw - 32px);
  z-index: 1000;
  height: 68px;
  padding: 14px 32px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: var(--transition);
}

.nav.scrolled {
  padding: 10px 28px;
  box-shadow: var(--shadow-lg);
}

.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;         /* tap target */
  white-space: nowrap;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-shrink: 0;
  gap: 28px;
  list-style: none;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  display: inline-block;
  padding: 10px 0;          /* ~42px hit area without making the pill taller */
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  flex-shrink: 0;           /* icon buttons (profile, cart, theme) never squash into ovals */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--surface);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent);
}

.theme-toggle:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Burger (a real <button>, shown at <=1100px) */
.menu-btn {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;       /* no jump behind mobile browser toolbars */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255, 61, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 61, 0, 0.08) 0%, transparent 40%),
    var(--bg);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,61,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,61,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-text);
  border: 1px solid rgba(255, 61, 0, 0.3);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  /* floor ~32px: «Инъектирование» fits a 320px screen */
  font-size: clamp(2rem, 1.1rem + 4.6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;          /* long labels wrap inside narrow columns instead of overflowing */
  text-align: center;
  line-height: 1.25;
  flex-shrink: 0;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(255, 61, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 61, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 120px 24px;
  position: relative;
}

/* First section of an inner page (shop, product, cart, account, privacy): clears the fixed nav */
.section--page {
  padding-top: 140px;
}

.section--flush-top {
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 80px;
  max-width: 700px;
}

.section-header--compact {
  margin-bottom: 48px;
}

/* Glass panels that wrap a whole form (contact form, checkout) */
.form-panel {
  padding: clamp(20px, 5vw, 40px);
  border-radius: 24px;
}

/* Small print under a form's submit button (consent, payment provider) */
.form-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.form-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-text);  /* the plain accent is 3.2:1 on the light background */
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Cards. min(Npx, 100%) keeps auto-fit grids from overflowing screens narrower than N. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 32px;
}

.grid-3 > *,
.grid-2 > * {
  min-width: 0;
}

.card {
  padding: 40px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: rgba(255, 61, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0;
  counter-reset: step;
  border-radius: 24px;
}

.process-step {
  padding: 48px 32px;
  position: relative;
  text-align: center;
}

.process-step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-size: 4rem;
  font-weight: 900;
  color: var(--text);
  opacity: 0.05;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 20px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

/* Tablets: two columns, an odd last card spans the row instead of hanging alone */
@media (min-width: 601px) and (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.pricing-card {
  padding: 48px 40px;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 1px solid rgba(255, 61, 0, 0.45);
  overflow: visible;
  padding-top: 62px;
}

.pricing-card.featured::before {
  content: 'Популярное';
  position: absolute;
  top: 20px;
  left: auto;
  right: 32px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(255, 61, 0, 0.25);
  opacity: 1;
  height: auto;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .pricing-card-sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 24px 0;
  letter-spacing: -1px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  margin: 32px 0;
}

.pricing-card ul li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card ul li::before {
  content: '—';
  color: var(--accent);
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease;
  /* top: close button, bottom: counter */
  padding: 76px 24px 64px;
  overscroll-behavior: contain;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-figure {
  margin: 0;
  min-width: 0;
  max-width: min(1100px, 86vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 210px);
  max-height: calc(100svh - 210px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease;
  box-shadow: var(--shadow-lg);
}

.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close .icon {
  width: 22px;
  height: 22px;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Phones (portrait): the photo takes the full width, arrows move to the bottom bar next to the counter */
@media (max-width: 700px) {
  .lightbox { padding: 68px 16px 84px; }
  .lightbox-figure { max-width: 100%; gap: 12px; }
  .lightbox-figure img { max-height: calc(100vh - 220px); max-height: calc(100svh - 220px); }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-nav { position: absolute; bottom: 20px; width: 48px; height: 48px; font-size: 1.5rem; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-counter { bottom: 34px; }
}

/* Short landscape screens: arrows at the sides, counter at the top-left, one-line caption */
@media (max-height: 500px) and (orientation: landscape) {
  .lightbox { padding: 12px 76px; }
  .lightbox-figure { max-width: 100%; gap: 8px; }
  .lightbox-figure img { max-height: calc(100vh - 64px); max-height: calc(100svh - 64px); }
  .lightbox-figure figcaption { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .lightbox-close { top: 12px; right: 16px; }
  .lightbox-nav { position: absolute; top: 50%; bottom: auto; width: 48px; height: 48px; transform: translateY(-50%); }
  .lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
  .lightbox-prev { left: 14px; }
  .lightbox-next { right: 14px; }
  .lightbox-counter { top: 24px; bottom: auto; left: 20px; transform: none; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}

.contact-item > div {
  min-width: 0;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: rgba(255, 61, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-link,
.map-external-link {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color 0.2s, text-decoration-color 0.2s;
}

/* 40px tap height without changing the visual rhythm */
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.contact-link:hover,
.contact-link:focus-visible,
.map-external-link:hover,
.map-external-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.contact-link:focus-visible,
.map-external-link:focus-visible,
.region-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.inline-link {
  color: var(--text);
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.region-toggle {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.region-toggle:hover {
  color: var(--accent);
}

.region-toggle-icon {
  display: inline-flex;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.region-toggle[aria-expanded="true"] .region-toggle-icon {
  transform: rotate(180deg);
}

.region-map {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease, border-color 0.25s ease;
}

.region-map.is-open {
  margin-top: 16px;
  max-height: 320px;
  opacity: 1;
  border-color: var(--border);
}

.map-placeholder {
  min-height: 160px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 61, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 61, 0, 0.04) 1px, transparent 1px),
    var(--surface-solid);
  background-size: 24px 24px;
}

.map-placeholder > span {
  font-size: 1.5rem;
}

.map-placeholder p {
  max-width: 280px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.map-external-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 61, 0, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 60px 24px 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand span {
  color: var(--accent);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--muted);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 10px 0;          /* >=40px tap height, same spacing as the old 12px margin */
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 32px;
}

.stats-panel {
  border-radius: 24px;
  padding: 48px 24px;
}

.stat-item {
  text-align: center;
  padding: 32px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Responsive: landing + shared shell ===== */

/* Full desktop nav: tighter spacing up to 1280px so it fits from 1101px with room to spare */
@media (max-width: 1280px) {
  .nav {
    gap: 24px;
  }
  .nav-links {
    gap: 22px;
  }
}

/* Below that: logo + cart + theme + burger (the profile link moves into the menu) */
@media (max-width: 1100px) {
  .nav,
  .nav.scrolled {
    width: calc(100% - 32px);
    max-width: 760px;
    gap: 8px;
    padding: 12px 12px 12px 24px;
  }
  .nav-logo {
    margin-right: auto;
  }
  .nav-links,
  .nav-account-link {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 112px 16px 72px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .section {
    padding: 80px 20px;
  }
  .section--page {
    padding-top: 112px;
  }
  .section--flush-top {
    padding-top: 0;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .card {
    padding: 28px;
  }
  .pricing-card.featured {
    padding-top: 58px;
  }
  .pricing-card.featured::before {
    top: 16px;
    right: 24px;
  }
  .stats-panel {
    padding: 32px 16px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .nav,
  .nav.scrolled {
    gap: 4px;
    padding: 12px 8px 12px 16px;
  }
  .nav-logo {
    font-size: 1rem;
  }
  .nav .theme-toggle,
  .nav .menu-btn {
    width: 40px;
    height: 40px;
  }
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* «Ориентировочный» etc. must fit a 288px column without breaking mid-word */
  .section h2 {
    font-size: 1.75rem;
  }
  .btn {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ===== Mobile menu =====
   Panel from the nav's bottom edge to the bottom of the screen, layered above the nav
   (z-index 1001) so nothing slides under the glass pill; it scrolls on short/landscape
   screens. The nav stays visible above a solid backdrop, so the burger (now an X) closes it. */
.mobile-menu {
  position: fixed;
  top: 88px;                /* nav: top 20px + height 68px */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

/* Solid backdrop under the nav while the menu is open (the nav is a translucent floating pill) */
html.is-menu-open body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--bg);
}

/* auto margins centre the content when it fits and collapse when it scrolls */
.mobile-menu-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  color: var(--accent);
  background: rgba(255, 61, 0, 0.06);
  outline: none;
}

.mobile-menu .mobile-menu-call {
  margin-bottom: auto;
  width: 100%;
  max-width: 420px;
}

@media (max-height: 640px) {
  .mobile-menu {
    gap: 12px;
  }
  .mobile-menu-links a {
    min-height: 42px;
    font-size: 1.05rem;
  }
}

/* 320x568 and similar: all ten links and the call button fit without scrolling */
@media (max-height: 600px) and (orientation: portrait) {
  .mobile-menu {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .mobile-menu-links a {
    min-height: 40px;
  }
  .mobile-menu .mobile-menu-call {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* Phones in landscape: two columns so all items fit without much scrolling */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu {
    padding-top: 8px;
  }
  .mobile-menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    max-width: 640px;
  }
  .mobile-menu-links a {
    min-height: 40px;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .mobile-menu .mobile-menu-call {
    max-width: 640px;
  }
}


/* ===== SHOP & CART ===== */
.shop-toolbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.45fr) minmax(170px, 0.5fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
}
.shop-toolbar > * {
  min-width: 0;
}
/* Tablets: search on its own row, filters + reset below */
@media (max-width: 900px) {
  .shop-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }
  .shop-search {
    grid-column: 1 / -1;
  }
}
/* Phones: one column, full-width reset */
@media (max-width: 600px) {
  .shop-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .shop-reset {
    width: 100%;
  }
}
.shop-search {
  position: relative;
}
.shop-search input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}
.shop-search > span:not(.sr-only) {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--muted);
  pointer-events: none;
}
.shop-search input:focus { border-color: var(--accent); }
.shop-filter {
  position: relative;
  display: grid;
  gap: 4px;
}
.shop-filter-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.shop-reset {
  height: 46px;
  padding: 0 28px;
  box-sizing: border-box;
}

/* Custom select: native <option> popups can't be reliably themed cross-browser,
   so the visible dropdown is a listbox built in shop.js (mouse + keyboard); the real
   <select> stays in the DOM (visually hidden) purely to hold the value. */
.custom-select {
  position: relative;
}
.custom-select-trigger {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.custom-select-trigger:hover,
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: var(--accent);
  outline: none;
}
.custom-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-arrow {
  display: flex;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s;
}
.custom-select.is-open .custom-select-arrow {
  transform: rotate(180deg);
}
.custom-select-list {
  position: absolute;
  z-index: 900;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.custom-select-list[hidden] {
  display: block;           /* visibility (below) hides it, so the fade-out can play */
}
.custom-select.is-open .custom-select-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.custom-select-list:focus {
  outline: none;
}
.custom-select-option {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.custom-select-option:hover,
.custom-select-option.is-active {
  background: rgba(255, 61, 0, 0.1);
  color: var(--accent-text);
}
.custom-select-option[aria-selected="true"] {
  font-weight: 700;
}
.shop-result-count { min-height: 24px; margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
.shop-empty { grid-column: 1 / -1; padding: 48px 20px; color: var(--muted); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
/* Cards are flex columns so prices and stock line up across a row regardless of title length */
.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.shop-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.shop-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-solid);
}
img.shop-image {
  display: block;
  width: 100%;
  object-fit: cover;
}
.shop-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.shop-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.shop-category, .shop-stock { color: var(--muted); font-size: .8rem; }
.shop-category { display: inline-block; margin-bottom: 12px; }
.shop-stock { margin-top: 6px; }
.shop-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}
.shop-price--quote { color: var(--text-secondary); font-size: 1rem; }

.shop-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: auto 0 4px;
}

.shop-price-old,
.prod-price-old {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

.shop-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
}
[data-theme="dark"] .shop-discount-badge { color: #4ade80; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
.product-detail > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#prod-main-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-solid);
}
.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
  border: 2px solid transparent;
}
.thumbs img.active, .thumbs img:hover {
  opacity: 1;
  border-color: var(--accent);
}
.thumbs img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.product-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.prod-price {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--accent);
}
.product-desc {
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.product-stock {
  margin-bottom: 32px;
  color: var(--muted);
  font-weight: 500;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-missing {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
}
.product-missing h1 {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
}

/* Cart */
.cart-title {
  margin-bottom: 32px;
  letter-spacing: -1px;
}
.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.cart-item-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
}
.cart-item-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface-solid), var(--surface-solid) 10px, rgba(255, 61, 0, 0.05) 10px, rgba(255, 61, 0, 0.05) 20px);
}
.cart-item-thumb--empty .icon { width: 28px; height: 28px; }
/* info takes the row; actions drop below (right-aligned) when the column gets narrow */
.cart-item-info { flex: 1 1 160px; min-width: 0; }
.cart-item-info h4 { overflow-wrap: anywhere; }
.cart-item-price { color: var(--muted); }
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.cart-item-qty { min-width: 28px; text-align: center; font-weight: 700; }
.cart-item-actions button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.cart-item-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cart-item-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cart-item-actions button.remove {
  background: rgba(255,61,0,0.1);
  color: var(--accent);
  border-color: var(--accent);
}
.cart-item-actions button.remove .icon { width: 16px; height: 16px; }
.cart-item-actions button:disabled { opacity: 0.35; cursor: not-allowed; border-color: var(--border); color: var(--text); }
/* live stock / availability notes */
.cart-item-note { margin-top: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.cart-item-note.is-error { color: var(--accent-text); font-weight: 600; }
.cart-item-note[hidden] { display: none; }
.cart-item.is-unavailable .cart-item-thumb, .cart-item.is-unavailable .cart-item-info h4 { opacity: 0.5; }
.cart-empty { padding: 40px 0; color: var(--muted); text-align: center; }
.inline-link.cart-empty-link { display: inline-flex; align-items: center; min-height: 40px; }
.cart-done {
  padding: 24px;
  border-radius: var(--radius);
  line-height: 1.6;
}
.cart-done p + p { margin-top: 12px; }
.cart-done strong { color: var(--text); white-space: nowrap; }
.cart-total {
  text-align: right;
  font-size: 1.75rem;
  font-weight: 900;
  margin-top: 24px;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.cart-total[hidden] { display: none; }
.cart-total-label { color: var(--muted); font-size: 0.55em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.checkout-title { margin-bottom: 24px; }
.checkout-message { margin-top: 12px; }
/* Narrow phones: smaller thumb so the title stays next to it instead of dropping below */
@media (max-width: 400px) {
  .cart-item { padding: 16px; gap: 12px 16px; }
  .cart-item-thumb { width: 64px; height: 64px; }
  .cart-item-info { flex-basis: 140px; }
}

/* Admin */
.admin-section[hidden] { display: none; }
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 32px;
  letter-spacing: -1px;
}
.admin-sidebar nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  transition: 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: rgba(255,61,0,0.1);
  color: var(--accent);
}
.admin-main {
  padding: 40px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.stat-card {
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
}
.stat-card h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
}
.stat-card p {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 600;
}
.admin-table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
}
.admin-table td {
  font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-content {
  background: var(--surface-solid);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal-content {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
}
.modal-close:hover {
  background: var(--surface);
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.drop-zone:hover {
  border-color: var(--accent);
}
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(255,61,0,0.05);
}
#image-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.preview-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border);
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 0.6rem;
  text-align: center;
  padding: 2px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Admin: responsive */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; min-width: 0; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .admin-sidebar nav a { margin-bottom: 0; }
}

/* Account page */
.account-section {
  max-width: 1200px;
  margin: 0 auto;
}

.account-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 5vw, 48px);
  border-radius: var(--radius);
}

.account-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(560px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 61, 0, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.account-shell.is-glowing::before {
  opacity: 1;
}

.account-shell .btn {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.account-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.account-intro h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.account-intro h1 span {
  color: var(--accent);
}

.account-intro p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.account-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

@media (max-width: 900px) {
  .account-forms { grid-template-columns: minmax(0, 1fr); }
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.account-form:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Block (not flex): the label text and the policy link wrap together as one sentence
   instead of becoming separate flex items stacked word-per-line. */
label.consent-checkbox,
.account-form label.consent-checkbox {
  display: block;
  min-height: 40px;
  margin: 6px 0;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  padding: 0;
  vertical-align: -4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-checkbox a {
  color: var(--accent);
}

.account-form h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.account-form label small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.account-form input {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.account-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 61, 0, 0.1);
}

.account-form .btn {
  margin-top: 8px;
  align-self: flex-start;
}

.account-form--narrow {
  max-width: 480px;
}

.account-hint {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.account-message {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.account-message.is-error {
  color: var(--accent-text);
}

.account-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.account-profile-id {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.account-profile-id > div {
  min-width: 0;
}

.account-avatar {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  box-shadow: 0 4px 20px rgba(255, 61, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.account-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 25%, #ffb27a 45%, transparent 65%);
  animation: account-avatar-spin 2.4s linear infinite;
}

@keyframes account-avatar-spin {
  to { transform: rotate(360deg); }
}

.account-greeting {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.account-profile-head h1 {
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.account-profile-head p {
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.account-orders-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-orders a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.account-orders a:hover {
  text-decoration: underline;
}

.account-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px clamp(14px, 3vw, 22px);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease-out backwards;
}

.account-order:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

.account-order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.account-order-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.account-order-status--paid,
.account-order-status--fulfilled { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.account-order-status--pending_payment { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.account-order-status--processing { color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
.account-order-status--cancelled { color: var(--muted); background: rgba(128, 128, 128, 0.12); }

.account-order strong {
  color: var(--text);
  white-space: nowrap;      /* «GP-5E6F7A8B» must not break at the hyphen */
}

/* Phones: number | status on the first row, amount | date on the second */
@media (max-width: 600px) {
  .account-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .account-order > :nth-child(even) {
    justify-self: end;
  }
}

/* Narrow phones: the status pill gets its own row under the number */
@media (max-width: 400px) {
  .account-order > strong,
  .account-order > .account-order-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Legal documents (privacy policy, etc.) */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 48px 0 16px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  color: var(--accent-text);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* Admin: category view breakdown */
.category-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.category-bar-row:last-child {
  margin-bottom: 0;
}
.category-bar-label {
  flex: 0 0 180px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-bar-track {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}
.category-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}
.category-bar-count {
  flex: 0 0 auto;
  min-width: 32px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* Contact form status + admin "Заявки" section */
.contact-form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-secondary);
}
.contact-form-status:empty { display: none; }
.contact-form-status.is-error { color: var(--accent-text); }
.contact-form-status.is-success { color: #22c55e; font-weight: 600; }

.leads-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.leads-badge[hidden] { display: none; }
.lead-message {
  min-width: 220px;
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.admin-table td:has(.lead-message) { white-space: normal; }
.lead-row--new td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.lead-row--spam { opacity: 0.5; }
.lead-status-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}


/* About: two technology cards (бетон / грунт) */
.tech-grid { margin-bottom: 32px; }
.tech-card {
  padding: 48px 40px;
  border: 1px solid var(--border-glass);
}
.tech-card-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.tech-card-tag::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.card.tech-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.tech-card h3 span { color: var(--accent); }
.tech-card h3 small {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.card.tech-card p {
  font-size: 1.02rem;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .tech-card { padding: 32px 24px; }
}

/* SVG icons (Lucide) replacing emoji */
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.icon-inline { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 8px; }
.card-icon .icon { width: 26px; height: 26px; transition: transform 0.3s ease; }
.contact-item-icon .icon { width: 22px; height: 22px; }
.map-placeholder .icon { width: 28px; height: 28px; color: var(--accent); }
.admin-sidebar nav a .icon-inline { margin-right: 10px; opacity: 0.85; }
.admin-sidebar nav a.active .icon-inline, .admin-sidebar nav a:hover .icon-inline { opacity: 1; }
.card:hover .card-icon .icon { transform: scale(1.08); }

/* SVG icons, second pass: arrows, close buttons, chevron */
.icon-after { width: 1em; height: 1em; vertical-align: -0.15em; margin-left: 4px; }
.modal-close .icon { width: 20px; height: 20px; }
.region-toggle-icon .icon { width: 16px; height: 16px; }
.map-external-link .icon { width: 16px; height: 16px; }

/* Hero badge: the logo lives in the pill (replaced the "ЮФО" text) */
.hero-tag--logo {
  padding: 10px 24px;
  background: rgba(5, 5, 5, 0.85);
  border-color: rgba(255, 61, 0, 0.35);
  backdrop-filter: blur(10px);
}
.hero-tag--logo::before { display: none; }
.hero-tag-logo {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: screen;   /* logo.webp ships with a black background */
}
@media (max-width: 600px) { .hero-tag-logo { height: 30px; } }

/* Admin leads: four states, colour-coded */
.lead-message {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lead-open { padding: 6px 12px; font-size: 0.75rem; }
.lead-status--new { color: var(--accent); }
.lead-status--in_progress { color: #3b82f6; }
.lead-status--processed { color: #22c55e; }
.lead-status--spam { color: var(--muted); }
.lead-row--new td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.lead-row--in_progress td:first-child { box-shadow: inset 3px 0 0 #3b82f6; }
.lead-row--processed td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
.lead-row--spam td:first-child { box-shadow: inset 3px 0 0 var(--muted); }
.lead-row--spam { opacity: 0.55; }

/* Products without a photo get a neutral placeholder instead of an empty box */
.shop-image--empty, .product-gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: repeating-linear-gradient(135deg, var(--surface-solid), var(--surface-solid) 12px, rgba(255, 61, 0, 0.05) 12px, rgba(255, 61, 0, 0.05) 24px);
}
.product-gallery-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

/* Visually hidden labels for inputs that only had placeholders */
.field-label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Pricing: no invented numbers — measurement first */
.price--quote { font-size: 1.7rem; }
.price--quote span { display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 500; color: var(--muted); }

/* Estimate calculator */
.estimate-box { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; padding: 32px; border-radius: var(--radius); }
.estimate-box > * { min-width: 0; }
.estimate-items { display: flex; flex-direction: column; gap: 12px; }
.estimate-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface-solid); box-shadow: inset 3px 0 0 transparent;
  cursor: pointer; transition: var(--transition);
}
.estimate-item.is-on { border-color: var(--accent); background: rgba(255, 61, 0, 0.06); box-shadow: inset 3px 0 0 var(--accent); }
.estimate-item:hover { border-color: var(--border-glass); transform: translateY(-1px); }
.estimate-item-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-weight: 600; font-size: 0.95rem; overflow-wrap: break-word; }
.estimate-item-title small { color: var(--muted); font-weight: 500; font-size: 0.75rem; }
.estimate-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid var(--muted);
  border-radius: 7px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.estimate-item input[type="checkbox"]::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.estimate-item input[type="checkbox"]:hover { border-color: var(--accent); }
.estimate-item input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.estimate-item input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1) translate(1px, -1px); opacity: 1; }
.estimate-item input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.estimate-item-sum { font-weight: 800; font-size: 0.95rem; white-space: nowrap; color: var(--accent); }
.estimate-summary { align-self: start; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-sm); background: var(--surface-solid); }
/* label wraps first; the amount never breaks and moves to its own line if it must */
.estimate-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 0.95rem; }
.estimate-row > :last-child { margin-left: auto; white-space: nowrap; }
.estimate-row--total { padding-top: 12px; border-top: 1px solid var(--border); font-size: 1.25rem; font-weight: 900; letter-spacing: -0.5px; }
.estimate-note { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .estimate-box { grid-template-columns: minmax(0, 1fr); padding: 24px; } }
@media (max-width: 600px) {
  .estimate-box { padding: 16px; gap: 20px; }
  .estimate-summary { padding: 18px 16px; }
  .estimate-item { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 12px 14px; }
  .estimate-item-sum { grid-column: 2; }
  .estimate-item-sum:empty { display: none; }
}

/* Заявка на замер: своя форма прямо в блоке сметы */
.estimate-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.estimate-form[hidden] { display: none; }
.estimate-form-head { margin-bottom: 14px; font-weight: 700; letter-spacing: -0.3px; }
.estimate-form-head span { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.estimate-form .form-group { margin-bottom: 12px; }
.estimate-form textarea { min-height: 72px; }
.estimate-form .consent-checkbox { margin: 8px 0 14px; font-size: 0.78rem; }

/* Reviews and suggestions */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; margin-bottom: 40px; }
.review-card { min-width: 0; padding: 24px; border-radius: var(--radius-sm); }
.review-stars { margin-bottom: 12px; color: var(--accent); letter-spacing: 3px; }
.review-text { margin-bottom: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-author { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.reviews-empty { color: var(--muted); }
.review-form { padding: clamp(20px, 5vw, 32px); border-radius: var(--radius); max-width: 760px; }
.review-form-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.review-kind { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 0.9rem; }
.review-kind label,
.pay-method label { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
.review-kind input,
.pay-method input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.review-rating-label { display: block; margin-bottom: 2px; font-size: 0.8rem; color: var(--muted); }
.review-rating { display: flex; flex-wrap: wrap; gap: 2px; }
.review-star {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0;
  background: none; border: none; border-radius: var(--radius-sm);
  font-size: 1.7rem; line-height: 1; color: var(--border-strong);
  cursor: pointer; transition: color 0.15s, transform 0.15s;
}
.review-star.is-on { color: var(--accent); }
.review-star:hover { transform: scale(1.12); }
.review-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

/* Checkout: payment method */
.pay-method { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 16px 0; font-size: 0.9rem; }
#company-fields[hidden] { display: none; }

.lead-source { margin-left: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(255,61,0,0.15); color: var(--accent); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.lead-estimate-table td { padding: 10px 12px; font-size: 0.85rem; white-space: normal; }
.lead-estimate-total td { font-weight: 800; border-top: 1px solid var(--border); }

/* Окно заявки в админке */
.lead-modal { max-width: 720px; }
.lead-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding-right: 40px; }
.lead-head h3 { margin-top: 8px; font-size: 1.6rem; letter-spacing: -0.5px; }
.lead-head time { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.lead-badge { display: inline-block; padding: 4px 10px; border-radius: 10px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.lead-badge--estimate { background: rgba(255, 61, 0, 0.15); color: var(--accent); }
.lead-badge--contact { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.lead-contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 20px; border-radius: var(--radius-sm); background: var(--surface-solid); }
.lead-contact-lines { display: flex; flex-direction: column; gap: 6px; }
.lead-phone { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.lead-phone:hover { color: var(--accent); }
.lead-email-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.lead-email-link:hover { color: var(--accent); }
.lead-email-link.is-empty { color: var(--muted); pointer-events: none; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lead-actions .btn { padding: 10px 18px; font-size: 0.78rem; }

.lead-status-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.lead-status-btn { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.lead-status-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.lead-status-btn:disabled { opacity: 0.5; cursor: default; }
.lead-status-btn.is-active { color: #fff; border-color: transparent; }
.lead-status-btn--new.is-active { background: var(--accent); }
.lead-status-btn--in_progress.is-active { background: #3b82f6; }
.lead-status-btn--processed.is-active { background: #22c55e; }
.lead-status-btn--spam.is-active { background: var(--muted); }

.lead-section-title { margin: 24px 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.lead-estimate-table { width: 100%; border-collapse: collapse; }
.lead-estimate-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.lead-estimate-qty { width: 60px; text-align: right; color: var(--muted); }
.lead-estimate-sum { width: 130px; text-align: right; font-weight: 700; white-space: nowrap; }
.lead-estimate-total td { border-bottom: none; font-weight: 900; }
.lead-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.lead-order-actions .btn { padding: 11px 20px; font-size: 0.8rem; }
#lead-order-result { font-size: 0.85rem; }
@media (max-width: 600px) {
  .lead-contact { flex-direction: column; }
  .lead-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== Reduced motion: no smooth scrolling, reveal/parallax/spinner animations ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
