*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0c1a22;
  --bg-section: #122028;
  --bg-card: #1a2d38;
  --accent: #4a7cff;
  --accent-glow: #6b9fff;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --overlay: rgba(8, 20, 28, 0.75);
  --radius: 4px;
  --font: 'Montserrat', system-ui, sans-serif;
  --header-h: 64px;
  --needle-thread-h: 632px;
  --mobile-quick-nav-h: 46px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-fixed-bg__image {
  position: absolute;
  inset: 0;
  background-color: #0a1520;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: brightness(var(--bg-brightness, 100%))
          saturate(var(--bg-saturation, 100%))
          url(#bgGammaFilter);
  transform: translateZ(0);
}

.site-fixed-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    radial-gradient(ellipse at 70% 20%, rgba(74, 124, 255, 0.12), transparent 50%);
}

.site-fixed-bg.hidden {
  visibility: hidden;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.lightbox {
  z-index: 200;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 26, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  position: relative;
  z-index: 101;
  margin-left: 18px;
}

.brand-mark {
  position: absolute;
  left: -18px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.7);
  flex-shrink: 0;
  pointer-events: none;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent-glow);
  border-radius: 2px;
}

.nav a.hidden {
  display: none;
}

.nav-mobile-title {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 101;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-quick-nav {
  display: none;
}

@media (min-width: 769px) {
  .burger,
  .nav-backdrop,
  .mobile-quick-nav {
    display: none !important;
  }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }

  .nav.open {
    transform: none;
  }

  .nav a {
    width: auto;
    min-height: 0;
    padding: 0;
    border-bottom: none;
    background: transparent;
    font-size: 0.72rem;
  }

  .nav a.active {
    background: transparent;
  }

  .nav a.active::after {
    display: block;
  }

  .nav-mobile-title {
    display: none !important;
  }

  body.menu-open {
    overflow: auto;
    touch-action: auto;
  }

  .about-grid {
    gap: 48px;
  }

  .about-photo-frame {
    display: block;
  }

  .about-photo-frame img {
    width: 100%;
    object-position: center center;
  }

  .about-photo-frame img.fallback {
    padding: 28px;
    object-position: center center;
  }
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px -6px -10px 0;
  min-width: 44px;
  min-height: 44px;
  z-index: 101;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 20px 48px;
  background: transparent;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(74, 124, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  min-height: calc(100vh - var(--header-h) - 88px);
}

.hero-label {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-seo {
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 600;
  color: var(--accent-glow);
  margin: -8px auto 14px;
  max-width: 560px;
  line-height: 1.45;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(135deg, #8ab4ff 0%, var(--accent) 50%, #3d5fcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(74, 124, 255, 0.3);
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-motto {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto;
  padding: 14px 22px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(74, 124, 255, 0.22), rgba(74, 124, 255, 0.06));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 8px 32px rgba(74, 124, 255, 0.12);
}

.daily-news {
  width: 100%;
  max-width: 640px;
  margin: 18px auto 0;
  animation: dailyNewsIn 0.55s ease-out;
}

@keyframes dailyNewsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.daily-news-inner {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 12px 14px 14px;
  box-shadow: none;
  text-align: left;
}

.daily-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.daily-news-arrows {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.daily-news-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(107, 159, 255, 0.35);
  border-radius: 50%;
  background: rgba(74, 124, 255, 0.12);
  color: var(--accent-glow);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}

.daily-news-arrow:hover {
  background: rgba(74, 124, 255, 0.28);
  border-color: var(--accent-glow);
}

.daily-news-track-wrap {
  overflow: hidden;
}

.daily-news-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 159, 255, 0.4) transparent;
  padding-bottom: 6px;
}

.daily-news-track::-webkit-scrollbar {
  height: 4px;
}

.daily-news-track::-webkit-scrollbar-thumb {
  background: rgba(107, 159, 255, 0.45);
  border-radius: 4px;
}

.daily-news-card {
  flex: 0 0 88%;
  max-width: 300px;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 12px;
}

.daily-news-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--daily-news-text-color, #6b9fff);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 1px rgba(0, 0, 0, 0.8);
}

