/* ==========================================================================
   მზიური — „განთიადი“
   სამი ბრტყელი ფერი (ღამე, მზე, ქაღალდი), ერთი ფონტი ორი სიგანით.
   გრადიენტი, ბზინვარება და ჩრდილი არსად არის: ყველაფერი პლაკატივით ბრტყელია.

   <html>-ის კლასები (ადებს index.html-ის პატარა სკრიპტი და main.js):
     .js     სკრიპტი ჩართულია; .ready-მდე Hero-ს ტექსტი დამალულია
     .ready  main.js გაეშვა
     .anim   ანიმაციური რეჟიმი (GSAP ჩაიტვირთა, მოძრაობა არ არის შემცირებული, ეკრანი საკმარისად მაღალია)
   .anim-ის გარეშე გვერდი ჩვეულებრივი, უმოძრაო განლაგებაა და სრულად იკითხება.
   ========================================================================== */

/* Noto Sans Georgian (SIL Open Font License, Google Fonts v49): ცვლადი შრიფტი, სიგანე 62.5–100%, სისქე 100–900.
   საიტთან ერთად დევს, რომ ტელეფონზე სხვა სერვერებთან ორი დამატებითი მიერთება არ დასჭირდეს.
   ორი ნაწილია: ქართული ასოები და ლათინური ნიშნები (ციფრები, სასვენი ნიშნები, ბრენდები) */
@font-face {
  font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url("assets/fonts/noto-sans-georgian-ka.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}
@font-face {
  font-family: "Noto Sans Georgian"; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap;
  src: url("assets/fonts/noto-sans-georgian-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0a1c36;
  --night-2: #15325c;
  --sun: #ffb21e;
  --paper: #ffffff;
  --mist: #f2f4f7;
  --ink: #0a1c36;

  --line: color-mix(in srgb, currentColor 18%, transparent);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* ღია ფონზე ღილაკი მუქია; ღამის ფონზე ქვემოთ იცვლება */
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --mark: var(--sun);

  /* ერთი ბადე მთელი გვერდისთვის: ნავიგაცია, Hero და სექციები ერთ ვერტიკალზე იწყება */
  --wrap: 1480px;
  --pad: clamp(20px, 4.5vw, 72px);
  --edge: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  --sec: clamp(5rem, 11vw, 10rem);
  --nav-h: 76px;

  /* ტიპოგრაფიის საფეხურები: ერთი h2, სტრიქონები მისი ~60%, ტექსტის სამი ზომა */
  --h2: clamp(2.2rem, 5.2vw, 5.6rem);
  --row: clamp(1.6rem, 3.1vw, 3.3rem);
  --t-body: 1.0625rem;
  --t-small: .94rem;
  --t-micro: .85rem;
  --font: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--mist); }
body {
  margin: 0;
  font: 400 var(--t-body)/1.7 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--sun); }
.stage ::selection, .nightfall ::selection, .foot ::selection { background: var(--sun); color: var(--ink); }
.stage.is-day ::selection, .story-inner ::selection { background: var(--ink); color: var(--sun); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: var(--pad); top: -100px; z-index: 200; padding: .7rem 1rem; background: var(--sun); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--pad); }

/* სათაურების ხმა: ვიწრო, მონუმენტური მთავრული */
.display { font-stretch: 66%; font-weight: 600; line-height: 1; letter-spacing: -.012em; }
h2 { margin: 0; font-size: var(--h2); text-wrap: balance; }

/* ნიღაბი Hero-ს სათაურისთვის: სტრიქონი მასში ამოდის და მასშივე გადის. მოძრაობას main.js მართავს */
.line { display: block; overflow: hidden; padding-block: .07em; margin-block: -.07em; }
.line > span { display: block; }

