/* =========================================================
   SK04 — Выездная химчистка мягкой мебели (Актобе)
   Индивидуальная дизайн-система: чистый текстиль + кобальт 40 бар + аква
   ========================================================= */

:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --surface-tint: #edf3f7;
  --surface-warm: #efede6;
  --ink: #111d29;
  --ink-muted: #4b5d6d;
  --ink-soft: #66788a;
  --brand: #0e3f63;
  --brand-hover: #0a314e;
  --brand-deep: #092136;
  --brand-deep-2: #102e48;
  --accent: #0d9488;
  --accent-hover: #0b7c72;
  --accent-soft: #d9f2ef;
  --warn-soft: #fdf2e6;
  --warn-ink: #8a4b08;
  --line: rgba(17, 29, 41, 0.1);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-btn: 14px;
  --r-field: 14px;
  --r-chip: 12px;
  --r-card: 22px;
  --r-frame: 28px;
  --r-modal: 26px;

  --shadow-float: 0 18px 44px rgba(9, 33, 54, 0.18), 0 4px 12px rgba(9, 33, 54, 0.08);
  --shadow-soft: 0 10px 28px rgba(14, 63, 99, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.32, 0.64, 1);

  --container: 1240px;
  --gutter: clamp(18px, 3vw, 36px);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

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

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* =========================================================
   TYPOGRAPHY & REVEAL ANIMATIONS
   ========================================================= */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.028em;
  color: inherit;
}

h1 {
  font-size: clamp(1.88rem, 3.35vw, 3.22rem);
  line-height: 1.06;
  font-weight: 800;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  line-height: 1.22;
  font-weight: 700;
}

p {
  margin: 0;
}

/* Visible smooth motion from first render */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js-ready [data-reveal][data-reveal-delay="1"] {
  transition-delay: 80ms;
}

.js-ready [data-reveal][data-reveal-delay="2"] {
  transition-delay: 160ms;
}

.js-ready [data-reveal][data-reveal-delay="3"] {
  transition-delay: 240ms;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready [data-hero-anim] {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.72s var(--ease-out), transform 0.78s var(--ease-out);
}

.js-ready.hero-loaded [data-hero-anim] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js-ready.hero-loaded [data-hero-anim="2"] {
  transition-delay: 95ms;
}

.js-ready.hero-loaded [data-hero-anim="3"] {
  transition-delay: 190ms;
}

.js-ready.hero-loaded [data-hero-anim="4"] {
  transition-delay: 260ms;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.22s var(--ease-out),
    background-color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.975);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 63, 99, 0.22);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.26);
}

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-soft:hover {
  background: var(--surface-tint);
  border-color: rgba(14, 63, 99, 0.24);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(246, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s var(--ease-out), background-color 0.28s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 26px rgba(14, 63, 99, 0.07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-spring);
}

.brand-mark:hover .brand-emblem {
  transform: scale(1.05);
}

.brand-emblem svg {
  width: 28px;
  height: 28px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 2px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease-out);
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.lang-btn {
  min-width: 38px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background: var(--brand);
  color: #ffffff;
}

.header-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.92rem;
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}

.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 33, 54, 0.56);
}

.mobile-drawer-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  background: var(--surface);
  border-radius: var(--r-modal);
  padding: 20px;
  box-shadow: var(--shadow-float);
  transform: translateY(-18px) scale(0.97);
  transition: transform 0.34s var(--ease-out);
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateY(0) scale(1);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
}

.drawer-links {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.drawer-links a {
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--bg);
  transition: background-color 0.2s ease;
}

.drawer-links a:hover {
  background: var(--surface-tint);
}

.drawer-footer {
  display: grid;
  gap: 10px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: clamp(28px, 4.2vw, 56px) 0 clamp(38px, 5vw, 68px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-lead {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.fact-tile {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 16px 15px;
  border: 1px solid var(--line);
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease;
}

.fact-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 63, 99, 0.24);
}

.fact-num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact-label {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 5px;
  line-height: 1.32;
}

.hero-visual {
  position: relative;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--brand-deep);
  aspect-ratio: 10 / 10.6;
  box-shadow: var(--shadow-soft);
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.2s var(--ease-out);
}

.hero-media-frame:hover img {
  transform: scale(1.05);
}

.hero-caption-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(9, 33, 54, 0.88);
  color: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-caption-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
}

.hero-caption-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.rating-pill svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   INSTAGRAM HIGHLIGHTS (ROUND STORIES)
   ========================================================= */

