:root {
  --ink: #121a22;
  --ink-soft: #1c2833;
  --paper: #f6f3ee;
  --paper-2: #ebe6de;
  --card: #fffcf8;
  --amber: #d86a2a;
  --amber-deep: #b8561c;
  --line: #ddd6cb;
  --muted: #5c6973;
  --text: #1c242c;
  --light: #f6f3ee;
  --wa: #1f8f4e;
  --header: 76px;
  --shadow: 0 18px 40px rgba(18, 26, 34, 0.08);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Noto Sans Georgian", Sylfaen, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
body.nav-open .mobile-bar { visibility: hidden; }

img, svg, video { max-width: 100%; }

button, a { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, p { margin: 0; }

h1, h2, .logo-name, .why-grid h3, .cta h2 {
  font-family: "Noto Serif Georgian", Sylfaen, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.icon { width: 22px; height: 22px; display: block; flex: none; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.eyebrow.light { color: #f0b27a; }

.section { padding: clamp(4.2rem, 8vw, 7rem) 0; }

.section-tight { padding-top: 0; }

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  max-width: 740px;
}

.section-head h2,
.band-title,
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-head p,
.lede,
.feature p,
.svc-row p,
.safety-card p,
.why-grid p,
.consult p,
.cta p,
.plate-note,
.empty-slot p,
.contact-card span,
.site-footer p {
  color: var(--muted);
}

.lede { font-size: 1.12rem; max-width: 38rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(246, 243, 238, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: height 0.16s ease, border-color 0.16s ease;
}

body.is-scrolled { --header: 56px; }
body.is-scrolled .site-header { border-bottom-color: var(--line); }

.logo-mark,
.logo-meta,
.header-call {
  transition: width 0.16s ease, height 0.16s ease, min-height 0.16s ease, font-size 0.16s ease;
}

body.is-scrolled .logo-mark { width: 28px; height: 28px; }
body.is-scrolled .logo-meta { display: none; }
body.is-scrolled .header-call {
  min-height: 36px;
  padding-inline: 10px;
  font-size: 0.86rem;
}

@media (hover: hover) and (pointer: fine) {
  body.is-scrolled .site-header:hover { --header: 76px; }
  body.is-scrolled .site-header:hover .logo-mark { width: 36px; height: 36px; }
  body.is-scrolled .site-header:hover .logo-meta { display: block; }
  body.is-scrolled .site-header:hover .header-call {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 1rem;
  }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.logo-mark { width: 36px; height: 36px; color: var(--ink); flex: none; }

.logo-name {
  display: block;
  font-size: 1.12rem;
  line-height: 1.1;
}

.logo-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
}

.desktop-nav a[aria-current="true"] { color: var(--amber-deep); }

.header-phones {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-call { min-height: 44px; padding-inline: 12px; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: 600 1rem/1 "Noto Sans Georgian", Sylfaen, sans-serif;
  cursor: pointer;
}

.btn-lg { min-height: 54px; padding-inline: 20px; }

.btn-amber { background: var(--amber); color: #1a120c; }
.btn-amber:hover { background: var(--amber-deep); color: #fff; }
.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--line); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { border-color: rgba(246, 243, 238, 0.35); color: var(--light); }
.btn-ghost:hover { border-color: var(--light); background: rgba(255, 255, 255, 0.04); }
.btn-wa { background: var(--wa); color: white; }
.btn-wa:hover { background: #187443; }

.text-link {
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover { text-decoration: underline; }

.mobile-nav {
  position: fixed;
  inset: var(--header) 0 0 0;
  z-index: 35;
  background: var(--paper);
  padding: 12px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  text-decoration: none;
  font-family: "Noto Serif Georgian", Sylfaen, serif;
  font-size: 1.7rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.hero {
  background: var(--ink);
  color: var(--light);
  padding: 36px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.65rem);
  max-width: 15em;
  margin-bottom: 16px;
}

.hero .lede { color: rgba(246, 243, 238, 0.78); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-line {
  margin-top: 18px;
  color: #f0b27a;
  font-weight: 600;
}

.plate {
  margin: 0;
  background: var(--ink-soft);
  border: 1px solid rgba(246, 243, 238, 0.12);
  border-radius: 22px;
  padding: 22px 18px 16px;
}

.plate figcaption {
  color: #f0b27a;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.schematic { width: 100%; height: auto; display: block; }
.schematic text {
  fill: var(--light);
  font-size: 15px;
  font-family: "Noto Sans Georgian", Sylfaen, sans-serif;
}
.schematic rect,
.schematic circle.device {
  fill: none;
  stroke: rgba(246, 243, 238, 0.78);
  stroke-width: 1.5;
}
.schematic line { stroke: rgba(246, 243, 238, 0.45); stroke-width: 1.5; }
.schematic .node { fill: var(--amber); }

.plate-note {
  margin-top: 8px;
  font-size: 0.86rem;
  color: rgba(246, 243, 238, 0.62);
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature, .safety-card, .contact-card, .empty-slot, .consult {
  border-radius: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
}

.feature h3, .safety-card h3, .consult h3, .empty-slot h3, .svc-row h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 600;
}

.feature-lead {
  background: var(--ink);
  color: var(--light);
  border-color: var(--ink);
}

.feature-lead p { color: rgba(246, 243, 238, 0.72); }
.feature .btn, .consult .btn { margin-top: 6px; }

.svc-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(216, 106, 42, 0.12);
  color: var(--amber-deep);
  flex: none;
}

.feature-lead .svc-ico {
  background: rgba(216, 106, 42, 0.18);
  color: #f0b27a;
}

.row-list { margin-top: 8px; }

.svc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.svc-row .text-link { grid-column: 2; justify-self: start; }
.svc-row h3 { font-family: "Noto Sans Georgian", Sylfaen, sans-serif; }

.band {
  margin-top: 48px;
  background: var(--ink);
  color: var(--light);
  padding: 56px 0;
}

.band-title { margin-bottom: 22px; }

.safety-grid { display: grid; gap: 12px; }

.safety-card {
  border: 1px solid rgba(246, 243, 238, 0.14);
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.safety-card p { color: rgba(246, 243, 238, 0.7); }
.safety-card .svc-ico { background: rgba(246, 243, 238, 0.06); color: #f0b27a; }
.safety-card h3 { margin: 14px 0 8px; }

.consult {
  margin-top: 28px;
  padding: 26px;
  background: #f3e6da;
  border: 1px solid #e4cbb8;
}

.consult p { color: #5d4638; }
.consult .hero-actions { margin-top: 0; }

.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.why-grid li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.why-grid span {
  display: block;
  color: var(--amber-deep);
  font-weight: 600;
  margin-bottom: 8px;
}

.why-grid h3 { font-size: 1.35rem; margin-bottom: 6px; }

.section-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  font-weight: 600;
}

.section-cta a { color: var(--amber-deep); text-decoration: none; }
.section-cta a:hover { text-decoration: underline; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font: 600 0.95rem/1 "Noto Sans Georgian", Sylfaen, sans-serif;
  cursor: pointer;
}

.filter.is-on { background: var(--ink); color: var(--light); border-color: var(--ink); }

.work-grid, .work-empty {
  display: grid;
  gap: 12px;
}

[hidden] { display: none !important; }

.work-card, .empty-slot {
  position: relative;
  min-height: 220px;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper-2);
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.empty-slot {
  cursor: default;
  border: 1px dashed #c9c0b2;
  background: transparent;
  min-height: 200px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.empty-slot .icon { color: var(--amber-deep); margin-bottom: auto; }

.work-card img,
.work-card video {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  background: #1a2430;
}

.work-title, .play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(18, 26, 34, 0.82);
  color: white;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.92rem;
}

.play-badge { left: auto; right: 12px; bottom: auto; top: 12px; }

.filter-empty { grid-column: 1 / -1; color: var(--muted); }

.missing {
  margin: -12px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3e6da;
  color: #5d4638;
  font-size: 0.98rem;
}

.contact-board {
  display: grid;
  background: #fff;
  border: 1px solid #cfc6b8;
  border-radius: 18px;
  overflow: hidden;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 22px;
  border-bottom: 1px solid #e4ddd2;
  text-decoration: none;
  background: #fff;
}

.contact-row:last-child { border-bottom: 0; }

a.contact-row:hover { background: #f6f1ea; }

.contact-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.mark svg { width: 26px; height: 26px; display: block; }

.mark-amber { background: #e08a3a; color: #12386b; }
.mark-ink { background: #2458a6; color: #f6f3ee; }
.mark-paper {
  background: #fff;
  color: #12386b;
  box-shadow: inset 0 0 0 1.5px #12386b;
}

.kicker { color: var(--muted); font-size: 0.88rem; }

.contact-copy strong {
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--ink);
}

.cta {
  background: var(--ink);
  color: var(--light);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.cta-inner { max-width: 760px; }
.cta h2 { max-width: 14ch; margin-bottom: 12px; }
.cta p { color: rgba(246, 243, 238, 0.76); }

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.site-footer strong {
  font-family: "Noto Serif Georgian", Sylfaen, serif;
  font-size: 1.2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--amber-deep); }
.footer-meta { color: var(--muted); }

.float-wa-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.float-wa {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: white;
  box-shadow: 0 10px 24px rgba(31, 143, 78, 0.35);
  cursor: pointer;
}

.wa-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.wa-menu a {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.wa-menu a:hover { background: var(--paper-2); }

.float-wa .icon { width: 28px; height: 28px; }
.float-wa:hover { background: #187443; }

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 243, 238, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.lightbox {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background: var(--ink);
  color: white;
}

.lightbox::backdrop { background: rgba(10, 14, 18, 0.82); }

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lightbox-close, .lightbox-nav {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: 600 0.95rem/1 "Noto Sans Georgian", Sylfaen, sans-serif;
  padding: 0 12px;
  cursor: pointer;
}

.lightbox-stage img,
.lightbox-stage video {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #0c1116;
  border-radius: 12px;
}

#lightbox-title { margin-top: 10px; }

body:has(dialog[open]) .mobile-bar,
body:has(dialog[open]) .float-wa-wrap { visibility: hidden; }

@media (max-width: 760px) {
  .float-wa-wrap { bottom: 92px; }
  .hero { padding-bottom: 96px; }
  body { padding-bottom: 84px; }
  .site-footer { padding-bottom: 12px; }
}

@media (min-width: 761px) {
  .mobile-bar { display: none; }
}

@media (min-width: 720px) {
  .feature-grid, .work-grid, .work-empty { grid-template-columns: 1fr 1fr; }
  .contact-board { grid-template-columns: 1fr 1fr; }
  .contact-row:nth-child(odd) { box-shadow: inset -1px 0 0 #e4ddd2; }
  .contact-row:nth-last-child(-n+2) { border-bottom: 0; }
  .safety-grid { grid-template-columns: 1fr 1fr 1fr; }
  .svc-row {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .svc-row .text-link { grid-column: auto; }
  .footer-inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
}

@media (min-width: 980px) {
  .desktop-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-phones { display: flex; margin-left: 12px; }
  .hero { padding: 28px 0; min-height: calc(100svh - var(--header)); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 48px; }
  .contact-board { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid li:nth-child(odd) { padding-right: 36px; }
  .why-grid li:nth-child(even) {
    padding-left: 36px;
    border-left: 1px solid var(--line);
  }
  .work-grid, .work-empty { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: 1.15fr 0.85fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
