
:root {
  --ink: #173a40;
  --muted: #7f9190;
  --line: #aeb8b7;
  --paper: #f7f7f5;
  --white: #ffffff;
  --dark: #07191d;
  --gold: #c6a521;
  --accent: #2c5960;
  --footer: #9aa6a4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

a { color: inherit; }

.topbar {
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 18px;
  background: #050505;
  color: white;
  border-bottom: 1px solid #1e1e1e;
}

.menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 22px;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: #d7d7d7;
  font-size: .9rem;
}

.nav a:hover { color: white; }

.share {
  text-decoration: none;
  font-size: 1.2rem;
  color: white;
}

.hero-strip,
.divider-strip {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(198,165,33,.15), transparent 33%),
    linear-gradient(135deg, #10282d 0%, #0a1d21 58%, #071317 100%);
}

.hero-strip { height: 145px; }

.hero-strip::before,
.divider-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(255,255,255,.025) 11% 12%, transparent 12% 76%, rgba(255,255,255,.02) 76% 77%, transparent 77%),
    linear-gradient(120deg, transparent 0 70%, rgba(198,165,33,.45) 70% 70.3%, transparent 70.3%);
}

.hero-accent {
  position: absolute;
  width: 2px;
  background: var(--gold);
  opacity: .85;
  transform: rotate(38deg);
}

.hero-accent-left {
  height: 220px;
  left: 17%;
  top: -70px;
}

.hero-accent-right {
  height: 220px;
  right: 9%;
  top: -80px;
}

.section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.profile {
  padding: 52px 0 36px;
}

.profile-heading {
  text-align: center;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .17em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
  color: var(--ink);
}

.role {
  margin: 10px 0 0;
  color: #8c9b99;
  font-weight: 600;
  letter-spacing: .02em;
}

.intro-card {
  width: min(720px, 100%);
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
}

.intro-card p {
  margin: 0;
  color: #303e40;
  font-size: 1.02rem;
}

.quote-mark {
  font: 700 5rem/1 Georgia, serif;
  color: #92a29f;
  transform: translateY(-10px);
}

.quote-mark.closing {
  text-align: right;
  transform: translateY(25px);
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 62px;
  padding: 42px 0 70px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: .93rem;
  font-weight: 500;
  color: #869594;
}

.section-icon {
  color: #6b8485;
}

.cv-item {
  margin: 0 0 18px;
}

.cv-item h3 {
  margin: 0;
  font-size: 1.03rem;
}

.cv-item p {
  margin: 2px 0;
  color: #365157;
}

.period {
  color: #607678 !important;
  font-size: .9rem;
}

.divider-strip {
  height: 170px;
  display: grid;
  place-items: center;
}

.monogram {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.76);
  position: relative;
  z-index: 2;
}

.monogram::after {
  content: "";
  width: 70px;
  height: 6px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(-62deg) translate(12px, -2px);
  transform-origin: center;
}

.contacts {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: 64px;
  padding: 54px 0 72px;
}

.contacts h2 {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 2.1rem;
}

.contacts-info > p {
  color: #44585b;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 16px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.contact-note {
  font-size: .86rem;
  color: #798a89 !important;
}

.contact-form {
  display: grid;
  gap: 13px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: .76rem;
  color: #657777;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #81999d;
  background: white;
  padding: 12px 13px;
  font: inherit;
  color: #24393d;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(44,89,96,.08);
}

.privacy {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
  line-height: 1.25;
}

.privacy input {
  width: auto;
  margin-top: 2px;
}

.contact-form button {
  width: 180px;
  justify-self: end;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  color: #607678;
  font-size: .85rem;
}

.footer {
  min-height: 145px;
  padding: 34px max(22px, calc((100vw - 1120px) / 2));
  background: var(--footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.footer div {
  display: grid;
  gap: 3px;
}

.footer span {
  font-size: .9rem;
}

@media (max-width: 780px) {
  .nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #050505;
    border-top: 1px solid #222;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 13px 18px;
    border-bottom: 1px solid #1f1f1f;
  }

  .hero-strip { height: 95px; }

  .intro-card {
    grid-template-columns: 34px 1fr 34px;
  }

  .quote-mark { font-size: 3.7rem; }

  .cv-grid,
  .contacts {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .cv-grid { padding-top: 26px; }

  .contact-form button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
}
