:root {
  --bg: #f7f8fb;
  --paper: #ffffff;
  --soft: #eef2f7;
  --line: #d9e0ea;
  --text: #172033;
  --muted: #5f6b7a;
  --dark: #0f172a;
  --blue: #173b57;
  --blue-2: #225d80;
  --shadow: 0 24px 80px rgba(15, 23, 42, .10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  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;
  padding: 18px clamp(20px, 4vw, 58px);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(217, 224, 234, .75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark.large {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  font-size: 26px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314056;
  font-size: 14px;
}

.site-nav a {
  transition: color .2s ease, transform .2s ease;
}

.site-nav a:hover {
  color: var(--blue-2);
}

.nav-cta {
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff !important;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(46px, 7vw, 86px) clamp(20px, 4vw, 58px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--dark);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions, .center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

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

.button.secondary.dark {
  border-color: #c6d0dd;
  background: #fff;
}

.button.secondary.light {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
}

.workspace-visual {
  min-width: 0;
}

.desk {
  position: relative;
  min-height: 620px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 22% 18%, rgba(34, 93, 128, .13), transparent 27%),
    radial-gradient(circle at 75% 35%, rgba(15, 23, 42, .08), transparent 28%),
    linear-gradient(135deg, #ffffff, #edf2f7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.laptop {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 78%;
  max-width: 690px;
  transform: translate(-50%, -50%);
}

.laptop-screen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 390px;
  padding: 22px;
  border: 18px solid #101827;
  border-bottom-width: 28px;
  border-radius: 26px 26px 18px 18px;
  background: #f4f6fa;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
}

.laptop-base {
  width: 88%;
  height: 22px;
  margin: 0 auto;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(90deg, #cbd5e1, #f8fafc, #cbd5e1);
}

.topic-card {
  position: relative;
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 14px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  isolation: isolate;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,.08), rgba(15,23,42,.78)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.16) 0 1px, transparent 1px 12px);
  z-index: -1;
  opacity: .92;
}

.card-graph { background: linear-gradient(135deg, #425466, #1d4f73); }
.card-doc { background: linear-gradient(135deg, #e8edf4, #4d657d); }
.card-digital { background: linear-gradient(135deg, #0f172a, #225d80); }
.card-video { background: linear-gradient(135deg, #223047, #6d7686); }
.card-cv { background: linear-gradient(135deg, #f5f1e8, #41506a); }
.card-consult { background: linear-gradient(135deg, #19324a, #61758c); }

.topic-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.topic-card span {
  max-height: 0;
  opacity: 0;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  line-height: 1.35;
  transition: max-height .25s ease, opacity .25s ease;
}

.topic-card:hover span,
.topic-card:focus span {
  max-height: 80px;
  opacity: 1;
}

.phone {
  position: absolute;
  left: 6%;
  bottom: 12%;
  width: 120px;
  height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 10px solid #121826;
  border-radius: 28px;
  background: linear-gradient(160deg, #0f172a, #183c59);
  color: #fff;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .24);
  transform: rotate(-7deg);
}

.phone-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.32);
}

.notepad {
  position: absolute;
  right: 8%;
  bottom: 13%;
  width: 150px;
  height: 190px;
  border-radius: 18px;
  background:
    linear-gradient(#fff 0 14%, transparent 14%),
    repeating-linear-gradient(#f7f8fb 0 22px, #d9e0ea 23px 24px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
  transform: rotate(6deg);
}

.notepad span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #8b98a9;
  font-weight: 800;
}

.pen {
  position: absolute;
  left: 38%;
  bottom: 9%;
  width: 260px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827 0 70%, #c0a062 70% 78%, #0f172a 78% 100%);
  transform: rotate(-5deg);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .18);
}

.section {
  padding: clamp(58px, 8vw, 100px) clamp(20px, 4vw, 58px);
}

.section-soft {
  background: #fff;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 760px;
}

.section h2 {
  color: var(--dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.section-heading p,
.profile-layout p,
.cv-box p,
.contact-section p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .04);
}

.service-card .icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--blue);
  font-size: 22px;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 20px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
}

.proof-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 1180px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.proof-row div {
  padding: 26px;
  background: #fff;
}

.proof-row strong,
.proof-row span {
  display: block;
}

.proof-row strong {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 18px;
}

.proof-row span {
  color: var(--muted);
  font-size: 15px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.profile-card {
  display: grid;
  gap: 8px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.profile-card strong {
  margin-top: 18px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.2;
}

.profile-card small {
  color: var(--muted);
  font-size: 14px;
}

.video-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.center-action {
  justify-content: center;
  margin-top: 22px;
}

.cv-box {
  display: flex;
  max-width: 1040px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 30px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.cv-box div {
  max-width: 720px;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 38px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #173b57);
}

.contact-section h2,
.contact-section p,
.contact-section .eyebrow {
  color: #fff;
}

.contact-section p {
  max-width: 730px;
  color: rgba(255,255,255,.76);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: max-content;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 4vw, 58px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .desk {
    min-height: 540px;
  }

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

  .contact-section,
  .cv-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .brand small {
    max-width: 220px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
    border-radius: 12px;
    background: #f6f8fb;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -.05em;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 50px;
  }

  .workspace-visual {
    margin-inline: -8px;
  }

  .desk {
    min-height: auto;
    padding: 18px;
  }

  .laptop,
  .phone,
  .notepad,
  .pen {
    position: static;
    transform: none;
  }

  .laptop {
    width: 100%;
    max-width: none;
  }

  .laptop-screen {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
    border-width: 12px;
    border-bottom-width: 18px;
  }

  .topic-card {
    min-height: 104px;
  }

  .topic-card span {
    max-height: none;
    opacity: 1;
  }

  .phone,
  .notepad,
  .pen {
    display: none;
  }

  .service-grid,
  .proof-row,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .section-heading {
    text-align: left;
  }

  .section h2 {
    font-size: 32px;
  }

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