.daily-news-label::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74, 124, 255, 0.55);
  animation: dailyPulse 2.8s ease-in-out infinite;
}

@keyframes dailyPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.daily-news-text {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--daily-news-text-color, #ffffff);
  margin: 0 0 10px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 0 1px rgba(0, 0, 0, 0.85);
}

.daily-news-media-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.daily-news-media-btn img,
.daily-news-media-btn video {
  display: block;
  max-height: 160px;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
  pointer-events: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.daily-news-media-btn--play video {
  background: rgba(0, 0, 0, 0.35);
}

.daily-news-play,
.daily-news-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(12, 26, 34, 0.35);
  border-radius: 8px;
  transition: background 0.2s;
  pointer-events: none;
}

.daily-news-media-btn:hover .daily-news-play,
.daily-news-media-btn:hover .daily-news-zoom {
  background: rgba(12, 26, 34, 0.5);
}

.daily-news-embed--thumb {
  position: relative;
  display: block;
  padding-bottom: 56%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.daily-news-embed--thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.daily-news-date {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--daily-news-text-color, rgba(255, 255, 255, 0.82));
  letter-spacing: 0.04em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 1px rgba(0, 0, 0, 0.8);
}

.lb-daily-img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 8px;
}

.lb-daily-video {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  background: #000;
}

.lb-daily-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.lb-daily-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lb-daily-text {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.lb-daily-date {
  margin-top: 8px;
}

.hero-scroll {
  display: inline-block;
  margin-top: auto;
  padding-top: 56px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-glow);
  border-bottom: 1px solid rgba(107, 159, 255, 0.4);
  padding-bottom: 4px;
  transition: 0.25s;
}

.hero-scroll:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-bg {
  position: relative;
  background: transparent;
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--section-bg, var(--bg-section));
  opacity: var(--section-opacity, 0.78);
  z-index: 0;
  pointer-events: none;
}

.section-bg > .container,
.section-bg > .container.about-grid,
.section-bg.prices-inner-wrap {
  position: relative;
  z-index: 1;
}

.footer.section-bg::before {
  background: var(--section-bg, var(--bg-dark));
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: -28px 0 36px;
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 1.5fr);
  gap: 16px;
  align-items: start;
}

.needle-fixed {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.needle-fixed.needle-hidden {
  opacity: 0;
  visibility: hidden;
}

.needle-pendulum {
  position: relative;
  width: 34px;
}

.needle-arm {
  position: relative;
  left: 50%;
  width: 0;
  height: var(--needle-thread-h);
  transform-origin: top center;
  animation: needle-sway 7s ease-in-out infinite;
  pointer-events: none;
}

.needle-thread {
  position: absolute;
  top: 0;
  left: -0.5px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.5));
}

.needle-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 28px;
  height: 108px;
  margin-left: -14px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.needle-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes needle-sway {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(1.8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .needle-arm {
    animation: none;
  }
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-list {
  list-style: none;
  margin: 20px 0;
}

.about-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-glow);
}

.about-cta {
  font-weight: 600;
  color: var(--text) !important;
}

.about-photo {
  width: 100%;
}

.about-photo-frame {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: transparent;
  display: flex;
  justify-content: flex-start;
}

.about-photo-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  max-height: min(72vh, 640px);
  filter: brightness(var(--about-brightness, 100%))
          saturate(var(--about-saturation, 100%))
          url(#aboutGammaFilter);
  opacity: var(--about-opacity, 1);
}

.about-photo-frame img.fallback {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: left center;
  padding: 28px;
  padding-left: 0;
  max-height: 420px;
}

/* Services */
.services {
  padding-top: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  cursor: default;
}

.service-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
  filter: brightness(var(--service-brightness, 100%))
          saturate(var(--service-saturation, 100%));
  opacity: var(--service-opacity, 1);
}

