/* =========================================================================
   Eleron Com — eleronprint.ro
   Дизайн-система + компоненты (база: Concept C «Modern Studio»).
   Чистый CSS, без фреймворков. Контент сайта — на румынском.
   ========================================================================= */

/* ---- Шрифты (само-хостинг, variable woff2, latin + RO-диакритика) ----
   font-display:block — формула стандарта студии (субсет + block + preload = текст появляется
   сразу правильным, никакой подмены форм). ro-ext-файлы ~3.5KB: только ĂăȘșȚț (+ŞşŢţ у Inter),
   собраны pyftsubset из latin-ext 2026-09-14. Замена файла = новое имя (кэш год+immutable). */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 800;font-display:block;src:url('/assets/fonts/bricolage-ro-ext.woff2') format('woff2');unicode-range:U+0102-0103,U+0218-021B;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 800;font-display:block;src:url('/assets/fonts/bricolage-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;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:block;src:url('/assets/fonts/inter-ro-ext.woff2') format('woff2');unicode-range:U+0102-0103,U+015E-015F,U+0162-0163,U+0218-021B;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:block;src:url('/assets/fonts/inter-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;}

/* ---- Метрические фолбэки — страховка block-периода ----
   Если шрифт не успел за ~3с block (очень медленная сеть), браузер покажет Arial/Roboto
   с подогнанными метриками (size-adjust/overrides) — и даже эта поздняя подмена не сдвинет
   макет. Числа — canvas-замеры по реальным строкам сайта на живой странице (2026-09-14);
   жирные диапазоны меряны по Arial Bold. */
@font-face{font-family:'Bricolage Grotesque Fallback';font-style:normal;font-weight:400 600;src:local('Arial'),local('Roboto');size-adjust:92.33%;ascent-override:100.72%;descent-override:29.24%;line-gap-override:0%}
@font-face{font-family:'Bricolage Grotesque Fallback';font-style:normal;font-weight:601 800;src:local('Arial Bold'),local('Arial-BoldMT'),local('Roboto Bold');size-adjust:91.24%;ascent-override:101.93%;descent-override:29.59%;line-gap-override:0%}
@font-face{font-family:'Inter Fallback';font-style:normal;font-weight:400 500;src:local('Arial'),local('Roboto');size-adjust:106.72%;ascent-override:90.89%;descent-override:22.49%;line-gap-override:0%}
@font-face{font-family:'Inter Fallback';font-style:normal;font-weight:501 700;src:local('Arial Bold'),local('Arial-BoldMT'),local('Roboto Bold');size-adjust:102.89%;ascent-override:94.28%;descent-override:23.33%;line-gap-override:0%}

/* ---- Cross-document View Transitions ----
   Переходы между страницами без «стыка» документов: браузер держит снимок старой
   страницы до готовности новой и мягко кроссфейдит. Одинаковая шапка/логотип при
   этом выглядят неподвижными (мигание при навигации исчезает). Chrome 126+,
   Safari/iOS 18.2+; без поддержки — обычный переход. Тайм-аут платформы 4с. */
@view-transition{navigation:auto}
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-image-pair(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}

