:root {
  --bg: #f3efe6;
  --bg-2: #e7e1d4;
  --ink: #14191e;
  --ink-soft: #3c474f;
  --muted: #5d6972;
  --line: rgba(20, 25, 30, 0.12);
  --paper: #fffdf8;
  --dark: #10161c;
  --dark-2: #182229;
  --dark-3: #24313b;
  --ember: #e23b16;
  --ember-deep: #b4230c;
  --amber: #f0b27a;
  --ok: #1f8a5b;
  --shadow: 0 22px 50px rgba(16, 22, 28, 0.12);
  --header: 4.25rem;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --wrap: min(1120px, calc(100% - clamp(1.25rem, 4vw, 3rem)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember-deep);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

::selection {
  background: var(--ember);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: #10161c;
  color: #f6f3ec;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.logo img {
  height: 2rem;
  width: auto;
}

.logo:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: rgba(246, 243, 236, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--ember-deep);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

.hero {
  position: relative;
  color: #f6f3ec;
  background:
    radial-gradient(ellipse 55% 45% at 85% 0%, rgba(226, 59, 22, 0.35), transparent 62%),
    linear-gradient(180deg, #10161c 0%, #18242d 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 3.2rem 0 5.5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--amber);
}

.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  max-width: 14ch;
}

.lede,
.section-head p,
.hero-note,
.about-grid p,
.contact p {
  color: var(--ink-soft);
}

.hero .lede,
.hero-note {
  color: rgba(246, 243, 236, 0.78);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 42rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ember-deep);
  color: #fff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.hero-note {
  margin: 1.4rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
}

.hero-shot {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  min-width: 0;
  padding-bottom: 3.25rem;
}

.hero-shot .desk {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.38));
}

.hero-shot .phone,
.hero-shot .watch {
  position: absolute;
  z-index: 1;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.hero-shot .phone {
  left: 6%;
  bottom: 0;
  width: 21%;
}

.hero-shot .watch {
  right: 11%;
  bottom: 4.6rem;
  width: 18%;
}

.stats {
  margin-top: -2.6rem;
  position: relative;
  z-index: 2;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.stats-bar div {
  padding: 1.2rem 1.15rem 1.3rem;
}

.stats-bar div + div {
  border-left: 1px solid var(--line);
}

.stats-bar dt {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.stats-bar dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding-top: 1.5rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.55), rgba(231, 225, 212, 0.45));
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
.about-grid h2,
.contact h2,
.quote h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-head p:last-child {
  margin: 0.8rem 0 0;
}

.kicker-light {
  color: var(--amber);
}

.audience-grid,
.module-grid,
.links-grid {
  display: grid;
  gap: 0.9rem;
}

.audience-grid,
.module-grid {
  grid-template-columns: repeat(2, 1fr);
}

.audience,
.module-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.3rem;
}

.audience .num {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--ember);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.audience h3,
.module-grid h3,
.flow h3,
.panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.audience p,
.module-grid p,
.flow p,
.panel p,
.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.flow li {
  padding: 1.25rem 1rem 0 0;
}

.flow span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
}

.picker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.picker-nav {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.picker-tab {
  position: relative;
  flex: 1 0 auto;
}

.picker-tab input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.picker-tab span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 620;
  color: var(--ink-soft);
}

.picker-tab input:checked + span,
.picker-tab input:focus-visible + span {
  background: var(--ink);
  color: #fff;
}

.picker-stage {
  padding: 1.4rem 1.2rem 1.5rem;
}

.panel {
  display: grid;
  gap: 1.25rem 2rem;
}

.stab-mock {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.7rem;
  margin: 0.3rem 0 0;
}

.stab-mock img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.panel-meta {
  margin-top: 1rem !important;
  color: var(--ember-deep) !important;
  font-weight: 650;
  font-size: 0.92rem;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ticks li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ember);
}

.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.app-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 620;
}


.post-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0 0 1.6rem;
}

.post-gallery img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 16px;
}

.post-gallery .wide {
  grid-column: 1 / -1;
  height: auto;
  aspect-ratio: 3 / 2;
  object-position: center;
}

.highlights {
  display: grid;
  gap: 0.9rem;
}

.highlights article {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.3rem;
}

.highlights h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.highlights p,
.highlights li {
  color: var(--ink-soft);
}

.highlights p {
  margin: 0;
}

.highlights ul {
  margin: 0.85rem 0 1rem;
  padding-left: 1.1rem;
}

