/* Public homepage components sourced from PRUDNIKOV_design_reference.html. */
:root{--paper:#f2f0e9;--ink:#171916;--muted:#62645c;--line:#cfcec5;--signal:#c13c21;--white:#fffdf6;--dark:#20231f}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Golos Text",Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #c13c21;outline-offset:4px}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.02;letter-spacing:-.055em}
h1{font-size:clamp(52px,6.35vw,102px);font-weight:700}
h2{font-size:clamp(42px,5.1vw,76px)}
h3{font-size:clamp(28px,3.3vw,48px)}
.wrap{width:min(1440px,calc(100% - 96px));margin:auto}
.mono{font:11px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase}
.muted{color:var(--muted)}
.signal{color:var(--signal)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;height:86px;border-bottom:1px solid var(--line)}
.brand{font-weight:900;font-size:27px;letter-spacing:-.085em;line-height:1}
.brand i{font-style:normal;color:var(--signal)}
.navlinks{display:flex;gap:25px;font-size:14px}
.navlinks a:hover,.textlink:hover{color:var(--signal)}
.action{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;background:var(--signal);color:white;padding:15px 21px;border:1px solid var(--signal);font-weight:bold;font-size:14px;min-height:51px}
.action:hover{background:#9b2c17}
.outline{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.outline:hover{background:var(--ink);color:white}
.hero{display:grid;grid-template-columns:1.04fr .96fr;gap:40px;padding:65px 0 46px;align-items:center}
.eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.dot{width:9px;height:9px;background:var(--signal);display:inline-block}
.hero h1 span{display:block;color:var(--signal)}
.intro{max-width:490px;font-size:19px;line-height:1.55;margin:28px 0}
.heroactions{display:flex;flex-wrap:wrap;gap:10px}
.note{margin-top:22px;max-width:475px}
.lab{border:1px solid var(--line);background:#e9e7df;min-width:0}
.labtop,.labbottom{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);gap:10px}
.labtop .mono{font-size:10px}
.labcanvas{position:relative;background-image:linear-gradient(#d1d0c6 1px,transparent 1px),linear-gradient(90deg,#d1d0c6 1px,transparent 1px);background-size:24px 24px;overflow:hidden}
.labcanvas svg{width:100%;height:auto;display:block}
.labcanvas .layer{transition:transform .35s,opacity .35s}
.labcanvas .layer:not(.selected){opacity:.72}
.labcanvas .layer.selected{transform:translateX(13px)}
.labcanvas .layer.selected .plate{fill:#f8e3d8;stroke:#c13c21;stroke-width:2}
.labbottom{border-top:1px solid var(--line);border-bottom:0;align-items:start;background:var(--white)}
.labbottom strong{display:block;font-size:20px;letter-spacing:-.045em}
.labbottom p{font-size:13px;max-width:330px;color:var(--muted)}
.labbottom a{font-size:25px;color:var(--signal)}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}
.tabs .labtab{background:transparent;border:0;border-right:1px solid var(--line);padding:13px 7px;text-align:left;font-size:12px;color:var(--muted)}
.tabs .labtab:last-child{border-right:0}
.tabs .labtab[data-active]{background:var(--ink);color:white}
.tabs small{display:block;font:10px monospace;margin-bottom:5px}
.proof{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:100px}
.proof>div{padding:20px 17px;border-right:1px solid var(--line);font-size:14px}
.proof>div:first-child{padding-left:0}
.proof>div:last-child{border:0}
.proof strong{display:block;font-size:18px;letter-spacing:-.04em}
.section{padding:0 0 94px}
.secthead{display:grid;grid-template-columns:1.3fr .7fr;align-items:end;gap:30px;margin-bottom:31px}
.secthead p{max-width:400px;color:var(--muted);justify-self:end}
.secthead .mono{margin-bottom:16px}
.cases{display:grid;grid-template-columns:1.6fr 1fr;gap:14px}
.case{border:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.cover{min-height:275px;display:flex;flex-direction:column;justify-content:space-between;padding:26px;position:relative;overflow:hidden}
.case-ink{background:#251f20;color:#fff4df}
.case-ink .orb{position:absolute;right:-20px;bottom:-110px;width:420px;height:420px;border-radius:50%;background:repeating-radial-gradient(circle,#e16e45 0 1px,transparent 2px 18px);opacity:.85;transform:scaleY(.68) rotate(-15deg)}
.case-ink .title{font-size:clamp(58px,8vw,120px);letter-spacing:-.09em;font-weight:bold;line-height:.85;position:relative;z-index:1}
.cover .mono{position:relative;z-index:2}
.publiccover{background:#dbe4df;color:#183e33}
.publiccover .title{font-size:clamp(36px,5vw,65px);line-height:.9;font-weight:bold;letter-spacing:-.06em;position:relative}
.publiccover .gridart{position:absolute;right:16px;top:50px;width:150px;height:170px;background:repeating-linear-gradient(0deg,transparent 0 13px,#71998b 14px 15px),repeating-linear-gradient(90deg,transparent 0 13px,#71998b 14px 15px);transform:skewY(-15deg);opacity:.48}
.casefoot{padding:18px;display:flex;justify-content:space-between;gap:16px;align-items:start}
.casefoot b{font-size:21px;letter-spacing:-.045em}
.casefoot p{font-size:14px;color:var(--muted)}
.arrow{font-size:27px;color:var(--signal);line-height:1}
.services{border-top:1px solid var(--line)}
.service{display:grid;grid-template-columns:55px 1.1fr .85fr auto;gap:24px;align-items:center;border-bottom:1px solid var(--line);padding:24px 0}
.service p{color:var(--muted);max-width:340px}
.service:hover h3{color:var(--signal)}
.toolgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tool{border:1px solid var(--line);padding:30px;display:flex;flex-direction:column;gap:18px;align-items:start;background:var(--white)}
.tool p{color:var(--muted);max-width:440px}
.tool .action{margin-top:auto}
.public{background:#dce7e1;padding:48px;display:grid;grid-template-columns:1.25fr .75fr;gap:32px;align-items:center;margin-bottom:94px}
.public p{margin:18px 0}
.publicaside{border-left:1px solid #a7bdb0;padding-left:24px}
.publicaside li{padding:15px 0;border-bottom:1px solid #a7bdb0;font-weight:bold}
.closing{background:var(--dark);color:var(--white);padding:65px 0}
.closing .secthead p{color:#c5c6bc}
.closing .outline{border-color:#c5c6bc;color:var(--white)}
.closing .outline:hover{background:white;color:var(--ink)}
.closing h2{max-width:850px}
.footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #51564d;margin-top:45px;padding-top:20px;color:#c5c6bc;font-size:13px}
.mobilemenu{display:none;position:relative}
.mobilemenu summary{cursor:pointer;font-size:13px;font-weight:bold}
.mobilemenu nav{position:absolute;right:0;top:35px;background:var(--white);border:1px solid var(--line);z-index:5;width:190px;padding:10px;display:grid;gap:9px}
.mobilemenu a{padding:7px;font-size:14px}
.smallaction{font-size:13px;font-weight:bold}
.casefoot a{display:block}
.casefoot a:hover{text-decoration:underline}
@media(max-width:1000px){.wrap{width:calc(100% - 48px)}
.navlinks{gap:12px}
.hero{gap:24px}
.proof{margin-bottom:70px}
.section{padding-bottom:70px}
}
@media(max-width:760px){.wrap{width:calc(100% - 32px)}
.nav{height:66px;gap:10px}
.brand{font-size:23px}
.hero{grid-template-columns:1fr;padding:35px 0 30px;gap:28px}
.hero h1{font-size:clamp(49px,11vw,76px)}
.intro{font-size:17px;margin:19px 0}
.eyebrow{margin-bottom:20px}
.proof{grid-template-columns:1fr 1fr;margin-bottom:60px}
.proof>div{padding:14px 8px!important;border-bottom:1px solid var(--line)}
.proof>div:nth-child(2){border-right:0}
.proof>div:nth-child(n+3){border-bottom:0}
.secthead,.cases,.toolgrid,.public{grid-template-columns:1fr}
.secthead p{justify-self:start}
.section{padding-bottom:60px}
.cover{min-height:220px}
.service{grid-template-columns:25px 1fr auto;gap:12px;padding:19px 0}
.service p{grid-column:2;grid-row:2;font-size:14px}
.service .arrow{grid-column:3;grid-row:1}
.public{padding:25px;margin-bottom:60px}
.publicaside{padding-left:0;border-left:0}
.tool{padding:22px}
.closing{padding:45px 0}
.footer{flex-wrap:wrap}
.labtop{padding:10px}
.tabs .labtab{font-size:11px}
.heroactions .action{gap:13px;padding:12px}
.note{font-size:11px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}

@font-face {
    font-family: "Golos Text";
    src: url("fonts/golos-cyrillic-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: "Golos Text";
    src: url("fonts/golos-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    src: url("fonts/golos-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    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;
}

:root { --public: #dce7e1; }
[hidden] { display: none !important; }
body { overflow-wrap: anywhere; }
h2, h3, .cover .title { white-space: pre-line; }
input, textarea, select { font: inherit; }
a, button, .service { transition: background-color .2s, color .2s, border-color .2s; }
summary:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 9; padding: 10px 16px; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.brand { flex: 0 0 auto; white-space: nowrap; font-weight: 750; letter-spacing: -.07em; }
.brandline { display: block; font-size: 8px; letter-spacing: .12em; margin-top: 6px; }
.navside, .languages { display: flex; align-items: center; gap: 12px; }
.navside { flex: 0 0 auto; }
.languages { font: 11px/1.5 ui-monospace, Consolas, monospace; gap: 8px; white-space: nowrap; }
.languages a, .languages > span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 32px; }
.languages a { text-decoration: underline; text-underline-offset: 3px; }
.languages [aria-current] { color: var(--muted); }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; }
.mobilemenu summary { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; list-style: none; }
.mobilemenu summary::-webkit-details-marker { display: none; }
.mobilemenu nav { top: 46px; width: 220px; gap: 0; }
.mobilemenu:not([open]) nav { display: none; }
.mobilemenu nav a { display: flex; align-items: center; min-height: 44px; }
.hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.hero h1 { overflow-wrap: normal; }
.heroactions .action { gap: 8px; }
html[lang="kk"] .hero h1 { font-size: clamp(44px, 5.6vw, 90px); }
.tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabs .labtab { min-height: 48px; font-weight: 500; line-height: 1.25; }
.tabs .labtab:hover:not([data-active]) { background: var(--white); }
.labbottom { min-height: 70px; }
.labbottom p { max-width: 460px; }
.labbottom a { align-self: center; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: -8px; }
.labbottom a:hover { background: var(--paper); }
.layer-labels .selected { fill: var(--signal); font-weight: 700; }
.case-ink { isolation: isolate; }
.case-ink .title { font-size: clamp(44px, 7.6vw, 112px); }
.cover:has(.case-photo) { padding: 0; }
.case-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.all-projects { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; min-height: 44px; }
.service:hover { background: var(--white); }
.service:hover .arrow { transform: translateX(3px); }
.service .arrow { transition: transform .2s; }
.tool:nth-child(even) { background: transparent; }
.public { background: var(--public); }
.public-kicker { color: #365d4d; margin-bottom: 15px; }
.publicaside { list-style: none; margin: 0; }
.publicaside a { display: inline-flex; align-items: center; min-height: 44px; }
.founder { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding: 32px 0; border-block: 1px solid var(--line); }
.founder .mono { margin-bottom: 16px; }
.founder p { max-width: 470px; margin-bottom: 20px; }
.price-matrix { border-top: 1px solid var(--line); margin: 0 0 20px; }
.price-matrix > div { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.price-matrix dt, .price-matrix dd { margin: 0; font-weight: 650; }
.price-matrix dd { text-align: right; }
.price-matrix small { font-weight: 400; color: var(--muted); }
.closing .secthead .signal { color: #e9a38d; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.closing #request { padding: 0; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; font-style: normal; }
.contact-links .action { gap: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.request-form label { display: block; margin: 0 0 4px; font-size: 14px; }
.request-form input:not([type="checkbox"]), .request-form textarea { display: block; width: 100%; min-height: 48px; border: 1px solid #777a70; border-radius: 0; background: #292c27; color: var(--white); padding: 10px; }
.request-form textarea { min-height: 100px; resize: vertical; }
.request-form > label { margin-top: 12px; }
.form-hint { color: #c5c6bc; font-size: 13px; margin: 8px 0 12px; }
.consent { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 44px; margin-bottom: 12px; font-size: 14px; }
.consent input { accent-color: var(--signal); height: 20px; width: 20px; margin: 0; }
.consent label { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.consent a, .footer a { text-decoration: underline; text-underline-offset: 4px; }
.request-form .button { display: inline-flex; align-items: center; min-height: 51px; padding: 10px 19px; background: var(--white); color: var(--ink); border: 1px solid var(--white); font-weight: 700; }
.request-form .button:hover { background: #e9a38d; border-color: #e9a38d; }
.error, .notice { padding: 15px; margin-bottom: 16px; border-left: 4px solid var(--signal); background: var(--white); color: var(--ink); }
.notice { border-color: #71998b; }
.closing :focus-visible { outline-color: #e9a38d; }
.footer nav { display: flex; flex-wrap: wrap; gap: 3px 15px; }

@media (max-width: 760px) {
    .navside { gap: 6px; }
    .nav .brand { font-size: 23px; }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: clamp(41px, 12.55vw, 76px); }
    html[lang="kk"] .hero h1 { font-size: clamp(30px, 9.3vw, 60px); }
    .labcanvas .layer.selected { transform: none; }
    .tabs .labtab { min-height: 52px; padding-inline: 6px; }
    .founder, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .contact-links { justify-content: flex-start; }
    .case-ink .title { font-size: clamp(46px, 12vw, 78px); }
    .publicaside { padding-left: 0; }
    .closing .secthead { gap: 14px; }
}

@media (max-width: 365px) {
    .nav { gap: 6px; }
    .nav .brand { font-size: 19px; }
    .nav .brandline { font-size: 7px; }
    .mobilemenu summary { min-width: 40px; }
    .tabs .labtab { font-size: 10px; padding-inline: 4px; }
    .field-grid { grid-template-columns: minmax(0, 1fr); }
}

#work .cover picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.home-back-top { position: fixed; z-index: 8; right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); display: grid; place-items: center; width: 50px; height: 50px; background: var(--ink); color: var(--white); border: 1px solid var(--white); border-radius: 3px; font-size: 27px; box-shadow: 0 3px 16px #17191630; }
.home-back-top[hidden] { display: none; }
.home-back-top:hover { color: var(--white); background: var(--signal); }
#home-blog .article-list { margin-block: 18px 25px; }
@media(prefers-reduced-motion:no-preference) {
    .home-back-top:not([hidden]) { animation: back-top-in .22s ease-out both; }
    .home-back-top, .action, .textlink, .portfolio-topics a { transition: background-color .2s, color .2s, border-color .2s; }
    @keyframes back-top-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
}

.home-entry-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.home-entry-links a { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; font-size: .93rem; font-weight: 650; text-decoration: underline; text-underline-offset: .28em; }
.home-entry-links a:last-child { color: var(--audience-ink); }
.home-entry-links a:hover, .case-link:hover h3 { color: var(--signal); }
#services .service { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
#services .service p { max-width: 52ch; }
.home-government + #work { margin-top: clamp(44px, 7vw, 100px); }
.case-link { display: grid; height: 100%; grid-template-rows: auto 1fr; text-decoration: none; }
.case-link .casefoot h3 { margin: 4px 0 6px; font-size: clamp(19px, 2.2vw, 28px); line-height: 1.14; }
.case-link .casefoot .arrow { align-self: center; }
.case-link img { transition: transform .38s ease-out; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
    .case-link:hover img { transform: scale(1.025); }
}
@media (max-width:760px) {
    #services .service { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
    #services .service p { grid-column: 1; }
    #services .service .arrow { grid-column: 2; }
    .home-entry-links { margin-top: 8px; }
}
