/* ============ Karkas.com.ge ============ */
:root {
  --ink: #141414;
  --graphite: #1c1c1c;
  --concrete: #2a2a2a;
  --line: rgba(255,255,255,.18);
  --oak: #c8a27a;
  --oak-2: #e2c39d;
  --sand: #f2ede6;
  --paper: #faf7f2;
  --text-dark: #22201d;
  --muted: #8a847c;
  --wa: #25d366;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--ink); color: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 100% - 48px); margin: 0 auto; }

h1, h2, h3, .logo, .stage-num, .gauge-value, .btn, .eyebrow, .stat-num, .steps b, .role, .phone {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .02em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; font-size: 16px; font-weight: 500; letter-spacing: .08em;
  border-radius: 2px; transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn-wa { background: var(--oak); color: var(--ink); }
.btn-wa:hover { background: var(--oak-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200,162,122,.35); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.wa-ico { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled { background: rgba(20,20,20,.72); backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: .12em; }
.logo-ge { color: var(--oak); font-weight: 400; letter-spacing: .02em; text-transform: none; }
.logo-mark { width: 22px; height: 22px; border: 2px solid var(--oak); position: relative; }
.logo-mark::after { content: ''; position: absolute; inset: 4px; background: var(--oak); }
.nav-links { display: flex; gap: 32px; font-size: 14px; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.nav-links a:hover { color: #fff; }

/* ---------- Видео по скроллу ---------- */
.scrolly { position: relative; height: 700vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #1a1a1a; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
}
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.stage {
  position: absolute; z-index: 5; opacity: 0; pointer-events: none;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
  will-change: opacity, transform;
  transform: translateY(var(--y, 0px));
  filter: blur(var(--b, 0px));
}
.stage-left, .stage-right, .stage-final { transform: translateY(calc(-50% + var(--y, 0px))); }
.stage-left, .stage-right { filter: none; } /* blur ломает backdrop-filter панели */
.stage.on { pointer-events: auto; }
.eyebrow { font-size: 14px; letter-spacing: .32em; color: var(--oak-2); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 40px; height: 1px; background: currentColor; }
.eyebrow.dark { color: #a07a52; }
.accent { color: var(--oak-2); }

.stage-hero { left: clamp(20px, 6vw, 96px); bottom: 14vh; max-width: 900px; }
.stage-hero h1 { font-size: clamp(48px, 8.4vw, 132px); line-height: .92; font-weight: 600; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 520px; color: rgba(255,255,255,.88); }
.scroll-hint { margin-top: 40px; display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.scroll-hint span { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 12px; position: relative; flex: none; }
.scroll-hint span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(12px); opacity: 0 } }

.stage-left, .stage-right { top: 50%; max-width: 420px;
  padding: 36px 36px 32px; background: rgba(18,18,18,.42); backdrop-filter: blur(10px);
  border: 1px solid var(--line); }
.stage-left { left: clamp(20px, 6vw, 96px); }
.stage-right { right: calc(clamp(20px, 3vw, 44px) + 120px); }
.stage-left::before, .stage-right::before { content: ''; position: absolute; top: -1px; left: -1px; width: 48px; height: 3px; background: var(--oak); }
.stage-num { font-size: 88px; font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--oak-2); margin-bottom: 6px; text-shadow: none; }
.stage h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-weight: 600; margin-bottom: 20px; }
.stage ul { list-style: none; display: grid; gap: 10px; font-size: 16px; color: rgba(255,255,255,.9); }
.stage li { padding-left: 22px; position: relative; text-shadow: none; }
.stage li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--oak); }

.stage-final { left: 0; right: 0; top: 50%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stage-final .eyebrow::after { content: ''; width: 40px; height: 1px; background: currentColor; }
.stage-final h2.big { font-size: clamp(48px, 8vw, 124px); line-height: .92; margin-bottom: 36px; }

/* Шкала готовности */
.gauge { position: absolute; z-index: 6; right: clamp(20px, 3vw, 44px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 76px; }
.gauge-label { font-family: var(--head); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.gauge-value { font-size: 34px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-value small { font-size: 16px; color: var(--oak-2); }
.gauge-track { position: relative; width: 2px; height: 34vh; background: rgba(255,255,255,.2); }
.gauge-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--oak); box-shadow: 0 0 12px var(--oak); }
.gauge-track i { position: absolute; left: -6px; width: 14px; height: 1px; background: rgba(255,255,255,.55); }
.gauge-stage { font-family: var(--head); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-2); min-height: 2.6em; }

/* ---------- Цифры ---------- */
.stats { background: var(--graphite); border-top: 1px solid #2c2c2c; border-bottom: 1px solid #2c2c2c; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 56px 24px; border-left: 1px solid #2c2c2c; }
.stat:first-child { border-left: 0; }
.stat-num { font-size: clamp(44px, 5vw, 72px); font-weight: 500; color: var(--oak-2); line-height: 1; }
.stat-label { margin-top: 12px; color: rgba(255,255,255,.7); font-size: 15px; }

/* ---------- Светлые секции ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); color: var(--text-dark); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(44px, 6vw, 84px); line-height: .95; font-weight: 600; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* До / После */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; background: #ddd; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.35); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.ba-tag { position: absolute; top: 20px; padding: 8px 14px; background: rgba(20,20,20,.7); color: #fff; font-family: var(--head); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; pointer-events: none; }
.ba-tag-l { left: 20px; } .ba-tag-r { right: 20px; background: var(--oak); color: var(--ink); }

/* Процесс */
.process { background: var(--sand); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d8cfc3; border-left: 1px solid #d8cfc3; }
.steps li { padding: 40px 32px 44px; border-right: 1px solid #d8cfc3; border-bottom: 1px solid #d8cfc3; transition: background .4s; }
.steps li:hover { background: #fff; }
.steps b { display: block; font-size: 15px; color: #a07a52; font-weight: 500; letter-spacing: .2em; margin-bottom: 28px; }
.steps h3 { font-size: 28px; font-weight: 500; margin-bottom: 12px; }
.steps p { color: #6d665e; line-height: 1.6; }

/* Директор */
.director { background: var(--ink); color: #fff; }
.director-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.director-photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #2e2e2e, #1b1b1b); }
.director-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #555; font-size: 13px; }
.photo-placeholder svg { width: 40%; fill: #3a3a3a; }
.corner { position: absolute; width: 60px; height: 60px; border: 0 solid var(--oak); z-index: 2; }
.corner.c1 { top: -14px; left: -14px; border-top-width: 2px; border-left-width: 2px; }
.corner.c2 { bottom: -14px; right: -14px; border-bottom-width: 2px; border-right-width: 2px; }
.director-text h2 { font-size: clamp(48px, 6vw, 88px); line-height: .95; font-weight: 600; }
.role { margin-top: 14px; color: var(--oak-2); font-size: 18px; letter-spacing: .24em; }
.director blockquote { margin: 32px 0 36px; font-size: 20px; line-height: 1.6; color: rgba(255,255,255,.82); border-left: 2px solid var(--oak); padding-left: 22px; max-width: 520px; }
.phone { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: .04em; transition: color .3s; }
.phone .wa-ico { width: 36px; height: 36px; color: var(--wa); }
.phone:hover { color: var(--oak-2); }
.phone-note { color: rgba(255,255,255,.5); font-size: 14px; margin: 8px 0 32px; }

.footer { background: #0e0e0e; color: rgba(255,255,255,.6); padding: 36px 0; font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo { font-size: 18px; color: #fff; }
.footer a:hover { color: var(--oak-2); }

/* Плавающая кнопка */
.wa-float { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(1.6); opacity: 0 } }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid #2c2c2c; padding: 40px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .director-grid { grid-template-columns: 1fr; }
  .director-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .scrolly { height: 600vh; }
  .btn-sm .js-phone { display: none; }
  .gauge { right: 12px; width: 54px; top: auto; bottom: 90px; transform: none; }
  .gauge-track { height: 18vh; } .gauge-label, .gauge-stage { display: none; } .gauge-value { font-size: 24px; }
  .stage-left, .stage-right { left: 16px; right: 16px; top: auto; bottom: 90px; max-width: none; padding: 24px 22px; transform: translateY(var(--y, 0px)); }
  .stage-left { right: 80px; } .stage-right { right: 80px; }
  .stage-num { font-size: 56px; }
  .stage-hero { left: 20px; right: 20px; bottom: 12vh; }
  .stage ul { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* финальный экран: усиленный контраст на золотом свете */
.stage-final::before { content: ''; position: absolute; inset: -12vh -10vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(10,8,6,.55), rgba(10,8,6,0)); }
.stage-final .accent { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 2px 40px rgba(0,0,0,.6); border-bottom: 3px solid var(--oak); }

/* ---------- Портрет директора (круглый) ---------- */
.director-photo { aspect-ratio: 1; background: none; border-radius: 50%; max-width: 480px; width: 100%; justify-self: center; }
.director-photo::before { /* тонкое кольцо дуба */
  content: ''; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(200,162,122,.55); z-index: 0; }
.director-photo::after {  /* вращающаяся пунктирная разметка, как на чертеже */
  content: ''; position: absolute; inset: -36px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14);
  animation: spin 60s linear infinite; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.director-photo img { border-radius: 50%; transform: scale(1.025); filter: grayscale(1) contrast(1.06);
  box-shadow: 0 40px 80px rgba(0,0,0,.5); transition: filter .8s var(--ease); }
.director-photo:hover img { filter: grayscale(.2) sepia(.25) contrast(1.06); }
.director-photo .photo-placeholder { border-radius: 50%; background: linear-gradient(160deg, #2e2e2e, #1b1b1b); }
.director-photo .corner { display: none; }
.director-badge { position: absolute; z-index: 3; left: 50%; bottom: -10px; transform: translateX(-50%);
  white-space: nowrap; background: var(--oak); color: var(--ink); padding: 10px 22px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 500; }
.director { overflow: hidden; }
.director-grid { padding: 40px 0; }
@media (max-width: 640px) { .director-photo { max-width: 300px; } }

/* ---------- Команда ---------- */
.team { background: var(--graphite); color: #fff; border-bottom: 1px solid #2c2c2c; }
.team .section-head { margin-bottom: 0; }
.team .section-head p { color: rgba(255,255,255,.65); }
.team .eyebrow.dark { color: var(--oak-2); }
.az { color: transparent; -webkit-text-stroke: 1.5px var(--oak-2); }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.team-count { display: flex; align-items: center; gap: 18px; flex: none; }
.team-count b { font-family: var(--head); font-size: clamp(80px, 10vw, 150px); font-weight: 600; line-height: .8; color: var(--oak); }
.team-count span { font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); }

.team-path { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 28px; position: relative; }
.team-path::before { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px;
  background: linear-gradient(90deg, #555, var(--oak)); }
.team-path span { position: relative; padding-top: 22px; font-family: var(--head); text-transform: uppercase;
  letter-spacing: .2em; font-size: 12px; color: rgba(255,255,255,.55); }
.team-path span::before { content: ''; position: absolute; left: 0; top: 0; width: 11px; height: 11px;
  border: 1px solid var(--oak); background: var(--graphite); transform: rotate(45deg); }
.team-path span:last-child { text-align: right; color: var(--oak-2); }
.team-path span:last-child::before { left: auto; right: 0; background: var(--oak); }

.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2e2e2e; border: 1px solid #2e2e2e; }
.team-card { position: relative; background: var(--graphite); padding: 32px 28px 36px; transition: background .4s var(--ease); overflow: hidden; }
.team-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--oak); transition: width .5s var(--ease); }
.team-card:hover { background: #232323; }
.team-card:hover::after { width: 100%; }
.team-card svg { width: 44px; height: 44px; fill: none; stroke: var(--oak-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; transition: transform .5s var(--ease); }
.team-card:hover svg { transform: translateY(-4px); }
.team-card i { position: absolute; top: 34px; right: 26px; font-style: normal; font-family: var(--head); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: rgba(255,255,255,.4); }
.team-card h3 { font-family: var(--head); text-transform: uppercase; font-size: 22px; font-weight: 500; line-height: 1.15; margin-bottom: 12px; letter-spacing: .03em; }
.team-card p { color: rgba(255,255,255,.62); line-height: 1.6; font-size: 15px; }
.team-card--lead { background: var(--oak); color: var(--ink); }
.team-card--lead:hover { background: var(--oak-2); }
.team-card--lead svg { stroke: var(--ink); }
.team-card--lead p { color: rgba(20,20,20,.75); }
.team-card--lead i { color: rgba(20,20,20,.55); }
.team-card--lead::after { background: var(--ink); }

.team-cta { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.team-cta p { font-size: 20px; max-width: 560px; color: rgba(255,255,255,.85); line-height: 1.5; }

@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .team-head { flex-direction: column; align-items: flex-start; }
  .team-path { display: none; }
}
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Руководство ---------- */
.leaders { background: var(--ink); color: #fff; border-bottom: 1px solid #262626; }
.leaders .section-head h2 { color: #fff; }
.leaders .eyebrow.dark { color: var(--oak-2); }
.leaders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 48px; }
.person { text-align: center; }
.portrait { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto 44px; }
.portrait::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(200,162,122,.55); }
.portrait::after { content: ''; position: absolute; inset: -28px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin 60s linear infinite; }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  filter: grayscale(1) contrast(1.12) brightness(1.02); box-shadow: 0 30px 60px rgba(0,0,0,.5); transition: filter .8s var(--ease); }
.person:hover .portrait img { filter: grayscale(.2) sepia(.25) contrast(1.08); }
.portrait .badge { position: absolute; z-index: 2; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap;
  background: var(--oak); color: var(--ink); padding: 8px 18px; font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 500; }
.person h3 { font-family: var(--head); text-transform: uppercase; font-size: 30px; font-weight: 600; letter-spacing: .03em; }
.person-role { margin-top: 8px; color: var(--oak-2); font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; font-size: 14px; }
.person p { margin: 18px auto 0; max-width: 300px; color: rgba(255,255,255,.65); line-height: 1.6; font-size: 15px; }
@media (max-width: 900px) { .leaders-grid { grid-template-columns: 1fr; } .portrait { width: 240px; } }

/* ---------- Наши последние работы ---------- */
.works { background: var(--paper); }
.works .section-head { margin-bottom: 40px; }
.works-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.works-tab { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 14px;
  padding: 12px 20px; border: 1px solid #d8cfc3; background: transparent; color: var(--text-dark); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s; }
.works-tab sup { margin-left: 6px; font-size: 10px; color: #a07a52; }
.works-tab:hover { border-color: var(--text-dark); }
.works-tab.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.works-tab.active sup { color: var(--oak-2); }

.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.work { position: relative; margin: 0; overflow: hidden; cursor: zoom-in; grid-row: span 2; background: #ddd; outline: none; }
.work--wide { grid-column: span 2; grid-row: span 2; }
.work.hidden { display: none; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,8,6,.78)); opacity: .85; transition: opacity .5s; }
.work figcaption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; transform: translateY(6px); transition: transform .5s var(--ease); }
.work figcaption span { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--oak-2); margin-bottom: 4px; }
.work figcaption b { font-family: var(--head); text-transform: uppercase; font-size: 22px; font-weight: 500; letter-spacing: .03em; }
.work:hover img, .work:focus-visible img { transform: scale(1.06); }
.work:hover figcaption, .work:focus-visible figcaption { transform: none; }
.work:focus-visible { box-shadow: 0 0 0 3px var(--oak); }
.works-cta { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; background: var(--text-dark); color: #fff; }
.works-cta p { font-family: var(--head); text-transform: uppercase; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .03em; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,11,10,.96); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; width: min(1300px, 100% - 140px); height: 86vh; }
.lb-img { height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-info { color: #fff; }
.lb-info .eyebrow { font-size: 12px; }
.lb-info h3 { font-family: var(--head); text-transform: uppercase; font-size: 40px; line-height: 1; font-weight: 600; margin-bottom: 18px; }
.lb-info p { color: rgba(255,255,255,.72); line-height: 1.7; margin-bottom: 26px; }
.lb-count { font-family: var(--head); letter-spacing: .2em; color: rgba(255,255,255,.45); margin-bottom: 26px; font-size: 14px; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; opacity: .7; transition: opacity .3s; z-index: 2; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 18px; right: 28px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); font-size: 64px; }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); font-size: 64px; }

@media (max-width: 1000px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .lb-body { grid-template-columns: 1fr; height: auto; max-height: 92vh; width: calc(100% - 32px); gap: 20px; }
  .lb-img { height: 60vh; } .lb-info h3 { font-size: 28px; } .lb-info p { margin-bottom: 16px; }
  .lb-nav { top: 32vh; font-size: 48px; } .lb-prev { left: 4px; } .lb-next { right: 4px; }
}
@media (max-width: 560px) {
  .works-grid { grid-auto-rows: 150px; gap: 8px; }
  .work figcaption { left: 12px; bottom: 10px; } .work figcaption b { font-size: 16px; }
  .works-tab { padding: 10px 14px; font-size: 12px; }
}
.lb-img { min-height: 0; overflow: hidden; }
.lb-img img { max-height: 86vh; width: auto; }
@media (max-width: 1000px) { .lb-img img { max-height: 58vh; } }

/* ---------- Переключатель языка ---------- */
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.25); margin-left: auto; }
.lang-switch button { background: none; border: 0; color: rgba(255,255,255,.7); font-family: 'Oswald', sans-serif; font-size: 13px;
  letter-spacing: .1em; padding: 7px 10px; cursor: pointer; transition: background .3s, color .3s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--oak); color: var(--ink); }
.nav .nav-links { margin-left: auto; }
.nav .lang-switch { margin-left: 0; }

/* ---------- Грузинский: шрифт с грузинским алфавитом, без капса ---------- */
html[lang="ka"] { --head: 'Noto Sans Georgian', sans-serif; --body: 'Noto Sans Georgian', 'Manrope', sans-serif; }
html[lang="ka"] h1, html[lang="ka"] h2, html[lang="ka"] h3, html[lang="ka"] .btn, html[lang="ka"] .eyebrow,
html[lang="ka"] .role, html[lang="ka"] .person-role, html[lang="ka"] .works-tab, html[lang="ka"] .team-path span,
html[lang="ka"] .team-card h3, html[lang="ka"] .team-card i, html[lang="ka"] .work figcaption *, html[lang="ka"] .gauge-label,
html[lang="ka"] .gauge-stage, html[lang="ka"] .ba-tag, html[lang="ka"] .works-cta p, html[lang="ka"] .calc-label,
html[lang="ka"] .calc-res-label, html[lang="ka"] .team-count span, html[lang="ka"] .badge, html[lang="ka"] .director-badge {
  text-transform: none; letter-spacing: .01em; }
html[lang="ka"] .stage-hero h1 { font-size: clamp(40px, 6.4vw, 104px); line-height: 1.02; font-weight: 700; }
html[lang="ka"] .stage h2, html[lang="ka"] .section-head h2 { font-weight: 700; line-height: 1.08; }
html[lang="ka"] .stage-final h2.big { font-size: clamp(40px, 6.4vw, 100px); line-height: 1.05; }
html[lang="ka"] .section-head h2 { font-size: clamp(36px, 4.8vw, 68px); }
html[lang="ka"] .director-text h2, html[lang="ka"] .person h3 { font-size: clamp(28px, 3.4vw, 48px); }
html[lang="ka"] .stat-num, html[lang="ka"] .gauge-value, html[lang="ka"] .stage-num, html[lang="ka"] .team-count b,
html[lang="ka"] .steps b, html[lang="ka"] .logo, html[lang="ka"] .phone { font-family: 'Oswald', sans-serif; }
html[lang="en"] .stage-hero h1 { font-size: clamp(48px, 8vw, 126px); }

/* ---------- Калькулятор ---------- */
.calc { background: var(--sand); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.calc-form { display: grid; gap: 28px; background: #fff; padding: 36px; border: 1px solid #e4dbcf; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: #8a7a66; }
.calc-label b { font-size: 34px; color: var(--text-dark); letter-spacing: .02em; font-weight: 500; }
.calc-area { display: flex; gap: 16px; align-items: center; }
.calc-area input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--oak) var(--p, 30%), #e3d9cc var(--p, 30%)); border-radius: 2px; }
.calc-area input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--text-dark); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.calc-area input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--text-dark); border: 4px solid #fff; }
.calc-area input[type=number] { width: 90px; padding: 10px 12px; border: 1px solid #d8cfc3; font: 500 18px var(--body); text-align: center; }
.calc-types { display: grid; gap: 10px; }
.calc-type { position: relative; cursor: pointer; }
.calc-type input, .calc-seg input, .calc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc-type span { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px; border: 1px solid #e0d6c9; transition: border-color .3s, background .3s; }
.calc-type b { font-family: var(--head); text-transform: uppercase; font-size: 18px; font-weight: 500; letter-spacing: .03em; }
.calc-type small { grid-column: 1; color: #7d756c; font-size: 14px; line-height: 1.45; }
.calc-type em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: 'Oswald', sans-serif; color: #a07a52; white-space: nowrap; }
.calc-type input:checked + span { border-color: var(--text-dark); background: #faf6f0; box-shadow: inset 3px 0 0 var(--oak); }
.calc-type input:focus-visible + span, .calc-seg input:focus-visible + span, .calc-opt input:focus-visible + span { outline: 2px solid var(--oak); outline-offset: 2px; }
.calc-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d8cfc3; }
.calc-seg label { cursor: pointer; }
.calc-seg span { display: block; text-align: center; padding: 13px 10px; transition: background .3s, color .3s; }
.calc-seg input:checked + span { background: var(--text-dark); color: #fff; }
.calc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #e0d6c9; cursor: pointer; font-size: 15px; transition: border-color .3s; }
.calc-opt::before { content: ''; flex: none; width: 18px; height: 18px; border: 1.5px solid #b9ad9e; transition: background .2s, border-color .2s; }
.calc-opt:has(input:checked) { border-color: var(--text-dark); }
.calc-opt:has(input:checked)::before { background: var(--oak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' fill='none' stroke='%23141414' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--oak); }
.calc-opt i { display: none; margin-left: auto; font-style: normal; font-size: 11px; color: #a07a52; text-transform: uppercase; letter-spacing: .08em; }
.calc-opt.included { opacity: .6; cursor: default; }
.calc-opt.included::before { background: #e8dfd3; border-color: #d0c4b4; }
.calc-opt.included i { display: inline; }
.calc-result { position: sticky; top: 90px; background: var(--text-dark); color: #fff; padding: 36px; }
.calc-res-label { font-family: var(--head); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--oak-2); }
.calc-sum { font-family: 'Oswald', sans-serif; font-size: clamp(34px, 3.4vw, 46px); font-weight: 500; line-height: 1.1; margin: 8px 0 22px; }
.calc-weeks { font-family: 'Oswald', sans-serif; font-size: 26px; margin: 6px 0 18px; }
.calc-note { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.55; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.calc-fields { display: grid; gap: 10px; margin-bottom: 14px; }
.calc-fields input, .calc-fields select { width: 100%; padding: 14px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font: 15px var(--body); border-radius: 0; -webkit-appearance: none; appearance: none; }
.calc-fields select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e2c39d' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.calc-fields select option { color: #222; }
.calc-fields input::placeholder { color: rgba(255,255,255,.45); }
.calc-send { width: 100%; justify-content: center; }
.calc-small { display: block; text-align: center; margin-top: 12px; color: rgba(255,255,255,.5); font-size: 12px; }
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 560px) {
  .calc-form, .calc-result { padding: 22px; }
  .calc-opts { grid-template-columns: 1fr; }
  .calc-type span { grid-template-columns: 1fr; }
  .calc-type em { grid-column: 1; grid-row: auto; }
  .lang-switch button { padding: 6px 7px; font-size: 12px; }
}
.nav-links a, .nav .btn-sm { white-space: nowrap; }
.nav-links { gap: 28px; }
@media (max-width: 1180px) { .nav-links { display: none; } .nav .lang-switch { margin-left: auto; } }
@media (max-width: 640px) {
  .nav { gap: 12px; padding: 14px 16px; }
  .nav .btn-sm { display: none; }
  .nav .logo { font-size: 19px; gap: 8px; }
  .nav .logo-mark { width: 18px; height: 18px; }
}

/* ---------- Руководство: 4 в ряд + ведущие мастера ---------- */
.leaders-grid { grid-template-columns: repeat(4, 1fr); gap: 64px 36px; }
.leaders .portrait { width: min(100%, 240px); margin-bottom: 40px; }
.leaders .person h3 { font-size: 26px; }
.masters-head { display: flex; align-items: center; gap: 20px; margin: 90px 0 56px; font-family: var(--head);
  text-transform: uppercase; letter-spacing: .24em; font-size: 14px; color: var(--oak-2); }
.masters-head::before, .masters-head::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.masters-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.masters-grid .portrait { width: min(100%, 200px); }
.masters-grid .person h3 { font-size: 22px; }
@media (max-width: 1100px) { .leaders-grid { grid-template-columns: repeat(2, 1fr); } .masters-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .leaders-grid, .masters-grid { grid-template-columns: 1fr 1fr; gap: 48px 16px; }
  .leaders .portrait { width: 140px; margin-bottom: 30px; }
  .leaders .portrait::after { inset: -16px; } .leaders .portrait::before { inset: -8px; }
  .leaders .person h3 { font-size: 17px; } .leaders .person p { font-size: 13px; }
  .person-role { font-size: 11px; letter-spacing: .12em; }
  .portrait .badge { font-size: 10px; padding: 6px 10px; }
  .masters-head { margin: 64px 0 40px; }
}