/* ---------- ღილაკები და ბმულები ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 1.3rem; border-radius: 3px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--t-small)/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline-color: var(--btn-bg); }
.btn-lg { height: 56px; padding: 0 1.8rem; font-size: 1.02rem; }
.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: .86; }
  .text-link:hover { text-decoration-color: currentColor; }
}

/* ---------- ნავიგაცია ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); padding-inline: var(--edge);
  color: var(--ink);
}
.nav[data-theme="night"] { color: #fff; --btn-bg: var(--sun); --btn-fg: var(--ink); }
.nav[data-theme="sun"] { --mark: var(--ink); }
.nav.is-solid[data-theme="night"] { background: var(--night); }
.nav.is-solid[data-theme="sun"] { background: var(--sun); }
.nav.is-solid[data-theme="paper"] { background: var(--paper); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
/* მზის შიგნით მოთავსებული ასლი: მხოლოდ ვიზუალი, სანამ მზის კიდე ნავიგაციას კვეთს */
.nav-clone { position: absolute; pointer-events: none; }

.logo { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; }
.logo-sun { width: 1.5rem; height: .75rem; border-radius: 1.5rem 1.5rem 0 0; background: var(--mark); }
.logo-word { font-stretch: 66%; font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: .02em; }

.nav-links { display: flex; gap: clamp(1.1rem, 2.2vw, 2.4rem); font-size: var(--t-small); font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links .nav-contact { display: none; } /* ჩანს მხოლოდ მობილურ მენიუში */
.nav-end { display: flex; align-items: center; gap: 1rem; }
.menu-btn { display: none; height: 46px; padding: 0 1.1rem; border-radius: 3px; border: 1px solid currentColor; background: none; font: 600 var(--t-small)/1 var(--font); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 8px; text-decoration-thickness: 1px; transition: text-decoration-color 200ms ease; }
  .nav-links a:hover { text-decoration-color: currentColor; }
}

/* ==========================================================================
   HERO + ისტორია: ერთი სცენა
   ========================================================================== */
