/* ==========================================================================
   GV Capital · Brand Guidelines
   verbal-system.css: სახელი და არქიტექტურა · წერის წესები · სოციალური მედია

   სამივე ახალი სექცია სტრატეგიისა და ვერბალური იდენტობის დოკუმენტიდან
   მოდის. ვიზუალურად დეკის არსებულ ხერხემალს მიჰყვება: st-section-head,
   st-eyebrow-sm, st-notes დისკლოჟერი და ერთიანი ჩამოტვირთვის ღილაკი.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. სახელი და არქიტექტურა
   -------------------------------------------------------------------------- */

.nm-bands {
  display: grid;
  gap: clamp(8px, 1.2vh, 12px);
}

.nm-band {
  background: var(--mist);
  border-radius: 12px;
  padding: clamp(14px, 1.6vh, 20px) clamp(18px, 2.2vw, 32px);
}

.nm-band > .st-eyebrow-sm {
  margin-bottom: clamp(8px, 1vh, 12px);
}

/* --- 1.1 სახელი ----------------------------------------------------------- */

.nm-name-row {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) 1.6fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.nm-mark b {
  display: block;
  font: 700 clamp(26px, 2.6vw, 42px)/1.02 var(--font-title-latin);
  letter-spacing: -.045em;
  color: var(--midnight);
}

.nm-mark span {
  display: block;
  margin-top: 6px;
  font: 500 10.5px/1.4 var(--font-title-latin);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--emerald);
}

.nm-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nm-reasons h3 {
  font: 700 13.5px/1.35 var(--font-text-ge);
  letter-spacing: -.01em;
  margin: 0 0 4px;
}

.nm-reasons p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* --- 1.2 არქიტექტურა ------------------------------------------------------ */

.nm-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tier;
}

.nm-tier {
  position: relative;
  background: #fff;
  border-radius: 9px;
  padding: clamp(10px, 1.3vh, 14px) clamp(14px, 1.5vw, 18px);
  border-left: 3px solid var(--emerald);
}

/* დონეები ერთმანეთს ისრით უკავშირდება: იერარქია თვალით უნდა იკითხებოდეს */
.nm-tier + .nm-tier::before {
  content: "→";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--emerald);
  font: 400 13px/1 var(--font-title-latin);
}

.nm-tier-2 { border-left-color: #4E96A0; }
.nm-tier-3 { border-left-color: var(--orange); }

.nm-tier-role {
  display: block;
  font: 600 9px/1.3 var(--font-text-latin);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.nm-tier b {
  display: block;
  font: 700 clamp(14px, 1.3vw, 17px)/1.2 var(--font-title-latin);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.nm-tier-3 b {
  font-family: var(--font-text-ge);
  letter-spacing: -.01em;
}

.nm-tier p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* --- 1.3 დაწერილობა ------------------------------------------------------- */

.nm-write-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 12px;
}

.nm-yes,
.nm-no {
  background: #fff;
  border-radius: 9px;
  padding: clamp(10px, 1.3vh, 14px) clamp(14px, 1.5vw, 18px);
}

.nm-verdict {
  display: block;
  font: 600 9px/1.3 var(--font-text-latin);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.nm-yes .nm-verdict { color: var(--emerald); }
.nm-no .nm-verdict { color: var(--orange); }

.nm-yes b {
  display: block;
  font: 700 clamp(18px, 1.8vw, 24px)/1.1 var(--font-title-latin);
  letter-spacing: -.035em;
  margin-bottom: 5px;
}

.nm-no b {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font: 500 clamp(12px, 1.1vw, 14.5px)/1.25 var(--font-title-latin);
  letter-spacing: -.015em;
  color: #92a3a8;
  text-decoration: line-through;
  text-decoration-color: #c2ced2;
  margin-bottom: 5px;
}

.nm-no b i { font-style: normal; }

.nm-yes p,
.nm-no p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.nm-details { margin-top: clamp(10px, 1.4vh, 14px); }

.nm-detail-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.nm-detail-content h3 {
  font: 600 12px/1.4 var(--font-text-latin);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 10px;
}

.nm-detail-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   2. წერის წესები
   -------------------------------------------------------------------------- */

.wr-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.wr-chain,
.wr-principle {
  background: var(--mist);
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px);
}

.wr-chain ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wr-chain li {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px 20px;
}

.wr-chain b {
  display: block;
  font: 700 12px/1.3 var(--font-title-latin);
  letter-spacing: .1em;
  color: var(--emerald);
  margin-bottom: 9px;
}

.wr-chain p,
.wr-principle p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.wr-principle { display: flex; flex-direction: column; }

.wr-principle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: auto 0 0 !important;
}

.wr-principle-line b {
  font: 700 clamp(15px, 1.5vw, 20px)/1.25 var(--font-text-ge);
  letter-spacing: -.02em;
  color: var(--midnight);
}

.wr-principle-line i {
  font-style: normal;
  color: var(--orange);
  font-size: 15px;
}

.wr-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
}

