/* ============ Tokens ============ */
:root {
  --bg: #07111f;
  --bg-2: #0b1a2e;
  --surface: #0f2238;
  --surface-2: #142b46;
  --line: rgba(140, 180, 230, .14);
  --text: #e8eef7;
  --muted: #93a5bd;
  --accent: #ffc727;        /* ყვითელი — ბრენდის აქცენტი */
  --accent-ink: #1a1400;
  --electric: #3ab8ff;      /* ელექტრო-ლურჯი — ტექნოლოგიური ფონი */
  --logo-bar: #113b5c;      /* ლოგოს ლურჯი ზოლი — ორიგინალი ფაილიდან */
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Noto Sans Georgian", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Noto Sans Georgian", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ============ Scroll progress ============ */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--electric), var(--accent));
  box-shadow: 0 0 12px var(--accent);
}

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), border-color .35s, padding .35s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
}
/* blur ფსევდო-ელემენტზეა, რომ მობილური მენიუს (position: fixed) კონტეინერად ჰედერი არ იქცეს */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { border-color: var(--line); padding: 8px 0; }
.header__inner { display: flex; align-items: center; gap: 32px; }

/* ლოგო — ფონის გარეშე: „Index“ და ლურჯი „1“ (ზოლი), ორიგინალის (Asset 1) ზუსტი პროპორციებით.
   ყველაფერი ლოგოს სიმაღლეზეა (--h) მიბმული. მუქ ფონზე ტექსტი თეთრია, „1“ — ბრენდის ლურჯი. */
.logo {
  --h: 62px;
  position: relative; display: block; flex: none;
  height: var(--h); width: calc(var(--h) * 1.2752);
  transition: height .35s var(--ease), width .35s var(--ease);
}
.logo img {
  position: absolute; left: 0; top: 31.59%; height: 28.13%; width: auto;
  animation: logo-text .7s var(--ease) .45s both;
}
.logo__bar {
  position: absolute; top: 0; right: 0; bottom: 0; width: 15.82%;
  background: var(--logo-bar); transform-origin: top;
  animation: logo-bar .8s var(--ease) .1s both;
}
.logo__bar::after { /* hover-ზე „1“-ში ჩამოდის ნაპერწკალი */
  content: ""; position: absolute; left: 50%; top: -14px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px;
  background: linear-gradient(transparent, var(--accent)); box-shadow: 0 0 8px var(--accent); opacity: 0;
}
.logo:hover .logo__bar::after { animation: logo-spark .8s var(--ease); }
.header.is-scrolled .logo { --h: 50px; }
.logo--sm { --h: 46px; }
@keyframes logo-bar { from { transform: scaleY(0); } }
@keyframes logo-text { from { opacity: 0; transform: translateX(-8px); } }
@keyframes logo-spark { 0% { top: -14px; opacity: 1; } 100% { top: 100%; opacity: 1; } }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__cta { padding: 10px 16px; font-size: 14px; font-family: var(--mono); }

