:root {
  --bg: #fbfaf6;
  --bg-soft: #f3efe6;
  --ink: #1e2530;
  --ink-soft: #4a5260;
  --muted: #8a8d94;
  --accent: #2f5d4a;
  --accent-2: #c45a3c;
  --line: #e6e2d7;
  --gold: #b4894a;
  --max: 880px;
  --max-wide: 1180px;
  --serif: 'Lora', 'Source Serif Pro', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--sans);
  font-size: 13px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover { color: var(--accent); }

/* ===== LANGUAGE SWITCHER (заметный) ===== */
.lang-switch {
  display: inline-flex;
  background: var(--ink);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(30, 37, 48, 0.18);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  font: inherit;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 2px 6px rgba(196, 90, 60, 0.4);
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 72px 32px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-2);
  font-weight: 500;
}
.hero__lede {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 30em;
}
.hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.hero__meta span::before { content: '•'; margin-right: 10px; color: var(--accent); }
.hero__meta span:first-child::before { content: ''; margin: 0; }
.hero__photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(30,37,48,0.25);
  transform: rotate(0.5deg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
}

/* ===== ESSAY ===== */
.essay {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px 100px;
}
.essay__section {
  margin: 56px 0;
}
.essay__section-title {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 600;
}
.essay h2 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 28px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.essay h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  margin: 40px 0 16px;
  font-weight: 600;
}
.essay p { margin: 0 0 22px; }
.essay p.lede {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 32px;
}
.essay a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 93, 74, 0.3);
  transition: all .2s;
}
.essay a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.essay blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--accent-2);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.55;
}

.figure {
  margin: 56px -32px;
  text-align: center;
}
.figure img {
  width: 100%;
  max-width: 380px;
  border-radius: 3px;
  box-shadow: 0 18px 40px -18px rgba(30, 37, 48, 0.22);
  display: inline-block;
}
.figure figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin: 14px auto 0;
  letter-spacing: 0.01em;
  max-width: 520px;
  line-height: 1.55;
  font-style: italic;
}

/* Wide editorial photo — fills the column edge-to-edge with breathing room */
.figure--wide {
  margin: 64px -8% 56px;
}
.figure--wide img {
  max-width: none;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 28px 60px -25px rgba(30, 37, 48, 0.28);
}

/* Transparent product PNG — sits in the flow on the page background, no card */
.figure--product img {
  max-width: 360px;
  box-shadow: none;
  filter: drop-shadow(0 22px 24px rgba(30, 37, 48, 0.16));
}

@media (max-width: 820px) {
  .figure { margin: 36px 0; }
  .figure--wide { margin: 40px 0 32px; }
  .figure--product img { max-width: 280px; }
}