/* ---- Токены ---- */
:root{
  --bg:#ffffff; --bg-2:#f6f6f4; --bg-3:#edeeec;
  --ink:#101114; --ink-2:#2b2e34; --soft:#5f656e; --line:#e7e7ea;
  --c:#00b4d8; --m:#ff2e93; --y:#ffd60a; --k:#101114;
  --y-text:#a07e00; /* читаемый жёлтый на светлом */
  --green:#4d7a16; /* брендовый зелёный из логотипа (тёмный, читаемый) */
  --lime:#a8d040;  /* лайм логотипа (для акцентов на тёмном/плашек) */
  --radius:20px; --radius-sm:12px; --radius-lg:28px; --pill:999px;
  --shadow-sm:0 4px 14px rgba(16,17,20,.06);
  --shadow:0 16px 36px rgba(16,17,20,.08);
  --shadow-lg:0 24px 60px rgba(16,17,20,.16);
  --maxw:1200px; --header-h:76px;
  --font-disp:'Bricolage Grotesque','Bricolage Grotesque Fallback',system-ui,sans-serif;
  --font-body:'Inter','Inter Fallback',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---- Сброс / база ---- */
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{scroll-padding-top:calc(var(--header-h) + 12px);-webkit-text-size-adjust:100%}
/* smooth — только после загрузки (класс ставит main.js): первичное позиционирование
   на #якорь при открытии URL мгновенное, страница не «едет» по контенту */
html.smooth{scroll-behavior:smooth}
/* при переходе на #servicii докручиваем дальше: чёрная лента доверия уходит ЦЕЛИКОМ за верх
   экрана (-40px оставляли 48px ленты за стеклянной шапкой — просвечивала тёмным, «мигало») */
#servicii{scroll-margin-top:-90px;padding-top:100px} /* +12px воздуха: после прыжка заголовок не впритык к шапке */
body{background:var(--bg);color:var(--ink);font-family:var(--font-body);line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font:inherit;cursor:pointer;border:none;background:none;color:inherit}
ul{list-style:none}
h1,h2,h3,h4{font-family:var(--font-disp);font-weight:700;letter-spacing:-.02em;line-height:1.05}
:focus-visible{outline:3px solid var(--m);outline-offset:2px;border-radius:4px}
.skip-link{position:absolute;left:16px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 18px;border-radius:10px;font-weight:600;transition:top .2s}
.skip-link:focus{top:12px}

/* ---- Утилиты ---- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}
.disp{font-family:var(--font-disp)}
.kicker{font-size:13px;font-weight:600;color:var(--soft);letter-spacing:.04em}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.cmyk-rule{height:4px;display:flex;width:100%}
.cmyk-rule i{flex:1}
.cmyk-rule i:nth-child(1){background:var(--c)}
.cmyk-rule i:nth-child(2){background:var(--m)}
.cmyk-rule i:nth-child(3){background:var(--y)}
.cmyk-rule i:nth-child(4){background:var(--k)}

/* ---- Кнопки ---- */
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px;padding:13px 24px;border-radius:var(--pill);transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .2s}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.btn-ghost{background:var(--bg-2);color:var(--ink)}
.btn-ghost:hover{background:var(--bg-3)}
.btn-light{background:#fff;color:var(--ink)}
.btn-light:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}

/* ---- Переключатель языка RO | EN (шапка / мобильное меню / подвал) ---- */
.lang-switch{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;letter-spacing:.02em}
.lang-switch a{color:var(--soft);transition:color .2s var(--ease)}
.lang-switch a:hover{color:var(--ink)}
.lang-switch .is-active{color:var(--ink);font-weight:700}
.lang-switch .sep{color:var(--line);font-weight:400}
/* в мобильном меню — внизу по центру, крупно (в один размер с контактами) */
.mobile-menu .lang-switch{justify-content:center;font-size:18px}

