/*
 * Изглед „Агенция“ (agency) — програма WS-1117, websait.bg. Зарежда се само от themes/agency/head.blade.php (сайт с изглед `agency`); всяко правило е под `.ws-theme-agency`
 * или е клас с префикс `ag-`, който друг изглед не печата. Токените (`--ag-*`, `--ws-*`) са в head-а; Визия ги сменя след него.
 * Арт дирекция (задание на собственика §3): тъмна слива, кремави повърхности, кехлибар, лавандулови стъклени ръбове; серифен дисплей, чист текст; оранжевото — голям акцент, не текст върху крем.
 * Контрастите на всяка двойка се изчисляват в WebsiteAgencyLookTest (≥ 4,5:1).
 */

/* ——— Основа ——— */
.ws-theme-agency.ws-family-business{background:var(--ws-cream);color:var(--biz-text)}
.ws-theme-agency.ws-family-business h1,.ws-theme-agency.ws-family-business h2,.ws-theme-agency.ws-family-business h3{font-family:var(--ag-serif);font-weight:500;letter-spacing:-.012em;line-height:1.04;font-feature-settings:"kern","liga","lnum","locl" 0}
.ws-theme-agency.ws-family-business h4{font-family:var(--biz-font)}
.ws-theme-agency button,.ws-theme-agency input,.ws-theme-agency select,.ws-theme-agency textarea{font-feature-settings:"locl" 0}  /* a form control does not inherit it (the UA `font` shorthand resets it): the same letters as the rest of the page */
.ws-theme-agency ::selection{background:var(--ag-orange);color:#fff}
.ws-theme-agency .biz-container{--biz-container:1240px}

/* ——— Бутони: тъмнооранжево с БЯЛ надпис (правилото на собственика), хапче ——— */
.ws-theme-agency.ws-family-business .btn{min-height:50px;padding:0 26px;border-radius:999px;font-weight:700;letter-spacing:.005em}
.ws-theme-agency.ws-family-business .btn-primary{background:var(--biz-primary);border-color:var(--biz-primary);color:var(--biz-on-primary);box-shadow:0 14px 30px -16px color-mix(in srgb,var(--biz-primary) 90%,#000)}
.ws-theme-agency.ws-family-business .btn-primary:hover{background:var(--biz-primary-deep);border-color:var(--biz-primary-deep);color:var(--biz-on-primary)}
.ws-theme-agency.ws-family-business .btn svg{transition:transform .2s ease}
.ws-theme-agency.ws-family-business .btn:hover svg{transform:translateX(3px)}
.ws-theme-agency.ws-family-business a:focus-visible,.ws-theme-agency.ws-family-business button:focus-visible,.ws-theme-agency.ws-family-business summary:focus-visible{outline:3px solid var(--ag-orange);outline-offset:3px}

/* ——— Глава: сливова и стъклена; прозрачна над тъмния първи екран (layout-ът слага ws-over-hero), плътна след скрол ——— */
.ws-theme-agency.ws-family-business .site-header{background:rgba(16,11,18,.9);border-bottom:1px solid rgba(187,148,216,.16);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%)}
.ws-theme-agency.ws-family-business .site-header.is-compact{background:rgba(16,11,18,.94);box-shadow:0 18px 40px -28px rgba(0,0,0,.8)}
/* ЕДНА височина на главата — и горе, и след скрол. Общият layout я свива до 64/60 px след скрол, а сцената на първия екран се закача под --ws-header-h (84/72):
   оставаше тъмна ивица 12–20 px между главата и сцената. Тук височината не се мени, значи и кутията на сцената не се мени, докато се скролира. */
.ws-theme-agency{--ws-header-h:72px}
.ws-theme-agency.ws-family-business .site-header,.ws-theme-agency.ws-family-business .site-header.is-compact{--ws-header-h:72px;height:72px}
@media (max-width:720px){.ws-theme-agency{--ws-header-h:64px}.ws-theme-agency.ws-family-business .site-header,.ws-theme-agency.ws-family-business .site-header.is-compact{--ws-header-h:64px;height:64px}}
.ws-theme-agency.ws-family-business .primary-nav a{color:var(--ag-light);font-weight:600;font-size:.95rem}
.ws-theme-agency.ws-family-business .primary-nav a:hover,.ws-theme-agency.ws-family-business .primary-nav a[aria-current="page"]{color:var(--ag-light);border-color:var(--ag-orange)}
.ws-theme-agency.ws-family-business .brand-name{font-family:var(--ag-serif);font-weight:500;font-size:1.7rem;letter-spacing:-.01em;color:var(--ag-light)}
/* Знакът до името: три слоя един над друг (кехлибар, крем, лавандула) — «сглобеният дизайн» в един символ. Името остава жив текст до него
   (собственикът, 18.11: «текста websait да не е в снимка лого»). Сайт със свое качено лого показва него — тогава този знак изобщо не се рисува.
   Правилата на общия layout за знак върху тъмна глава и при отворено меню сменят фона, затова са изброени и тук. */
.ws-theme-agency.ws-family-business .brand-mark,
body.ws-theme-agency.ws-over-hero:not(.nav-open) .site-header:not(.is-compact) .brand-mark,
body.ws-theme-agency.nav-open .site-header .brand-mark,
.ws-theme-agency.ws-family-business .footer-brand .brand-mark{width:42px;height:42px;border:0;border-radius:0;background:url(art/mark.svg) 50% 50%/contain no-repeat;color:transparent;font-size:0}
.ws-theme-agency.ws-family-business .header-actions .biz-phone{color:var(--ag-light)}
.ws-theme-agency.ws-family-business .header-actions .biz-phone svg{color:var(--ag-orange)}
/* 961–1120 px (таблет легнал, малък лаптоп): менюто + номерът + бутонът не се събират — страницата преливаше хоризонтално (19 px при 1024).
   Номерът остава като кръгъл бутон със слушалка (aria-label-ът носи номера), текстът му се връща от 1121 px. */
@media (min-width:961px) and (max-width:1120px){
    .ws-theme-agency.ws-family-business .site-header{gap:18px}
    .ws-theme-agency.ws-family-business .header-actions .biz-phone{width:46px;min-height:46px;padding:0;justify-content:center;border-color:rgba(187,148,216,.4)}
    .ws-theme-agency.ws-family-business .header-actions .biz-phone span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.ws-theme-agency.ws-family-business .nav-toggle{background:rgba(255,248,241,.08);border-color:rgba(187,148,216,.4);color:var(--ag-light)}
.ws-theme-agency .lang-switch a{color:var(--ag-light-muted)}
.ws-theme-agency .lang-switch a[aria-current="true"]{color:var(--ag-light)}
.ws-theme-agency .mobile-nav{background:var(--ag-plum)}
.ws-theme-agency .mobile-nav nav a{font-family:var(--ag-serif);font-size:1.6rem;color:var(--ag-light);border-bottom-color:rgba(187,148,216,.18)}
.ws-theme-agency .mobile-nav .btn-row{background:linear-gradient(180deg,rgba(16,11,18,0),var(--ag-plum) 28%)}
/* «Обади се» в менюто: фирменото семейство го оцветява с тъмното мастило (за светъл фон) — върху сливовото меню не се четеше (≈1:1) */
.ws-theme-agency.ws-family-business .mobile-nav .btn-ghost{color:var(--ag-light);border-color:rgba(187,148,216,.5)}
.ws-theme-agency.ws-family-business .mobile-nav .btn-ghost:hover{color:var(--ag-light);border-color:var(--ag-lavender);background:rgba(255,248,241,.08)}

/* ——— Подвал ——— */
.ws-theme-agency.ws-family-business .site-footer h3{font-family:var(--biz-font);font-size:.74rem;font-weight:700;letter-spacing:.2em;color:var(--ag-orange)}
.ws-theme-agency.ws-family-business .site-footer{background:var(--ag-plum);color:var(--ag-light-muted);border-top:1px solid rgba(187,148,216,.14)}
.ws-theme-agency .site-footer a{color:var(--ag-light)}
.ws-theme-agency .site-footer a:hover{color:var(--ws-gold-soft)}
.ws-theme-agency .footer-brand .brand-name{font-family:var(--ag-serif);font-weight:500;font-size:2rem;color:var(--ag-light)}
.ws-theme-agency .footer-brand p,.ws-theme-agency .footer-legal{color:var(--ag-light-muted)}
.ws-theme-agency .footer-grid{border-bottom-color:rgba(187,148,216,.16)}

/* ——— Общи елементи на изгледа ——— */
.ag-section{padding-block:clamp(72px,9vw,136px)}
.ag-band{position:relative;isolation:isolate;background:var(--ag-plum);color:var(--ag-light);overflow:hidden}
.ag-band::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 70% at 85% 0%,rgba(187,148,216,.13),transparent 70%),radial-gradient(50% 60% at 0% 100%,rgba(200,121,43,.12),transparent 70%)}
.ag-eyebrow{display:inline-flex;align-items:center;gap:14px;margin:0 0 18px;font-family:var(--biz-font);font-size:.76rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--ws-gold-deep)}
.ag-eyebrow::before{content:"";width:32px;height:1px;background:currentColor;opacity:.9}
.ag-eyebrow--light{color:var(--ag-orange)}
.ag-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px 40px;margin-bottom:clamp(36px,5vw,64px)}
.ag-head h2{margin:0;max-width:16ch;font-size:clamp(2.5rem,1.3rem + 3.8vw,4.6rem);color:var(--biz-ink)}
.ag-head--light h2{color:var(--ag-light)}
.ag-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:700;color:var(--ws-gold-deep);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);transition:text-decoration-color .2s ease}
.ag-link:hover{text-decoration-color:currentColor}
.ag-link--light{color:var(--ag-light)}