.hero { position: relative; background: var(--night); }
.hero:has(.stage.is-day) { background: var(--sun); }
.stage { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: var(--night); color: #fff; --btn-bg: var(--sun); --btn-fg: var(--ink); }
.stage.is-day { background: var(--sun); }
/* ანიმაციურ რეჟიმში სცენა ეკრანზე „ჩერდება“ და მთელი სექვენცია სქროლს მიჰყვება */
.anim .hero { height: 360vh; }
.anim .stage { position: sticky; top: 0; }

/* 3D თარო (scene.js): გამჭვირვალე canvas მზის წრის ზემოთ, ტექსტის ქვემოთ არ ერევა კურსორს */
.rack-wrap { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rack { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.rack.on { opacity: 1; }
.rack-tip { position: absolute; left: 0; top: 0; z-index: 3; margin: 0; padding: .45rem .7rem; background: #fff; color: var(--ink); font-size: var(--t-small); line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 150ms ease; }
.rack-tip.on { opacity: 1; }
.rack-tip b { display: block; font-weight: 700; }
/* როცა თარო ჩანს, მზის წარწერა მის უკან დაიმალებოდა: ზედა მარჯვენა კუთხეში გადადის */
.has-3d .sun-note { left: auto; right: var(--edge); top: calc(var(--nav-h) + .3rem); transform: none; }
/* ტექსტი თაროს მარცხნივ რჩება; ვიწრო ეკრანზე თაროს ზემოთ */
.has-3d .hero-foot { max-width: 25rem; }
@media (max-width: 760px) {
  .has-3d .hero-layer { padding-bottom: calc(var(--rack-h, 30vh) + .8rem); }
  .has-3d .hero-foot { max-width: none; }
  .has-3d .sun-note { display: none; }
}

/* მზე: ბრტყელი წრე. clip-path-ს main.js მართავს სქროლის მიხედვით */
.sun {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--sun); color: var(--ink);
  --btn-bg: var(--ink); --btn-fg: #fff; --mark: var(--ink);
  clip-path: circle(0 at 70% 120%); will-change: clip-path;
}
.stage.is-day .sun { will-change: auto; }

.hero-layer {
  position: absolute; inset: 0;
  padding: calc(var(--nav-h) + clamp(1rem, 5vh, 3.5rem)) var(--edge) clamp(1.5rem, 5vh, 3.2rem);
  display: flex; flex-direction: column; justify-content: space-between;
}
html.js:not(.ready) .hero-layer { visibility: hidden; } /* ჩატვირთვის სცენამდე; დაზღვევა იხ. index.html */
.hero-title { margin: 0; font-size: clamp(2.1rem, 9.3vw, 10.5rem); line-height: .98; }
.hero-foot { display: grid; gap: 1.7rem; max-width: 33rem; }
.hero-foot p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.7rem; }

/* წარწერა მზეზე: დღევანდელი ამოსვლის დრო თბილისში (ითვლება main.js-ში) */
.sun-note { position: absolute; left: var(--sx, 70%); top: calc(var(--sy, 80%) + var(--note-dy, 4rem)); margin: 0; transform: translateX(-50%); font-size: var(--t-small); font-weight: 600; white-space: nowrap; }
.sun-note:empty { display: none; }

/* ისტორია. უმოძრაო რეჟიმში ჩვეულებრივი ყვითელი ბლოკია Hero-ს ქვეშ;
   ანიმაციურში main.js მას სცენაში გადაიტანს და ტექსტი იქ შემოდის, როცა მზე ეკრანს დაფარავს */
.story { background: var(--sun); padding: clamp(3rem, 10vh, 7rem) 0 var(--sec); }
.anim .story { display: none; }
.story-inner { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--pad); }
.anim .stage .story-inner { position: absolute; inset: 0; z-index: 2; width: auto; margin: 0; display: flex; align-items: center; padding: var(--nav-h) var(--edge) 1rem; color: var(--ink); pointer-events: none; }
.manifesto-mask { overflow: hidden; padding-block: .12em; }
.manifesto { margin: 0; max-width: 22em; font-stretch: 80%; font-weight: 600; font-size: clamp(1.8rem, 4.3vw, 4.4rem); line-height: 1.22; letter-spacing: -.012em; }
/* ტექსტი სქროლთან ერთად „იკითხება“: მუქი ფერი უწყვეტად მიჰყვება სტრიქონებს.
   inline ელემენტის ფონი ყველა სტრიქონზე ერთ გრძელ ზოლად ლაგდება, ამიტომ საკმარისია ფონის სიგანის ცვლა.
   წაუკითხავი ნაწილი 55%-ია, რომ ყვითელზე მაინც იკითხებოდეს */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .js #manifesto {
    color: transparent;
    background-image: linear-gradient(90deg, var(--ink) calc(100% - 24px), transparent), linear-gradient(color-mix(in srgb, var(--ink) 55%, transparent), color-mix(in srgb, var(--ink) 55%, transparent));
    background-repeat: no-repeat;
    background-size: 0% 100%, 100% 100%;
    -webkit-background-clip: text; background-clip: text;
  }
  html:not(.anim) #manifesto { background-size: calc(100% + 24px) 100%, 100% 100%; }
}

/* ==========================================================================
   ქაღალდზე
   ========================================================================== */
.facts { padding: var(--sec) 0; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: clamp(.7rem, 1.2vw, 1.05rem) 0; border-bottom: 1px solid var(--line); }
.ledger dd { margin: 0; font-size: var(--row); font-variant-numeric: tabular-nums; white-space: nowrap; }

.sec-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: 1.5rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head p { margin: 0; max-width: 40ch; }

