/* New reading surfaces inherit the approved Pills palette, type and spacing. */
:root { --reading-width: 72ch; --reading-accent: #b8a3ed; }
html { scroll-padding-top: 2rem; }
::selection { color: #fff; background: #5c388f; }
body { caret-color: #66429b; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #8058b8; outline-offset: 5px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -10rem; padding: 1rem 1.5rem; color: #000; background: #fff; }
.skip-link:focus { top: 1rem; }
.locale-switch { display: flex; align-items: center; gap: .7rem; flex: none; font-size: .75rem; font-weight: 600; }
.locale-switch a { color: inherit; text-decoration: none; padding: .3rem 0; text-underline-offset: .35em; display: inline-flex; align-items: center; justify-content: center; min-inline-size: 24px; min-block-size: 32px; box-sizing: border-box; }
.locale-switch a[aria-current] { text-decoration: underline; }
.site-navigation .locale-switch { margin-left: 1.5rem; }
.site-navigation .location { display: none; }
.site-navigation { z-index: 20; }
.reading-hero { background: #080808; color: #fff; padding: 9rem 1.875rem 4rem; }
.reading-breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .85rem; margin-bottom: 3.5rem; color: #c6c6c6; }
.reading-breadcrumb a { color: inherit; text-decoration: none; }
.reading-breadcrumb a:hover { text-decoration: underline; text-underline-offset: .25em; }
.reading-hero h1 { font-family: var(--font-body); font-weight: 500; font-size: clamp(2.75rem,6.6vw,6rem); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; text-wrap: balance; margin: 0 0 3.5rem; }
.reading-hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; padding-top: 2rem; border-top: 1px solid #5e5e5e; }
.reading-hero-bottom p { font-size: clamp(1.15rem,1.6vw,1.5rem); line-height: 1.5; max-width: 48ch; margin: 0; }
.reading-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: #080808; color: #fff; padding: 1.1rem 1.4rem; border: 1px solid #080808; border-radius: 0; text-decoration: none; font: 500 1rem/1.35 var(--font-body); cursor: pointer; min-height: 3.5rem; transition: background-color .18s,color .18s; }
.reading-button.light { background: #fff; color: #000; border-color: #fff; }
.reading-button:hover { background: #b8a3ed; color: #000; border-color: #b8a3ed; }
.reading-button svg, .reading-link svg, .reading-proof figcaption svg, .brief-channels svg { width: 1.35rem; height: 1.35rem; flex: none; }
.reading-section { display: grid; grid-template-columns: minmax(12rem,1fr) minmax(0,2.5fr); gap: clamp(3rem,8vw,9rem); padding: clamp(4rem,8vw,8rem) 1.875rem; }
.reading-aside { align-self: start; position: sticky; top: 2rem; font-size: .9rem; }
.reading-aside nav { border-top: 1px solid #000; padding-top: 1rem; }
.reading-aside nav p { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.5rem; color: #555; }
.reading-aside nav a { display: block; margin: 0 0 .9rem; line-height: 1.5; color: #111; text-decoration: none; }
.reading-aside nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.reading-aside .reading-button { margin-top: 1.2rem; width: 100%; }
.reading-copy { max-width: var(--reading-width); min-width: 0; font-size: 1.125rem; line-height: 1.8; }
.reading-copy h2 { font-family: var(--font-body); font-size: clamp(1.8rem,2.9vw,2.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; margin: 3.5rem 0 1.35rem; text-wrap: balance; }
.reading-copy h2:first-child { margin-top: 0; }
.reading-copy h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; margin: 2.5rem 0 .8rem; }
.reading-copy p { margin: 0 0 1.4rem; }
.reading-copy ul,.reading-copy ol { padding-left: 1.4rem; margin: 1.5rem 0; }
.reading-copy li { padding-left: .25rem; margin: .6rem 0; }
.reading-copy strong { font-weight: 650; }
.reading-copy a { color: #573083; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.reading-table { overflow-x: auto; margin: 2rem 0; }
.reading-table table { border-collapse: collapse; font-size: .95rem; width: 100%; }
.reading-table th,.reading-table td { text-align: left; padding: .9rem; border-bottom: 1px solid #c9c9c9; min-width: 8rem; vertical-align: top; }
.reading-table th { color: #fff; background: #111; font-weight: 500; }
.reading-proof { padding: 5rem 1.875rem 0; }
.reading-proof>h2,.reading-related>h2,.brief-section>h2 { font-family: var(--font-body); font-size: clamp(2rem,4vw,4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 2.5rem; }
.reading-proof-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.reading-proof-grid:has(figure:only-child) { grid-template-columns: minmax(0,1fr); }
.reading-proof figure { margin: 0; min-width: 0; }
.reading-proof figure>a { display: block; overflow: hidden; background: #ededed; }
.reading-proof img { width: 100%; height: auto; aspect-ratio: 1.44; object-fit: cover; display: block; transition: transform .5s; }
.reading-proof figure>a:hover img { transform: scale(1.025); }
.reading-proof-grid:has(figure:only-child) img { aspect-ratio: 2; object-position: center; }
.reading-proof figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid #c9c9c9; font-size: 1rem; }
.reading-proof figcaption a { color: #000; display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-size: .85rem; }
.reading-related { padding: 4rem 1.875rem 6rem; background: #f3f4f5; }
.reading-related>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 3rem; }
.reading-link { color: #000; border-bottom: 1px solid #a5a5a5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; font-size: clamp(1.2rem,1.8vw,1.8rem); line-height: 1.35; padding: 1.5rem 0; }
.reading-link:hover { color: #60418c; }
.service-directory { padding: 2rem 1.875rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.brief-section { padding: 0 1.875rem 6rem; max-width: 75rem; margin: 0 auto; }
.project-brief label { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.8rem; font-size: .95rem; }
.brief-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.project-brief input,.project-brief textarea { border: 0; border-bottom: 1px solid #888; border-radius: 0; background: #f3f4f5; font: 1.1rem/1.5 var(--font-body); width: 100%; padding: 1rem; color: #111; resize: vertical; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.brief-copy { background: none; color: #111; border: 0; padding: .8rem 0; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; font: inherit; }
.brief-note { max-width: 65ch; font-size: .9rem; line-height: 1.65; margin: 1.5rem 0; }
.brief-preview { margin-top: 1.5rem; }
.brief-preview summary { cursor: pointer; padding: .6rem 0; }
.brief-preview pre { font: .95rem/1.6 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere; background: #f3f4f5; padding: 1.5rem; }
.brief-status { font-size: .9rem; line-height: 1.5; }
.brief-channels { display: flex; flex-wrap: wrap; gap: 2rem; padding-top: 2.5rem; }
.brief-channels a { display: flex; gap: .75rem; align-items: center; color: #000; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
@media (min-width: 1600px) { .reading-section,.reading-proof,.reading-related,.reading-hero,.service-directory { padding-left: 4vw; padding-right: 4vw; } }
@media (max-width: 991px) {
 .site-navigation .locale-switch { margin-left: auto; margin-right: 1.5rem; }
 .reading-section { grid-template-columns: minmax(10rem,1fr) minmax(0,2.3fr); gap: 2rem; }
 .reading-hero { padding-top: 8rem; }
 .reading-hero-bottom { align-items: flex-start; flex-direction: column; gap: 1.75rem; }
 .reading-aside { position: static; }
 .reading-proof figcaption { align-items: flex-start; flex-direction: column; gap: .75rem; }
}
@media (max-width: 767px) {
 .reading-hero { padding: 7rem 1.25rem 3rem; }
 .reading-breadcrumb { margin-bottom: 2.5rem; font-size: .75rem; }
 .reading-hero h1 { margin-bottom: 2.5rem; font-size: clamp(2.5rem,10vw,4rem); max-width: 100%; overflow-wrap: break-word; }
 .reading-section { display: block; padding: 3.5rem 1.25rem; }
 .reading-aside { margin-bottom: 3rem; }
 .reading-aside nav { columns: 2; column-gap: 1.5rem; }
 .reading-aside nav p { column-span: all; }
 .reading-aside nav a { break-inside: avoid; font-size: .8rem; }
 .reading-aside .reading-button { display: none; }
 .reading-copy { font-size: 1rem; line-height: 1.8; }
 .reading-copy h2 { margin-top: 2.75rem; }
 .reading-proof { padding: 3rem 1.25rem 0; }
 .reading-proof-grid,.reading-related>div,.service-directory { grid-template-columns: 1fr; }
 .reading-proof-grid { gap: 2rem; }
 .reading-proof-grid:has(figure:only-child) img { aspect-ratio: 1.44; }
 .reading-proof figcaption { flex-direction: row; font-size: .9rem; }
 .reading-proof figcaption a { font-size: .75rem; }
 .reading-related { padding: 3rem 1.25rem 4rem; }
 .reading-related>h2,.reading-proof>h2,.brief-section>h2 { margin-bottom: 1.5rem; }
 .service-directory { padding: 1rem 1.25rem 0; }
 .brief-section { padding: 0 1.25rem 4rem; }
 .brief-fields { grid-template-columns: 1fr; gap: 0; }
 .brief-actions { gap: .75rem 1.5rem; }
 .brief-channels { gap: 1.5rem; }
 .brief-channels a { font-size: .9rem; }
 .site-navigation .locale-switch { margin-right: 1rem; gap: .5rem; font-size: .68rem; }
 .site-navigation .logo-txt { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .reading-proof img,.reading-button { transition: none; } }

/* Compact language disclosure, preserving the original navigation footprint. */
.locale-switch { position: relative; display: block; }
.locale-switch summary { cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .5rem; list-style: none; }
.locale-switch summary::-webkit-details-marker { display: none; }
.locale-switch summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.locale-switch[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.locale-switch nav { position: absolute; right: 0; top: 100%; padding: .5rem; background: #080808; color: #fff; border: 1px solid #555; min-width: 72px; z-index: 30; }
.locale-switch:not([open]) nav { display: none; }
.locale-switch nav a { display: flex; min-height: 44px; }
.locale-switch summary:focus-visible, .locale-switch nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Language switcher matches the navigation links: same size, weight, case and baseline (2026-10-16). */
.site-navigation .locale-switch { margin-left: .9375rem; margin-right: -.625rem; font-size: 1.0625rem; font-weight: 500; }
.locale-switch summary { box-sizing: border-box; min-height: 44px; padding: 1rem .625rem; gap: .5rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.25em; letter-spacing: -.01em; text-transform: uppercase; transition: opacity .2s ease; }
html:not([data-page="content"]) .site-navigation .locale-switch summary { opacity: .8; }
html:not([data-page="content"]) .site-navigation .locale-switch summary:hover,
.locale-switch[open] summary { opacity: 1; }
.locale-switch summary::after { width: 7px; height: 7px; margin-top: -5px; }
.locale-switch[open] summary::after { margin-top: 3px; }
.locale-switch nav { min-width: 8.5rem; padding: .375rem; border: 0; font-size: 1rem; }
.locale-switch nav a { justify-content: flex-start; gap: .625rem; min-height: 44px; padding: 0 .75rem; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; transition: background-color .2s ease; }
.locale-switch nav a:hover { background: #1f1f1f; }
.locale-switch nav a[aria-current] { text-decoration: none; background: #262626; }

/* Flags: UA, PL, EN (UK); Russian gets a neutral globe instead of a flag. */
.locale-switch summary::before,
.locale-switch nav a::before { content: ''; flex: none; width: 1.2em; height: .8em; border-radius: 2px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgb(127 127 127 / .35); }
html[lang="uk"] .locale-switch summary::before, .locale-switch a[hreflang="uk"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%230057B7' d='M0 0h3v1H0z'/%3E%3Cpath fill='%23FFD700' d='M0 1h3v1H0z'/%3E%3C/svg%3E"); }
html[lang="pl"] .locale-switch summary::before, .locale-switch a[hreflang="pl"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23fff' d='M0 0h3v1H0z'/%3E%3Cpath fill='%23DC143C' d='M0 1h3v1H0z'/%3E%3C/svg%3E"); }
html[lang="en"] .locale-switch summary::before, .locale-switch a[hreflang="en"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0v30h60V0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='m0 0 60 30m0-30L0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='m0 0 60 30m0-30L0 30' clip-path='url(%23t)'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E"); }
html[lang="ru"] .locale-switch summary::before, .locale-switch a[hreflang="ru"]::before { width: 1.2em; height: .95em; border-radius: 0; box-shadow: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2c2.8 3 4 6.4 4 10s-1.2 7-4 10c-2.8-3-4-6.4-4-10s1.2-7 4-10z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2c2.8 3 4 6.4 4 10s-1.2 7-4 10c-2.8-3-4-6.4-4-10s1.2-7 4-10z'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (max-width: 991px) {
 .site-navigation .locale-switch { margin-left: auto; margin-right: 1rem; }
 .site-navigation .site-menu-toggle { margin-left: 0; }
 .site-navigation .locale-switch { align-self: center; }
 .locale-switch summary { padding: .5rem .25rem; font-size: 1rem; }
}
@media (max-width: 767px) {
 .site-navigation .locale-switch { margin-right: .75rem; font-size: 1rem; }
 .locale-switch summary { font-size: .9375rem; }
}

/* Home hero (2026-10-20): the positioning sentence is the page H1; directions link to their hubs. */
.hero-h1 { margin: 0; font-weight: inherit; }
.hero-service-text a { color: inherit; text-decoration: none; }
.hero-service-text a:hover { text-decoration: underline; text-underline-offset: .2em; }
@media screen and (max-width: 479px) {
 :where([data-page="home"]) .hero-text-wrapper.hhh { display: flex; padding: 1.5rem 0 0; box-sizing: border-box; }
 :where([data-page="home"]) .hero-text-wrapper .margin-bottom-small { margin-bottom: 1.25rem; }
 :where([data-page="home"]) .section-hero { padding-top: 6.5rem; --hero-gap: 1.25rem; }
 :where([data-page="home"]) .hero-caption-wrapper { display: none; }
}

/* Footer services map (2026-10-20): site-wide links to every direction and service. */
.footer-row-services { padding: 3rem 0 1rem; border-top: 1px solid rgb(127 127 127 / .35); }
.footer-services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.875rem; box-sizing: border-box; }
.footer-services-col { min-width: 0; }
.footer-services a { color: inherit; text-decoration: none; }
.footer-services a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-services-title { display: inline-block; margin-bottom: .875rem; font: 600 .875rem/1.3 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.footer-services ul { margin: 0; padding: 0; list-style: none; }
.footer-services li { margin: 0 0 .5rem; font-size: .9375rem; line-height: 1.4; opacity: .75; }
.footer-services li:hover { opacity: 1; }
@media (max-width: 991px) { .footer-services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px) { .footer-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; } }

/* Home hero (2026-10-20): the first screen is exactly one viewport tall on every device. The directions
   list and the description + button are pinned to its bottom edge with a constant gap; on short screens
   the list gets tighter and the giant title smaller, so the blocks never overlap. */
:where([data-page="home"]) .section-hero { height: 100vh; height: 100svh; min-height: 0; padding-bottom: 0; }
:where([data-page="home"]) .section-hero .hero-content-bottom { position: absolute; left: 0; right: 0; bottom: var(--hero-gap, 1.875rem); margin-top: 0; padding-top: 0; z-index: 2; }
:where([data-page="home"]) .hero-content-bottom .layout-grid { align-items: end; }
:where([data-page="home"]) .hero-service-item { padding-top: clamp(.375rem, 1.45svh, .8125rem); padding-bottom: clamp(.375rem, 1.45svh, .8125rem); }

/* Home services accordion (2026-10-20): "Дізнатися більше" — the site's pill button, outlined in white. */
.button.button-outline { display: inline-block; margin-top: 2rem; background: transparent; border: 1px solid #fff; color: #fff; transition: background-color .25s ease; }
.button.button-outline:hover { color: #fff; background: rgb(255 255 255 / .08); }
.button.button-outline img { filter: invert(1); }
@media screen and (max-width: 479px) {
 :where([data-page="home"]) .accordion-content-inner .layout-grid { display: flex; flex-direction: column; gap: 1.5rem; }
 :where([data-page="home"]) .accordion-content-inner .icons-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
}
/* Giant hero title: as wide as before, but never taller than the space the viewport height leaves above
   the pinned bottom blocks (title height ≈ 2.3–2.5 × font-size). */
@media screen and (min-width: 992px) { :where([data-page="home"]) .hero-title { font-size: min(15.4vw, calc(43.9svh - 8.45rem)); } }
@media screen and (min-width: 768px) and (max-width: 991px) { :where([data-page="home"]) .hero-title { font-size: min(15vw, calc(43.5svh - 8.45rem)); } }
@media screen and (min-width: 480px) and (max-width: 767px) { :where([data-page="home"]) .hero-title { font-size: min(17vw, calc(40.2svh - 15rem)); } }
@media screen and (max-width: 479px) {
 :where([data-page="home"]) .section-hero { padding-top: 5.5rem; }
 :where([data-page="home"]) .hero-title { font-size: min(22.5vw, calc(41.5svh - 13.5rem)); }
}

/* Home (2026-10-20): the "About" block slides over the first screen. The hero sticks to the top only
   inside .hero-stack, so after the About block it scrolls away and never shows through later sections. */
:where([data-page="home"]) .hero-stack { position: relative; }
:where([data-page="home"]) .hero-stack > .section-hero { position: sticky; top: 0; z-index: 0; }
:where([data-page="home"]) .hero-stack-cover { position: relative; z-index: 1; background: #fff; }

/* Hero pill rotation canvas (assets/scripts/pill.js) — sits exactly over the pill in the hero image. */
.hero-pill-canvas { position: absolute; pointer-events: none; opacity: 0; }

/* Footer services map: on desktop the columns keep their natural width and share the free space equally,
   first column on the left edge, last on the right edge. */
@media (min-width: 992px) { .footer-services { display: flex; justify-content: space-between; gap: 2rem; } }

/* Breadcrumbs over the portfolio hero photo (tools/breadcrumbs.py). */
.inner-breadcrumb.hero-crumbs { position: absolute; z-index: 3; top: 7.5rem; left: 1.875rem; display: flex; align-items: center; gap: .65rem; margin: 0; color: #fff; font-size: .8125rem; line-height: 1.6; text-shadow: 0 1px 8px rgb(0 0 0 / .55); }
.inner-breadcrumb.hero-crumbs a { color: inherit; text-decoration: none; opacity: .8; }
.inner-breadcrumb.hero-crumbs a:hover { opacity: 1; text-decoration: underline; }
.inner-breadcrumb.hero-crumbs > span { color: inherit; }
@media (max-width: 767px) { .inner-breadcrumb.hero-crumbs { top: 6rem; left: .9375rem; font-size: .75rem; } }

/* Header on scroll (assets/scripts/growth.js): hidden while scrolling down, back on a light panel while scrolling up. */
:root { --header-panel: #fff; }   /* the page background (owner 2026-10-20) */
/* `translate`, not `transform`: the entrance animation writes an inline transform on the header. */
:root .site-navigation.is-fixed { position: fixed; top: 0; left: 0; right: 0; translate: 0 -110%; background: var(--header-panel); transition: translate .35s ease; }
:root .site-navigation.is-fixed.is-shown { translate: 0 0; }
:root .site-navigation.is-fixed { box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 .5rem 1.5rem rgb(0 0 0 / .06); }
.site-navigation.is-fixed .navigation-link.home,
.site-navigation.is-fixed .site-brand,
.site-navigation.is-fixed .logo-txt,
.site-navigation.is-fixed .locale-switch summary { color: #000; opacity: 1; }
.site-navigation.is-fixed .menu-button.home { border-color: #000; }
.site-navigation.is-fixed .menu-icon-top.home,
.site-navigation.is-fixed .menu-icon-middle.home,
.site-navigation.is-fixed .menu-icon-bottom.home { background: #000; border-color: #000; }
@media (prefers-reduced-motion: reduce) { :root .site-navigation.is-fixed { transition: none; } }

/* Current page in the menu: a small dot next to the link (black on the light header, white over the photo heroes). */
.navigation-link.is-current { background-image: none !important; position: relative; }
.navigation-link::after { content: ''; position: absolute; top: 1.05rem; right: .2rem; width: .3125rem; height: .3125rem; border-radius: 50%; background: currentColor; transform: scale(0); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.navigation-link { position: relative; }
.navigation-link.is-current::after { animation: nav-dot-in .5s .25s ease-out both; }
.navigation-link:not(.is-current):hover::after { transform: scale(.7); opacity: .5; }
@keyframes nav-dot-in { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.4); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .navigation-link.is-current::after { animation: none; transform: none; opacity: 1; } }

/* Contact block before the footer (tools/contact_block.py): footer colour, light outlines for contrast. */
.contact-band { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem); background: #181717; color: #fff; }
.contact-marquee { overflow: hidden; }
.contact-marquee-track { display: flex; width: max-content; animation: contact-marquee 32s linear infinite; }
.contact-marquee-track span { padding-right: .6em; font: 600 clamp(4rem, 11vw, 11rem)/1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
@keyframes contact-marquee { to { transform: translateX(-50%); } }
.contact-band-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 8vw; margin: clamp(3rem, 6vw, 5rem) 1.875rem 0; padding-top: 2.5rem; border-top: 1px solid rgb(255 255 255 / .35); }
.contact-band-intro { max-width: 32ch; margin: 0; font-size: 1.0625rem; line-height: 1.55; opacity: .85; }
.lead-form { position: relative; display: grid; gap: 1.6rem; }
.lead-row label { display: block; margin-bottom: .75rem; font-size: 1.125rem; }
.lead-row input, .lead-row textarea { width: 100%; box-sizing: border-box; padding: 1.15rem 1.5rem; border: 1px solid rgb(255 255 255 / .55); border-radius: .5rem; background: transparent; color: #fff; font: 400 1.0625rem/1.4 var(--font-body); transition: border-color .2s ease, box-shadow .2s ease; }
.lead-row textarea { min-height: 9.5rem; resize: vertical; }
.lead-row input::placeholder, .lead-row textarea::placeholder { color: rgb(255 255 255 / .45); }
.lead-row input:focus, .lead-row textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.lead-row.is-invalid input, .lead-row.is-invalid textarea { border-color: #ff9b9b; box-shadow: 0 0 0 1px #ff9b9b; }
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .5rem; }
.button.button-outline.lead-submit { margin-top: 0; padding: 0; cursor: pointer; font: inherit; font-size: 1rem; }
.button.button-outline.lead-submit:disabled { opacity: .6; cursor: wait; }
.lead-status { margin: 0; font-size: .9375rem; line-height: 1.5; }
.lead-status.is-ok { color: #c8f5c3; }
.lead-status.is-error { color: #ffc2c2; }
.lead-status a { color: #fff; }
@media (max-width: 767px) {
 .contact-band-inner { grid-template-columns: minmax(0, 1fr); margin-inline: .9375rem; }
 .contact-marquee-track span { font-size: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .contact-marquee-track { animation: none; } }

/* Language dropdown (2026-10-20): light panel like the fixed header, rounded, as wide as its content with
   equal padding left and right. */
:root .locale-switch nav { width: max-content; min-width: 0; padding: .375rem; border: 0; border-radius: .75rem; background: var(--header-panel); color: #000; box-shadow: 0 .75rem 2rem rgb(0 0 0 / .12); }
:root .locale-switch nav a { padding: 0 .875rem; border-radius: .5rem; color: #000; }
:root .locale-switch nav a:hover { background: #e2e2e2; }
:root .locale-switch nav a[aria-current] { background: #e6e6e6; }

/* Contact block, left column: text + Instagram/Telegram (they moved here from the footer's top row). */
.contact-band-side { display: flex; flex-direction: column; gap: 2rem; }
.contact-band-social { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.contact-band-social a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font: 500 1.0625rem/1.25 var(--font-body); letter-spacing: .01em; text-decoration: none; text-transform: uppercase; }
.contact-band-social a:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact-band-social svg { width: 1rem; height: 1rem; }
/* The footer now starts with the services map's line (its top row was removed). */
.footer-row-services { padding-top: 3.5rem; }

/* Breadcrumbs: house icon for the home page, chevrons between items (owner's reference, 2026-10-20). */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inner-breadcrumb .crumb-home-link { display: inline-flex; align-items: center; }
.inner-breadcrumb .crumb-home { width: 1.25rem; height: 1.25rem; }
.inner-breadcrumb .crumb-sep { display: inline-flex; align-items: center; color: inherit; opacity: .6; }
.inner-breadcrumb .crumb-sep svg { width: .875rem; height: .875rem; }

/* Russian mission words ("КЛИЕНТЫ") are wider than the Ukrainian ones: slightly smaller so the 001–003 marks fit. */
html[lang="ru"][data-page="home"] .mission-heading-wrapper .heading-large { font-size: 12vw; }
@media screen and (max-width: 991px) { html[lang="ru"][data-page="home"] .mission-heading-wrapper .heading-large { font-size: 11.8vw; } }
@media screen and (max-width: 479px) { html[lang="ru"][data-page="home"] .mission-heading-wrapper .heading-large { font-size: 13.4vw; } }

/* Project cards (tools/case_cards.py): the card opens the project; "Про проєкт" opens the case page. */
.collection-item:has(> .project-about) { position: relative; }
.project-about { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 5rem; background: #fff; color: #000; font: 500 .875rem/1.1 var(--font-body); letter-spacing: .01em; text-transform: uppercase; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.project-about svg { width: .85rem; height: .85rem; }
.project-about:hover { background: #000; color: #fff; }
.projects-grid .project-about { right: 1.25rem; bottom: 1.25rem; }
.projects-list .project-about { top: 50%; right: 4.5rem; transform: translateY(-50%); padding: .45rem .9rem; border: 1px solid #000; font-size: .8125rem; }
@media (max-width: 767px) {
 .projects-grid .project-about { right: .75rem; bottom: .75rem; padding: .55rem .9rem; font-size: .75rem; }
 .projects-list .project-about { right: 2.75rem; padding: .35rem .7rem; font-size: .6875rem; }
}

/* Running lines on every page (2026-10-20): the home page animates them with its motion script; everywhere
   else (footer HEAD PILLS / AGENCY, the portfolio first screen) they now run the same way — 42 s per loop. */
html:not([data-page="home"]) .marquee-track { animation: marquee-left 42s linear infinite; }
html:not([data-page="home"]) .marquee-track-reverse { animation: marquee-right 42s linear infinite; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { html:not([data-page="home"]) .marquee-track, html:not([data-page="home"]) .marquee-track-reverse { animation: none; } }

/* SEO text block before the contact form (tools/seo_blocks.py), owner's reference 2026-10-20: a line, then
   the title and 2–3 lines of text with "…" on the left and "Читати більше" on the right; the button opens
   the full text across the whole container. The text is clipped, not removed — it stays in the page. */
.seo-block { padding: clamp(3.5rem, 6vw, 5.5rem) 1.875rem; background: #fff; color: #111; }
.seo-block-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 6vw; align-items: start; padding-top: 2.75rem; border-top: 1px solid #000; }
.seo-block-head { max-width: 50rem; }
.seo-block h2 { margin: 0 0 .9rem; font: 600 clamp(1.125rem, 1.5vw, 1.375rem)/1.3 var(--font-body); letter-spacing: -.01em; }
.seo-block-lead { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.4; text-align: justify; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.seo-block.is-open .seo-block-lead { display: block; -webkit-line-clamp: unset; }
.seo-block-toggle { justify-self: end; margin: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
.seo-block-toggle .button-inner { gap: .75rem; }
.seo-block-toggle .button-container { min-height: 3.25rem; padding: .25em 2.2em; }
.seo-block-toggle img { width: 1.0625rem; transition: transform .4s ease; }
.seo-block.is-open .seo-block-toggle img { transform: rotate(45deg); }
.seo-block-more { grid-column: 1 / -1; max-height: 0; overflow: hidden; transition: max-height .7s ease; font-size: 1.0625rem; line-height: 1.65; color: #333; }
.seo-block.is-open .seo-block-more { max-height: var(--seo-height, 400rem); }
.seo-block-more > :first-child { margin-top: 1rem; }
.seo-block-more h3 { margin: 2.25rem 0 .75rem; font: 600 1.25rem/1.35 var(--font-body); color: #111; }
.seo-block-more h4 { margin: 1.5rem 0 .5rem; font: 600 1.0625rem/1.4 var(--font-body); color: #111; }
.seo-block-more p { max-width: 75rem; margin: 0 0 1rem; }
.seo-block-more ul, .seo-block-more ol { max-width: 75rem; margin: 0 0 1rem; padding-left: 1.3rem; }
.seo-block-more li { margin: .35rem 0; }
.seo-block-more a { color: #111; text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 767px) {
 .seo-block { padding-inline: .9375rem; }
 .seo-block-inner { grid-template-columns: minmax(0, 1fr); }
 .seo-block-toggle { justify-self: start; }
 .seo-block-lead { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .seo-block-more { transition: none; } }

/* Scroll reveals (assets/scripts/growth.js). */
.reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.reveal-up:not(.is-in) { opacity: 0; transform: translateY(2rem); }
.reveal.reveal-line { display: block; }
.reveal.reveal-line:not(.is-in) { opacity: 0; transform: translateY(60%) rotate(2deg); }
.reveal.reveal-zoom { transition-duration: 1.4s; }
.reveal.reveal-zoom:not(.is-in) { opacity: 0; transform: scale(1.06); }
.inner-hero-image { overflow: hidden; }

/* Mobile (2026-10-21): the first screen shows only the title, the paragraph and the button — the list of
   five directions stays on tablet/desktop. */
@media screen and (max-width: 767px) { :where([data-page="home"]) .hero-services-container { display: none; } }

/* Mobile menu (2026-10-21): light panel like the site background, black text; the header turns light too. */
@media screen and (max-width: 991px) {
 html[data-page][lang] .site-navigation.is-menu-open { background: var(--header-panel); }
 html[data-page][lang] .site-navigation.is-menu-open .site-nav-menu { background: var(--header-panel); padding: .5rem 1.875rem 1.5rem; box-shadow: 0 1rem 1.5rem rgb(0 0 0 / .08); }
 html[data-page][lang] .site-navigation.is-menu-open .site-nav-menu .navigation-link,
 html[data-page][lang] .site-navigation.is-menu-open .site-brand,
 html[data-page][lang] .site-navigation.is-menu-open .logo-txt,
 html[data-page][lang] .site-navigation.is-menu-open .locale-switch summary { color: #000; opacity: 1; }
 html[data-page][lang] .site-navigation.is-menu-open .menu-icon-top.home,
 html[data-page][lang] .site-navigation.is-menu-open .menu-icon-middle.home,
 html[data-page][lang] .site-navigation.is-menu-open .menu-icon-bottom.home { background: #000; border-color: #000; }
 html[data-page][lang] .site-navigation.is-menu-open .site-nav-menu .navigation-link { display: flex; width: 100%; margin-left: 0; border-bottom: 1px solid rgb(0 0 0 / .1); box-sizing: border-box; }
 html[data-page][lang] .site-navigation.is-menu-open .site-nav-menu .navigation-link::after { position: static; flex: none; align-self: flex-start; margin: .15rem 0 0 .2rem; }
}
@media screen and (max-width: 767px) { html[data-page][lang] .site-navigation.is-menu-open .site-nav-menu { padding-inline: .9375rem; } }

/* Without the language switcher (hidden on production, tools/deploy_prod.py) the burger stays on the right. */
.site-navigation .site-nav-menu + .site-menu-toggle { margin-left: auto; }
:root .site-navigation.is-fixed.no-slide { transition: none; }

/* Cookie banner (2026-11-10, growth.js). */
.cookie-bar { position: fixed; z-index: 90; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 1rem 1.5rem; max-width: 40rem; padding: 1rem 1.25rem; color: #000; background: #fff; border: 1px solid #000; border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); font: 400 .875rem/1.45 var(--font-body, sans-serif); }
.cookie-bar p { margin: 0; }
.cookie-bar-actions { display: flex; gap: .5rem; flex: none; }
.cookie-bar button { min-height: 2.5rem; padding: .5rem 1.1rem; border: 1px solid #000; border-radius: 5rem; color: #000; background: #fff; font: 600 .8125rem/1.2 var(--font-body, sans-serif); text-transform: uppercase; cursor: pointer; }
.cookie-bar button[data-v="granted"] { color: #fff; background: #000; }
.cookie-bar button:hover { opacity: .85; }
@media (max-width: 600px) { .cookie-bar { right: 1rem; flex-direction: column; align-items: stretch; } .cookie-bar-actions button { flex: 1; } }