.highlights-section {
  padding: 18px 0 clamp(44px, 5vw, 68px);
}

.highlights-wrap {
  background: var(--surface);
  border-radius: var(--r-frame);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  overflow: hidden;
}

.highlights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.highlights-head h2 {
  font-size: clamp(1.32rem, 2vw, 1.75rem);
}

.highlights-head p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin-top: 4px;
}

.ig-handle-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 13px;
  background: var(--surface-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.ig-handle-link:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.ig-handle-link svg {
  width: 18px;
  height: 18px;
}

.highlights-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.story-trigger {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.28s var(--ease-spring);
}

.story-trigger:hover {
  transform: translateY(-4px);
}

.story-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, transform 0.28s var(--ease-spring);
}

.story-trigger:hover .story-ring {
  background: var(--brand);
  transform: scale(1.04);
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: var(--surface);
  overflow: hidden;
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.story-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}

/* =========================================================
   3D STUDIO CONFIGURATOR (DEEP NAVY ISLAND)
   ========================================================= */

.studio-section {
  background: var(--brand-deep);
  color: #ffffff;
  padding: clamp(54px, 7vw, 96px) 0;
  position: relative;
}

.studio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3.2vw, 40px);
  flex-wrap: wrap;
}

.studio-head p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.stage-column {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.stage-shell {
  position: relative;
  border-radius: var(--r-frame);
  background: var(--brand-deep-2);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  min-height: 360px;
}

.stage-canvas-wrap {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}

.stage-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
}

.stage-canvas-wrap canvas:active {
  cursor: grabbing;
}

.stage-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.stage-shell.is-fallback .stage-fallback {
  display: flex;
}

.stage-hud-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 4;
}

.stage-mode-toggle {
  display: inline-flex;
  background: rgba(9, 33, 54, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  padding: 4px;
  pointer-events: auto;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.mode-btn.is-active {
  background: var(--accent);
  color: #ffffff;
}

.stage-icon-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 33, 54, 0.84);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.stage-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.stage-hud-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(9, 33, 54, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 15px;
  z-index: 4;
}

.stage-summary-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
}

.stage-summary-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.stage-drag-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.stage-disclaimer {
  margin-top: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
}

.controls-panel {
  background: var(--brand-deep-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-frame);
  padding: clamp(20px, 2.6vw, 30px);
  display: grid;
  gap: 22px;
}

.control-group-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-group-hint {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.64);
}

.option-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.opt-btn {
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--r-chip);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.opt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.opt-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.material-btn {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--r-chip);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.89rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.material-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.material-btn.is-active {
  background: rgba(13, 148, 136, 0.22);
  border-color: #2dd4bf;
  color: #ffffff;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.material-note {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.stain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stain-chip {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: var(--r-chip);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.stain-chip:hover {
  background: rgba(255, 255, 255, 0.11);
}

.stain-chip.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-deep);
  font-weight: 700;
}

.studio-cta-box {
  padding-top: 6px;
  display: grid;
  gap: 10px;
}

.studio-cta-box .btn {
  width: 100%;
}

.studio-cta-sub {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* =========================================================
   SERVICES (INTERACTIVE EDITORIAL FEATURE + SELECTOR)
   ========================================================= */

.section-pad {
  padding: clamp(58px, 7.2vw, 104px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(26px, 3.6vw, 44px);
  flex-wrap: wrap;
}

.section-head p {
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.services-board {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.service-tabs {
  display: grid;
  gap: 10px;
}

.service-tab {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r-card);
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition:
    background-color 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out),
    transform 0.24s var(--ease-out);
}

.service-tab:hover {
  border-color: rgba(14, 63, 99, 0.28);
  transform: translateX(4px);
}

.service-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.service-tab-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  display: block;
}

.service-tab-sub {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 4px;
  display: block;
}

.service-tab.is-active .service-tab-sub {
  color: rgba(255, 255, 255, 0.8);
}

.service-tab-arrow {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-out), background-color 0.24s ease;
}

.service-tab.is-active .service-tab-arrow {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateX(2px);
}

.service-detail-card {
  background: var(--surface);
  border-radius: var(--r-frame);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.24s ease, transform 0.28s var(--ease-out);
}

.service-detail-card.is-switching {
  opacity: 0.55;
  transform: translateY(6px);
}

.service-detail-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-tint);
  overflow: hidden;
}

.service-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-detail-card:hover .service-detail-photo img {
  transform: scale(1.03);
}