/* ბრენდები: თეთრი უჯრები, ლოგოები საკუთარი ფერებით */
.brands { background: var(--mist); padding: var(--sec) 0; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--ink) 14%, #fff); border: 1px solid color-mix(in srgb, var(--ink) 14%, #fff); }
.logo-grid li { position: relative; min-width: 0; background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.logo-grid img { position: absolute; inset: 9% 12%; width: 76%; height: 82%; object-fit: contain; }
.logo-grid .fallback { font-stretch: 66%; font-weight: 600; font-size: 1.35rem; }

/* კატალოგი: სია + ჩარჩო არჩეული კატეგორიის სურათით */
.catalog { padding: var(--sec) 0; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.cats { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cats a { width: 100%; display: grid; color: inherit; text-decoration: none; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 1.5rem; padding: clamp(.75rem, 1.2vw, 1.1rem) 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.cats .display { font-size: var(--row); color: color-mix(in srgb, var(--ink) 50%, transparent); transition: color 200ms ease, transform 300ms var(--ease-out); }
.cats a.on .display { color: var(--ink); transform: translateX(.3em); }
.cats em { font-style: normal; font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-thumb { display: none; }
.cat-frame { position: sticky; top: calc(var(--nav-h) + 1.5rem); margin: 0; aspect-ratio: 1; background: var(--mist); }
.cat-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   ღამე
   ========================================================================== */
.nightfall { background: var(--night); color: #fff; }

.network { padding: var(--sec) 0 clamp(3rem, 7vw, 6rem); }
.net-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); align-items: center; gap: clamp(2rem, 4vw, 4.5rem); }
.cities { list-style: none; margin: 0; padding: 0; border-top: 2px solid #fff; }
.cities button { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.cities b { font-size: 1.75rem; transition: color 200ms ease; }
.cities span { font-size: var(--t-small); text-align: right; }
.cities button.hot b { color: var(--sun); }

.map { margin: 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.land { fill: var(--night-2); }
.route { fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-linecap: round; }
.truck { fill: #fff; opacity: 0; }
.node { cursor: default; }
.node .core { fill: var(--sun); }
.node .ring { fill: none; stroke: var(--sun); stroke-width: 1.6; opacity: 0; transition: opacity 200ms ease; }
.node.hq .ring, .node.hot .ring { opacity: 1; }
.node text { font: 500 18px var(--font); fill: #fff; }
.node.hq text { font-weight: 700; }

/* საცალო ქსელები: მშვიდი ცხრილი */
.chains { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.chains-note { margin: 0 0 1.4rem; font-size: var(--t-small); }
.chain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 3rem); font-size: clamp(1.5rem, 2.6vw, 2.8rem); }
.chain-list li { padding: clamp(.8rem, 1.5vw, 1.3rem) 0; border-top: 1px solid var(--line); }
.chain-list li:nth-child(-n+4) { border-top: 2px solid #fff; }

.partners { padding: var(--sec) 0; }
.creed { margin: 0 0 clamp(3rem, 7vw, 6rem); }
.creed p { margin: 0; max-width: 21em; font-stretch: 80%; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 3.5rem); line-height: 1.3; letter-spacing: -.01em; }
.creed cite { display: block; margin-top: 1.3rem; font-style: normal; font-size: var(--t-small); }

/* ორი შესასვლელი: კურსორზე ან კლავიატურის ფოკუსზე მზის ფერი ქვემოდან ავსებს */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-inline: calc(-1 * var(--pad)); border-block: 1px solid var(--line); }
.door { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: clamp(2rem, 4.5vw, 4rem) var(--pad); text-decoration: none; transition: color 200ms ease; }
.door + .door { border-left: 1px solid var(--line); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sun); transform: translateY(101%); transition: transform 380ms var(--ease-out); }
.door h3 { margin: 0; font-size: var(--row); }
.door p { flex: 1; margin: 0; max-width: 38ch; }
.door-cta { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.door:focus-visible { color: var(--ink); outline-offset: -6px; }
.door:focus-visible::before { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .door:hover { color: var(--ink); }
  .door:hover::before { transform: none; }
}

/* ---------- ფუტერი ---------- */
.foot { background: var(--night); color: #fff; border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; }
.foot dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
.foot dt { margin-bottom: .2rem; font-size: var(--t-micro); opacity: .7; }
.foot dd { margin: 0; font-size: 1.12rem; font-weight: 500; }
.foot dd a { display: inline-block; padding-block: .5rem; text-decoration-color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 2rem; justify-self: end; }
.foot nav a { padding-block: .6rem; text-decoration: none; }
.legal { margin: clamp(2rem, 4vw, 3.5rem) auto 0; font-size: var(--t-micro); opacity: .7; }
.wordmark { text-align: center; user-select: none; padding-bottom: clamp(1rem, 2.4vw, 2.4rem); color: var(--sun); }
.wordmark > span { display: block; font-size: 27.5vw; font-weight: 700; line-height: .92; }
@media (hover: hover) and (pointer: fine) {
  .foot nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .foot dd a:hover { text-decoration-thickness: 2px; }
}

/* ==========================================================================
   მცირე ეკრანები
   ========================================================================== */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav .btn { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 1.1rem; padding: var(--pad);
    background: var(--night); color: #fff; font-stretch: 66%; font-weight: 600; font-size: 2.4rem; line-height: 1.1;
    opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .nav-links .nav-contact { display: block; margin-top: 1rem; color: var(--sun); }
  .nav.open { color: #fff; background: none; box-shadow: none; --mark: var(--sun); }
  .nav.open .nav-links { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
  .logo { min-height: 44px; }

  /* ვიწრო ეკრანზე ტექსტი მზის ზემოთ ჯდება */
  .hero-layer { padding-bottom: calc(var(--cap, 18vh) + 1.4rem); }
  .sun-note { width: 11em; white-space: normal; text-align: center; font-size: .8rem; line-height: 1.35; }
  .text-link { display: inline-block; padding-block: .7rem; } /* თითით დასაჭერი ზომა */

  .sec-head, .facts-grid, .net-grid, .foot-grid, .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door + .door { border-left: 0; border-top: 1px solid var(--line); }
  .foot nav { justify-self: start; }
  .cities span { max-width: 55%; }
  .node text { font-size: 26px; }

  /* კატალოგი: ჩარჩოს ნაცვლად სურათი თვითონ სტრიქონშია, ყველა ფერი სრული */
  .cat-frame { display: none; }
  .cat-thumb { display: block; grid-row: 1 / span 2; width: 60px; height: 60px; object-fit: cover; align-self: center; }
  .cats a { grid-template-columns: 60px minmax(0, 1fr); column-gap: 1rem; }
  .cats .display, .cats a.on .display { color: var(--ink); transform: none; font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .cats em { grid-column: 2; }
}
@media (max-width: 600px) {
  .foot dl { grid-template-columns: minmax(0, 1fr); }
  .ledger > div { flex-wrap: wrap; row-gap: 0; }
}

/* ==========================================================================
   მოძრაობისა და კონტრასტის პარამეტრები
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .cats .display, .door, .door::before { transition: none; }
}
@media (prefers-contrast: more) {
  .js #manifesto { background-size: calc(100% + 24px) 100%, 100% 100% !important; }
  .cats .display { color: var(--ink); }
}

/* ==========================================================================
   მთავარი ბრენდები: ჰორიზონტალური გალერეა ნამდვილი პროდუქტებით
   ========================================================================== */
.showcase { padding: var(--sec) 0 0; }
.showcase-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.showcase-head h2 { margin: 0; font-size: var(--h2); }
.showcase-track { display: flex; gap: clamp(.8rem, 1.4vw, 1.4rem); padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.showcase-track::-webkit-scrollbar { display: none; }
.panel { position: relative; flex: none; width: min(84vw, 40rem); height: clamp(22rem, 62vh, 34rem); overflow: hidden; padding: clamp(1.2rem, 2.2vw, 2.2rem); scroll-snap-align: center; background: var(--mist); color: var(--ink); }
.panel[data-tone="sun"] { background: var(--sun); }
.panel[data-tone="night"] { background: var(--night); color: #fff; }
.panel-copy { position: relative; z-index: 1; display: grid; gap: 1rem; max-width: 64%; }
.panel-logo { width: clamp(4.5rem, 7vw, 6.5rem); height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; padding: .5rem; }
.panel-copy p { margin: 0; font-size: clamp(1.4rem, 2.3vw, 2.5rem); line-height: 1.08; }
.panel-packs { position: absolute; right: 4%; bottom: 0; left: 26%; height: 64%; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2%; }
.panel-packs img { width: auto; max-width: 40%; height: 100%; object-fit: contain; object-position: bottom; }
.panel-packs img:nth-child(1) { height: 74%; }
.panel-packs img:nth-child(3) { height: 62%; }
/* ანიმაციურ რეჟიმში (main.js ამატებს is-pinned-ს) სექცია „ჩერდება“ და პანელები სქროლზე გვერდულად მიდის */
.showcase.is-pinned { height: 340vh; padding: 0; }
.is-pinned .showcase-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--nav-h); }
.is-pinned .showcase-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.is-pinned .panel { width: 44vw; height: min(60vh, 36rem); }

/* საცალო ქსელები: ანიმაციურ რეჟიმში მოძრავი ზოლი (main.js ამატებს is-marquee-ს) */
.chains.is-marquee .wrap { width: 100%; max-width: none; padding-inline: 0; overflow: hidden; }
.chains.is-marquee .chains-note { padding-inline: var(--edge); }
.is-marquee .chain-list { display: flex; width: max-content; column-gap: 0; font-size: clamp(2.4rem, 6vw, 6rem); will-change: transform; }
.is-marquee .chain-list li { display: flex; align-items: center; padding: 0 0 0 .5em; border: 0; white-space: nowrap; }
.is-marquee .chain-list li::after { content: ""; width: .2em; height: .2em; margin-left: .5em; border-radius: 50%; background: var(--sun); }

/* ფუტერის წარწერა: ასოები ქვემოდან ამოდის */
.wordmark { overflow: hidden; }
.wordmark > span > span { display: inline-block; }

/* ==========================================================================
   კონვეიერი ციფრების სექციის ბოლოს: ნამდვილი პროდუქტები ლენტზე მიდის
   ========================================================================== */
.facts { padding-bottom: 0; }
.belt { overflow: hidden; margin-top: clamp(3rem, 6vw, 5.5rem); }
.belt-track { display: flex; align-items: flex-end; gap: clamp(1.4rem, 3.2vw, 3.4rem); width: max-content; padding-inline: 1.5rem; will-change: transform; }
.belt-track img { flex: none; width: auto; height: clamp(5.5rem, 12vw, 10.5rem); }
.belt-track img:nth-child(3n) { height: clamp(4.3rem, 9.4vw, 8.2rem); }
.belt-track img:nth-child(4n + 1) { height: clamp(6rem, 13vw, 11.5rem); }
.belt-track img:not([src]) { display: none; }
/* ლენტი: მუქი ხაზი და ქვეშ გორგოლაჭები (მკვეთრი წრეები, არა რბილი გრადიენტი) */
.belt-line { height: 15px; border-top: 5px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 3.2px, transparent 3.7px) 0 6px / 26px 9px repeat-x; }

/* ლოგოების ბადე: კურსორზე ლოგო ზემოთ გადის და ბრენდის პროდუქტი ამოდის */
.logo-grid li { overflow: hidden; }
.logo-grid img { transition: transform 450ms var(--ease-out); }
.logo-grid img.pack { transform: translateY(125%); }
.logo-grid li.show img:not(.pack) { transform: translateY(-125%); }
.logo-grid li.show img.pack { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .logo-grid li:hover img:not(.pack) { transform: translateY(-125%); }
  .logo-grid li:hover img.pack { transform: none; }
}

/* კატალოგის ჩარჩო: მზის ფერზე არჩეული კატეგორიის ნამდვილი პროდუქტები დგას */
.cat-frame { overflow: hidden; }
.cat-frame.has-packs { background: var(--sun); }
.cat-frame.has-packs > img { visibility: hidden; }
.cat-packs { position: absolute; inset: 14% 7% 0; display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.cat-packs img { width: auto; max-width: 30%; height: 78%; object-fit: contain; object-position: bottom; }
.cat-packs img:nth-child(2) { height: 100%; }
.cat-packs img:nth-child(3) { height: 66%; }
.cat-packs img:not([src]) { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .logo-grid img { transition: none; }
}

/* ==========================================================================
   მობილური Hero: სათაური უფრო დიდია, ტექსტი მის ქვეშ დგას, დარჩენილ ადგილს კი თარო ავსებს
   (თაროს ზომას scene.js ტექსტის ქვემოთ დარჩენილი სიმაღლით ითვლის)
   ========================================================================== */
@media (max-width: 760px) {
  .hero-layer, .has-3d .hero-layer { justify-content: flex-start; gap: clamp(1.1rem, 3vh, 1.9rem); padding-bottom: 1rem; }
  .hero-title { font-size: clamp(2.5rem, 12.8vw, 4.3rem); line-height: 1; }
}

/* ==========================================================================
   დაჭერის პასუხი: ყველაფერი, რასაც აჭერენ, მსუბუქად „იწევა“ და უმალვე ბრუნდება
   ========================================================================== */
a, button { -webkit-tap-highlight-color: transparent; }
.btn { transition: transform 220ms var(--ease-out), opacity 200ms ease, filter 200ms ease; }
.btn:active { transform: scale(.96); filter: brightness(.93); transition-duration: 90ms; }
.menu-btn { transition: transform 220ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.menu-btn:active { transform: scale(.95); transition-duration: 90ms; }
.text-link, .door-cta { display: inline-block; transition: transform 220ms var(--ease-out), text-decoration-color 200ms ease; }
.text-link:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }
.nav-links a { transition: opacity 160ms ease, text-decoration-color 200ms ease; }
.nav-links a:active { opacity: .55; }
.cats a:active .display { transform: translateX(.3em) scale(.985); transition-duration: 90ms; }
.cities button b { display: inline-block; transform-origin: left center; transition: color 200ms ease, transform 220ms var(--ease-out); }
.cities button:active b { transform: scale(.96); transition-duration: 90ms; }
.door { transition: color 200ms ease, transform 220ms var(--ease-out); }
.door:active { transform: scale(.992); transition-duration: 90ms; }
.door:active::before { transform: none; }
.door:active { color: var(--ink); }
.logo-grid li { transition: transform 220ms var(--ease-out); }
.logo-grid li:active { transform: scale(.96); transition-duration: 90ms; }
.panel { transition: transform 260ms var(--ease-out); }
.panel:active { transform: scale(.99); }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .menu-btn:active, .text-link:active, .door:active, .logo-grid li:active, .panel:active, .cities button:active b { transform: none; }
}

/* ციფრების ცხრილი ვიწრო ეკრანზე: გრძელი წარწერა გადადის ორ სტრიქონზე, ციფრი კი მარჯვნივ რჩება */
.ledger > div { flex-wrap: nowrap; }
.ledger dt { min-width: 0; }

/* ფუტერის ქვედა ზოლი: მარცხნივ საავტორო უფლება, მარჯვნივ „Created by Evanu“ ლოგოთი.
   ლოგო ნაგულისხმევად ნაცრისფერია და კურსორზე ფერს იბრუნებს (როგორც Legioni-ს ფუტერში) */
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.foot-bar .legal { margin: 0; }
.credit { margin: 0; display: flex; align-items: center; gap: .75rem; font-size: var(--t-micro); }
.credit span { opacity: .7; }
.credit a { display: block; opacity: .75; transition: opacity 300ms ease, transform 220ms var(--ease-out); }
.credit img { display: block; width: auto; height: 26px; border-radius: 4px; filter: grayscale(1); transition: filter 300ms ease; }
.credit a:active { transform: scale(.96); transition-duration: 90ms; }
@media (hover: hover) and (pointer: fine) {
  .credit a:hover { opacity: 1; transform: translateY(-2px); }
  .credit a:hover img { filter: none; }
}

/* კატალოგის სექცია: სტრიქონები ბმულებია კატალოგის გვერდზე, სიის ქვეშ კი მთელი კატალოგის ღილაკია */
.cat-more { margin: clamp(1.6rem, 3vw, 2.6rem) 0 0; }

/* ლოგოების ბადე: უჯრა ბმულია კატალოგზე ამ ბრენდის ფილტრით; კლავიატურის ფოკუსზე იგივე ხდება, რაც კურსორზე */
.logo-grid a { position: absolute; inset: 0; }
.logo-grid a:focus-visible { outline-offset: -4px; }
.logo-grid a:focus-visible img:not(.pack) { transform: translateY(-125%); }
.logo-grid a:focus-visible img.pack { transform: none; }
.brands-more { margin: clamp(1.8rem, 3.5vw, 3rem) 0 0; }

/* შიდა გვერდებზე გადასასვლელი ბმული სექციის ტექსტის ქვეშ */
.more-link, .sec-head .more-link { margin: 1.1rem 0 0; }

/* სამი „კარი“ (მწარმოებლები, სავაჭრო ობიექტები, კვების ობიექტები): სათაური პატარაა, რომ გრძელი სიტყვა სვეტში ჩაეტიოს */
.doors-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doors-3 .door h3 { font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1.05; }
.door-cta { margin-top: auto; }
@media (max-width: 900px) {
  .doors-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ძალიან ვიწრო ეკრანი: გრძელი წარწერის ღილაკი ორ სტრიქონად იშლება და ეკრანს არ სცდება */
@media (max-width: 420px) {
  .btn-lg { max-width: 100%; height: auto; min-height: 56px; padding-block: .75rem; white-space: normal; text-align: center; line-height: 1.25; }
}

/* ნავიგაცია: ხუთი პუნქტი და ღილაკი 1040px-ზე ვიწრო ეკრანზე ერთმანეთს ეჯახება, ამიტომ მენიუს ღილაკი
   უფრო ადრე ჩნდება, ვიდრე დანარჩენი განლაგება იცვლება (იგივე წესები, რაც ზემოთ 900px-ის ბლოკშია) */
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav .btn { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 1.1rem; padding: var(--pad);
    background: var(--night); color: #fff; font-stretch: 66%; font-weight: 600; font-size: 2.4rem; line-height: 1.1;
    opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms;
  }
  .nav-links .nav-contact { display: block; margin-top: 1rem; color: var(--sun); }
  .nav.open { color: #fff; background: none; box-shadow: none; --mark: var(--sun); }
  .nav.open .nav-links { opacity: 1; visibility: visible; transition: opacity 200ms ease; }
  .logo { min-height: 44px; }
}

/* ==========================================================================
   საერთო წესები, რომლებიც ყველა გვერდს სჭირდება
   ========================================================================== */
/* hidden ატრიბუტი ყოველთვის მალავს: ავტორის display წესები (img, grid, flex) მას ვერ აუქმებს */
[hidden] { display: none !important; }
/* ეკრანზე უხილავი, ეკრანის წამკითხველისთვის ხილული ტექსტი (მთავრული წარწერის ჩვეულებრივი ასლი) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* .btn, როცა ის <button>-ია და არა ბმული */
button.btn { border: 0; cursor: pointer; }
