/* =============================================
   PRELOADER — Premium "Arc & Reveal"
   ============================================= */

/* Lock scroll while loading */
body.is-loading {
  overflow: hidden;
}

/* Lock scroll when modal is open — position:fixed prevents all scrolling */
html.modal-open {
  overflow: hidden !important;
}

body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* Hide site content until loaded */
body.is-loading .site-wrapper {
  opacity: 0;
}

/* Fullscreen overlay */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s ease;
}

/* Subtle radial glow behind the mark */
#preloader::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: preloaderGlow 3.75s ease-in-out infinite alternate;
}

@keyframes preloaderGlow {
  0%   { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 1; }
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* --- SVG Mark --- */
.preloader-mark {
  width: 100px;
  height: 100px;
}

/* Outer ring: draws itself */
.preloader-ring {
  stroke: rgba(255,255,255,0.12);
  fill: none;
  stroke-dasharray: 339.292;          /* 2 * π * 54 */
  stroke-dashoffset: 339.292;
  animation: drawRing 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

@keyframes drawRing {
  to { stroke-dashoffset: 0; }
}

/* Inner accent arc: partial draw with rotation */
.preloader-arc {
  stroke: url(#preloaderGrad);
  stroke: #3b82f6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 276.46;           /* 2 * π * 44 */
  stroke-dashoffset: 276.46;
  animation: drawArc 2.1s cubic-bezier(0.65, 0, 0.35, 1) 0.75s forwards;
  transform-origin: center;
}

@keyframes drawArc {
  to { stroke-dashoffset: 69.115; }  /* draw 75% of the circle */
}

/* Letter: blur-to-sharp + fade + scale */
.preloader-letter {
  fill: #ffffff;
  opacity: 0;
  filter: blur(8px);
  animation: revealLetter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes revealLetter {
  0%   { opacity: 0; filter: blur(8px); transform: scale(0.85); }
  100% { opacity: 1; filter: blur(0);   transform: scale(1); }
}

/* --- Expanding line --- */
.preloader-line {
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #3b82f6, rgba(129,140,248,0.6), transparent);
  border-radius: 1px;
  animation: expandLine 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2.1s forwards;
}

@keyframes expandLine {
  to { width: 120px; }
}

/* --- Description text --- */
.preloader-desc {
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(6px);
  animation: revealDesc 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
}

@keyframes revealDesc {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* --- EXIT ANIMATION --- */
#preloader.preloader-exit {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  pointer-events: none;
}

/* --- SITE CONTENT ENTRANCE --- */
.site-wrapper {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.site-loaded .site-wrapper {
  opacity: 1;
  transform: translateY(0);
}

body.is-loading .site-wrapper {
  transform: translateY(12px);
}


/* =============================================
   PREMIUM REDESIGN v2 — Apple / Stripe / Linear
   ============================================= */

/* --- Design Tokens --- */
:root {
  /* Color System */
  --c-bg:              #f8fafc;
  --c-surface:         #ffffff;
  --c-surface-raised:  #ffffff;
  --c-primary:         #0a1628;
  --c-primary-50:      #f0f4ff;
  --c-primary-100:     #e0eaff;
  --c-primary-600:     #1e3a5f;
  --c-primary-700:     #152d4f;
  --c-accent:          #3b82f6;
  --c-accent-hover:    #2563eb;
  --c-accent-glow:     rgba(59, 130, 246, 0.25);
  --c-accent-soft:     #eff6ff;
  --c-text:            #0f172a;
  --c-text-2:          #475569;
  --c-text-3:          #94a3b8;
  --c-border:          #e2e8f0;
  --c-border-light:    #f1f5f9;
  --c-section-alt:     #f1f5f9;
  --c-success:         #10b981;
  --c-danger:          #ef4444;
  --c-warning:         #f59e0b;

  /* Shadows — layered for realism */
  --sh-xs:   0 1px 2px rgba(0,0,0,0.04);
  --sh-sm:   0 1px 2px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  --sh-md:   0 2px 4px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.06);
  --sh-lg:   0 4px 6px rgba(0,0,0,0.02), 0 10px 24px rgba(0,0,0,0.08);
  --sh-xl:   0 8px 16px rgba(0,0,0,0.04), 0 20px 48px rgba(0,0,0,0.12);
  --sh-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.06);
  --sh-card-hover: 0 8px 24px rgba(59,130,246,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --sh-btn:  0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(59,130,246,0.16);
  --sh-btn-hover: 0 4px 14px rgba(59,130,246,0.3), 0 1px 3px rgba(0,0,0,0.08);

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-full: 9999px;

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

  /* Spacing scale (4px base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s ease;
  --t-base: 0.25s var(--ease-out);
  --t-slow: 0.5s var(--ease-out);
  --t-spring: 0.4s var(--ease-spring);

  /* Layout */
  --w-max: 1200px;
  --w-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--c-accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-accent-hover); }
ul   { list-style: none; }
b    { color: inherit; }
span { color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--c-primary);
}

h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  text-transform: none;
  font-style: normal;
  letter-spacing: -0.03em;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  text-shadow: none;
  text-transform: none;
  font-family: var(--font);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
}

h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text-2);
  text-align: left;
}