/* ===== CASE LINK CARDS ===== */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}
.case-card {
  display: block;
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none !important;
  border-bottom: 1px solid var(--line) !important;
  transition: all .25s ease;
  position: relative;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(30,37,48,0.18);
  border-color: var(--accent) !important;
}
.case-card__tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 14px;
}
.case-card__title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 500;
}
.case-card__lede {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.case-card__stat {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.case-card__stat span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  font-weight: 500;
  margin-top: 4px;
}
.case-card__arrow {
  position: absolute;
  bottom: 24px;
  right: 26px;
  font-size: 22px;
  color: var(--accent);
  font-family: var(--sans);
  transition: transform .25s;
}
.case-card:hover .case-card__arrow { transform: translateX(4px); }

/* ===== CASE PAGE ===== */
.case-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 32px;
}
.case-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: fit-content;
  box-shadow: 0 4px 14px -8px rgba(30, 37, 48, 0.18);
}
.case-hero__brand-logo {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.case-hero__brand-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.case-figure {
  margin: 48px -32px;
}
.case-figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
  box-shadow: 0 20px 50px -20px rgba(30, 37, 48, 0.3);
}
.case-figure figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.02em;
  font-style: italic;
}
@media (max-width: 820px) {
  .case-hero__brand { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .case-hero__brand-logo { height: 28px; }
  .case-hero__brand-label { padding-left: 0; border-left: none; }
  .case-figure { margin: 32px 0; }
}
.case-hero__back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}
.case-hero__back:hover { color: var(--accent); }
.case-hero__tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 16px;
}
.case-hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.case-hero__lede {
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.case-stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.case-stat:last-child { border-right: none; }
.case-stat__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.case-stat__value {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.2;
}

/* ===== RESUME PAGE ===== */
.resume {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.resume__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 40px;
}
.resume__name {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.resume__title {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.resume__contacts {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.resume__contacts a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.resume__contacts a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.resume__photo {
  width: 130px;
  height: 165px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(30,37,48,0.3);
  flex-shrink: 0;
}
.resume__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.resume__downloads {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: -18px 0 36px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.resume__downloads-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  align-self: center;
  margin-right: 4px;
}
.resume__dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all .2s;
}
.resume__dl-btn:hover {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -4px rgba(47, 93, 74, 0.4);
}
.resume__dl-btn--primary {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}
.resume__dl-btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 6px 14px -4px rgba(196, 90, 60, 0.4);
}
.resume__dl-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

@media print {
  .resume__downloads { display: none !important; }
}

.resume__block { margin-bottom: 40px; }
.resume__section-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.resume__summary {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.resume__job {
  margin-bottom: 28px;
}
.resume__job-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.resume__job-company {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.resume__job-period {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.resume__job-role {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.resume__job-roles {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.6;
}
.resume__job-roles span {
  display: block;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  margin-bottom: 4px;
}
.resume__job p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: var(--ink-soft);
}
.resume__bullets {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}
.resume__bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.resume__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--accent-2);
}
.resume__bullets strong {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92em;
  letter-spacing: 0.01em;
}
.resume__cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.resume__case-pill {
  display: block;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  border-radius: 0 4px 4px 0;
  transition: all .2s;
}
.resume__case-pill:hover {
  background: #fff;
  border-left-color: var(--accent-2);
  transform: translateX(3px);
}
.resume__case-pill strong { display: block; color: var(--accent-2); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

.resume__edu {
  margin-bottom: 18px;
}
.resume__edu-period {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.resume__edu-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.4;
}
.resume__edu-spec {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

.resume__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resume__tag {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}

.resume__lang-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 14px;
}
.resume__lang-row > div { color: var(--ink-soft); }
.resume__lang-row b { color: var(--ink); font-weight: 600; }

.resume__refs { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.resume__refs ul { list-style: none; padding: 0; margin: 8px 0 0; }
.resume__refs li::before { content: '— '; color: var(--accent); }

@media print {
  body { font-size: 11pt; }
  .site-header, .site-footer, .lang-switch { display: none !important; }
  .resume { padding: 0; max-width: none; }
  .resume__case-pill { background: transparent; }
  a { color: inherit !important; border-bottom: none !important; }
}

@media (max-width: 820px) {
  .resume { padding: 32px 20px 60px; }
  .resume__header { grid-template-columns: 1fr; gap: 20px; }
  .resume__photo { width: 110px; height: 140px; }
  .resume__name { font-size: 32px; }
  .resume__cases { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 32px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 14px;
}
.site-footer a:hover { color: var(--accent); }
.site-footer__contacts {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink);
}
.site-footer__contacts a {
  color: var(--accent);
  margin: 0 12px;
  font-weight: 500;
}
.site-footer__contacts a:hover { color: var(--accent-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .site-header__inner { padding: 14px 20px; gap: 12px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .site-nav__link { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 36px;
  }
  .hero h1 { font-size: 38px; }
  .hero__lede { font-size: 17px; }
  .essay { padding: 16px 20px 60px; }
  .essay h2 { font-size: 26px; }
  .essay p.lede { font-size: 18px; }
  .figure { margin: 32px 0; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-hero { padding: 36px 20px 24px; }
  .case-hero h1 { font-size: 30px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .case-stat:last-child { border-bottom: none; }
}