/* ——— Първи екран (статичен) ——— */
.ag-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-height:min(100svh,1000px);padding:calc(var(--ws-header-h,84px) + clamp(24px,4vw,56px)) 0 clamp(28px,3vw,40px);background:var(--ag-plum);color:var(--ag-light)}
.ag-hero__bg{position:absolute;inset:0;z-index:-1;background:
    radial-gradient(38% 46% at 72% 50%,rgba(200,121,43,.30),transparent 70%),
    radial-gradient(32% 40% at 80% 18%,rgba(187,148,216,.16),transparent 70%),
    radial-gradient(60% 50% at 8% 0%,rgba(187,148,216,.10),transparent 70%),
    linear-gradient(180deg,var(--ag-plum) 0%,var(--ag-plum) 62%,var(--ag-plum-2) 100%)}
.ag-hero__bg::after{content:"";position:absolute;inset:auto 0 0;height:1px;background:linear-gradient(90deg,transparent,rgba(187,148,216,.35),transparent)}
.ag-hero__inner{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(24px,4vw,64px);align-items:center;width:100%}
.ag-hero__copy{position:relative;z-index:2}
.ag-hero__title{margin:0;font-size:clamp(2.75rem,1.2rem + 6.4vw,7rem);line-height:.94;letter-spacing:-.022em;color:var(--ws-cream);text-wrap:balance}
.ws-theme-agency .ag-hero__title{color:#f4e8db}
.ag-hero__line{display:block}
.ag-hero__line--accent{font-style:italic;color:var(--ag-orange)}
.ag-hero__lede{margin:clamp(20px,2.4vw,32px) 0 0;max-width:30ch;font-size:clamp(1.08rem,.98rem + .5vw,1.4rem);line-height:1.5;color:var(--ag-light-muted)}
.ag-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 30px;margin-top:clamp(28px,3vw,44px)}
.ws-theme-agency.ws-family-business .ag-hero__actions .btn-primary{min-height:58px;padding:0 32px;font-size:1.02rem}
.ag-hero__stage{position:relative;height:clamp(420px,62vh,640px);perspective:1400px}
.ag-glass{position:absolute;border:1px solid rgba(187,148,216,.42);border-radius:30px;background:linear-gradient(165deg,rgba(244,232,219,.14) 0%,rgba(244,232,219,.04) 42%,rgba(33,21,34,.32) 100%);box-shadow:inset 0 1px 0 rgba(255,248,241,.22),inset 0 0 0 1px rgba(255,248,241,.03),0 50px 90px -40px rgba(0,0,0,.85);-webkit-backdrop-filter:blur(12px) saturate(130%);backdrop-filter:blur(12px) saturate(130%)}
.ag-glass--back{inset:4% 0 14% 30%;border-color:rgba(187,148,216,.22);background:linear-gradient(160deg,rgba(187,148,216,.10),rgba(33,21,34,.15));transform:rotateY(-20deg) rotateX(4deg) translateZ(-120px)}
.ag-glass--main{inset:2% 12% 6% 18%;transform:rotateY(-11deg) rotateX(2deg)}
.ag-glass__bar{position:absolute;top:18px;left:20px;display:flex;gap:7px}
.ag-glass__bar i{width:8px;height:8px;border-radius:50%;background:rgba(244,232,219,.28)}
.ag-hero__bottle{position:absolute;left:50%;bottom:3%;height:88%;width:auto;max-width:none;transform:translateX(-46%);filter:drop-shadow(0 34px 34px rgba(0,0,0,.55)) drop-shadow(0 0 60px rgba(200,121,43,.18))}
.ag-glass--chip{inset:auto auto 74% 64%;display:flex;gap:8px;align-items:center;padding:10px 16px;border-radius:999px;font-family:var(--biz-font);font-size:.74rem;font-weight:600;letter-spacing:.04em;color:var(--ag-light);white-space:nowrap}
.ag-glass--chip span + span::before{content:"·";margin-right:8px;color:var(--ag-orange)}
.ag-demo{position:absolute;left:0;bottom:12%;width:clamp(224px,17vw,250px);padding:18px 20px 20px;border-radius:20px;background:var(--ag-paper);color:#292021;box-shadow:0 40px 70px -30px rgba(0,0,0,.85),inset 0 1px 0 #fff;transform:rotateY(-6deg)}
.ag-demo p{margin:0}
.ag-demo__brand{font-family:var(--biz-font);font-size:.66rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#65555a}
.ag-demo__title{margin-top:6px !important;font-family:var(--ag-serif);font-size:2rem;line-height:1;color:#211522}
.ag-demo__line{display:flex;justify-content:space-between;gap:8px;white-space:nowrap;margin-top:14px !important;padding-top:12px;border-top:1px solid #e0cfbd;font-family:var(--biz-font);font-size:.76rem;font-weight:600;color:#292021}
.ag-demo__btn{display:flex;align-items:center;justify-content:center;min-height:36px;margin-top:12px;border-radius:999px;background:#c2410c;color:#fff;font-family:var(--biz-font);font-size:.76rem;font-weight:700}
.ag-hero__rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:clamp(40px,5vw,72px) 0 0;padding:0;list-style:none;border-top:1px solid rgba(187,148,216,.22)}
.ag-hero__rail li{display:flex;align-items:baseline;gap:12px;padding:18px 0 0;font-family:var(--biz-font);font-size:.92rem;font-weight:600;color:var(--ag-light)}
.ag-hero__rail li + li{padding-left:20px;border-left:1px solid rgba(187,148,216,.14)}
.ag-hero__rail span{font-family:var(--ag-serif);font-style:italic;font-size:1.1rem;color:var(--ag-orange)}
.ag-hero__demo-note{position:absolute;right:clamp(16px,3vw,40px);bottom:10px;margin:0;font-size:.7rem;letter-spacing:.02em;color:var(--ag-light-muted)}

/* ——— Услуги (начална) ——— */
.ag-services__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.6vw,22px);margin:0;padding:0;list-style:none}
.ag-services__grid.ag-n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ag-services__grid.ag-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ag-services__grid.ag-n1{grid-template-columns:minmax(0,1fr)}
.ag-service{position:relative;display:flex;flex-direction:column;gap:14px;height:100%;min-height:320px;padding:clamp(24px,2.4vw,34px);border:1px solid var(--biz-line);border-radius:var(--biz-radius-lg);background:var(--ag-paper);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.ag-service:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--ag-lavender) 70%,var(--biz-line));box-shadow:var(--biz-shadow)}
.ag-service__num{font-family:var(--ag-serif);font-style:italic;font-size:2.6rem;line-height:1;color:var(--ws-gold-deep)}
.ag-service h3{margin:clamp(20px,2.4vw,40px) 0 0;font-size:clamp(1.9rem,1.4rem + 1vw,2.4rem);color:var(--biz-ink)}
.ag-service h3 a{color:inherit;text-decoration:none}
.ag-service h3 a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.ag-service p{flex:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;margin:0;color:var(--biz-muted);font-size:.97rem;line-height:1.6}
.ag-service__go{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--biz-line);font-size:.9rem;font-weight:700;color:var(--ws-gold-deep)}
.ag-service__go svg{width:20px;height:20px;transition:transform .25s ease}
.ag-service:hover .ag-service__go svg{transform:translateX(4px)}
.ag-service:focus-within{border-color:var(--biz-primary)}
.ag-service h3 a:focus-visible{outline:0}