/* --- Layout --- */
/* site-wrapper base: transitions are in preloader section above */
.site-wrapper { width: 100%; overflow-x: hidden; }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), #818cf8);
  border-radius: 2px;
  margin: var(--sp-3) auto 0;
  transition: width 0.4s var(--ease-out);
}

.section-header:hover h2::after {
  width: 72px;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.header-top {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 40%, #2563eb 100%);
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}

/* Animated gradient dots */
.header-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(129,140,248,0.12) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle animated shimmer */
.header-top::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.03) 50%,
    transparent 60%
  );
  animation: headerShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headerShimmer {
  0%, 100% { transform: translateX(-30%) translateY(-30%); }
  50%      { transform: translateX(30%) translateY(30%); }
}

/* --- Header bar: contacts left, CTA right --- */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-4);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-8) 0;
}

/* --- Nav: links centered --- */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: var(--sp-2) var(--sp-8) var(--sp-3);
  max-width: var(--w-max);
  margin: 0 auto;
}

.menu-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
}

.menu-list br { display: none; }

.menu-list li {
  font-size: 1.05rem;
  font-weight: 600;
}

.menu-list a {
  text-decoration: none;
  color: var(--c-text-2);
  font-size: 1.05rem;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  position: relative;
}

.menu-list a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
  transition: all 0.25s var(--ease-out);
  transform: translateX(-50%);
}

.menu-list a:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

.menu-list a:hover::after {
  width: 60%;
}

/* Contact chips */
.nav-contacts {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  background: var(--c-section-alt);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-full);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.nav-contact-link:hover {
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-color: rgba(59,130,246,0.2);
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--c-text-3);
  transition: color 0.2s ease;
}

.nav-contact-link:hover .nav-icon {
  color: var(--c-accent);
}

.nav-contact-link span {
  color: inherit;
}

/* ============================
   BUTTONS — Premium
   ============================ */
button {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Ripple on click */
button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.5s;
  pointer-events: none;
}

button:active::after {
  opacity: 1;
  transform: scale(2.5);
  transition: opacity 0s, transform 0s;
}

#openCallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: var(--sp-3) var(--sp-6);
  background: linear-gradient(135deg, var(--c-accent), #2563eb);
  color: #ffffff;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
  box-shadow: var(--sh-btn);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

#openCallback:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: var(--sh-btn-hover);
  transform: translateY(-2px) scale(1.02);
}

#openCallback:active {
  transform: translateY(0) scale(0.98);
}

.order-btn {
  width: 100% !important;
  padding: var(--sp-3) var(--sp-5) !important;
  margin: auto 0 0 0 !important;
  background: linear-gradient(135deg, var(--c-accent), #2563eb) !important;
  color: #ffffff !important;
  border-radius: var(--r-sm) !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--sh-btn);
}

.order-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: var(--sh-btn-hover);
  transform: translateY(-2px);
}

.order-btn:active {
  transform: translateY(0) scale(0.97);
}

button[type="submit"] {
  width: 100%;
  padding: var(--sp-3) var(--sp-6);
  background: linear-gradient(135deg, var(--c-accent), #2563eb);
  color: #ffffff;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 600;
  margin: var(--sp-3) 0 0 0;
  box-shadow: var(--sh-btn);
  letter-spacing: 0.01em;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: var(--sh-btn-hover);
  transform: translateY(-2px);
}

button[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

/* Loading state for submit buttons */
button[type="submit"].is-loading {
  pointer-events: none;
  opacity: 0.85;
}

button[type="submit"].is-loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: spinBtn 0.6s linear infinite;
}

@keyframes spinBtn {
  to { transform: rotate(360deg); }
}

/* ============================
   HERO SECTION — Premium
   ============================ */
#home { padding: 0; }

#home h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--c-accent-soft);
  color: var(--c-accent) !important;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: 0.03em;
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(59,130,246,0.15);
}