.service-img-default {
  background: linear-gradient(135deg, #1a2830, #3a5060);
}

.service-img-default-1 { background: linear-gradient(135deg, #2a1810, #5c3a28); }
.service-img-default-2 { background: linear-gradient(135deg, #1a2830, #3a5060); }
.service-img-default-3 { background: linear-gradient(135deg, #281818, #503030); }
.service-img-default-4 { background: linear-gradient(135deg, #1a2028, #3a4555); }

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, var(--service-overlay-opacity, 0.85)) 0%,
    transparent 60%
  );
}

.service-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
  text-align: center;
  color: var(--service-text-color, #fff);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

/* Works gallery */
.works-section {
  padding: 64px 0;
}

.works-section .section-title {
  margin-bottom: 32px;
}

.works-section .filters {
  margin-bottom: 26px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter {
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.25s;
}

.filter.active,
.filter:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.works-gallery-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -16px 0 12px;
}

.works-gallery-arrows {
  display: flex;
  gap: 8px;
}

.works-gallery-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(107, 159, 255, 0.35);
  border-radius: 50%;
  background: rgba(74, 124, 255, 0.12);
  color: var(--accent-glow);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}

.works-gallery-arrow:hover {
  background: rgba(74, 124, 255, 0.28);
  border-color: var(--accent-glow);
}

.works-gallery-wrap {
  overflow: hidden;
}

.works-gallery {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc(40% - 3px);
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 159, 255, 0.45) transparent;
  padding-bottom: 8px;
}

.works-gallery::-webkit-scrollbar {
  height: 5px;
}

.works-gallery::-webkit-scrollbar-thumb {
  background: rgba(107, 159, 255, 0.45);
  border-radius: 4px;
}

.work-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.work-photos-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 3px;
}

.work-photos-grid[data-count="1"] {
  grid-template: 1fr / 1fr;
}

.work-photos-grid[data-count="2"] {
  grid-template: 1fr / repeat(2, 1fr);
}

.work-photos-grid[data-count="3"] {
  grid-template: 1fr / repeat(3, 1fr);
}

.work-photos-grid[data-count="4"] {
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
}

.work-photos-grid[data-count="5"],
.work-photos-grid[data-count="6"] {
  grid-template: repeat(2, 1fr) / repeat(3, 1fr);
}

.work-photos-grid[data-count="5"] .work-photo-thumb:nth-child(4) {
  grid-column: 1;
}

.work-photos-grid[data-count="5"] .work-photo-thumb:nth-child(5) {
  grid-column: 2;
}

.work-photo-thumb {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  background: #0a1520;
  cursor: pointer;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.work-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.work-photo-thumb:hover img,
.work-photo-thumb:focus-visible img {
  transform: scale(1.06);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.work-item:hover img {
  transform: scale(1.08);
}

.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
  opacity: 0;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  padding: 14px;
}

.work-item:hover .work-item-overlay {
  opacity: 1;
}

.work-item-overlay h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-item-overlay span {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.work-count {
  display: block;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-align: center;
  flex-shrink: 0;
}

.work-item > .work-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.work-compare {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.work-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
}

.work-compare-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.work-compare-cell img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
}

.work-compare .work-count {
  margin: 3px auto 4px;
}

.lb-slider-label--overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-slider-label--overlay.hidden {
  display: none;
}

.lightbox-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.lightbox-photo {
  position: relative;
}

.lightbox-photo img {
  width: 100%;
  border-radius: var(--radius);
}

.lightbox-photo-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-glow);
}

.lb-slider {
  position: relative;
  margin-bottom: 16px;
}

.lb-slider-stage {
  position: relative;
  max-height: 65vh;
}

.lb-slider-stage img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lb-slider-label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-glow);
}

.lb-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(12, 26, 34, 0.85);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: 0.2s;
}

.lb-slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent-glow);
}

.lb-slider-btn.lb-prev {
  left: 0;
}