/* ენის გადამრთველი — ყვითელი ინდიკატორი არჩეულ ენაზე სრიალებს */
.lang {
  position: relative; display: inline-flex; flex: none; padding: 3px; isolation: isolate;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03);
}
.lang::before {
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--accent); box-shadow: 0 4px 14px -4px rgba(255,199,39,.6);
  transition: transform .4s var(--ease);
}
.lang[data-active="en"]::before { transform: translateX(100%); }
.lang button {
  width: 40px; height: 30px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 13px var(--mono); color: var(--muted); transition: color .3s;
}
.lang button[aria-pressed="true"] { color: var(--accent-ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--text); }
/* ინგლისურზე გვერდი თარგმნამდე იმალება, რომ ქართული წამით არ გამოჩნდეს */
html.i18n-wait body { visibility: hidden; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
  overflow: hidden; isolation: isolate;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(255, 199, 39, .6); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover { box-shadow: 0 12px 40px -6px rgba(255, 199, 39, .75); }
.btn--ghost { border-color: rgba(255,255,255,.22); color: var(--text); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }

/* ============ Shared ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,199,39,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,199,39,0); } 100% { box-shadow: 0 0 0 0 rgba(255,199,39,0); } }

.section { padding: 120px 0; position: relative; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section__title { margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.section__sub { margin: 0; color: var(--muted); font-size: 17px; }
.accent-text {
  background: linear-gradient(90deg, var(--accent), #ffe58a 50%, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ Reveal on scroll ============ */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
[data-reveal="left"]  { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: 120px 0 80px;
}
.hero__bg {
  position: absolute; inset: -5%; z-index: -3;
  background-size: cover; background-position: center;
  filter: saturate(.6) brightness(.55);
  transform: scale(1.05);
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(7,17,31,.35), rgba(7,17,31,.92) 70%),
    linear-gradient(180deg, rgba(7,17,31,.4), var(--bg) 98%);
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; z-index: -1; width: 600px; height: 600px; border-radius: 50%;
  left: var(--gx, 70%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(58,184,255,.16), transparent 65%);
  pointer-events: none; transition: left .6s var(--ease), top .6s var(--ease);
}
.hero__content { max-width: 1200px; }
.hero__title { margin: 0 0 24px; font-size: clamp(34px, 6vw, 72px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; max-width: 900px; }
.hero__lead { max-width: 620px; margin: 0 0 40px; color: #c3d0e2; font-size: clamp(16px, 1.6vw, 19px); }
/* მთავარი გვერდის სათაური: პატარა ზედა ხაზი + დიდი ყვითელი ხაზი.
   მთავარი ხაზის ზომა ეკრანის სიგანეზეა მიბმული, რომ ფართო ეკრანზე ერთ ხაზად დაეტიოს. */
.hero__title--home { max-width: none; margin-bottom: 28px; }
.hero__title-top {
  display: flex; align-items: center; gap: 18px; margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: 0; color: var(--text);
}
.hero__title-top::before { /* ყვითელი ხაზი — ჩატვირთვისას იხატება */
  content: ""; flex: none; width: clamp(32px, 4vw, 64px); height: 3px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px rgba(255,199,39,.6);
  transform-origin: left; animation: bar-grow 1s var(--ease) .5s both;
}
.hero__title-main {
  display: block; line-height: 1.12; letter-spacing: -.02em;
  font-size: clamp(30px, calc((100vw - 32px) / 18), 68px);
  /* ქართული ასოების ქვედა „კუდები“ ხაზის ჩარჩოს სცდება, background-clip:text კი მხოლოდ ჩარჩოს შიგნით ხატავს —
     ამიტომ ქვემოთ და მარჯვნივ ადგილს ვუმატებთ, რომ ასოები არ მოიჭრას */
  padding: 0 .08em .22em 0; margin-bottom: -.22em;
}
@media (min-width: 900px) { .hero__title-main { white-space: nowrap; } }
.hero__title--home ~ .hero__lead { max-width: 720px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Stats ============ */
.stats { position: relative; margin-top: -60px; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(20,43,70,.85), rgba(15,34,56,.85));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.stat { padding: 36px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat__num { font-family: var(--mono); font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1; color: var(--text); }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ============ Services — ანიმირებული იკონები ============ */
.section__bar {
  display: block; width: 64px; height: 4px; margin: 0 auto 20px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 16px rgba(255,199,39,.5);
  transform: scaleX(0); transition: transform .9s var(--ease) .35s;
}
.is-in .section__bar { transform: none; }

.services-sec { isolation: isolate; }
.services-sec::before { /* წერტილოვანი ტექნო-ბადე ფონზე */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(140,180,230,.2) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 60%, #000 10%, transparent 70%);
}

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc { position: relative; text-align: center; padding: 44px 28px 36px; border-radius: 24px; isolation: isolate; }
.svc::before { /* ფერადი ფონი hover-ზე */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 11%, transparent), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  opacity: 0; transform: scale(.96); transition: opacity .4s, transform .5s var(--ease);
}
.svc:hover::before { opacity: 1; transform: none; }
.svc__num { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--c); opacity: .8; margin-bottom: 6px; }
.svc h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; transition: color .3s; }
.svc:hover h3 { color: var(--c); }
.svc p { margin: 0 auto; max-width: 340px; color: var(--muted); font-size: 15px; }

/* წრიული ორბი */
.svc__orb {
  position: relative; width: 116px; height: 116px; margin: 0 auto 26px;
  display: grid; place-items: center; border-radius: 50%; color: var(--c);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 4%, transparent) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  transform: translate(var(--tx, 0px), calc(var(--ty, 0px) + var(--lift, 0px)));
  transition: transform .35s var(--ease), box-shadow .4s;
}
.svc__orb::before { /* წყვეტილი ორბიტა */
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--c) 28%, transparent);
}
.svc:hover .svc__orb {
  --lift: -6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 18px 50px -10px color-mix(in srgb, var(--c) 60%, transparent);
}
/* ორბიტაზე მოძრავი „კომეტა“ */
.svc__ring, .svc__orbit { position: absolute; inset: -9px; border-radius: 50%; animation: spin 7s linear infinite; pointer-events: none; }
.svc__ring {
  background: conic-gradient(from 0deg, transparent 0 55%, color-mix(in srgb, var(--c) 70%, transparent) 92%, var(--c));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: .8; transition: opacity .3s;
}
.svc__orbit::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 2px #fff;
}
.svc:hover .svc__ring { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.svc__pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c); opacity: 0; pointer-events: none; }
.svc:hover .svc__pulse { animation: orb-pulse 1.6s var(--ease) infinite; }
@keyframes orb-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