.wr-rules,
.wr-never {
  background: var(--mist);
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px);
}

.wr-never { background: var(--midnight); }
.wr-never .st-eyebrow-sm { color: #8FC9CD; }

.wr-rules ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(16px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.wr-rules li { counter-increment: rule; }

.wr-rules h3 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font: 700 13.5px/1.35 var(--font-text-ge);
  letter-spacing: -.01em;
  margin: 0 0 7px;
}

.wr-rules h3::before {
  content: "0" counter(rule);
  font: 600 9.5px/1 var(--font-text-latin);
  letter-spacing: .1em;
  color: var(--emerald);
}

.wr-rules p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.wr-never ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.wr-never li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #C4D4D7;
}

.wr-never li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 1.5px;
  background: var(--orange);
}

.wr-details { margin-top: 20px; }

.wr-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 54px);
  align-items: start;
}

.wr-detail-content h3 {
  font: 600 12px/1.4 var(--font-text-latin);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 12px;
}

.wr-samples-note {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #7c8f95;
}

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

.wr-sample-grid article {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.wr-sample-grid span {
  display: block;
  font: 600 9.5px/1.4 var(--font-text-latin);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.wr-sample-grid p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
}

.wr-lang dl { margin: 0; }

.wr-lang dt {
  font: 600 11px/1.4 var(--font-text-ge);
  color: var(--midnight);
  margin-top: 14px;
}

.wr-lang dt:first-child { margin-top: 0; }

.wr-lang dd {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   3. სოციალური მედია
   -------------------------------------------------------------------------- */

.so-row { margin-top: clamp(20px, 2.4vw, 30px); }
.so-row:first-of-type { margin-top: 0; }

.so-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.so-row-head .st-eyebrow-sm { margin: 0; }

.so-row-note {
  font-size: 11.5px;
  color: var(--muted);
}

.so-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}

.so-grid figure { margin: 0; }

.so-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--mist);
}

.so-grid-portrait img { aspect-ratio: 9 / 16; object-fit: cover; }
.so-grid-square img { aspect-ratio: 1; object-fit: cover; }

.so-grid figcaption,
.so-profile-grid figcaption {
  margin-top: 9px;
  font: 600 9px/1.4 var(--font-text-latin);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.so-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .5fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.so-profile-grid figure { margin: 0; }

.so-profile-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--mist);
}

.so-cover img { aspect-ratio: 8 / 3; object-fit: cover; }
.so-avatar img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; }

.so-bio {
  background: var(--mist);
  border-radius: 12px;
  padding: 18px 20px 20px;
}

.so-bio p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--midnight);
}