.lb-slider-btn.lb-next {
  right: 0;
}

.lb-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.lb-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}

.lb-slider-dot.active {
  background: var(--accent-glow);
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 95;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(12, 26, 34, 0.92);
  color: var(--accent-glow);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, border-color 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--accent);
  color: var(--text);
}

.work-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 2rem;
}

/* Videos */
.videos-section {
  /* фон через section-bg */
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed {
  aspect-ratio: 16/9;
  background: #000;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-body {
  padding: 16px;
}

.video-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.video-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-new {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* Reviews */
.reviews-section .section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card-author {
  font-weight: 700;
  font-size: 1.05rem;
}

.review-card-stars,
.stars-display {
  display: flex;
  gap: 2px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  line-height: 1;
}

.review-card-stars .star-on,
.stars-display .star-on {
  color: #f5c542;
}

.star-rating {
  display: flex;
  gap: 6px;
}

.star-rating .star {
  background: none;
  border: none;
  padding: 4px;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.star-rating .star.filled {
  color: #f5c542;
}

.star-rating .star:not(:disabled):hover,
.star-rating .star:not(:disabled):focus-visible {
  transform: scale(1.08);
}

.review-rating-field.hidden {
  display: none;
}

.review-card-work {
  font-size: 0.85rem;
  color: var(--accent);
}

.review-card-text {
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.review-card-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.review-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.review-form-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.review-form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.review-order-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-order-row input {
  flex: 1;
  min-width: 180px;
}

.review-order-row .btn {
  min-height: 48px;
  white-space: nowrap;
}

.review-order-status {
  margin-top: 8px;
  font-size: 0.88rem;
}

.review-order-status.success {
  color: #2ecc71;
}

.review-order-status.error {
  color: #e74c3c;
}

.review-field input:disabled,
.review-field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-accent:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.review-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.review-field input,
.review-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-section);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.review-field input:focus,
.review-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.review-field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-outline {
  display: inline-block;
  padding: 14px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-accent:hover {
  opacity: 0.9;
}

.review-form-msg {
  margin-top: 14px;
  font-size: 0.92rem;
}

.review-form-msg.success {
  color: #2ecc71;
}

.review-form-msg.error {
  color: #e74c3c;
}

.work-review-hint {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.work-review-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.work-review-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .review-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Prices */
.prices-section {
  /* фон через section-bg */
}

.prices-inner-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.prices-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.prices-grid {
  margin-top: 32px;
  text-align: left;
}

.prices-grid:empty {
  display: none;
  margin-top: 0;
}

.price-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.price-block h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--accent-glow);
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-row:last-child {
  border-bottom: none;
}

.price-row span:last-child {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Suppliers */
.suppliers-section {
  /* фон через section-bg */
}

.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.supplier-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: 0.25s;
}

.supplier-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 10px;
  object-fit: contain;
  opacity: var(--suppliers-icon-opacity, 1);
  transition: opacity 0.25s;
}

.supplier-card:hover {
  border-color: var(--accent);
}

.supplier-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--accent-glow);
}

.supplier-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contacts */
.contacts-section {
  /* фон через section-bg */
}

.contacts-inner {
  max-width: 600px;
  text-align: center;
}

.contacts-lead {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.contact-action-btn:hover,
.contact-action-btn:active {
  border-color: var(--accent);
  color: var(--accent-glow);
  background: rgba(74, 124, 255, 0.12);
}

.contact-action-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact-action-btn--primary:hover,
.contact-action-btn--primary:active {
  color: #fff;
  opacity: 0.92;
}

.contacts-list {
  list-style: none;
  text-align: left;
}

.contacts-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
}

.contacts-list li:last-child {
  border-bottom: none;
}

.contacts-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contacts-list a {
  color: var(--accent-glow);
  transition: 0.25s;
}

.contacts-list a#addressLink {
  text-decoration: underline;
  text-decoration-color: rgba(107, 159, 255, 0.35);
  text-underline-offset: 3px;
}