/* ——— Подход ——— */
/* «Как работим» — четири стъклени плочи над четирите стъпки. На широк екран картината е 118,5 % от колоната и изместена наляво,
   така че стъпката между плочите (21,1 % от картината) да стане точно една колона (25 %) и всяка плоча да застане над своята стъпка. */
.ag-approach__art{position:relative;margin:clamp(8px,2vw,28px) 0 clamp(18px,2.4vw,34px);aspect-ratio:21/9;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 78%,transparent 100%),linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,transparent 0,#000 14%,#000 78%,transparent 100%),linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask-composite:intersect}
.ag-approach__art img{display:block;width:100%;height:100%;object-fit:cover}
@media (min-width:1101px){
    .ag-approach__art{width:118.5%;margin-left:-11.2%;aspect-ratio:3/1}
}
@media (max-width:1100px){
    .ag-approach__art{margin-inline:calc(clamp(16px,4vw,48px) * -1);aspect-ratio:2/1}
    .ag-approach__art img{object-position:50% 46%}
}
.ag-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:0;list-style:none}
.ag-steps.ag-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ag-steps.ag-n3,.ag-steps.ag-n6{grid-template-columns:repeat(3,minmax(0,1fr))}
.ag-steps.ag-n5{grid-template-columns:repeat(5,minmax(0,1fr))}
.ag-steps li{position:relative;display:grid;align-content:start;gap:14px;padding:30px clamp(16px,2vw,32px) 8px 0;border-top:1px solid rgba(187,148,216,.32)}
.ag-steps li::before{content:"";position:absolute;top:-4px;left:0;width:7px;height:7px;border-radius:50%;background:var(--ag-orange);box-shadow:0 0 0 5px rgba(240,106,22,.14)}
.ag-steps__num{font-family:var(--ag-serif);font-style:italic;font-size:clamp(3.4rem,2.4rem + 3vw,5.6rem);line-height:.9;color:var(--ag-orange)}
.ag-steps h3{margin:0;font-size:clamp(1.8rem,1.4rem + 1vw,2.4rem);color:var(--ag-light)}
.ag-steps p{margin:0;max-width:30ch;color:var(--ag-light-muted);line-height:1.6}