.so-bio p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.so-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
  margin-top: clamp(22px, 2.6vw, 34px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.so-rules h3 {
  font: 700 13.5px/1.35 var(--font-text-ge);
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.so-rules p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.so-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.so-files-note,
.so-caption {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: #7c8f95;
  max-width: 96ch;
}

/* --------------------------------------------------------------------------
   4. ვიწრო ეკრანები
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nm-name-row { grid-template-columns: 1fr; gap: 22px; }
  .nm-reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wr-top { grid-template-columns: 1fr; }
  .wr-columns { grid-template-columns: 1fr; }
  .wr-rules ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-never ul { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 12px 26px; }
  .wr-detail-content { grid-template-columns: 1fr; }
  .so-profile-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
  .so-bio { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nm-band { padding: 20px 18px; border-radius: 12px; }
  .nm-reasons { grid-template-columns: 1fr; gap: 16px; }
  .nm-tiers { grid-template-columns: 1fr; gap: 10px; }
  .nm-tier + .nm-tier::before { left: 50%; top: -11px; transform: translateX(-50%) rotate(90deg); }
  .nm-write-grid { grid-template-columns: 1fr; }
  .nm-detail-content { grid-template-columns: 1fr; gap: 22px; }
  .wr-chain ol { grid-template-columns: 1fr; }
  .wr-rules ol { grid-template-columns: 1fr; }
  .wr-never ul { grid-template-columns: 1fr; }
  .wr-sample-grid { grid-template-columns: 1fr; }
  .so-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-profile-grid { grid-template-columns: 1fr; }
  .so-rules { grid-template-columns: 1fr; gap: 18px; }
  .so-downloads { display: grid; }
}

@media print {
  .so-downloads,
  .nm-details,
  .wr-details { display: none !important; }
  .nm-band,
  .wr-chain,
  .wr-principle,
  .wr-rules,
  .wr-never { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   01.1 · სახელი და არქიტექტურა — გასუფთავებული ლეიაუთი (2026-09-15)
   ორი ჯგუფი, ერთი ბარათი, ერთი აქცენტი. პანელი პანელში აღარ არის.
   -------------------------------------------------------------------------- */

.nm-section .nm-bands { gap: clamp(22px, 3.4vh, 38px); }

/* ჯგუფს აღარ უჭირავს პანელი: ეტიკეტი და თმის ხაზი აკავებს */
.nm-section .nm-band {
  background: none;
  border-radius: 0;
  padding: 0;
}

.nm-section .nm-band > .st-eyebrow-sm {
  display: block;
  padding-bottom: clamp(8px, 1.1vh, 12px);
  margin-bottom: clamp(14px, 1.8vh, 20px);
  border-bottom: 1px solid rgba(15, 24, 29, .10);
}

/* ერთი ბარათი, ხუთჯერ გამოყენებული */
.nm-section .nm-tier,
.nm-section .nm-yes,
.nm-section .nm-no {
  background: #fff;
  border: 1px solid rgba(15, 24, 29, .09);
  border-radius: 10px;
  padding: clamp(14px, 1.9vh, 20px) clamp(16px, 1.7vw, 22px);
}

/* ერთი აქცენტი — emerald. იერარქიას ისარი და როლის იარლიყი კითხულობს */
.nm-section .nm-tier,
.nm-section .nm-tier-2,
.nm-section .nm-tier-3 { border-left: 3px solid var(--emerald); }

.nm-section .nm-tiers { gap: 18px; }
.nm-section .nm-tier + .nm-tier::before { left: -16px; }

.nm-section .nm-tier-sub {
  display: block;
  margin: -1px 0 7px;
  font: 500 9.5px/1.3 var(--font-title-latin);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--emerald);
}

.nm-section .nm-write-grid { gap: 18px; }

/* „ასე არა“ ნეიტრალურია: ხაზგადასმა უკვე ამბობს, რომ არასწორია */
.nm-section .nm-no .nm-verdict { color: #8A9AA0; }

/* კონტენტი იკავებს ეკრანს მასშტაბით და არა გაბერილი ყუთებით */
.nm-section .nm-bands { gap: clamp(26px, 4.2vh, 44px); }

.nm-section .nm-band > .st-eyebrow-sm {
  margin-bottom: clamp(16px, 2.3vh, 24px);
}

.nm-section .nm-tier,
.nm-section .nm-yes,
.nm-section .nm-no {
  padding: clamp(18px, 2.6vh, 28px) clamp(18px, 2vw, 26px);
}

.nm-section .nm-tier b { font-size: clamp(16px, 1.55vw, 21px); margin-bottom: 6px; }
.nm-section .nm-tier p,
.nm-section .nm-yes p,
.nm-section .nm-no p { font-size: 13px; line-height: 1.55; }
.nm-section .nm-tier-role,
.nm-section .nm-verdict { font-size: 9.5px; margin-bottom: 7px; }
.nm-section .nm-yes b { font-size: clamp(20px, 2vw, 27px); margin-bottom: 7px; }
.nm-section .nm-no b { font-size: clamp(13px, 1.2vw, 15.5px); margin-bottom: 7px; }

/* --------------------------------------------------------------------------
   01.2 · ვერბალური იდენტობა — ერთ ეკრანზე (2026-09-15)
   იყო 810 px 787-ის ეკრანზე: აკორდეონი იჭრებოდა. პადინგი და შუალედი
   ეკრანის სიმაღლეს მიჰყვება, ტიპოგრაფია ხელუხლებელია.
   -------------------------------------------------------------------------- */

.sg-voice .st-manifesto {
  padding: clamp(32px, 5vh, 48px) clamp(32px, 3.6vw, 52px);
}

.sg-voice .sg-tone-grid { margin-bottom: clamp(14px, 2.2vh, 22px); }
.sg-voice > .sg-details { margin-top: clamp(12px, 2vh, 20px); }
.sg-voice .st-manifesto { row-gap: clamp(10px, 1.8vh, 18px); }
.sg-voice .sg-tone-grid { padding-top: clamp(10px, 1.6vh, 16px); }
.sg-voice > .st-section-head { margin-bottom: clamp(8px, 1.4vh, 14px); }

/* ID-სპეციფიკურობა: row-gap და tone-grid-ის padding სხვა ფაილში უფრო გვიან ისმება */
#voice .st-manifesto { row-gap: clamp(10px, 1.8vh, 18px); }
#voice .sg-tone-grid { padding-top: clamp(10px, 1.55vh, 16px); }

/* ჰერო-ტიპოგრაფია ეკრანის სიმაღლეს მიჰყვება: 13" ლეპტოპზე სექცია აღარ იჭრება.
   მაღალ ეკრანზე ზომა უცვლელია (ზედა ზღვარი 86 / 32 px). */
#voice .sg-concept { font-size: clamp(40px, min(6.2vw, 9.2vh), 86px); }
#voice .st-manifesto h3:not(.sg-concept) { font-size: clamp(20px, min(2.8vw, 4.1vh), 32px); }

/* ეს იყო ნამდვილი მიზეზი: მანიფესტოს min-height 460px ფიქსირებული იყო,
   ამიტომ ტიპოგრაფიის შემცირება სიმაღლეს არ ცვლიდა. */
#voice .st-manifesto { min-height: clamp(300px, 44vh, 460px); }

/* --------------------------------------------------------------------------
   ბრენდის არქიტექტურა — დიაგრამა (2026-09-15)
   სამი ბარათის ნაცვლად ხე: ერთი ჰოლდინგი, მიმართულებები, ლოკაციები.
   ერთი აქცენტი (emerald); წონა ზემოდან ქვემოთ სუსტდება, იერარქია თვალით იკითხება.
   -------------------------------------------------------------------------- */

#name-architecture .nm-tree {
  --nm-gap: clamp(26px, 3.6vh, 42px);
  --nm-line: rgba(10, 102, 112, .30);
  display: grid;
  align-content: start;
  gap: var(--nm-gap);
  padding: clamp(6px, 1vh, 12px) 0 0;
}

#name-architecture .nm-tier-row {
  display: grid;
  grid-template-columns: clamp(86px, 9vw, 116px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  position: relative;
}

#name-architecture .nm-level {
  font: 600 9px/1.3 var(--font-text-latin);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

#name-architecture .nm-nodes { display: grid; gap: clamp(14px, 1.6vw, 26px); justify-items: stretch; }
#name-architecture .nm-nodes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#name-architecture .nm-nodes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- კვანძები: წონა ზემოდან ქვემოთ ეცემა ------------------------------- */

#name-architecture .nm-node {
  border-radius: 10px;
  padding: clamp(14px, 1.9vh, 20px) clamp(16px, 1.7vw, 24px);
  min-width: 0;
}