/* იკონა — ხაზის დახატვა */
.ico {
  width: 54px; height: 54px; overflow: visible; stroke-width: 2;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent));
  transition: transform .4s var(--ease);
}
.svc:hover .ico { transform: scale(1.08); }
.ico .draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; }
.svc.is-in .draw { animation: draw-a 1.6s var(--ease) calc(var(--d, 0s) + .35s) both; }
.svc.redraw-a .draw { animation: draw-a 1s var(--ease) both; }  /* hover-ზე თავიდან იხატება */
.svc.redraw-b .draw { animation: draw-b 1s var(--ease) both; }
@keyframes draw-a { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes draw-b { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }

/* დენის ნაკადი (ჩიპი, ფოთოლი) */
.ico .flow { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 2 8; opacity: 0; }
.svc.is-in .flow { animation: flow 1.1s linear calc(var(--d, 0s) + 1.8s) infinite, fade-in .6s calc(var(--d, 0s) + 1.8s) forwards; }
@keyframes flow { to { stroke-dashoffset: -10; } }
@keyframes fade-in { to { opacity: .85; } }

/* 01 ელვა */
.ico--bolt .bolt { fill: transparent; transition: fill .3s; }
.svc:hover .ico--bolt .bolt { fill: color-mix(in srgb, var(--c) 35%, transparent); }
.svc.is-in .ico--bolt { animation: flicker 5s 2.4s infinite; }
.ico--bolt .spark { opacity: 0; }
.svc.is-in .ico--bolt .spark { animation: spark 5s 2.4s infinite; }
@keyframes flicker { 0%, 88%, 91%, 94%, 100% { opacity: 1; } 89.5% { opacity: .25; } 92.5% { opacity: .5; } }
@keyframes spark { 0%, 88%, 97%, 100% { opacity: 0; } 90%, 94% { opacity: 1; } }

/* 03 ფოთოლი */
.ico--leaf .leaf { transform-box: view-box; transform-origin: 13px 35px; }
.svc.is-in .ico--leaf .leaf { animation: sway 4.5s ease-in-out 2s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 70% { transform: rotate(4deg); } }

/* 04 ფანქარი და სახაზავი — დანაყოფები რიგ-რიგობით ინთება, ფანქარი „წერს“ */
.ico--design .tick { opacity: 0; transition: opacity .5s; }
.svc.is-in .ico--design .tick { opacity: 1; transition-delay: calc(var(--d, 0s) + 1.6s); animation: tick-glow 3.2s ease-in-out 2s infinite; }
.svc.is-in .ico--design .tick:nth-of-type(3) { animation-delay: 2.3s; }
.svc.is-in .ico--design .tick:nth-of-type(4) { animation-delay: 2.6s; }
.svc.is-in .ico--design .tick:nth-of-type(5) { animation-delay: 2.9s; }
@keyframes tick-glow { 0%, 100% { stroke-opacity: .35; } 25%, 50% { stroke-opacity: 1; } }
.svc.is-in .ico--design .pencil { animation: write 3.2s ease-in-out 2s infinite; }
@keyframes write { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2.5px, .6px); } 50% { transform: translate(-1px, -.6px); } 75% { transform: translate(-3px, .4px); } }

/* 05 ლუპა */
.svc.is-in .ico--scan .lens { animation: scan 6s ease-in-out 2s infinite; }
@keyframes scan { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2.5px, 2px); } 50% { transform: translate(2px, -1.5px); } 75% { transform: translate(-1px, -2.5px); } }
.ico--scan .check { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; }
.svc.is-in .ico--scan .check { animation: check 4s var(--ease) calc(var(--d, 0s) + 1.4s) infinite; }
@keyframes check { 0% { stroke-dashoffset: 1.05; opacity: 1; } 25%, 80% { stroke-dashoffset: 0; opacity: 1; } 95% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1.05; opacity: 0; } }