.hero-section {
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient orbs */
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129,140,248,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-6) var(--sp-12);
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--c-text-2);
  max-width: 660px;
  margin: 0 auto var(--sp-8);
  text-align: center;
  line-height: 1.85;
}

/* Hero CTA Buttons */
.hero-cta-row {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-8);
  background: linear-gradient(135deg, var(--c-accent), #2563eb);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--r-full);
  box-shadow: var(--sh-btn);
  transition: all 0.25s var(--ease-out);
  letter-spacing: 0.01em;
}

.hero-cta-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: var(--sh-btn-hover);
  transform: translateY(-2px);
  color: #fff !important;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-8);
  background: transparent;
  color: var(--c-text-2) !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-border);
  transition: all 0.25s var(--ease-out);
}

.hero-cta-secondary:hover {
  border-color: var(--c-accent);
  color: var(--c-accent) !important;
  background: var(--c-accent-soft);
  transform: translateY(-2px);
}

/* ============================
   ADVANTAGES — Card Grid
   ============================ */
.advantages-section {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-16);
  position: relative;
  z-index: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.advantage-group {
  background: var(--c-section-alt);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  border: 1px solid var(--c-border-light);
  transition: border-color 0.3s ease;
}

.advantage-group:hover {
  border-color: rgba(59,130,246,0.2);
}

.advantage-group .text {
  margin: 0;
  padding: 0;
}

.advantage-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid rgba(59,130,246,0.12);
  display: block;
}

.adv-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  border: 1px solid var(--c-border-light);
  transition: all 0.25s var(--ease-out);
}

.adv-card:last-child {
  margin-bottom: 0;
}

.adv-card:hover {
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 2px 12px rgba(59,130,246,0.06);
  transform: translateY(-2px);
}

.adv-card li {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-primary);
  padding-left: var(--sp-6);
  position: relative;
  margin: 0;
  list-style: none;
}

.adv-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--c-accent), #818cf8);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c-accent-glow);
}

.adv-card p {
  margin: var(--sp-1) 0 0 var(--sp-6);
  font-size: 0.88rem;
  color: var(--c-text-2);
  line-height: 1.65;
}

/* ============================
   GALLERY — Premium
   ============================ */
/* ============================
   GALLERY SLIDER
   ============================ */
.gallery-section {
  position: relative;
  z-index: 1;
  padding: var(--sp-12) 0 var(--sp-16);
  background: var(--c-section-alt);
  border-top: 1px solid var(--c-border-light);
  overflow: hidden;
}

/* Header: title + arrows side by side */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--w-max);
  margin: 0 auto var(--sp-8);
  padding: 0 var(--sp-6);
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  margin: 0;
  text-align: left;
}

.gallery-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), #818cf8);
  border-radius: 2px;
  margin: var(--sp-2) 0 0;
}

/* Nav arrows */
.gallery-nav {
  display: flex;
  gap: var(--sp-2);
}

.gallery-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: var(--sh-sm);
}

.gallery-btn:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  box-shadow: var(--sh-btn-hover);
  transform: scale(1.08);
}

.gallery-btn:active {
  transform: scale(0.95);
}

.gallery-btn svg { pointer-events: none; }

/* Horizontal scroll track */
.gallery-track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--sp-2) var(--sp-6) var(--sp-4);
  max-width: var(--w-max);
  margin: 0 auto;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

/* Individual slides */
.normal-size {
  flex: 0 0 320px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r-lg);
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), opacity 0.3s ease;
  cursor: pointer;
  box-shadow: var(--sh-card);
  border: 1px solid var(--c-border-light);
  user-select: none;
  -webkit-user-drag: none;
}

.normal-size:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-4px);
}

/* Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: 0 var(--sp-6);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--c-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.gallery-dot:hover {
  background: var(--c-text-3);
}

.gallery-dot.active {
  background: var(--c-accent);
  width: 24px;
}

/* ============================
   LIGHTBOX (zoomed images)
   ============================ */