.contacts-list a:hover {
  color: var(--text);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-link {
  margin-top: 8px;
}

.footer-link a {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer-link a:hover {
  color: var(--accent-glow);
}

.empty-msg {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  padding: 32px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  z-index: 3;
}

.lb-work-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(107, 159, 255, 0.45);
  border-radius: 50%;
  background: rgba(12, 26, 34, 0.88);
  color: var(--accent-glow);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.lb-work-nav:hover {
  background: rgba(74, 124, 255, 0.35);
  border-color: var(--accent-glow);
}

.lb-work-prev {
  left: max(12px, env(safe-area-inset-left));
}

.lb-work-next {
  right: max(12px, env(safe-area-inset-right));
}

.lb-work-counter {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-glow);
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 75vh;
  margin: 0 auto 16px;
  border-radius: var(--radius);
}

.lightbox-content h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lightbox-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .needle-pendulum {
    width: 26px;
  }

  .needle-body {
    width: 20px;
    height: 76px;
    margin-left: -10px;
  }

  .about-photo {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --needle-thread-h: min(360px, 48vh);
    --mobile-quick-nav-h: 44px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + var(--mobile-quick-nav-h) + 10px);
  }

  main section[id] {
    scroll-margin-top: calc(var(--header-h) + var(--mobile-quick-nav-h) + 10px);
  }

  .site-fixed-bg__image {
    background-position: center center;
  }

  .container {
    padding: 0 16px 0 22px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 28px;
    letter-spacing: 0.08em;
    font-size: clamp(1.35rem, 5.5vw, 1.6rem);
  }

  .section-sub {
    margin: -20px 0 28px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .needle-fixed {
    opacity: 0.72;
  }

  .brand {
    margin-left: 16px;
    max-width: calc(100% - 56px);
  }

  .brand-mark {
    left: -16px;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: calc(var(--header-h) + 16px) 12px calc(24px + env(safe-area-inset-bottom));
  }

  .hero-content {
    min-height: calc(100dvh - var(--header-h) - 48px);
    max-width: 100%;
    padding: 0 4px;
  }

  .hero-label {
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .hero-seo {
    font-size: 0.8rem;
    margin: -4px auto 12px;
  }

  .hero-title {
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  .hero-tagline {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .hero-motto {
    width: 100%;
    max-width: none;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    line-height: 1.5;
    padding: 12px 14px;
    margin-left: 6px;
    text-align: left;
  }

  .daily-news {
    max-width: none;
    margin-top: 14px;
  }

  .daily-news-inner {
    padding: 10px 12px 12px;
  }

  .daily-news-card {
    flex: 0 0 92%;
    max-width: none;
  }

  .daily-news-media-btn img,
  .daily-news-media-btn video {
    max-height: 150px;
  }

  .hero-scroll {
    padding-top: 28px;
    padding-bottom: env(safe-area-inset-bottom);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .burger {
    display: flex;
  }

  .nav-mobile-title {
    display: block;
    width: 100%;
    padding: 12px 4px 8px;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 102;
    background: rgba(12, 26, 34, 0.98);
    flex-direction: column;
    padding: 4px 16px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    width: 100%;
    padding: 16px 8px;
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: transparent;
  }

  .nav a.active {
    color: var(--accent-glow);
    background: rgba(74, 124, 255, 0.08);
    border-radius: 4px;
    border-bottom-color: transparent;
  }

  .nav a.active::after {
    display: none;
  }

  .nav a:active {
    color: var(--accent-glow);
  }

  .mobile-quick-nav {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(12, 26, 34, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    transform: translateY(calc(-100% - 4px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .mobile-quick-nav.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-quick-nav__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .mobile-quick-nav__track {
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 2px 0;
  }

  .mobile-quick-nav__track::-webkit-scrollbar {
    display: none;
  }

  .mobile-quick-nav__link {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 8px 14px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    border: 1px solid rgba(107, 159, 255, 0.35);
    background: rgba(74, 124, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .mobile-quick-nav__link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .mobile-quick-nav__call {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(107, 159, 255, 0.45);
    background: rgba(74, 124, 255, 0.2);
    font-size: 1.1rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-quick-nav__call:active {
    background: var(--accent);
  }

  .scroll-top.visible {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-card {
    aspect-ratio: 4/5;
  }

  .service-card h3 {
    font-size: 0.65rem;
    padding: 12px 6px;
    line-height: 1.35;
  }

  .filters {
    margin-bottom: 24px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .works-gallery {
    grid-auto-columns: calc(50% - 3px);
    gap: 6px;
  }

  .work-item-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 45%);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .review-form-wrap {
    padding: 20px 16px;
  }

  .review-order-row {
    flex-direction: column;
  }

  .review-order-row input,
  .review-order-row .btn {
    width: 100%;
    min-width: 0;
  }

  .review-field input,
  .review-field textarea,
  .review-order-row input {
    font-size: 16px;
  }

  .review-field textarea {
    min-height: 100px;
  }

  .btn-outline,
  .btn-accent {
    min-height: 48px;
  }

  .review-form-wrap .btn-outline,
  .review-form-wrap .btn-accent {
    width: 100%;
    text-align: center;
  }

  .contacts-actions {
    flex-direction: column;
  }

  .contact-action-btn {
    width: 100%;
  }

  .lb-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .scroll-top {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .contacts-list li {
    flex-wrap: wrap;
    font-size: 0.92rem;
    padding: 14px 0;
    gap: 12px;
  }

  .contacts-list a,
  .contacts-list span:not(.contacts-icon) {
    flex: 1;
    min-width: 0;
    word-break: break-word;
  }

  .price-row {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .price-row span:last-child {
    margin-left: auto;
  }

  .lightbox {
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .lightbox-close {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-content {
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }

  .lightbox-content img {
    max-height: 55dvh;
  }

  .lb-work-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lb-work-prev {
    left: 6px;
  }

  .lb-work-next {
    right: 6px;
  }

  .prices-text {
    font-size: 0.92rem;
    padding: 0 4px;
  }

  .about-text p,
  .about-list li {
    font-size: 0.88rem;
  }

  .about-photo-frame {
    max-width: min(100%, 320px);
    margin: 0 auto;
    justify-content: center;
  }

  .about-photo-frame img {
    object-position: center center;
  }

  .about-photo-frame img.fallback {
    padding-left: 28px;
  }

  .footer {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  :root {
    --needle-thread-h: min(300px, 42vh);
  }

  .container {
    padding-left: 20px;
  }

  .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand {
    margin-left: 14px;
  }

  .brand-mark {
    left: -14px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
  }

  .needle-fixed {
    opacity: 0.6;
  }

  .needle-pendulum {
    width: 22px;
  }

  .needle-body {
    width: 18px;
    height: 68px;
    margin-left: -9px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 16vw, 3.2rem);
  }

  .hero-motto {
    margin-left: 4px;
    padding: 10px 12px;
  }

  .hero-scroll {
    font-size: 0.72rem;
    padding-top: 20px;
  }

  .lightbox-compare {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    aspect-ratio: 16/9;
  }

  .filters {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .filter {
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.68rem;
  }

  .works-gallery {
    grid-auto-columns: calc(50% - 2px);
    gap: 4px;
  }

  .work-item-overlay h3 {
    font-size: 0.65rem;
  }

  .suppliers-grid {
    grid-template-columns: 1fr;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-row span:last-child {
    margin-left: 0;
    white-space: normal;
  }

  .price-block {
    padding: 18px 16px;
  }

  .footer-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .work-item-overlay {
    opacity: 1;
  }

  .work-photo-thumb:active img,
  .work-item:active img {
    transform: scale(1.02);
  }

  .service-card:hover .service-img {
    transform: none;
  }

  .filter:active,
  .filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .hero-scroll:active {
    color: var(--text);
  }
}
