:root {
  --ink: #171417;
  --muted: #655b62;
  --paper: #faf7f8;
  --surface: #ffffff;
  --rose: #f0a8c0;
  --rose-strong: #b94e72;
  --lilac: #c0a8d8;
  --periwinkle: #a8a8d8;
  --olive: #484830;
  --sky: #6090c0;
  --line: #e8dde5;
  --soft-line: rgba(23, 20, 23, 0.12);
  --shadow: 0 18px 50px rgba(23, 20, 23, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links .nav-cta {
  padding: 9px 13px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.hero {
  min-height: 82svh;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(23, 20, 23, 0.98) 0%, rgba(23, 20, 23, 0.94) 54%, rgba(23, 20, 23, 0.55) 67%, rgba(23, 20, 23, 0.08) 100%),
    url("assets/images/mariia-hero.jfif");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, auto 138%;
  color: #fff;
}

.compact-hero {
  min-height: 68svh;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.button.primary {
  background: var(--rose);
  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.button.light {
  border-color: var(--soft-line);
  background: #fff;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 32px, var(--max));
  margin: -42px auto 0;
  background: var(--soft-line);
  border: 1px solid var(--soft-line);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 104px;
  padding: 22px;
  background: #fff;
}

.metric strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 96px 0;
}

.short-section {
  padding: 72px 0;
}

.section.alt {
  background: #fff;
}

.section.ink {
  background: var(--ink);
  color: #fff;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section.ink .section-kicker {
  color: var(--rose);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section.ink .lead,
.section.ink .muted {
  color: rgba(255, 255, 255, 0.74);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-item,
.article-card,
.timeline-item,
.contact-panel,
.quote-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-item {
  min-height: 220px;
  padding: 24px;
}

.service-item .label,
.article-card .label,
.article-meta,
.tag {
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-item p,
.timeline-item p,
.article-card p {
  margin-top: 12px;
  color: var(--muted);
}

.service-item ul {
  margin: 18px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.service-item li + li {
  margin-top: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.portrait {
  width: min(100%, 420px);
  justify-self: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 24px;
}

.timeline-item time,
.muted {
  color: var(--muted);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-transform: none;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
}

.process-step {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 28px;
  color: var(--rose);
  font-weight: 900;
}

.process-step p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin-top: 16px;
}

.article-card a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--rose-strong);
  font-weight: 900;
  text-decoration: none;
}

.banner-image {
  margin-top: 42px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.banner-image img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
}

.contact-band {
  padding: 72px 0;
  background: var(--olive);
  color: #fff;
}

.contact-panel {
  padding: clamp(26px, 5vw, 48px);
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.page-hero,
.article-hero {
  padding: 96px 0 56px;
  background: #fff;
}

.page-hero h1,
.article-hero h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
}

.page-hero p,
.article-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-row {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.article-row h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.article-row p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
}

.article-row a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--rose-strong);
  font-weight: 900;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 56px;
  align-items: start;
}

.article-body {
  font-size: 1.06rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 18px 0 0;
}

.article-body h2 {
  margin-top: 48px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.article-body h3 {
  margin-top: 28px;
  font-size: 1.18rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}

.article-body li + li {
  margin-top: 8px;
}

.article-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-aside img {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.article-aside p {
  color: var(--muted);
  font-size: 0.94rem;
}

.note {
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--rose-strong);
  background: #fff;
}

.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;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 78svh;
    background-image:
      linear-gradient(180deg, rgba(23, 20, 23, 0.72), rgba(23, 20, 23, 0.76)),
      url("assets/images/mariia-hero.jfif");
    background-position: center, 60% center;
    background-size: cover, cover;
  }

  .compact-hero {
    min-height: 68svh;
  }

  .metric-row,
  .grid-3,
  .split,
  .process,
  .article-grid,
  .contact-panel,
  .article-layout,
  .article-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    margin-top: 0;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 13px;
    font-size: 0.88rem;
  }

  .nav-links .nav-cta {
    padding: 8px 11px;
  }

  .hero-inner {
    padding: 72px 0 56px;
  }

  .page-hero h1,
  .article-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
    line-height: 0.98;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.1rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
    line-height: 1.06;
  }

  .article-row h2,
  .article-body h2 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
    line-height: 1.12;
  }

  .section {
    padding: 72px 0;
  }

  .button {
    width: 100%;
  }

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