.zoomed {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 85vw !important;
  max-width: 750px !important;
  height: auto !important;
  max-height: 80vh !important;
  flex: none !important;
  z-index: 9000;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  border-color: transparent;
  object-fit: contain;
  animation: lightboxIn 0.35s var(--ease-out);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Backdrop overlay */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 8999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================
   PRODUCTS SECTION
   ============================ */
#products { padding: 0; }
#products h2 { text-align: center; }

.products-section {
  background: var(--c-section-alt);
  position: relative;
}

/* Soft top divider */
.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

.products-content {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-6);
}

.products-content > h4 {
  text-align: center;
  font-size: 1.15rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-8);
}

/* --- Table --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  margin-bottom: var(--sp-16);
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
}

table {
  width: 100%;
  background: var(--c-surface);
  border-collapse: collapse;
  border: none;
}

table thead tr {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-600));
}

table thead td {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: none;
}

table td {
  color: var(--c-text);
  font-size: 0.9rem;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border-light);
  font-weight: 400;
  transition: background 0.15s ease;
}

table tr:nth-child(even):not(:first-child) {
  background: rgba(241,245,249,0.5);
}

table tr:not(:first-child):hover {
  background: var(--c-accent-soft);
}

table tr:last-child td {
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary-50) 0%, var(--c-accent-soft) 100%);
  color: var(--c-primary);
}

/* --- Cards Subtitle --- */
.cards-subtitle {
  text-align: center;
  margin-bottom: var(--sp-10);
}

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

/* --- Card Design — Modern --- */
.card2, .card1 {
  display: flex;
  flex-direction: column;
  background: var(--c-surface-raised);
  width: auto;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s ease;
  position: relative;
}

.card2:hover, .card1:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.15), 0 4px 12px rgba(0,0,0,0.08);
  border-color: rgba(59,130,246,0.2);
}

/* --- Image wrapper — full-bleed at top --- */
.card2-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
}

.card2-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.card2:hover .card2-visual img,
.card1:hover .card2-visual img {
  transform: scale(1.06);
}

/* Subtle gradient overlay on image */
.card2-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.card2:hover .card2-visual::after,
.card1:hover .card2-visual::after {
  opacity: 0;
}

/* --- Card body --- */
.card2 .container, .card1 .container {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  height: 100%;
  gap: var(--sp-2);
}

/* Title */
.card2 .container h3, .card1 .container h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

/* Specs badge */
.card2-specs {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  width: fit-content;
}

/* Price section */
.card2-prices {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: auto;
}

.card2 p1, .card1 p1 {
  font-size: 0.82rem;
  color: var(--c-text-2);
  line-height: 1.7;
}

.card2 p3, .card1 p3 {
  font-size: 0.85rem;
  color: var(--c-accent);
  font-weight: 700;
  display: inline-block;
  margin: var(--sp-2) 0 0;
}

p3 {
  font-size: 0.85rem;
  color: var(--c-accent);
  font-weight: 700;
}

.card2 i, .card1 i {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* Button inside card */
.card2 .order-btn, .card1 .order-btn {
  margin-top: var(--sp-3) !important;
  border-radius: 10px !important;
  font-size: 0.88rem;
  padding: var(--sp-3) var(--sp-5) !important;
  transition: all 0.25s var(--ease-out);
}

.card2 .order-btn:hover, .card1 .order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

/* ============================
   MODALS — Premium
   ============================ */
#callbackModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10,22,40,0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.modal-content {
  position: relative;
  background: var(--c-surface);
  margin: 10vh auto;
  padding: var(--sp-10);
  width: 90%;
  max-width: 480px;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(0,0,0,0.04);
  animation: modalSlideUp 0.4s var(--ease-out);
  transform: none;
  top: auto;
  left: auto;
}

.modal-content h2, .modal-content h3 {
  font-size: 1.3rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.02em;
}

.close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  float: none;
  font-size: 20px;
  color: var(--c-text-3);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
  background: transparent;
}

.close:hover {
  background: var(--c-section-alt);
  color: var(--c-text);
  transform: rotate(90deg);
}

/* ============================
   FORMS — Premium
   ============================ */
textarea, input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-2) 0;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--c-text);
  background: var(--c-surface);
  transition: all 0.2s ease;
  outline: none;
}

textarea:focus, input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-glow);
}

textarea::placeholder, input::placeholder {
  color: var(--c-text-3);
}

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