#name-architecture .nm-node b {
  display: block;
  font: 700 clamp(15px, 1.5vw, 20px)/1.2 var(--font-title-latin);
  letter-spacing: -.02em;
}

#name-architecture .nm-node span {
  display: block;
  margin-top: 5px;
  font: 400 11.5px/1.4 var(--font-text-ge);
  letter-spacing: .01em;
}

#name-architecture .nm-node-master {
  background: var(--emerald);
  color: #fff;
}
#name-architecture .nm-node-master b { font-size: clamp(19px, 2vw, 27px); }
#name-architecture .nm-node-master span {
  color: var(--mint-on-emerald, #c7e0e1);
  font-family: var(--font-title-latin);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#name-architecture .nm-node-live {
  background: #fff;
  border: 1px solid rgba(10, 102, 112, .30);
  color: var(--midnight);
}
#name-architecture .nm-node-live span { color: var(--muted); }

#name-architecture .nm-node-open {
  background: none;
  border: 1px dashed rgba(15, 24, 29, .22);
  color: var(--muted);
}
#name-architecture .nm-node-open b { font-weight: 500; color: var(--muted); }
#name-architecture .nm-node-open span { color: #8A9AA0; }

#name-architecture .nm-leaf {
  display: block;
  text-align: center;
  padding: clamp(10px, 1.3vh, 14px) clamp(10px, 1.2vw, 16px);
  font: 500 clamp(13px, 1.15vw, 16px)/1.3 var(--font-text-ge);
  letter-spacing: -.005em;
  color: var(--midnight);
}