/* ——— Проекти ——— */
.ag-projects__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px);margin:0;padding:0;list-style:none}
.ag-projects__grid.ag-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ag-projects__grid.ag-n1{grid-template-columns:minmax(0,1fr)}
.ag-project{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid var(--biz-line);border-radius:var(--biz-radius-lg);background:var(--ag-paper);transition:box-shadow .3s ease,transform .3s ease}
.ag-project:hover{transform:translateY(-4px);box-shadow:var(--biz-shadow)}
.ag-project__mark,.ag-project__shot{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--ag-plum-2)}
.ag-project__shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
.ag-project__mark{display:grid;place-items:center;isolation:isolate;margin:10px 10px 0;border-radius:calc(var(--biz-radius-lg) - 8px);background:radial-gradient(70% 90% at 70% 30%,rgba(200,121,43,.28),transparent 70%),radial-gradient(60% 80% at 10% 100%,rgba(187,148,216,.2),transparent 70%),var(--ag-plum)}
.ag-project__mark::before{content:"";position:absolute;inset:14px;border:1px solid rgba(187,148,216,.3);border-radius:14px}
.ag-project__mark span{position:relative;max-width:86%;padding:0 8px;font-family:var(--ag-serif);font-style:italic;font-size:clamp(1.7rem,1.1rem + 1.4vw,2.5rem);line-height:1.1;text-align:center;overflow-wrap:anywhere;color:var(--ag-light)}
.ag-project__dots{position:absolute;top:28px;left:30px;display:flex;gap:6px}
.ag-project__dots b{width:6px;height:6px;border-radius:50%;background:rgba(244,232,219,.3)}
.ag-project:hover .ag-project__mark span{color:#fff}
.ag-project__body{display:flex;flex-direction:column;gap:10px;flex:1;padding:clamp(20px,2.2vw,30px)}
.ag-project__client{margin:0;font-size:.74rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--biz-muted)}
.ag-project h3{margin:0;font-size:clamp(1.7rem,1.3rem + .9vw,2.2rem);color:var(--biz-ink)}
.ag-project__text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;margin:0;color:var(--biz-muted);line-height:1.6}
.ag-project__link{margin-top:auto}
.ag-project__host{font-weight:500;opacity:.9}
.ag-shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,24px);margin:0;padding:0;list-style:none}
.ag-shots figure{margin:0;overflow:hidden;border-radius:var(--biz-radius-lg);background:var(--ag-plum-2)}
.ag-shots img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.ag-shots figcaption{padding:14px 18px;background:var(--ag-paper);color:var(--biz-ink);font-weight:700}