/* ---- Шапка ---- */
.site-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.site-header .cmyk-rule{height:3px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--header-h)}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-disp);font-weight:800;font-size:22px;letter-spacing:-.02em}
.brand img{height:42px;width:auto}
.nav-links{display:flex;gap:28px;font-size:15px;font-weight:500;color:var(--soft)}
.nav-links a{position:relative;padding:4px 0;transition:color .2s}
.nav-links a:hover,.nav-links a.is-active{color:var(--ink)}
.nav-links a::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--m);transition:right .25s var(--ease)}
.nav-links a:hover::after,.nav-links a.is-active::after{right:0}
.island{display:flex;align-items:center;gap:12px}
.island .phone{font-weight:700;font-size:15px;white-space:nowrap}
.island .ico{display:flex;gap:8px}
.island .ico a{width:38px;height:38px;background:var(--bg-2);border-radius:10px;display:grid;place-items:center;transition:background .2s,color .2s,transform .2s}
.island .ico a:hover{background:var(--ink);color:#fff;transform:translateY(-2px)}
.island .ico svg{width:18px;height:18px}
.nav-toggle{display:none;width:44px;height:44px;border-radius:10px;background:var(--bg-2);place-items:center}
.nav-toggle svg{width:22px;height:22px}

/* мобильное меню */
.mobile-menu{display:none;position:fixed;inset:var(--header-h) 0 0;z-index:55;background:rgba(255,255,255,.98);backdrop-filter:blur(8px);padding:28px 32px;flex-direction:column;gap:6px;transform:translateY(-8px);opacity:0;pointer-events:none;transition:.25s var(--ease);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.mobile-menu.open{opacity:1;transform:none;pointer-events:auto}
.mobile-menu>a:not(.mm-cta){font-family:var(--font-disp);font-weight:700;font-size:26px;padding:12px 0;border-bottom:1px solid var(--line)}
/* Отклик на тап. Системная подсветка Android погашена (резкий прямоугольник по краю
   букв, скруглений у текста нет), а :active при быстром тапе не успевает до навигации.
   Вместо них main.js вешает .tap-press по touchstart — мгновенно, как движок; визуал
   мягкий: нажатое приглушается, кнопки чуть проседают. При скролле класс снимается. */
.tap-press{opacity:.55}
.btn.tap-press,.mobile-bar a.tap-press,.nav-toggle.tap-press{opacity:.85;transform:scale(.97)}
.mobile-menu>a.tap-press{color:var(--green);opacity:1}
/* кнопка-CTA + данные: визуально равные вертикальные зазоры. У текстовых строк есть
   межстрочный «воздух» (~5px), поэтому жёсткие края (полоска→кнопка, кнопка→WhatsApp)
   получают чуть больший CSS-отступ, чтобы ВЫГЛЯДЕЛИ так же, как шаг между строками. */
.mobile-menu .mm-cta{margin-top:18px;justify-content:center;font-size:18px}
.mobile-menu .mm-contact{margin-top:13px;align-items:center;text-align:center;color:var(--ink-2);font-size:18px;font-weight:600;display:flex;flex-direction:column;gap:14px;padding-bottom:84px}

/* ---- Hero ---- */
.hero{padding:16px 0 64px}
.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:54px;align-items:stretch}
.hero-copy{display:flex;flex-direction:column;justify-content:space-between;gap:28px}
.hero h1{font-size:clamp(44px,6.4vw,84px);line-height:.98;margin-top:0}
/* отдельный айброу (despre): зазор до h1; на главной айброу внутри h1 → h1 без отступа, айброу везде в 16px от шапки */
.hero p.kicker+h1{margin-top:16px}
.hero h1 .kicker{display:block;font-family:var(--font-body);font-size:13px;font-weight:600;letter-spacing:.04em;line-height:1.4;color:var(--soft);margin-bottom:16px}
/* Акцентный цвет слова (брендовый зелёный из логотипа) */
.t-green{color:var(--green)}
/* CMYK-подчёркивание ключевого слова — фирменная подпись */
.u-cmyk{position:relative;white-space:nowrap}
.u-cmyk::after{content:"";position:absolute;left:0;right:0;bottom:.02em;height:.11em;border-radius:3px;background:linear-gradient(90deg,var(--c) 0 25%,var(--m) 25% 50%,var(--y) 50% 75%,var(--k) 75% 100%)}
@media(prefers-reduced-motion:no-preference){.u-cmyk::after{transform:scaleX(0);transform-origin:left;animation:cmykIn .7s .25s var(--ease) forwards}}
@keyframes cmykIn{to{transform:scaleX(1)}}
.hero .lead{margin-top:22px;font-size:clamp(17px,2vw,19px);color:var(--soft);max-width:48ch}
.hero-actions{margin-top:30px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hero-actions .note{font-size:14px;color:var(--soft)}
/* Hero CTA-кнопки — одна визуальная система с липкой плашкой связи: крупный pill,
   3 уровня иерархии. Скоуп — только пара в hero (index + despre); шапку/CTA-band не трогает. */
.hero-actions .btn{font-size:16px;padding:15px 28px;font-weight:700}
/* «Cere o ofertă» — контурная: светлый фон, тёмная рамка, тёмный текст (акцент на странице, легче заливки) */
.hero-actions .btn-primary{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.hero-actions .btn-primary:hover{background:var(--ink);color:#fff;transform:translateY(-2px);box-shadow:var(--shadow)}
/* «Vezi lucrările» — спокойная: серая заливка, приглушённый текст (тише, чем CTA) */
.hero-actions .btn-ghost{background:var(--bg-2);color:var(--soft);border:1.5px solid transparent}
.hero-actions .btn-ghost:hover{background:var(--bg-3);color:var(--ink)}
/* Hero-список доверия (только /despre/ — заполняет вертикаль левой колонки) */
.hero-points{list-style:none;display:flex;flex-direction:column;gap:11px;margin:0}
/* на десктопе: поджать вертикаль hero-copy, чтобы кнопки встали вровень с фото,
   а список (.hero-points) центрировался между абзацем и кнопками */
@media(min-width:881px){
  .hero-copy:has(.hero-points){gap:12px}
  .hero-copy:has(.hero-points) .hero-actions{margin-top:0}
}
.hero-points li{position:relative;padding-left:24px;font-size:clamp(17px,2vw,19px);line-height:1.4;color:var(--ink-2)}
.hero-points li::before{content:"";position:absolute;left:0;top:8px;width:10px;height:10px;border-radius:3px}
.hero-points li:nth-child(1)::before{background:var(--c)}
.hero-points li:nth-child(2)::before{background:var(--m)}
.hero-points li:nth-child(3)::before{background:var(--y)}
.hero-points li:nth-child(4)::before{background:var(--ink)}
/* Hero-фото: печатник за работой (доверие) */
/* hero-фото без въезда — первый экран стоит ровно (решение владельца 2026-09-14); бейдж badgeIn и cmykIn оставлены */
.hero-photo{position:relative;width:100%;max-width:410px;margin:0 auto}
.hp-frame{position:relative;border-radius:24px;overflow:hidden;box-shadow:var(--shadow-lg);aspect-ratio:720/980;background:var(--bg-2)}
.hp-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;display:block}
.hp-cmyk{position:absolute;left:0;right:0;bottom:0;display:flex;height:8px;z-index:2}
.hp-cmyk i{flex:1}
.hp-cmyk i:nth-child(1){background:var(--c)}.hp-cmyk i:nth-child(2){background:var(--m)}
.hp-cmyk i:nth-child(3){background:var(--y)}.hp-cmyk i:nth-child(4){background:var(--ink)}
.hp-badge{position:absolute;left:16px;bottom:24px;z-index:3;display:flex;align-items:center;gap:12px;
  background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-radius:16px;padding:12px 16px;
  box-shadow:var(--shadow);animation:badgeIn .6s .55s var(--ease) both}
@keyframes badgeIn{from{opacity:0;transform:translateY(12px)}}
.hp-badge .dot{flex:none;width:11px;height:11px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(77,122,22,.16)}
.hp-badge .bt{display:flex;flex-direction:column;line-height:1.15}
.hp-badge strong{font-family:var(--font-disp);font-weight:700;font-size:18px;color:var(--ink)}
.hp-badge small{font-size:12.5px;color:var(--soft)}
@media(prefers-reduced-motion:reduce){.hp-badge{animation:none!important}}

/* ---- Лента доверия ---- */
.trust{background:var(--ink);color:#fff}
.trust .wrap{display:flex;flex-wrap:wrap;gap:12px 30px;padding:18px 32px;font-size:14px;font-weight:500;align-items:center;justify-content:center}
.trust .sep{color:var(--y)}
/* Когда полоса не влезает в строку — ровно 2+2 (точки остаются между парами) */
@media(max-width:820px){
  .trust .wrap{row-gap:6px;column-gap:20px}
  .trust .sep-mid{flex-basis:100%;height:0;overflow:hidden;color:transparent}
}
@media(max-width:480px){.trust .wrap{padding:14px 16px;column-gap:14px;font-size:13.4px}}

/* ---- Секции ---- */
.section{padding:88px 0}
.section.tight{padding-top:0}
.sec-head{text-align:center;max-width:60ch;margin:0 auto 50px}
.sec-head h2{font-size:clamp(30px,4.4vw,50px)}
.sec-head p{color:var(--soft);font-size:17px;margin-top:12px}
.sec-head .kicker,.prose .kicker{font-size:13px;margin-top:0;margin-bottom:0;color:var(--soft)}
.sec-head.left{text-align:left;margin-left:0}

/* ---- Услуги (карточки) ---- */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
/* 4 в ряд: без растяжения рядов → описания ровные; заголовок центрируется с иконкой */
.cards-4 .card{align-content:start}
@media(min-width:881px){.cards-4{grid-template-columns:repeat(4,1fr)}}
/* услуги: центрируем последний ряд (3+3+2) на десктопе — как лента клиентов */
@media(min-width:881px){.cards.cards-c{display:flex;flex-wrap:wrap;justify-content:center}.cards.cards-c .card{flex:1 1 300px;max-width:384px}}
.card{position:relative;overflow:hidden;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:28px 26px;transition:transform .25s var(--ease),box-shadow .25s var(--ease),border-color .25s;display:grid;grid-template-columns:auto 1fr;column-gap:16px;align-items:start;align-content:start}
.card:nth-child(4n+1){--accent:var(--c)}
.card:nth-child(4n+2){--accent:var(--m)}
.card:nth-child(4n+3){--accent:var(--y)}
.card:nth-child(4n+4){--accent:var(--k)}
/* полиграфическая полутоновая текстура (CMYK-точки) в углу */
.card::after{content:"";position:absolute;top:-24px;right:-24px;width:132px;height:132px;color:var(--accent);background-image:radial-gradient(currentColor 2px,transparent 2.5px);background-size:13px 13px;opacity:.13;transition:opacity .25s;pointer-events:none}
/* цветная полоса сверху по ховеру */
.card::before{content:"";position:absolute;left:0;top:0;height:4px;width:0;background:var(--accent);transition:width .3s var(--ease)}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:transparent}
.card:hover::before{width:100%}
.card:hover::after{opacity:.22}
.card .ic{position:relative;z-index:1;grid-column:1;grid-row:1;width:54px;height:54px;border-radius:15px;display:grid;place-items:center;color:#fff}
.card .ic svg{width:26px;height:26px}
.card h3{position:relative;z-index:1;grid-column:2;align-self:center;font-size:21px;margin:0}
.card p{position:relative;z-index:1;grid-column:2;font-size:14px;color:var(--soft);margin-top:10px}
.ic-c{background:var(--c)} .ic-m{background:var(--m)} .ic-y{background:var(--y);color:var(--ink)} .ic-k{background:var(--ink)}

/* ---- Атмосферная фото-полоса ---- */
.photo-band{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.photo-band figure{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;background:var(--bg-2)}
.photo-band img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.photo-band figure:hover img{transform:scale(1.05)}
.photo-band figcaption{position:absolute;left:0;right:0;bottom:0;padding:16px;color:#fff;font-family:var(--font-disp);font-weight:700;font-size:16px;background:linear-gradient(to top,rgba(16,17,20,.72),rgba(16,17,20,0))}
@media(max-width:760px){.photo-band{grid-template-columns:1fr}.photo-band figure{aspect-ratio:16/9}}

/* ---- Каталог продукции ---- */
.prod-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.prod-grid .card p{margin-bottom:14px}
.card .items{grid-column:2;display:flex;flex-wrap:wrap;gap:7px}
.card .items li{font-size:12.5px;color:var(--ink-2);background:var(--bg-2);border:1px solid var(--line);border-radius:999px;padding:5px 11px}
@media(max-width:760px){.prod-grid{grid-template-columns:1fr}}

/* ---- Cum lucrăm (шаги) ---- */
/* ---- Cum lucrăm: горизонтальный таймлайн (десктоп), как на мобиле — без карточек ---- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.step{position:relative;text-align:center;padding:0 4px}
.step .sn{position:relative;z-index:1;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto;font-family:var(--font-disp);font-weight:800;font-size:25px;line-height:1;color:#fff}
.step:nth-child(1) .sn{background:var(--c)}
.step:nth-child(2) .sn{background:var(--m)}
.step:nth-child(3) .sn{background:var(--y);color:var(--ink)}
.step:nth-child(4) .sn{background:var(--ink)}
.step::before{content:"";position:absolute;top:27px;left:50%;width:calc(100% + 24px);height:2px;background:var(--line);z-index:0}
.step:last-child::before{display:none}
.step h3{font-size:18px;margin:18px 0 7px}
.step p{font-size:14px;color:var(--soft);line-height:1.5}
/* анимация: линия чертится → кружки pop → текст всплывает (каскадом 1→2→3→4) */
.js .steps .step.reveal{opacity:1;transform:none}
.js .step .sn{transform:scale(0)}
.js .step::before{transform:scaleX(0);transform-origin:left center}
.js .step h3,.js .step p{opacity:0;transform:translateY(8px)}
.step:nth-child(1){--i:0}
.step:nth-child(2){--i:1}
.step:nth-child(3){--i:2}
.step:nth-child(4){--i:3}
.steps.in .step .sn{animation:tlPop .45s var(--ease) both;animation-delay:calc(var(--i)*.3s + .05s)}
.steps.in .step::before{animation:tlLineX .4s linear both;animation-delay:calc(var(--i)*.3s + .2s)}
.steps.in .step h3{animation:tlText .4s var(--ease) both;animation-delay:calc(var(--i)*.3s + .16s)}
.steps.in .step p{animation:tlText .4s var(--ease) both;animation-delay:calc(var(--i)*.3s + .26s)}
@keyframes tlLineX{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* ---- Clienți (партнёры) ---- */
.clients-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
.client{flex:1 1 300px;max-width:384px;background:var(--bg-2);border-radius:var(--radius);padding:30px 28px;display:flex;flex-direction:column;gap:16px}
a.client{color:inherit;text-decoration:none;transition:transform .25s var(--ease),box-shadow .25s var(--ease),opacity .5s var(--ease)}
a.client:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.client .logo-box{height:64px;display:flex;align-items:center}
.client .logo-box img{max-height:56px;max-width:100%;width:auto;object-fit:contain;mix-blend-mode:multiply}
.client .logo-text{font-family:var(--font-disp);font-weight:800;font-size:23px;letter-spacing:-.01em;color:var(--ink)}
/* Лёгкая лента логотипов (напр. на /despre/) */
.logo-strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:30px 50px}
.logo-strip img{max-height:46px;max-width:160px;width:auto;object-fit:contain;mix-blend-mode:multiply}
@media(max-width:560px){.logo-strip{gap:24px 34px}.logo-strip img{max-height:38px;max-width:120px}}
.client h3{font-size:19px;display:flex;align-items:center;gap:7px}
.client h3 .ext{width:15px;height:15px;flex:none;color:var(--soft);transition:color .2s var(--ease),transform .2s var(--ease)}
a.client:hover h3 .ext{color:var(--green);transform:translate(2px,-2px)}
.client p{font-size:14px;color:var(--soft)}

/* ---- FAQ (нативный <details>, работает без JS) ---- */
.faq{max-width:780px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);transition:border-color .2s}
.faq-item[open]{border-color:var(--ink)}
.faq-q{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;text-align:left;font-family:var(--font-disp);font-weight:700;font-size:18px;cursor:pointer}
.faq-q::-webkit-details-marker{display:none}
.faq-q .chev{flex:none;width:22px;height:22px;transition:transform .25s var(--ease);color:var(--m)}
.faq-item[open] .faq-q .chev{transform:rotate(45deg)}
.faq-a-inner{padding:0 22px 20px;color:var(--soft);font-size:15px}
@keyframes faqOpen{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.faq-item[open] .faq-a-inner{animation:faqOpen .26s var(--ease)}

/* ---- Текстовые/правовые страницы ---- */
.prose{max-width:760px;margin:0 auto}
.prose h2{font-size:clamp(21px,3vw,28px);margin:34px 0 12px}
.prose p,.prose li{font-size:16px;color:var(--ink-2);line-height:1.75}
.prose p{margin-bottom:14px}
.prose ul{padding-left:20px;list-style:disc;margin:0 0 14px}
.prose li{margin-bottom:6px}
.prose a{color:var(--green);font-weight:600;text-decoration:underline}
.prose .updated{font-size:14px;color:var(--soft);margin-top:8px}

/* ---- Контакты ---- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.contact-info dl{display:flex;flex-direction:column;margin-top:4px}
.contact-info dl>div{padding:14px 0;border-bottom:1px solid var(--line)}
.contact-info dl>div:first-child{padding-top:0}
.contact-info dt{font-size:12px;font-weight:600;color:var(--soft);letter-spacing:.05em;text-transform:uppercase;margin-bottom:5px}
.contact-info dd{font-size:17px;font-weight:600;color:var(--ink);line-height:1.45}
.contact-info dd a{font-weight:600;color:var(--ink)}
.contact-info dd a:hover{color:var(--green)}
.map-embed{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);min-height:360px;height:100%}
/* Статичная карта (вариант A, 30.09.2026): свой OSM-фрагмент, ноль сторонних запросов */
.map-static{position:relative;display:block;height:100%;min-height:360px}
.map-static picture,.map-static img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(.2)}
.map-open{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:600;font-size:14.5px;padding:11px 20px;border-radius:var(--pill);box-shadow:var(--shadow);white-space:nowrap;transition:transform .2s var(--ease)}
.map-static:hover .map-open{transform:translateX(-50%) translateY(-2px)}
.map-osm{position:absolute;right:8px;top:8px;font-size:10.5px;color:#333;background:rgba(255,255,255,.78);padding:2px 7px;border-radius:5px}
.map-addr{display:none;align-items:center;gap:9px;margin:0;padding:13px 15px;background:#fff;border-top:1px solid var(--line);font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.35}
.map-addr svg{flex:none;width:17px;height:17px;color:var(--m)}

/* ---- CTA-плашка ---- */
.cta-band{background:var(--ink);color:#fff;border-radius:var(--radius-lg);padding:56px;text-align:center;position:relative;overflow:hidden}
.cta-band h2{font-size:clamp(28px,4vw,44px);color:#fff}
.cta-band p{color:#b9bdc4;margin:14px 0 28px;font-size:17px}
.cta-band .cmyk-rule{position:absolute;left:0;right:0;bottom:0}

/* ---- Подвал ---- */
.site-footer{padding:64px 0 28px;border-top:1px solid var(--line)}
/* Пиктограмма ANPC SAL (OPANPC 270/2026: ровно 250×50, живая ссылка на reclamatiisal.anpc.ro).
   Без своей рамки — у официальной графики собственная; блок по левому краю колонки. */
.anpc-sal{display:block;margin-top:16px;line-height:0;width:250px}
.footer-brand .anpc-sal img{width:250px;height:50px;margin-bottom:0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}
.site-footer h3{font-size:17px;margin-bottom:14px}
.site-footer p,.site-footer a,.site-footer li{font-size:14px;color:var(--soft);line-height:1.85}
.site-footer .links a:hover{color:var(--ink)}
.footer-brand img{height:30px;margin-bottom:14px}
.ident-label{margin-top:16px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--soft)}
.ident{margin-top:4px}
.ident strong{color:var(--ink);font-weight:700}
.zona{margin-top:36px;background:var(--bg-2);border-radius:var(--radius-sm);padding:16px 22px;font-size:14px;color:var(--soft);text-align:center}
.zona strong{color:var(--ink)}
.foot-bottom{margin-top:22px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:13px;color:var(--soft)}
/* переключатель в подвале — только на мобиле/планшете (≤1000, где в шапке он в бургере); на десктопе скрыт (там всегда в островке) */
.foot-bottom .lang-switch{display:none}

/* ---- Липкая мобильная плашка ---- */
.mobile-bar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:10px}
.mobile-bar a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border-radius:var(--pill);font-weight:700;font-size:15px}
.mobile-bar .call{background:var(--ink);color:#fff}
.mobile-bar .wa{background:#25D366;color:#fff}
.mobile-bar svg{width:18px;height:18px}

/* ---- Галерея работ ---- */
.gallery-cat{margin:30px 0 14px;font-size:clamp(20px,2.6vw,26px)}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.thumb{display:block;margin:0;cursor:zoom-in;border-radius:14px;overflow:hidden;background:var(--bg-2);border:1px solid var(--line);aspect-ratio:1/1;padding:10px;position:relative;transition:box-shadow .25s var(--ease),border-color .25s}
.thumb img{width:100%;height:100%;object-fit:contain;transition:transform .4s var(--ease)}
.thumb:hover{box-shadow:var(--shadow-sm);border-color:transparent}
.thumb:hover img{transform:scale(1.04)}
@media(max-width:900px){.gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.gallery{grid-template-columns:repeat(2,1fr)}}

/* ---- Лайтбокс ---- */
.lightbox{position:fixed;inset:0;z-index:90;background:rgba(16,17,20,.92);display:none;align-items:center;justify-content:center;padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:86vh;border-radius:8px;box-shadow:var(--shadow-lg)}
.lightbox .lb-close,.lightbox .lb-nav{position:absolute;background:rgba(16,17,20,.32);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border:1px solid rgba(255,255,255,.4);color:#fff;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;font-size:26px;line-height:1;cursor:pointer;transition:background .2s}
.lightbox .lb-close:hover,.lightbox .lb-nav:hover{background:rgba(16,17,20,.55)}
.lightbox .lb-close{top:20px;right:20px}
.lightbox .lb-prev{left:20px;top:50%;transform:translateY(-50%)}
.lightbox .lb-next{right:20px;top:50%;transform:translateY(-50%)}

/* ---- Анимации появления (скрываем только если JS есть → no-JS контент виден) ---- */
.reveal{transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .reveal{opacity:0;transform:translateY(22px)}
.js .reveal.in{opacity:1;transform:none}
/* приземление на #якорь (см. инлайн-скрипт pagereveal на главных): пока main.js не
   классифицировал, показываем всё — кроссфейд не должен приезжать в пустую секцию */
html.landing .reveal{opacity:1!important;transform:none!important;transition:none!important}

/* ---- Адаптив ---- */
@media(max-width:1000px){
  .nav-links,.island{display:none}
  .nav-toggle{display:grid}
  .mobile-menu{display:flex}
  .mobile-bar{display:flex}
  body{padding-bottom:70px}
  /* переключатель в шапке ушёл в бургер → возвращаем его в подвал, по центру */
  .foot-bottom{flex-direction:column;align-items:center;text-align:center;gap:14px;margin-top:24px}
  .foot-bottom .lang-switch{display:inline-flex;order:-1;font-size:16px}
}
@media(max-width:880px){
  .hero{padding:16px 0 56px}
  .hero-grid{grid-template-columns:1fr;gap:32px}
  .hero-copy{gap:20px}
  .hero-copy .hero-actions{margin-top:4px}
  /* hero-кнопки крупные, во всю ширину, друг под другом — в одну систему с липкой плашкой */
  .hero-actions{flex-direction:column;align-items:stretch;gap:12px}
  .hero-actions .btn{width:100%;justify-content:center;padding:13px}
  .hero-photo{max-width:340px}
  .contact-grid{grid-template-columns:1fr;gap:24px}
  .cards{grid-template-columns:1fr 1fr}
  .clients-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:28px}
  /* мобильный подвал: Contact выше Navigare (десктоп не трогаем — там DOM-порядок) */
  .footer-contact{order:2}
  .footer-nav{order:3}
  /* Navigare — крупные тапабельные строки ≥44px с разделителями, без стрелок */
  .footer-nav ul{border-top:1px solid var(--line)}
  .footer-nav li{border-bottom:1px solid var(--line)}
  .footer-nav li a{display:flex;align-items:center;min-height:48px;font-size:16px;color:var(--ink)}
}
@media(max-width:560px){
  .wrap{padding:0 20px}
  .section{padding:60px 0}
  .cards{grid-template-columns:1fr}
  .cta-band{padding:38px 24px}
  /* карточки услуг: компактнее на телефоне (раскладка иконка-слева — в базе) */
  .card{column-gap:14px;padding:22px 20px}
  .card .ic{width:44px;height:44px;border-radius:13px}
  .card .ic svg{width:22px;height:22px}
  .card::after{width:96px;height:96px;top:-18px;right:-18px}
  /* адрес-подпись на карте (Google сворачивает свою карточку на узких экранах) */
  .map-embed{height:auto;min-height:0;display:flex;flex-direction:column}
  .map-static{height:300px;min-height:0}
  .map-addr{display:flex}
}

/* ---- Cum lucrăm: вертикальный таймлайн на планшете/мобиле (≤880) ---- */
@media(max-width:880px){
  .steps{display:block}
  .steps .step{position:relative;background:transparent;border:0;border-radius:0;text-align:left;padding:0 0 26px 60px;min-height:46px}
  .steps .step:last-child{padding-bottom:0}
  .steps .step::before{content:"";position:absolute;left:21px;top:48px;bottom:0;width:2px;height:auto;background:var(--line)}
  .steps .step:last-child::before{display:none}
  .steps .step .sn{position:absolute;left:0;top:0;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:20px;line-height:1;color:#fff}
  .steps .step:nth-child(1) .sn{background:var(--c)}
  .steps .step:nth-child(2) .sn{background:var(--m)}
  .steps .step:nth-child(3) .sn{background:var(--y);color:var(--ink)}
  .steps .step:nth-child(4) .sn{background:var(--ink)}
  .steps .step h3{padding-top:9px;margin:0 0 5px}
  .steps .step p{font-size:14.5px}

  /* анимация №2 — линия рисуется + кружки pop, каскадом */
  .js .steps .step .sn{transform:scale(0)}
  .js .steps .step::before{transform:scaleY(0);transform-origin:top center}
  .js .steps .step h3,.js .steps .step p{opacity:0;transform:translateY(8px)}
  .js .steps .step.reveal{opacity:1;transform:none}
  .steps .step:nth-child(1){--i:0}
  .steps .step:nth-child(2){--i:1}
  .steps .step:nth-child(3){--i:2}
  .steps .step:nth-child(4){--i:3}
  .steps.in .step .sn{animation:tlPop .45s var(--ease) both;animation-delay:calc(var(--i)*.4s + .05s)}
  .steps.in .step::before{animation:tlLine .32s linear both;animation-delay:calc(var(--i)*.4s + .22s)}
  .steps.in .step h3{animation:tlText .4s var(--ease) both;animation-delay:calc(var(--i)*.4s + .16s)}
  .steps.in .step p{animation:tlText .4s var(--ease) both;animation-delay:calc(var(--i)*.4s + .24s)}
}
@keyframes tlPop{0%{transform:scale(0)}65%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes tlLine{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes tlText{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media(prefers-reduced-motion:reduce){
  .steps .step .sn,.steps .step::before{transform:none!important}
  .steps .step h3,.steps .step p{opacity:1!important;transform:none!important}
  .steps.in .step .sn,.steps.in .step::before,.steps.in .step h3,.steps.in .step p{animation:none!important}
  *{scroll-behavior:auto!important}
  .reveal{opacity:1!important;transform:none!important;transition:none!important}
  .btn,.card,.island .ico a{transition:none!important}
}