/* 06 ყურსასმენი */
.ico--head .wave { opacity: 0; }
.ico--head .w1 { --dx: -4px; }
.ico--head .w2 { --dx: 4px; }
.svc.is-in .ico--head .wave { animation: wave 2.4s ease-out 2s infinite; }
.svc.is-in .ico--head .w2 { animation-delay: 2.6s; }
@keyframes wave { 0% { opacity: 0; transform: translateX(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--dx)); } }
.ico--head .mic { fill: var(--c); stroke: none; }
.svc.is-in .ico--head .mic { animation: blink 1.4s steps(1) 2s infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ============ About ============ */
.about { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__media { position: relative; }
.about__img {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background-size: cover; background-position: center;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  position: relative;
}
.about__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(200deg, transparent 50%, rgba(7,17,31,.6)); }
.about__media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(255,199,39,.35); border-radius: var(--radius); z-index: -1;
}
.about__badge {
  position: absolute; right: -24px; bottom: 40px; padding: 20px 26px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 600; font-size: 40px; line-height: 1;
  box-shadow: 0 20px 40px -12px rgba(255,199,39,.5);
  animation: float 5s ease-in-out infinite;
}
.about__badge small { display: block; font-family: var(--font); font-size: 13px; font-weight: 600; margin-top: 6px; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about__text p { color: #b6c4d8; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ============ Products ============ */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.product {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: flex-end;
  transform-style: preserve-3d; isolation: isolate;
}
.product__img {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  transition: transform .8s var(--ease), filter .5s;
  filter: saturate(.7) brightness(.85);
}
.product::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,17,31,.05) 30%, rgba(7,17,31,.95));
  transition: background .4s;
}
.product::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.product__body { padding: 24px; transform: translateZ(30px); }
.product__body span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.product__body h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.35; }
.product:hover .product__img { transform: scale(1.1); filter: saturate(1) brightness(.95); }
.product:hover::before { background: linear-gradient(180deg, rgba(31,58,95,.15) 20%, rgba(7,17,31,.95)); }
.product:hover::after { transform: scaleX(1); }

/* ============ Portfolio ============ */
/* ფილტრი */
.pfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -24px 0 40px; }
.pfilter__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
  font: inherit; font-size: 14px; cursor: pointer; transition: color .25s, border-color .25s, background .25s;
}
.pfilter__btn:hover { color: var(--text); border-color: rgba(255,199,39,.45); }
.pfilter__btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pfilter__count { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.pfilter__btn.is-active .pfilter__count { background: rgba(0,0,0,.14); }

/* ბარათები */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); isolation: isolate; }
.project img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.3) brightness(.8); transition: transform 1s var(--ease), filter .5s;
}
.project::after { /* მუქი გრადიენტი, რომ სახელი ფოტოზე იკითხებოდეს */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,17,31,0) 35%, rgba(7,17,31,.65) 62%, rgba(7,17,31,.97));
}
.project small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--accent); }
.project strong { display: block; font-size: 19px; line-height: 1.3; }
.project__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px;
  background: rgba(7,17,31,.8); border: 1px solid rgba(255,199,39,.5); color: var(--accent);
  font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* ფოტოზე — მხოლოდ ტიპი და სახელი */
.project__cap { position: absolute; inset: auto 0 0; z-index: 2; padding: 22px; transition: opacity .3s, transform .45s var(--ease); }
/* hover-ზე ქვემოდან ამოსრიალებული მუქი პანელი */
.project__panel {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 22px; border-top: 3px solid var(--accent); overflow: hidden;
  background: linear-gradient(180deg, rgba(11,26,46,.92), rgba(7,17,31,.97));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.project__panel small { display: none; }   /* ტიპი ფოტოზე ისედაც ჩანს */
.project__panel strong { font-size: 17px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.project__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.project__list li {
  position: relative; padding-left: 26px; font-size: 14px; line-height: 1.35; color: var(--text);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .45s var(--ease);
}
.project__list li::before { /* ყვითელი ✓ */
  content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1400' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.project:hover img, .project:focus-visible img { transform: scale(1.08); filter: none; }
.project:hover .project__cap, .project:focus-visible .project__cap { opacity: 0; transform: translateY(14px); }
.project:hover .project__panel, .project:focus-visible .project__panel { transform: none; }
.project:hover .project__list li, .project:focus-visible .project__list li { opacity: 1; transform: none; transition-delay: calc(.22s + var(--k) * 70ms); }
.project:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project.is-pop { animation: pop .6s var(--ease) calc(var(--i, 0) * 50ms) both; }   /* ფილტრის შეცვლისას */
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.pf-more { display: flex; justify-content: center; margin-top: 36px; }

/* ============ CTA ============ */
.cta { padding: 0 0 20px; }
.cta__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px 60px; border-radius: 24px; background: var(--accent); color: var(--accent-ink);
}
.cta__inner::before { /* ელექტრო ზოლები ფონზე */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 40px, #000 40px 41px);
}
.cta h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); }
.cta p { margin: 0; max-width: 560px; font-weight: 500; }