/* ——— Числа и отзиви (рисуват се само с истинско съдържание) ——— */
.ag-stats__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:clamp(18px,3vw,40px);margin:0;padding:0;list-style:none}
.ag-stats__list strong{display:block;font-family:var(--ag-serif);font-weight:500;font-size:clamp(3rem,2rem + 3vw,5rem);line-height:1;color:var(--biz-ink)}
.ag-stats__list span{display:block;margin-top:10px;color:var(--biz-muted);font-weight:600}
.ag-quotes__title{margin:0 0 clamp(28px,4vw,48px);font-size:clamp(2.2rem,1.4rem + 2.6vw,3.6rem);color:var(--biz-ink)}
.ag-quotes__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:clamp(16px,2vw,28px);margin:0;padding:0;list-style:none}
.ag-quotes figure{margin:0;height:100%;padding:clamp(24px,2.6vw,36px);border:1px solid var(--biz-line);border-radius:var(--biz-radius-lg);background:var(--ag-paper)}
.ag-quotes blockquote{margin:0;font-family:var(--ag-serif);font-size:1.5rem;line-height:1.35;color:var(--biz-ink)}
.ag-quotes figcaption{margin-top:18px;font-weight:700;color:var(--biz-text)}
.ag-quotes figcaption span{display:block;font-weight:500;color:var(--biz-muted)}