/* --- დამაკავშირებლები: ერთი ცვლადი აკავშირებს შუალედსა და ხაზებს -------- */

#name-architecture .nm-nodes { position: relative; }
#name-architecture .nm-nodes > * { position: relative; }

/* ჰორიზონტალური რელსი მხოლოდ კიდურა შვილების ცენტრებს შორის */
#name-architecture .nm-nodes-2::before,
#name-architecture .nm-nodes-3::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--nm-gap) / 2);
  height: 1px;
  background: var(--nm-line);
}
#name-architecture .nm-nodes-2::before { left: 25%; right: 25%; }
#name-architecture .nm-nodes-3::before { left: 16.6667%; right: 16.6667%; }

/* ვერტიკალური ღერო რელსიდან თითოეულ შვილამდე */
#name-architecture .nm-nodes-2 > *::before,
#name-architecture .nm-nodes-3 > *::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  top: calc(-1 * var(--nm-gap) / 2);
  height: calc(var(--nm-gap) / 2);
  background: var(--nm-line);
}

/* ღერო ჰოლდინგიდან ქვემოთ */
#name-architecture .nm-tier-master .nm-nodes > *::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  top: 100%;
  height: calc(var(--nm-gap) / 2);
  background: var(--nm-line);
}

/* ჰოლდინგი მშობელივით: ვიწრო და ცენტრში, ბავშვების ზემოთ */
#name-architecture .nm-tier-master .nm-nodes { justify-items: center; }
#name-architecture .nm-node-master {
  width: min(100%, 380px);
  text-align: center;
}

#name-architecture .nm-arch-note {
  margin: clamp(16px, 2.2vh, 24px) 0 0;
  font: 400 12px/1.6 var(--font-text-ge);
  color: var(--muted);
  max-width: 78ch;
}

/* --- მარჯვენა ვერტიკალური განაცხადი + ბმული -------------------------- */

#name-architecture .nm-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(100px, 10vw, 132px);
  gap: clamp(18px, 2.2vw, 32px);
  align-items: stretch;
}

#name-architecture .nm-statement {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(10px, 1.4vh, 16px);
  min-height: 0;
}

#name-architecture .nm-statement-panel {
  min-height: 0;
  background: var(--midnight);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: clamp(20px, 2.6vh, 30px) clamp(8px, 1vw, 14px);
  overflow: hidden;
}

#name-architecture .nm-statement-panel p {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0;
  font: 400 clamp(13px, 1.2vw, 16px)/1.45 var(--font-text-ge);
  letter-spacing: .005em;
  color: #fff;
  text-align: left;
}

#name-architecture .nm-statement-panel b {
  font-weight: 600;
  color: var(--mint-on-emerald, #c7e0e1);
}

#name-architecture .nm-statement-link {
  display: grid;
  place-items: center;
  height: clamp(62px, 8.2vh, 86px);
  border-radius: 14px;
  background: var(--emerald);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

#name-architecture .nm-statement-link svg { width: clamp(28px, 3vh, 36px); height: auto; display: block; }

#name-architecture .nm-statement-link:hover,
#name-architecture .nm-statement-link:focus-visible {
  background: #0d7b87;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  #name-architecture .nm-body { grid-template-columns: 1fr; }
  #name-architecture .nm-statement { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto; }
  #name-architecture .nm-statement-panel { padding: 22px; }
  #name-architecture .nm-statement-panel p { writing-mode: horizontal-tb; transform: none; }
  #name-architecture .nm-statement-link { width: 84px; }
}

/* აკორდეონში ორი თემა დარჩა — სვეტები შინაარსს მიჰყვება */
#name-architecture .nm-detail-content { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
