﻿:root {
  color-scheme: dark;
  --canvas: #202126;
  --panel: #292b31;
  --edge: #51535c;
  --ink: #f3f2f4;
  --muted: #c2c2cb;
  --blue: #d7d8e2;
  --sky: var(--canvas);
}
body { background: var(--canvas); color: var(--ink); font-family: Onest, Arial, sans-serif; }
.wrap { width: min(92%, 1440px); }
body header, body footer { background: #1b1c20; color: var(--ink); border-color: var(--edge); box-shadow: none; }
header a, footer a { color: inherit; }
main > section, main > section.sky {
  background: var(--canvas); color: var(--ink);
  padding-block: clamp(3.5rem, 7vw, 7rem); border: 0;
}
main > section + section > .wrap { position: relative; }
main > section + section > .wrap::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc(-1 * clamp(3.5rem, 7vw, 7rem)); height: 1px; background: var(--edge);
}
main > .sky:first-child {
  background: radial-gradient(ellipse at 80% 15%, #454651 0%, transparent 57%), var(--canvas);
}
.sky:first-child .split { align-items: start; gap: clamp(2rem, 5vw, 6rem); }
h1,h2,h3 { font-family: Onest, Arial, sans-serif; font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
main .sky:first-child h1 { font-size: clamp(2.35rem, 4.8vw, 5rem); text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 4.3rem); }
body .label, .offer-tag { color: var(--muted); background: none; padding: 0; letter-spacing: .1em; text-transform: uppercase; font-size: .875rem; }
body :is(.card,.faq details,.demo,.project-window,.lead-panel,.offer-discount,.ad-note),
body .offer-packs :is(.offer-start,.offer-revive) {
  color: var(--ink); background: var(--panel); border: 1px solid var(--edge); border-radius: 2px; box-shadow: none;
}
body .offer-packs .offer-start { background: #33353d; }
body .demo { position: relative; padding: 0; overflow: visible; }
body .demo img { display: block; width: 100%; border-radius: 0; box-shadow: none; }
.demo figcaption { padding: clamp(1rem, 2vw, 1.8rem); }
.demo::after { content: ""; position: absolute; width: 22px; aspect-ratio: 1; right: -5px; top: -5px; background: linear-gradient(135deg,#f1f1f5,#9699a5); pointer-events: none; }
body .case-preview, body .next-work, body .portrait, body .process-steps li::before { background: #32343b; color: var(--ink); border-radius: 0; }
body .case-preview em,body .case-preview small,body .offer-free,body .offer-start .offer-tag,
body .offer-packs li::before,body .project-window .next-work small { color: var(--muted); }
body .next-work:hover { background: #40424b; }
body .btn, body button[type=submit] { border: 1px solid #e0e0e7; border-radius: 2px; background: #e0e0e7; color: #202126; box-shadow: none; }
body .btn.alt { background: transparent; color: var(--ink); border-color: #81838e; }
body .btn:hover,body button[type=submit]:hover { background: #fff; color: #202126; }
body .case-proof,body .case-proof:hover { color: var(--ink); background: transparent; border-radius: 0; border-bottom: 1px solid #888a94; padding-inline: 0; }
body .process-steps li { border-color: var(--edge); }
body form :is(input,textarea,select),body .lead-close { color: var(--ink); background: #202126; border-color: #737581; }
body form :is(input,textarea)::placeholder { color: #b6b7c1; }
body :focus-visible { outline: 2px solid #e5e5ed; outline-offset: 3px; }
@media(max-width:760px){.wrap{width:90%}.split{grid-template-columns:minmax(0,1fr)}.sky:first-child h1{overflow-wrap:break-word}}

/* Reading sections share a light surface and the same typography as the cases. */
:is(#services, #process, #about) {
  color-scheme: light;
  --canvas: #eeeff2;
  --ink: #24252a;
  --blue: #31333c;
  --muted: #52545e;
  --panel: #fafafc;
  --edge: #c6c8d0;
  background: var(--canvas);
  color: var(--ink);
}
#services .offer-packs :is(.offer-start, .offer-revive) { background: var(--panel); color: var(--ink); }
#services .offer-start :is(h3,p,li,.offer-tag) { color: inherit; }
#services .btn { background: #26272d; color: white; }
#services .btn:hover { background: #41434d; }
#about .portrait, #process .process-steps li::before { background: #dedfe5; color: #282931; }
#about { padding-top: clamp(2rem,4vw,4rem); }
#about .wrap::before { top: calc(-1 * clamp(2rem,4vw,4rem)); }
#services .wrap::before, #work .wrap::before, #process .wrap::before, #contact .wrap::before { display:none; }
header .btn.header-telegram, .sky:first-child .actions .btn.alt {
  background: transparent; border-color: transparent; color: var(--ink);
  text-decoration: underline; text-decoration-color: #888a94; text-underline-offset: .32em;
}
header .btn.header-telegram:hover, .sky:first-child .actions .btn.alt:hover { text-decoration-color: currentColor; }
.case-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,4vw,4rem); margin-block: 2rem; }
.case-image img { display: block; width: 100%; height: auto; border: 1px solid var(--edge); }
@media(max-width:760px) { .case-layout { grid-template-columns: 1fr; } }

#services .card.offer-featured {
  --ink: #f3f2f4;
  --muted: #c9c9d2;
  --blue: #f3f2f4;
  color: var(--ink);
  background: #292b31;
  border-color: #464850;
}
#services .offer-featured .small,
#services .offer-featured .offer-tag { color: var(--muted); }
.offer-enquiry { display:inline-block; margin-top:1rem; padding-block:.4rem; color:inherit; text-decoration:underline; text-underline-offset:.3em; }