/* ——— Призив + контакт ——— */
.ag-contact__grid{display:grid;gap:clamp(36px,5vw,80px);align-items:start}
.ag-contact__grid.has-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ag-cta__title{margin:0;max-width:12ch;font-size:clamp(2.8rem,1.4rem + 5vw,6rem);line-height:.96;color:var(--ag-light)}
.ws-theme-agency.ws-family-business .ag-cta__title{color:var(--ag-light)}
.ag-cta__text{margin:22px 0 0;max-width:40ch;color:var(--ag-light-muted);font-size:1.12rem;line-height:1.6}
.ag-lines{display:grid;gap:0;margin:clamp(32px,4vw,52px) 0 0;padding:0;list-style:none;border-top:1px solid rgba(187,148,216,.22)}
.ag-lines li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:baseline;padding:16px 0;border-bottom:1px solid rgba(187,148,216,.22)}
.ag-lines span{font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--ag-light-muted)}
.ag-lines a,.ag-lines p{margin:0;color:var(--ag-light);font-size:1.12rem;font-weight:600;text-decoration:none;overflow-wrap:anywhere;white-space:pre-line}
.ag-lines a{min-height:28px}
.ag-lines a:hover{color:var(--ws-gold-soft)}
.ws-theme-agency .ag-formcard{border:1px solid rgba(187,148,216,.35);border-radius:var(--biz-radius-lg);background:var(--ag-paper);color:var(--biz-text);box-shadow:0 50px 90px -40px rgba(0,0,0,.8)}
.ag-formcard__title{margin:0 0 6px;font-size:clamp(1.8rem,1.4rem + 1vw,2.3rem);color:var(--biz-ink)}
.ws-theme-agency .biz-form input[type=text],.ws-theme-agency .biz-form input[type=tel],.ws-theme-agency .biz-form input[type=email],.ws-theme-agency .biz-form select,.ws-theme-agency .biz-form textarea{border-color:#d9c6b2;border-radius:14px;background:#fff}
.ws-theme-agency .biz-form select{-webkit-appearance:none;appearance:none;padding-right:52px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23211522' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center/16px 16px;cursor:pointer}  /* the drawn arrow, inset like the text (owner 23.11: the native one sat on the edge) */
.ws-theme-agency .biz-form select::-ms-expand{display:none}
.ws-theme-agency .biz-form label{color:var(--biz-ink)}

/* ——— Вътрешни страници: сливово заглавие, кремаво тяло ——— */
.ws-theme-agency .biz-pagehead{position:relative;isolation:isolate;overflow:hidden;margin-bottom:clamp(36px,5vw,64px);padding-block:clamp(48px,7vw,104px) clamp(36px,5vw,64px);background:var(--ag-plum);border-bottom:0}
.ws-theme-agency .biz-pagehead::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(40% 80% at 90% 0%,rgba(200,121,43,.22),transparent 70%),radial-gradient(40% 70% at 0% 100%,rgba(187,148,216,.14),transparent 70%)}
.ws-theme-agency.ws-family-business .biz-pagehead h1{font-size:clamp(2.8rem,1.4rem + 5vw,5.8rem);line-height:.98;color:var(--ag-light)}
.ws-theme-agency .biz-pagehead__lead{color:var(--ag-light-muted);font-size:1.18rem}
/* Заглавие на вътрешна страница: три стъклени листа с кехлибарена светлина вдясно (украса от изгледа, art/pagehead-*.webp; фонът на снимката
   е самата слива #100b12). Отляво, където стои текстът, картината е маскирана до нула; на телефон е по-слаба и изнесена извън ръба. */
.ws-theme-agency .biz-pagehead::after{content:"";position:absolute;inset:0;z-index:-1;background:url(art/pagehead-1800.webp) 100% 50%/auto 185% no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent 67%,#000 90%),linear-gradient(180deg,#000 70%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 67%,#000 90%),linear-gradient(180deg,#000 70%,transparent 100%);mask-composite:intersect}
/* текстът държи лявите две трети, картината — дясната третина: и най-дългото заглавие (статия, услуга) не стъпва върху светлината (измерено ≥ 7:1) */
@media (min-width:721px){.ws-theme-agency .biz-pagehead h1,.ws-theme-agency .biz-pagehead__lead,.ws-theme-agency .biz-pagehead .biz-crumbs{max-width:64%}}
@media (max-width:720px){
    .ws-theme-agency .biz-pagehead::after{background-image:url(art/pagehead-960.webp);background-position:calc(100% + 110px) 50%;background-size:auto 150%;opacity:.6;-webkit-mask-image:linear-gradient(90deg,transparent 42%,#000 88%);mask-image:linear-gradient(90deg,transparent 42%,#000 88%)}
}
.ws-theme-agency .biz-crumbs,.ws-theme-agency .biz-crumbs a{color:var(--ag-light-muted)}
.ws-theme-agency .biz-crumbs a:hover{color:var(--ag-light)}
.ws-theme-agency .biz-card,.ws-theme-agency .biz-post,.ws-theme-agency .biz-asidecard,.ws-theme-agency .biz-faq details,.ws-theme-agency .biz-contact__list > li,.ws-theme-agency .biz-steps li,.ws-theme-agency .biz-pricelist,.ws-theme-agency .biz-pricecard,.ws-theme-agency .biz-quotes figure,.ws-theme-agency .biz-person{background:var(--ag-paper);border-color:var(--biz-line)}
.ws-theme-agency .biz-card{border-radius:var(--biz-radius-lg)}
.ws-theme-agency.ws-family-business .biz-card h3{font-size:clamp(1.6rem,1.3rem + .8vw,2rem)}
.ws-theme-agency .biz-card__icon{color:var(--ws-gold-deep)}
.ws-theme-agency .biz-card__price{background:var(--biz-tint-2);color:var(--ws-gold-deep)}
.ws-theme-agency .biz-card__foot,.ws-theme-agency .biz-more{color:var(--ws-gold-deep)}
.ws-theme-agency .biz-card__go{background:var(--biz-tint-2);color:var(--ws-gold-deep)}
.ws-theme-agency .biz-card:hover .biz-card__go{background:var(--biz-primary);color:var(--biz-on-primary)}
.ws-theme-agency.ws-family-business .biz-post h3{font-size:1.6rem}
.ws-theme-agency .biz-prose p{font-size:1.08rem;line-height:1.8}
.ws-theme-agency.ws-family-business .biz-sec > h2,.ws-theme-agency.ws-family-business .biz-split__body h2{font-size:clamp(2rem,1.4rem + 2vw,3rem)}
.ws-theme-agency .biz-asidecard__price{font-family:var(--ag-serif);font-weight:500;font-size:2.4rem}
.ws-theme-agency .biz-steps li::before{background:var(--biz-primary)}
.ws-theme-agency .biz-cta{border-color:rgba(187,148,216,.3);background:radial-gradient(60% 120% at 100% 0%,rgba(200,121,43,.24),transparent 70%),var(--ag-plum)}
.ws-theme-agency.ws-family-business .biz-cta h2{color:var(--ag-light);font-size:clamp(2rem,1.4rem + 2vw,3rem)}
.ws-theme-agency .biz-cta p{color:var(--ag-light-muted)}
/* Карта «Да създадем…»: ъгъл на стъклена плоча със светлина зад нея, само в дясната част (art/cta-*.webp) */
.ws-theme-agency .biz-cta::after{content:"";position:absolute;inset:0;z-index:-1;background:url(art/cta-1200.webp) 100% 60%/auto 150% no-repeat;opacity:.85;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 80%);mask-image:linear-gradient(90deg,transparent 30%,#000 80%)}
@media (max-width:720px){
    .ws-theme-agency .biz-cta::after{background-image:url(art/cta-720.webp);background-position:calc(100% + 60px) 0;background-size:auto 70%;opacity:.5;-webkit-mask-image:linear-gradient(200deg,#000 0,transparent 55%);mask-image:linear-gradient(200deg,#000 0,transparent 55%)}
}
.ws-theme-agency .biz-tab{background:var(--ag-paper)}
.ws-theme-agency .biz-tab[aria-pressed="true"]{background:var(--ag-plum);border-color:var(--ag-plum);color:var(--ag-light)}
.ws-theme-agency .ag-projects-page{margin-bottom:clamp(40px,6vw,80px)}
.ag-gallery button.ag-project__shot{display:block;width:100%;padding:0;border:0;font:inherit;text-align:inherit;cursor:zoom-in}
.ag-gallery button.ag-project__shot:focus-visible{outline:3px solid var(--biz-primary);outline-offset:-3px}
.ag-project__shot img{transition:transform .5s ease}
.ag-project:hover .ag-project__shot img{transform:scale(1.03)}
.ag-gallery .ag-project__text{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
.ag-projects__more{display:none;margin:28px 0 0;text-align:center}
@media (max-width:640px){.ag-projects__more{display:block}}
.ag-project h2.ag-project__name{margin:0;font-size:clamp(1.5rem,1.2rem + .7vw,1.9rem);line-height:1.15;color:var(--biz-ink)}

/* ——— Телефон и таблет ——— */
@media (max-width:1100px){
    .ag-services__grid,.ag-services__grid.ag-n3{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ag-steps,.ag-steps.ag-n5,.ag-steps.ag-n6{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:28px}
    .ag-projects__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
    .ag-hero{min-height:0}
    .ag-hero__inner{grid-template-columns:minmax(0,1fr)}
    .ag-hero__stage{height:clamp(340px,82vw,520px);margin-top:8px}
    .ag-glass--main{inset:0 16% 4% 16%}
    .ag-glass--back{inset:6% 4% 12% 30%}
    .ag-contact__grid.has-form{grid-template-columns:minmax(0,1fr)}
    .ag-shots{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
    .ag-section{padding-block:clamp(56px,14vw,80px)}
    .ag-services__grid,.ag-services__grid.ag-n2,.ag-services__grid.ag-n3,.ag-projects__grid,.ag-projects__grid.ag-n2,.ag-shots{grid-template-columns:minmax(0,1fr)}
    .ag-service{min-height:0}
    .ag-service h3{margin-top:6px}
    .ag-steps,.ag-steps.ag-n2,.ag-steps.ag-n3,.ag-steps.ag-n5,.ag-steps.ag-n6{grid-template-columns:minmax(0,1fr)}
    .ag-steps li{grid-template-columns:auto minmax(0,1fr);column-gap:18px;align-items:baseline;padding:22px 0 18px}
    .ag-steps__num{grid-row:span 2;font-size:3rem}
    .ag-hero__actions{flex-direction:column;align-items:stretch}
    .ws-theme-agency.ws-family-business .ag-hero__actions .btn-primary{width:100%}
    .ag-hero__actions .ag-link{justify-content:center}
    .ag-hero__stage{height:min(108vw,440px)}
    .ag-glass--main{inset:0 14% 3% 20%;border-radius:24px}
    .ag-glass--chip{inset:auto auto 80% 42%;font-size:.68rem;padding:8px 12px}
    .ag-demo{bottom:6%;width:178px;padding:14px 14px 16px;border-radius:16px}
    .ag-demo__title{font-size:1.55rem}
    .ag-demo__line{font-size:.7rem}
    .ag-hero__rail{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ag-hero__rail li:nth-child(3){padding-left:0;border-left:0}
    .ag-hero__demo-note{position:static;margin:18px var(--biz-gutter) 0;text-align:left}
    .ag-lines li{grid-template-columns:minmax(0,1fr);gap:4px}
    .ag-head{margin-bottom:28px}
}

/* ——— Достъпност: без движение; без прозрачност ——— */
@media (prefers-reduced-motion:reduce){
    .ag-service,.ag-project,.ag-link,.ws-theme-agency .btn svg,.ag-service__go svg{transition:none}
    .ag-service:hover,.ag-project:hover,.ag-project:hover .ag-project__shot img{transform:none}
    .ag-project__shot img{transition:none}
    .ws-theme-agency .btn:hover svg,.ag-service:hover .ag-service__go svg{transform:none}
}
@media (prefers-reduced-transparency:reduce){
    .ws-theme-agency.ws-family-business .site-header,.ws-theme-agency.ws-family-business .site-header.is-compact{background:var(--ag-plum);-webkit-backdrop-filter:none;backdrop-filter:none}
    .ag-glass{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--ag-plum-3);border-color:rgba(187,148,216,.5)}
    .ag-glass--back{background:var(--ag-plum-2)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    .ws-theme-agency.ws-family-business .site-header{background:var(--ag-plum)}
    .ag-glass{background:var(--ag-plum-3)}
}

/* ——— Индекс на останалите проекти ——— */
.ag-index{display:grid;margin:clamp(36px,5vw,64px) 0 0;padding:0;list-style:none;border-top:1px solid var(--biz-line)}
.ag-index__row{position:relative;display:grid;grid-template-columns:56px minmax(0,1.6fr) minmax(0,1fr) auto;gap:8px 24px;align-items:baseline;padding:20px 4px;border-bottom:1px solid var(--biz-line);transition:background-color .2s ease}
.ag-index__row:hover{background:color-mix(in srgb,var(--ag-paper) 70%,transparent)}
.ag-index__num{font-family:var(--ag-serif);font-style:italic;font-size:1.2rem;color:var(--ws-gold-deep)}
.ag-index__title{font-family:var(--ag-serif);font-size:clamp(1.35rem,1.1rem + .7vw,1.75rem);line-height:1.15;color:var(--biz-ink)}
.ag-index__client{color:var(--biz-muted);font-size:.95rem}
.ag-index__link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.92rem;font-weight:700;color:var(--ws-gold-deep);text-decoration:none;white-space:nowrap}
.ag-index__link::after{content:"";position:absolute;inset:0}
.ag-index__link svg{width:18px;height:18px;transform:rotate(-45deg);transition:transform .2s ease}
.ag-index__row:hover .ag-index__link svg{transform:rotate(-45deg) translateX(3px)}
@media (max-width:760px){
    .ag-index__row{grid-template-columns:40px minmax(0,1fr);row-gap:2px}
    .ag-index__client,.ag-index__link{grid-column:2}
    .ag-index__link{min-height:36px}
}
@media (prefers-reduced-motion:reduce){.ag-index__row,.ag-index__link svg{transition:none}}

/* ——— Шаги на услуга (секция steps) — четири в един ред, заглавието четимо ——— */
.ws-theme-agency .biz-steps{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.ws-theme-agency.ws-family-business .biz-steps h3{font-family:var(--biz-font);font-size:1rem;font-weight:700;letter-spacing:0;line-height:1.35}
.ws-theme-agency .biz-note{background:var(--ag-paper);border-color:var(--biz-line);border-left-color:var(--biz-primary)}

/* ——— Лентата с бутоните на телефона: сливово стъкло, надписите на един ред ——— */
.ws-theme-agency .mobile-book-bar{background:rgba(16,11,18,.94);border-top-color:rgba(187,148,216,.22)}
.ws-theme-agency.ws-family-business .mobile-book-bar .btn{min-height:48px;padding:0 12px;font-size:.9rem;white-space:nowrap}
.ws-theme-agency .mobile-book-bar .btn-secondary{border-color:rgba(187,148,216,.45);color:var(--ag-light)}
@media (prefers-reduced-transparency:reduce){.ws-theme-agency .mobile-book-bar{background:var(--ag-plum);-webkit-backdrop-filter:none;backdrop-filter:none}}
.ws-theme-agency main [id]{scroll-margin-top:calc(var(--ws-header-h,84px) - 8px)}
.ws-theme-agency .ag-rating{display:inline-flex;align-items:center;gap:10px;margin:22px 0 0;padding:10px 16px;border:1px solid rgba(187,148,216,.32);border-radius:999px;color:var(--ag-light);text-decoration:none;font-size:.95rem;line-height:1}  /* Google rating link (owner 23.11) */
.ws-theme-agency .ag-rating:hover,.ws-theme-agency .ag-rating:focus-visible{border-color:var(--ag-orange)}
.ws-theme-agency .ag-rating__stars{position:relative;letter-spacing:2px;color:rgba(255,248,241,.25)}
.ws-theme-agency .ag-rating__stars::before{content:"★★★★★";position:absolute;inset:0;width:var(--ag-rating,100%);overflow:hidden;color:#f5b301;white-space:nowrap}
.ws-theme-agency .ag-rating__value{font-weight:800}
.ws-theme-agency .ag-rating__count{color:var(--ag-light-muted)}
