:root {
  color-scheme: light;
  --ink: #14213d;
  --text: #273143;
  --muted: #657184;
  --line: #d9e2ec;
  --paper: #f7fafc;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #c47a1b;
  --steel: #334155;
  --shadow: 0 20px 55px rgba(20, 33, 61, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.preview-toolbar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(12px, 2.4vw, 30px);
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

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

.section,
.hero,
.contact {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 64px);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
}

.section-band {
  max-width: none;
  background:
    linear-gradient(rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbfd 0%, #eef7f6 58%, #fff8ee 100%);
  background-size: 26px 26px, 26px 26px, auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: clamp(70px, 10vw, 126px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.page-hero p {
  max-width: 980px;
}

.page-hero p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--steel);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
}

h2 {
  max-width: 850px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--steel);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
}

.button-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 14px;
  margin: 38px 0 0;
  padding: 0;
}

.hero-stats div {
  min-width: 160px;
  padding: 16px 18px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cv-preview {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}

.preview-toolbar a {
  color: #a7f3d0;
}

.cv-preview object {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.offer-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(20, 33, 61, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.offer-panel h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.offer-panel p {
  color: var(--steel);
}

.panel-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 26px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--steel);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.18em;
  color: var(--teal);
  content: "✓";
  font-weight: 950;
}

.section-heading {
  margin-bottom: 30px;
}

.intro p,
.contact p {
  max-width: 900px;
  margin: 0;
  color: var(--steel);
  font-size: 1.16rem;
}

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

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

.solution-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.07);
}

.solution-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f6 100%);
  border-color: rgba(15, 118, 110, 0.22);
}

.solution-card h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.solution-card p {
  color: var(--muted);
}

.card,
.credential-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.card {
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--amber);
  font-weight: 950;
}

.card p,
.credential-grid p,
.timeline-list p,
.project-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-list article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.compact-list strong {
  color: var(--ink);
}

.compact-list span,
.muted-note {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 750;
}

.project-list,
.timeline-list {
  display: grid;
  gap: 14px;
}

.project-item,
.timeline-list article {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.project-label,
.timeline-list span {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-list article {
  border-left: 4px solid var(--teal);
}

.credentials {
  padding-top: 0;
}

.credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-grid article {
  min-height: 150px;
}

.contact {
  border-top: 1px solid var(--line);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.45fr);
  gap: 36px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--steel);
  font-style: normal;
  font-weight: 750;
}

.contact-card a {
  color: var(--teal-dark);
}

.contact-card.large {
  min-height: 100%;
}

.brief-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.brief-card p {
  color: var(--steel);
}

.contact-page,
.cv-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cv-layout {
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 0.42fr);
}

.resume-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.07);
}

.resume-summary h2 {
  font-size: 2rem;
}

.resume-summary h3 {
  margin-top: 26px;
}

.resume-summary p {
  color: var(--steel);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .contact-inner,
  .contact-page,
  .cv-layout,
  .split-section,
  .project-item,
  .timeline-list article {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .cv-preview {
    min-height: 460px;
  }

  .cv-preview object {
    height: 460px;
  }

  .service-grid,
  .skill-columns,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: auto;
  }

  .brand {
    white-space: normal;
  }

  .nav-links {
    gap: 18px;
  }

  .section,
  .hero,
  .contact {
    padding: 52px 18px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-stats div,
  .service-grid,
  .skill-columns,
  .offer-grid,
  .credential-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .solution-card.featured {
    grid-column: auto;
  }

  .card,
  .solution-card,
  .brief-card,
  .resume-summary,
  .credential-grid article,
  .project-item,
  .timeline-list article,
  .contact-card {
    padding: 20px;
  }

  .cv-preview {
    min-height: 390px;
  }

  .cv-preview object {
    height: 390px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