.highlights li + li {
  margin-top: 0.35rem;
}

.highlights a {
  margin-top: auto;
  font-weight: 650;
  color: var(--ember-deep);
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.6rem);
}

@supports selector(:has(*)) {
  .picker .panel {
    display: none;
  }

  .picker:has(#sol-osnova:checked) .panel-osnova,
  .picker:has(#sol-epv:checked) .panel-epv,
  .picker:has(#sol-stab:checked) .panel-stab,
  .picker:has(#sol-app:checked) .panel-app {
    display: grid;
  }
}

.section-head-row {
  max-width: none;
  display: grid;
  gap: 0.8rem;
}

.more-link {
  margin: 1.25rem 0 0;
}

.more-link a,
.section-head a {
  font-weight: 650;
  color: var(--ember-deep);
}

.links-grid {
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-grid li {
  padding: 1.1rem 0.2rem 1.15rem;
  border-top: 1px solid var(--line);
}

.links-grid strong,
.contact-list a,
.site-footer a {
  display: block;
}

.links-grid strong {
  font-size: 1.05rem;
}

.links-grid span,
.contact-list span,
.timeline span,
.quote footer span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.quote {
  background:
    radial-gradient(ellipse 40% 80% at 0% 100%, rgba(226, 59, 22, 0.35), transparent 60%),
    var(--dark);
  color: #f6f3ec;
  padding: 4.5rem 0;
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 480;
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 22em;
}

.quote footer {
  margin-top: 1.4rem;
}

.quote footer strong {
  display: block;
}

.about-grid,
.faq-layout,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.about-grid p + p {
  margin-top: 0.9rem;
}

.timeline {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  padding: 0 0 1.3rem 1.2rem;
  border-left: 1px solid var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline span {
  color: var(--ember-deep);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.8rem 0;
  cursor: pointer;
  font-weight: 640;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 1.6rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ember);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  margin: 0 0 1rem;
  max-width: 46rem;
  color: var(--ink-soft);
}

.contact {
  background: var(--dark-2);
  color: #f6f3ec;
  padding: 4.5rem 0;
}

.contact p {
  color: rgba(246, 243, 236, 0.75);
  max-width: 36rem;
}

.contact .btn {
  margin-top: 0.6rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: end;
  gap: 0.9rem;
}

.contact-list a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 620;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.contact-list a:hover {
  color: var(--amber);
}

.site-footer {
  background: var(--dark);
  color: rgba(246, 243, 236, 0.78);
  padding: 3rem 0 1.4rem;
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0.28rem 0;
}

.site-footer a:hover,
.logo-foot:hover {
  color: #fff;
}

.site-footer p {
  margin: 0.8rem 0 0;
  max-width: 26rem;
  font-size: 0.95rem;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

@media (min-width: 860px) {
  .hero-grid,
  .panel,
  .about-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .faq-layout,
  .about-grid {
    align-items: start;
  }

  .section-head-row {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }

  .highlights {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .stab-mock {
    grid-template-columns: 1fr 1fr;
  }

  .post-gallery {
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 1rem;
  }

  .post-gallery img,
  .post-gallery .wide {
    height: 26rem;
    grid-column: auto;
  }

  .post-gallery .wide {
    object-position: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .hero-grid {
    padding: 4.5rem 0 6.5rem;
    min-height: calc(100svh - var(--header));
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 2;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.8rem 1.25rem 2rem;
    background: #10161c;
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.is-open {
    z-index: 40;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle span:not(.sr-only) {
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  .site-nav a {
    min-height: 2.9rem;
    display: flex;
    align-items: center;
    font-size: 1.08rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin-top: 0.8rem;
    justify-content: center;
    border: 0;
  }

  .stats-bar,
  .flow,
  .links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar div:nth-child(odd) {
    border-left: 0;
  }

  .stats-bar div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stats-bar div:nth-child(3),
  .stats-bar div:nth-child(4) {
    border-left: 0;
  }

  .stats-bar div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .flow {
    border-top: 0;
  }

  .flow li {
    padding: 1rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .audience-grid,
  .module-grid,
  .stats-bar,
  .flow,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar div,
  .stats-bar div:nth-child(even) {
    border-left: 0;
  }

  .stats-bar div + div {
    border-top: 1px solid var(--line);
  }

  .footer-base {
    flex-direction: column;
  }

  h1 {
    max-width: 100%;
    font-size: 2rem;
  }

  .hero-copy,
  .hero-shot {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-nav {
    transition: none;
  }
}