.service-photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 11px;
  background: rgba(9, 33, 54, 0.86);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.service-detail-body {
  padding: clamp(20px, 2.8vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.service-detail-body p {
  color: var(--ink-muted);
}

.service-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.service-points svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-detail-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.price-honest {
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 28ch;
}

/* =========================================================
   BEFORE / AFTER INTERACTIVE COMPARISON
   ========================================================= */

.ba-section {
  background: var(--surface-tint);
  padding: clamp(58px, 7.2vw, 102px) 0;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.ba-card {
  background: var(--surface);
  border-radius: var(--r-frame);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.ba-compare {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  user-select: none;
  background: var(--brand-deep);
  --pos: 50%;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(9, 33, 54, 0.3);
  pointer-events: none;
}

.ba-handle svg {
  width: 20px;
  height: 20px;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.ba-badge {
  position: absolute;
  top: 14px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(9, 33, 54, 0.78);
  pointer-events: none;
  z-index: 2;
}

.ba-badge-before {
  left: 14px;
}

.ba-badge-after {
  right: 14px;
  background: rgba(13, 148, 136, 0.92);
}

.ba-info {
  padding: 20px 22px 22px;
  display: grid;
  gap: 8px;
}

.ba-info p {
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.ba-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand);
  margin-top: 2px;
}

/* =========================================================
   EQUIPMENT & EXPERT WARNING SECTION
   ========================================================= */

.equip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.equip-photo-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 14px;
}

.equip-photo-box {
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--surface-tint);
  position: relative;
  cursor: zoom-in;
}

.equip-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 0.55s var(--ease-out);
}

.equip-photo-box:hover img {
  transform: scale(1.04);
}

.equip-story {
  background: var(--surface);
  border-radius: var(--r-frame);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.equip-story p {
  color: var(--ink-muted);
}

.warning-box {
  background: var(--warn-soft);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--warn-ink);
  display: grid;
  gap: 7px;
}

.warning-box strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #6b3704;
}

.warning-box p {
  color: #6b3704;
  font-size: 0.93rem;
}

.equip-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-chip {
  background: var(--bg);
  border-radius: 16px;
  padding: 14px 15px;
}

.spec-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand);
}

.spec-chip span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* =========================================================
   MASTER & HORECA SPLIT
   ========================================================= */

.master-section {
  background: var(--surface-warm);
  padding: clamp(58px, 7vw, 96px) 0;
}

.master-card {
  background: var(--surface);
  border-radius: var(--r-frame);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.4vw, 42px);
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: clamp(22px, 3.8vw, 46px);
  align-items: center;
}

.master-portrait {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--brand-deep);
}

.master-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.master-copy {
  display: grid;
  gap: 16px;
}

.master-copy p {
  color: var(--ink-muted);
  max-width: 60ch;
}

.master-quote {
  margin: 4px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.48;
}

.master-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.master-tag {
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================
   REVIEWS FROM 2GIS AKTOBE
   ========================================================= */

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 16px;
}

.reviews-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--brand);
  line-height: 1;
}

.reviews-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.28;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.review-date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: #e69d17;
}

.stars svg {
  width: 15px;
  height: 15px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
}

.review-source {
  margin-top: auto;
  font-size: 0.81rem;
  color: var(--ink-soft);
}

/* =========================================================
   ESTIMATE FORM + CUSTOM COMBOBOX + PHOTO PREVIEW
   ========================================================= */

.order-section {
  background: var(--brand);
  color: #ffffff;
  padding: clamp(58px, 7.2vw, 102px) 0;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.order-aside {
  display: grid;
  gap: 20px;
}

.order-aside p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.order-steps {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.order-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.order-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.order-step-icon svg {
  width: 18px;
  height: 18px;
}

.order-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.order-step span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.order-form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-frame);
  padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-float);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  position: relative;
}

.field-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.field-input,
.field-textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: var(--r-field);
  border: 1.5px solid rgba(17, 29, 41, 0.16);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.97rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field-input:focus,
.field-textarea:focus {
  border-color: var(--brand);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.field-textarea {
  min-height: 92px;
  resize: vertical;
}

/* Custom accessible Combobox / Listbox (NO native blue select) */
.custom-picker {
  position: relative;
}

.picker-trigger {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border-radius: var(--r-field);
  border: 1.5px solid rgba(17, 29, 41, 0.16);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.picker-trigger:hover,
.picker-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  background: #ffffff;
}

.picker-trigger-main {
  display: grid;
  gap: 2px;
}

.picker-value {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
}

.picker-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.picker-chevron {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-out);
}