/* ============ Contact ============ */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__list li {
  display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease);
}
.contact__list li:hover { border-color: rgba(255,199,39,.4); transform: translateX(6px); }
.ci { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--accent); background: rgba(255,199,39,.08); }
.contact__list small { display: block; color: var(--muted); font-size: 13px; }
.contact__list a { font-weight: 600; }
.contact__list a:hover { color: var(--accent); }

.form { padding: 36px; border-radius: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(7,17,31,.6); border: 1px solid var(--line); outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,199,39,.15); }
.form .btn { justify-self: start; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px; transition: background .25s, color .25s, border-color .25s; }
.social:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============ Product card → „დეტალურად“ ============ */
.product__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.product:hover .product__more { opacity: 1; transform: none; }
.product:hover .product__more svg { transform: translateX(3px); }
.product__more svg { transition: transform .3s var(--ease); }

/* ============ Product sub-page ============ */
.hero--sub { min-height: 68vh; min-height: 68svh; padding: 140px 0 100px; }
.hero__title--sub { font-size: clamp(30px, 5vw, 58px); margin-bottom: 18px; }
.section__bar--left { margin: 0 0 24px; transform-origin: left; animation: bar-grow 1s var(--ease) .5s both; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }
.crumbs b { color: var(--text); font-weight: 500; }
.crumbs .crumbs__tail { opacity: 1; display: contents; }