/* Form status messages */
.form-status {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.form-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================
   SUCCESS MODAL
   ============================ */
.success-modal-content {
  text-align: center;
  padding: var(--sp-10) var(--sp-8);
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-5);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  animation: successPop 0.5s var(--ease-out);
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-text {
  color: var(--c-text-2);
  font-size: 0.95rem;
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}

.success-close-btn {
  display: inline-block;
  padding: var(--sp-3) var(--sp-8);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.success-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.3);
}

/* ============================
   DELIVERY
   ============================ */
.delivery-section {
  background: var(--c-surface);
  position: relative;
}

.delivery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

.delivery-content {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-6);
  text-align: center;
}

.delivery-content h2 { text-align: center; }

.delivery-content p {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.delivery-image {
  display: inline-block;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  margin: var(--sp-6) 0;
  max-width: 500px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.delivery-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-xl);
}

.delivery-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.delivery-image:hover img {
  transform: scale(1.03);
}

.delivery-price {
  display: inline-block;
  padding: var(--sp-3) var(--sp-8);
  background: linear-gradient(135deg, var(--c-accent-soft), var(--c-primary-50));
  color: var(--c-accent);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 1rem;
  margin-top: var(--sp-4);
  border: 1px solid rgba(59,130,246,0.15);
  box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}

/* ============================
   ABOUT
   ============================ */
.about-section {
  background: var(--c-section-alt);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

.about-content {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-6);
}

.about-content h2 {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.about-content p {
  text-align: center;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============================
   CONTACTS
   ============================ */
.contacts-section {
  background: var(--c-surface);
  position: relative;
}

.contacts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

.contacts-content {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-6);
}

.contacts-content h2 {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-10);
  align-items: start;
}

address { font-style: normal; }
address ul { list-style: none; padding: 0; margin: 0; }
address ul br { display: none; }

address ul li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-light);
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--sh-xs);
}

address ul li:hover {
  background: var(--c-accent-soft);
  border-color: rgba(59,130,246,0.2);
  box-shadow: 0 4px 16px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-accent);
  opacity: 0.8;
  transition: all 0.25s ease;
}

address ul li:hover .contact-icon {
  opacity: 1;
  transform: scale(1.1);
}

address ul li a {
  color: var(--c-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

address ul li a:hover { color: var(--c-accent); }

.map-wrapper {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--c-border-light);
  transition: box-shadow 0.3s ease;
}

.map-wrapper:hover {
  box-shadow: var(--sh-xl);
}

address iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--r-xl);
}

/* ============================
   FOOTER — Premium
   ============================ */