.picker-trigger[aria-expanded="true"] .picker-chevron {
  transform: rotate(180deg);
}

.picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  background: var(--surface);
  border: 1.5px solid rgba(14, 63, 99, 0.18);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow-float);
  display: grid;
  gap: 4px;
  max-height: min(320px, 52vh);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.24s var(--ease-out);
}

.picker-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.picker-menu.open-upward {
  top: auto;
  bottom: calc(100% + 8px);
}

.picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 11px 13px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.16s ease;
}

.picker-option:hover,
.picker-option.is-focused {
  background: var(--surface-tint);
}

.picker-option[aria-selected="true"] {
  background: var(--brand);
  color: #ffffff;
}

.picker-option strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
}

.picker-option span {
  display: block;
  font-size: 0.81rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.picker-option[aria-selected="true"] span {
  color: rgba(255, 255, 255, 0.8);
}

.picker-check {
  width: 18px;
  height: 18px;
  opacity: 0;
  flex-shrink: 0;
}

.picker-option[aria-selected="true"] .picker-check {
  opacity: 1;
}

/* Form chips */
.form-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-chip {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1.5px solid rgba(17, 29, 41, 0.14);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.form-chip:hover {
  border-color: var(--brand);
  background: var(--surface-tint);
}

.form-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

/* Photo upload preview */
.photo-drop {
  border: 1.5px dashed rgba(14, 63, 99, 0.28);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.photo-drop-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.photo-drop-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.photo-drop-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.photo-drop-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.photo-upload-btn {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(14, 63, 99, 0.2);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.photo-upload-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-preview-row {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.photo-preview-row.has-file {
  display: flex;
}

.photo-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.photo-preview-meta {
  flex: 1;
  min-width: 0;
}

.photo-preview-name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-preview-tip {
  font-size: 0.8rem;
  color: var(--accent-hover);
  margin-top: 2px;
}

.photo-clear-btn {
  border: 0;
  background: var(--bg);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
}

.wa-preview-box {
  background: var(--bg);
  border-radius: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.wa-preview-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.wa-preview-text {
  font-size: 0.9rem;
  color: var(--ink);
  white-space: pre-line;
  line-height: 1.46;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-submit-row .btn-accent {
  flex: 1 1 240px;
}

.sync-toast {
  display: none;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #0b5d56;
  font-size: 0.88rem;
  font-weight: 600;
}

.sync-toast.is-shown {
  display: block;
}

/* =========================================================
   CONTACTS & FOOTER
   ========================================================= */

.footer-section {
  background: var(--brand-deep);
  color: #ffffff;
  padding: clamp(48px, 6vw, 76px) 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.85fr));
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-col h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-list a:hover {
  color: #67e8e5;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.64);
}

/* =========================================================
   FLOATING CONTACT DISCLOSURE (BOTTOM-RIGHT STANDARD)
   ========================================================= */

.contact-fab-wrap {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.contact-fab-menu {
  background: var(--surface);
  border: 1.5px solid rgba(14, 63, 99, 0.22);
  border-radius: 22px;
  padding: 10px;
  min-width: 256px;
  box-shadow: 0 22px 52px rgba(9, 33, 54, 0.28), 0 6px 18px rgba(9, 33, 54, 0.12);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.24s var(--ease-out), transform 0.3s var(--ease-spring);
}

.contact-fab-wrap.is-open .contact-fab-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.contact-fab-item:hover {
  background: var(--surface-tint);
  transform: translateX(-2px);
}

.contact-fab-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-fab-icon.wa {
  background: #1d9a4c;
}

.contact-fab-icon.ig {
  background: #c13584;
}

.contact-fab-icon.tel {
  background: var(--brand);
}

.contact-fab-icon svg {
  width: 20px;
  height: 20px;
}

.contact-fab-label strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.contact-fab-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.contact-fab-trigger {
  min-height: 54px;
  padding: 0 20px 0 16px;
  border-radius: 18px;
  border: 0;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-float);
  transition: transform 0.24s var(--ease-spring), background-color 0.22s ease;
}

.contact-fab-trigger:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.contact-fab-trigger .fab-close-icon {
  display: none;
}

.contact-fab-wrap.is-open .contact-fab-trigger {
  background: var(--ink);
}

.contact-fab-wrap.is-open .contact-fab-trigger .fab-open-icon {
  display: none;
}

.contact-fab-wrap.is-open .contact-fab-trigger .fab-close-icon {
  display: block;
}

/* =========================================================
   STORY VIEWER MODAL & PHOTO LIGHTBOX
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 18, 30, 0.86);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease-out);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-dialog {
  width: min(100%, 420px);
  max-height: min(92vh, 760px);
  background: #0d1c2b;
  border-radius: var(--r-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.32s var(--ease-out);
}

.modal-overlay.is-open .story-dialog {
  transform: scale(1) translateY(0);
}

.story-progress-bars {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  gap: 5px;
}

.story-bar {
  flex: 1;
  height: 3.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.2s linear;
}

.story-bar.is-done .story-bar-fill {
  width: 100%;
}

.story-bar.is-current .story-bar-fill {
  width: 100%;
}

.story-header {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.story-meta img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.story-meta-title {
  font-weight: 700;
  font-size: 0.92rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.story-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(9, 33, 54, 0.72);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.story-stage {
  position: relative;
  aspect-ratio: 9 / 14.2;
  max-height: 76vh;
  background: #07121c;
  overflow: hidden;
}

.story-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(9, 33, 54, 0.72);
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 6;
}

.story-nav-btn.prev {
  left: 10px;
}

.story-nav-btn.next {
  right: 10px;
}

.story-caption-footer {
  padding: 15px 18px 18px;
  background: #0d1c2b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-caption-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.story-ig-btn {
  padding: 9px 13px;
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Lightbox */
.lightbox-card {
  width: min(100%, 960px);
  max-height: 92vh;
  background: #0d1c2b;
  border-radius: var(--r-modal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-top {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.lightbox-img-wrap {
  background: #060f18;
  display: grid;
  place-items: center;
  max-height: 76vh;
  overflow: hidden;
}

.lightbox-img-wrap img {
  max-height: 76vh;
  width: auto;
  object-fit: contain;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1024px, 934px, 768px, 430px, 320px)
   ========================================================= */

@media (max-width: 1060px) {
  .main-nav {
    gap: 16px;
  }

  .hero-grid,
  .studio-layout,
  .services-board,
  .equip-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .hero-media-frame {
    max-height: 500px;
    aspect-ratio: 16 / 11;
  }

  .stage-column {
    position: static;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .burger-btn {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .master-card {
    grid-template-columns: 1fr;
  }

  .master-portrait {
    max-width: 320px;
    margin-inline: auto;
  }

  .equip-photo-stack {
    grid-template-columns: 1fr;
  }

  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
    --gutter: 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-mark {
    gap: 9px;
    min-width: 0;
  }

  .brand-emblem {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
  }

  .brand-emblem svg {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .lang-btn {
    min-width: 32px;
    height: 30px;
    font-size: 0.78rem;
  }

  .burger-btn {
    width: 40px;
    height: 40px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-caption-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Keep 3D stage visible while picking material/stains on phone */
  .stage-column {
    position: sticky;
    top: var(--header-h);
    z-index: 15;
    background: var(--brand-deep);
    padding: 8px 0 10px;
  }

  .stage-shell {
    aspect-ratio: auto;
    min-height: 230px;
    height: 240px;
    border-radius: 22px;
  }

  .stage-hud-top {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .mode-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .stage-hud-bottom {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 12px;
  }

  .stage-drag-hint {
    display: none;
  }

  .stage-disclaimer {
    display: none;
  }

  .option-grid-2,
  .form-row-2,
  .equip-specs {
    grid-template-columns: 1fr;
  }

  .highlights-rail {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    gap: 14px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .story-trigger {
    flex: 0 0 88px;
    scroll-snap-align: start;
  }

  .story-ring {
    width: 78px;
    height: 78px;
  }

  .contact-fab-trigger {
    min-height: 50px;
    padding: 0 16px 0 14px;
    font-size: 0.9rem;
  }

  .footer-section {
    padding-bottom: 92px;
  }
}

@media (max-width: 396px) {
  :root {
    --gutter: 14px;
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .btn {
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
  }

  .contact-fab-menu {
    min-width: 0;
    width: min(286px, calc(100vw - 28px));
  }
}

@media (max-width: 350px) {
  h1 {
    font-size: 1.7rem;
  }

  .brand-emblem {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .stage-shell {
    height: 218px;
  }

  .master-portrait {
    max-width: 100%;
  }

  .order-form-card,
  .controls-panel,
  .highlights-wrap {
    padding: 16px;
  }
}

@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;
  }

  .js-ready [data-reveal],
  .js-ready [data-hero-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}