/* ============ News / Blog ============ */
.hero--news { min-height: 56vh; min-height: 56svh; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(255,199,39,.45); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.news-card__img { aspect-ratio: 16 / 10; background: var(--surface-2) center / cover no-repeat; }
.news-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 26px; }
.news-card__date { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.news-card h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.news-card p { flex: 1; margin: 0; color: var(--muted); font-size: 15px; }
.news-card__more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
/* სიახლეების სია — „ზიგზაგი“ (ფოტო და ბარათი მონაცვლეობს, ბარათი ფოტოს ედება) */
.news-grid:has(.post) { display: flex; flex-direction: column; gap: 72px; max-width: 1040px; margin: 0 auto; }
.post { position: relative; display: grid; grid-template-columns: 58% 1fr; align-items: center; }
.post:nth-child(odd) { grid-template-columns: 1fr 58%; }
.post__media {
  position: relative; grid-row: 1; grid-column: 1; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2) center / cover no-repeat; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  transition: transform .6s var(--ease);
}
.post:nth-child(odd) .post__media { grid-column: 2; }
.post__card {
  position: relative; z-index: 1; grid-row: 1; grid-column: 2; margin-left: -64px; padding: 34px 32px 30px;
  border-radius: var(--radius); border: 1px solid var(--line); text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 75%); box-shadow: 0 30px 60px -28px rgba(0,0,0,.9);
  transition: transform .4s var(--ease), border-color .3s;
}
.post:nth-child(odd) .post__card { grid-column: 1; margin: 0 -64px 0 0; }
.post__cat {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 5px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.post__card h3 { margin: 6px 0 10px; font-size: clamp(18px, 2vw, 24px); font-weight: 500; line-height: 1.4; transition: color .3s; }
.post__date { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post__card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.post__more { font-size: 14px; font-weight: 600; color: var(--accent); }
/* თარიღის ბეჯი ფოტოს კუთხეში */
.post__badge {
  position: absolute; top: 16px; left: 16px; min-width: 58px; padding: 8px 10px; border-radius: 10px; text-align: center;
  display: flex; flex-direction: column; line-height: 1.1; background: rgba(255,255,255,.95); color: #0b1a2e;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
}
.post:nth-child(odd) .post__badge { left: auto; right: 16px; }
.post__badge b { font-size: 24px; font-weight: 700; }
.post__badge span { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.post__badge small { font-size: 10px; color: #5b6b80; margin-top: 2px; }
.post__badge .post__badge-year { font-size: 18px; }
.post:hover .post__media { transform: scale(1.02); }
.post:hover .post__card { transform: translateY(-6px); border-color: rgba(255,199,39,.45); }
.post:hover .post__card h3 { color: var(--accent); }
/* ტაბლეტი / ვიწრო ფანჯარა — ზიგზაგი რჩება, უფრო კომპაქტურად */
@media (max-width: 900px) {
  .news-grid:has(.post) { gap: 52px; }
  .post { grid-template-columns: 55% 1fr; }
  .post:nth-child(odd) { grid-template-columns: 1fr 55%; }
  .post__card { margin-left: -40px; padding: 26px 18px 22px; }
  .post:nth-child(odd) .post__card { margin: 0 -40px 0 0; }
  .post__card p { display: none; }
  .post__card h3 { font-size: 16px; }
}
@media (max-width: 520px) {
  .news-grid:has(.post) { gap: 48px; }
  .post__card p { display: block; }
  .post, .post:nth-child(odd) { grid-template-columns: 1fr; }
  .post__media, .post:nth-child(odd) .post__media { grid-column: 1; grid-row: 1; }
  .post__card, .post:nth-child(odd) .post__card { grid-column: 1; grid-row: 2; margin: -40px 16px 0; padding: 30px 20px 24px; }
}

.article { max-width: 760px; margin: 0 auto; }
.article__img { width: 100%; margin-bottom: 32px; border-radius: var(--radius); }
.article p { margin: 0 0 20px; font-size: 17px; color: #c3d0e2; }
.article__back { margin-top: 20px; }
/* სტატიის ფოტოები — დაჭერით დიდდება */
.article__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0 12px; }
.article__photo {
  position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: zoom-in; background: var(--surface); font: inherit; aspect-ratio: 4 / 3;
  transition: border-color .3s, transform .35s var(--ease);
}
.article__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article__photo:hover { border-color: rgba(255,199,39,.45); transform: translateY(-3px); }
.article__photo:hover img { transform: scale(1.05); }
.article__photo-cap {
  position: absolute; inset: auto 0 0; padding: 26px 14px 12px; text-align: left; font-size: 13px; color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(7,17,31,.92));
}
@media (max-width: 560px) { .article__gallery { grid-template-columns: 1fr; } }
.news-empty {
  max-width: 560px; margin: 0 auto; padding: 56px 32px; text-align: center; border-radius: 24px;
  border: 1px dashed rgba(255,199,39,.35); background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.news-empty__icon {
  width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  font-size: 40px; color: var(--accent); background: rgba(255,199,39,.08); border: 1px solid rgba(255,199,39,.3);
}
.news-empty__line { stroke-dasharray: 20; stroke-dashoffset: 20; animation: type-line 2.6s var(--ease) infinite; }   /* „იწერება“ */
.news-empty__line:nth-of-type(2) { animation-delay: .25s; }
.news-empty__line:nth-of-type(3) { animation-delay: .5s; }
@keyframes type-line { 0% { stroke-dashoffset: 20; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -20; } }
.news-empty h2 { margin: 0 0 10px; font-size: 24px; }
.news-empty p { margin: 0 0 26px; color: var(--muted); }

.pdetail__grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: start; }
.pdetail__list { position: sticky; top: 100px; }

/* ჩამონათვალი — ვერტიკალური „სადენი“ კვანძებით და მოძრავი იმპულსით */
.circuit-list { list-style: none; margin: 8px 0 36px; padding: 0; position: relative; }
.circuit-list::before {
  content: ""; position: absolute; left: 11px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(var(--accent), var(--electric)); opacity: .35;
}
.circuit-list::after {
  content: ""; position: absolute; left: 10px; top: 22px; width: 4px; height: 40px; border-radius: 2px;
  background: linear-gradient(transparent, var(--accent)); box-shadow: 0 0 10px var(--accent);
  animation: current 3.2s linear infinite;
}
@keyframes current {
  0% { top: 22px; opacity: 0; } 10%, 85% { opacity: 1; }
  100% { top: calc(100% - 62px); opacity: 0; }
}
.circuit-list li { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 0 13px 44px; border-bottom: 1px solid var(--line); }
.circuit-list__node {
  position: absolute; left: 5px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255,199,39,.08);
  transition: background .3s, box-shadow .3s;
}
.circuit-list li.is-in .circuit-list__node { animation: node-on .6s var(--ease) calc(var(--d, 0s) + .3s) both; }
@keyframes node-on { from { transform: scale(0); } 60% { transform: scale(1.35); } to { transform: scale(1); } }
.circuit-list li:hover .circuit-list__node { background: var(--accent); box-shadow: 0 0 0 6px rgba(255,199,39,.15), 0 0 16px var(--accent); }
.circuit-list__num { font-family: var(--mono); font-size: 12px; color: var(--accent); opacity: .7; }
.circuit-list__text { font-size: 17px; transition: transform .3s var(--ease), color .3s; }
.circuit-list li:hover .circuit-list__text { transform: translateX(6px); color: #fff; }

/* ფოტო-გალერეა — ღია ფილები, რომ თეთრფონიანი ფოტოები ლამაზად ჩანდეს */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery[data-items="1"] { grid-template-columns: 1fr; }
.gallery[data-items="3"] .gallery__item:first-child,
.gallery[data-items="5"] .gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 8; }
.gallery__item {
  position: relative; aspect-ratio: 4 / 3; border: 0; padding: 22px; border-radius: var(--radius);
  cursor: zoom-in; overflow: hidden; isolation: isolate; font: inherit;
  background: radial-gradient(circle at 50% 40%, #fff, #e4ebf4);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.8);
}
.gallery[data-items="1"] .gallery__item { aspect-ratio: 16 / 10; }
.gallery__item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.gallery__item::before { /* სინათლის ზოლი hover-ზე */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.gallery__item:hover::before { transform: translateX(120%); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 8px 12px; border-radius: 10px;
  background: rgba(7,17,31,.88); color: var(--text); font-size: 13px; text-align: left;
  transform: translateY(calc(100% + 16px)); transition: transform .4s var(--ease);
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; }
/* ===== მუქი ბარათები („cut“ — ფონმოშორებული პროდუქტი, „photo“ — ფონიანი ფოტო) ===== */
.gallery--show { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.gallery__item--show,
.gallery[data-items] .gallery__item--show:first-child {
  flex: 0 1 calc(50% - 10px); aspect-ratio: auto; padding: 0; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; text-align: left;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line); box-shadow: 0 20px 40px -26px rgba(0,0,0,.9);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.gallery__item--show::before { display: none; }
.gallery__item--show:hover { transform: translateY(-4px); border-color: rgba(255,199,39,.45); box-shadow: 0 26px 50px -24px rgba(0,0,0,.9); }
.gallery__stage { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
/* პროდუქტის უკან — რბილი შუქი, ქვეშ — ჩრდილი, რომ მუქი პროდუქტიც გამოჩნდეს */
.gallery__item--cut .gallery__stage { background: radial-gradient(70% 65% at 50% 46%, rgba(170,200,240,.2), transparent 70%); }
.gallery__item--cut .gallery__stage::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
}
.gallery__item--cut img {
  position: absolute; z-index: 1; left: 8%; top: 10%; width: 84%; height: 78%;
  object-fit: contain; object-position: center bottom; mix-blend-mode: normal;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); transition: transform .6s var(--ease);
}
.gallery__item--cut:hover img { transform: scale(1.05); }
.gallery__item--photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal;
  transition: transform .7s var(--ease);
}
.gallery__item--photo:hover img { transform: scale(1.06); }
/* წარწერა — ბარათის ქვედა ზოლში */
.gallery__item--show .gallery__cap {
  position: static; transform: none; border-radius: 0; background: none; padding: 14px 18px 16px;
  border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); text-align: left;
  transition: color .3s;
}
.gallery__item--show:hover .gallery__cap { color: var(--accent); }
.gallery__item--show .gallery__zoom { top: 12px; right: 12px; }
.gallery__item--wide,
.gallery[data-items] .gallery__item--wide:first-child { flex-basis: 100%; }   /* ფართო ბარათი — მთელ სიგანეზე */
.gallery__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__zoom::before, .gallery__zoom::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--accent-ink); border-radius: 1px; }
.gallery__zoom::after { transform: rotate(90deg); }
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }

/* ბრენდები — ნაცრისფერი → ფერადი hover-ზე */
.brands-sec { background: linear-gradient(180deg, transparent, var(--bg-2) 35%, var(--bg-2) 65%, transparent); }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.brand {
  flex: 0 1 180px; height: 110px; display: grid; place-items: center; padding: 20px 26px; border-radius: 16px; background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s, background .4s;
}
.brand img { max-width: 100%; max-height: 62px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: .6; transition: filter .4s, opacity .4s, transform .4s var(--ease); }
.brand:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(255,199,39,.45), 0 0 0 2px var(--accent); }
.brand:hover img { filter: none; opacity: 1; transform: scale(1.05); }
/* თეთრი ლოგო (მაგ. Elvare): ჩვეულებრივ — მუქი ნაცრისფერი, hover-ზე — თეთრი ბრენდის ფერის ფონზე */
.brand--light { padding: 12px; }
.brand--light img { max-height: 86px; mix-blend-mode: normal; filter: brightness(0); opacity: .55; }
.brand--light:hover { background: var(--brand-bg); }

/* სხვა კატეგორიები — ჰორიზონტალური სლაიდერი */
.others__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.others__head .section__title { margin: 0; }
.others__nav { display: flex; gap: 10px; }
.others__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 18px; display: grid; place-items: center; cursor: pointer; transition: border-color .25s, color .25s;
}
.others__btn:hover { border-color: var(--accent); color: var(--accent); }
.others {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.others::-webkit-scrollbar { display: none; }
.other {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; scroll-snap-align: start;
  border: 1px solid var(--line); transition: border-color .3s;
}
.other__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: saturate(.6) brightness(.7); transition: transform .7s var(--ease), filter .4s; }
.other::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7,17,31,.95)); }
.other__num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.other__title { font-weight: 600; line-height: 1.35; }
.other:hover { border-color: rgba(255,199,39,.5); }
.other:hover .other__img { transform: scale(1.08); filter: saturate(1) brightness(.85); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(4,10,20,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(960px, 100%); text-align: center; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 16px; background: #fff; padding: 24px; }
.lightbox--photo img { padding: 0; background: none; }
.lightbox figcaption { margin-top: 14px; color: var(--muted); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 22px;
  display: grid; place-items: center; cursor: pointer;
}
.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }

/* სენსორულ ეკრანებზე hover არ არის — ყველაფერი ერთბაშად ჩანს */
@media (hover: none) {
  .product__more, .gallery__cap { opacity: 1; transform: none; }
  /* სენსორულზე: ფოტო ზემოთ, ტექსტი და სისტემები ქვემოთ (hover არ არსებობს) */
  .project { aspect-ratio: auto; display: flex; flex-direction: column; border: 1px solid var(--line); }
  .project img { position: relative; aspect-ratio: 16 / 10; height: auto; filter: none; }
  .project::after, .project__cap { display: none; }
  .project__panel {
    position: relative; inset: auto; transform: none; justify-content: flex-start;
    padding: 16px 18px 20px; border-top: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .project__panel small { display: block; }
  .project__panel strong { font-size: 19px; }
  .project__list li { opacity: 1; transform: none; }
  .brand img { filter: none; opacity: 1; }
  .brand--light { background: var(--brand-bg); }
}

/* ============ Responsive ============ */
/* ჰედერი: ტელეფონის ღილაკი და შემდეგ სრული მენიუ იმალება, როცა ადგილი აღარ ჰყოფნის */
@media (max-width: 1280px) {
  .header__cta { display: none; }
}
@media (max-width: 1080px) {
  .burger { display: flex; position: relative; z-index: 2; margin-left: 0; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); margin: 0;
    flex-direction: column; gap: 6px; padding: 100px 28px 28px;
    background: rgba(7,17,31,.97); border-left: 1px solid var(--line);
    /* clip-path არ აფართოებს გვერდს (transform-ისგან განსხვავებით) */
    clip-path: inset(0 0 0 100%); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav a { font-size: 19px; padding: 10px 0; }
  .nav a::after { bottom: 4px; }
}
/* ტელეფონზე მენიუ მთელ ეკრანს ფარავს, ლოგო და ენის გადამრთველი ზემოთ რჩება */
@media (max-width: 600px) {
  .nav { width: 100%; background: #07111f; border-left: 0; }
  .logo, .lang { position: relative; z-index: 2; }
}
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 56px; }
  .others { grid-auto-columns: calc((100% - 32px) / 3); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(32px); }
  .about__grid, .contact { grid-template-columns: 1fr; }
  .about__badge { right: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .pfilter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: -24px -16px 32px; padding: 0 16px 4px; scrollbar-width: none; }
  .pfilter::-webkit-scrollbar { display: none; }
  .pfilter__btn { flex: none; }
  .section { padding: 88px 0; }
  .pdetail__grid { grid-template-columns: 1fr; gap: 40px; }
  .pdetail__list { position: static; }
  .others { grid-auto-columns: 45%; }
}
@media (max-width: 560px) {
  .services, .products { grid-template-columns: 1fr; }
  .product { aspect-ratio: 16 / 10; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .cta__inner { padding: 40px 24px; }
  .stat { padding: 26px 12px; }
  .about__media::before { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--show, .gallery[data-items] .gallery__item--show:first-child { flex-basis: 100%; }
  .gallery .gallery__item:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .others { grid-auto-columns: 78%; }
  .brand { flex-basis: calc(50% - 8px); height: 90px; padding: 14px 18px; }
}

/* პორტფოლიო: ბარათი იმდენად დიდი უნდა იყოს, რომ hover-პანელში სისტემების სია დაეტიოს */
@media (max-width: 1024px) { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .portfolio, .news-grid { grid-template-columns: 1fr; } }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .ico .draw, .ico--scan .check { stroke-dashoffset: 0; }
  .ico--design .tick { opacity: 1; }
  .circuit-list::after { display: none; }
}