footer {
  background: linear-gradient(135deg, var(--c-primary), #0f2847);
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
}

footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

/* --- Timestamp --- */
time { display: none; }

/* --- Utility / Legacy compat --- */
.text { margin: 0; padding: 0; }
li { font-size: 0.95rem; font-weight: 500; }
aside { font-size: 1rem; }

.box img {
  width: 400px;
  height: 350px;
  display: block;
  margin: 20px;
}

.card {
  display: block;
  border: 1px solid var(--c-border);
  padding: 20px;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  max-width: 400px;
}

.hidden {
  display: none;
  border: 1px solid var(--c-border);
  padding: 15px;
  margin-top: 10px;
}

/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

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

/* Stagger children for card grids */
.reveal-stagger .card2,
.reveal-stagger .card1 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.revealed .card2,
.reveal-stagger.revealed .card1 {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed .card2:nth-child(1),  .reveal-stagger.revealed .card1:nth-child(1)  { transition-delay: 0s; }
.reveal-stagger.revealed .card2:nth-child(2),  .reveal-stagger.revealed .card1:nth-child(2)  { transition-delay: 0.06s; }
.reveal-stagger.revealed .card2:nth-child(3),  .reveal-stagger.revealed .card1:nth-child(3)  { transition-delay: 0.12s; }
.reveal-stagger.revealed .card2:nth-child(4),  .reveal-stagger.revealed .card1:nth-child(4)  { transition-delay: 0.18s; }
.reveal-stagger.revealed .card2:nth-child(5),  .reveal-stagger.revealed .card1:nth-child(5)  { transition-delay: 0.24s; }
.reveal-stagger.revealed .card2:nth-child(6),  .reveal-stagger.revealed .card1:nth-child(6)  { transition-delay: 0.30s; }
.reveal-stagger.revealed .card2:nth-child(7),  .reveal-stagger.revealed .card1:nth-child(7)  { transition-delay: 0.36s; }
.reveal-stagger.revealed .card2:nth-child(8),  .reveal-stagger.revealed .card1:nth-child(8)  { transition-delay: 0.42s; }
.reveal-stagger.revealed .card2:nth-child(9),  .reveal-stagger.revealed .card1:nth-child(9)  { transition-delay: 0.48s; }
.reveal-stagger.revealed .card2:nth-child(10), .reveal-stagger.revealed .card1:nth-child(10) { transition-delay: 0.54s; }
.reveal-stagger.revealed .card2:nth-child(n+11),.reveal-stagger.revealed .card1:nth-child(n+11) { transition-delay: 0.60s; }

/* Gallery — no stagger needed for slider (it scrolls into view) */

/* ============================
   KEYFRAMES
   ============================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--sp-5);
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 768px) {
  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--sp-3) var(--sp-4) 0;
    gap: var(--sp-3);
  }

  .nav-contacts {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
  }

  .nav-contact-link {
    font-size: 0.73rem;
    padding: 5px 12px;
  }

  #openCallback {
    width: 100%;
    justify-content: center;
  }

  .menu {
    padding: var(--sp-2) var(--sp-4) var(--sp-3);
  }

  .menu-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-1);
  }

  .menu-list a {
    font-size: 0.88rem;
    padding: var(--sp-2) var(--sp-3);
  }

  .menu-list a::after { display: none; }

  .hero-content {
    padding: var(--sp-10) var(--sp-5) var(--sp-8);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
  }

  .hero-cta-primary, .hero-cta-secondary {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .advantages-section {
    padding: 0 var(--sp-4) var(--sp-10);
  }

  .advantage-group {
    padding: var(--sp-5);
  }

  .gallery-section {
    padding: var(--sp-8) 0 var(--sp-10);
  }

  .gallery-header {
    padding: 0 var(--sp-4);
    margin-bottom: var(--sp-5);
  }

  .gallery-track {
    padding: var(--sp-2) var(--sp-4) var(--sp-3);
    gap: var(--sp-3);
  }

  .normal-size {
    flex: 0 0 260px;
    height: 200px;
  }

  .gallery-btn { width: 36px; height: 36px; }

  .products-content,
  .delivery-content,
  .about-content,
  .contacts-content {
    padding: var(--sp-12) var(--sp-4);
  }

  h1 {
    font-size: 1.2rem;
    padding: 0 var(--sp-4);
  }

  .header-top { padding: var(--sp-5) 0; }

  table td { font-size: 0.78rem; padding: var(--sp-2) var(--sp-3); }
  table tr:first-child td { font-size: 0.72rem; padding: var(--sp-3); }

  address iframe { height: 280px; }

  .modal-content {
    margin: 6vh auto;
    padding: var(--sp-6);
  }

  .section-header { margin-bottom: var(--sp-8); }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .normal-size {
    flex: 0 0 220px;
    height: 170px;
  }

  .gallery-dots { gap: var(--sp-1); }
  .gallery-dot { width: 6px; height: 6px; }
  .gallery-dot.active { width: 18px; }

  .modal-content {
    margin: 3vh auto;
    padding: var(--sp-5);
    width: 95%;
    border-radius: var(--r-lg);
  }

  .menu-list { gap: var(--sp-1); }

  .header-bar {
    gap: var(--sp-2);
  }

  .nav-contact-link {
    font-size: 0.68rem;
    padding: 4px 10px;
    gap: 4px;
  }

  .nav-icon { width: 12px; height: 12px; }

  .delivery-content p { font-size: 0.88rem; }
  .card2 .container, .card1 .container { padding: var(--sp-4); }
  .card2-visual { aspect-ratio: 3 / 2; }

  .advantage-group {
    padding: var(--sp-4);
  }

  .adv-card {
    padding: var(--sp-3) var(--sp-4);
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
  }
}

/* --- Print --- */
@media print {
  header, footer, .order-btn, #openCallback { display: none; }
  body { background: white; }
  .reveal, .reveal-stagger .card2, .reveal-stagger .card1,
  /* gallery slider — no stagger overrides needed */
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger .card2, .reveal-stagger .card1,
  .gallery-reveal .normal-size {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Skip preloader entirely for users who prefer reduced motion */
  #preloader { display: none !important; }
  body.is-loading .site-wrapper { opacity: 1 !important; transform: none !important; }
}
