:root {
  --milk: #f5f1ea;
  --paper: #fffdf8;
  --ink: #3a3936;
  --muted: #6d6962;
  --olive: #747b5f;
  --olive-dark: #586047;
  --lilac: #b7a7b8;
  --clay: #9a8e84;
  --line: rgba(58, 57, 54, 0.14);
  --soft-shadow: 0 18px 55px rgba(58, 57, 54, 0.1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

section {
  scroll-margin-top: 92px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(22px, 5vw, 72px);
  background: rgba(245, 241, 234, 0.9);
  border-bottom: 1px solid rgba(58, 57, 54, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  min-width: 180px;
  color: var(--olive-dark);
}

.brand span {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.header-cta,
.button.primary {
  padding: 0 26px;
  background: var(--olive);
  color: var(--paper);
}

.button.ghost {
  padding: 0 0 3px;
  border-radius: 0;
  border-bottom: 1px solid var(--clay);
  color: var(--muted);
}

.header-cta:hover,
.button.primary:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  align-items: stretch;
  min-height: 560px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 94px) clamp(24px, 5.8vw, 92px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--olive-dark);
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.08;
}

.lead {
  max-width: 570px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}

.hero-photo {
  height: min(580px, calc(100svh - 120px));
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  align-self: center;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.home-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.8vw, 48px);
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.48);
}

.home-card:last-child {
  border-right: 0;
}

.home-card.olive {
  background: var(--olive-dark);
  color: var(--paper);
}

.home-card.lilac {
  background: linear-gradient(135deg, rgba(183, 167, 184, 0.86), rgba(154, 142, 132, 0.58));
  color: var(--paper);
}

.home-card.olive .card-kicker,
.home-card.lilac .card-kicker,
.home-card.olive p,
.home-card.olive li,
.home-card.lilac p {
  color: rgba(255, 253, 248, 0.82);
}

.home-card h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

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

.home-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.home-card a {
  margin-top: auto;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiet-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 24px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18;
  text-align: center;
}

.section {
  padding: clamp(66px, 7.5vw, 104px) clamp(22px, 6vw, 88px);
}

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

.section-head.compact {
  max-width: 720px;
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.request-grid article {
  min-height: 210px;
  padding: clamp(24px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.42);
}

.request-grid p,
.about p,
.format p,
.contacts p {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  background: var(--paper);
}

.about-copy {
  max-width: 840px;
}

.about-copy p {
  margin-bottom: 14px;
}

.about-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  object-position: center top;
}

.education {
  background: var(--milk);
}

.certificate-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 0.7fr;
  gap: 18px;
  align-items: start;
}

.certificate-grid a {
  display: block;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(58, 57, 54, 0.07);
}

.certificate-grid img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  background: var(--paper);
}

.format {
  background: var(--paper);
}

.format-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.format-summary div {
  padding: 26px;
  background: var(--milk);
}

.format-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--olive-dark);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
}

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

.process-grid article,
.payment-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.process-grid article {
  padding: 28px;
}

.process-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--lilac);
  font-family: var(--serif);
  font-size: 32px;
}

.payment-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
}

.payment-block div {
  padding: 28px;
  background: rgba(255, 253, 248, 0.78);
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.45fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  background: var(--olive-dark);
  color: var(--paper);
}

.contacts .eyebrow,
.contacts p {
  color: rgba(255, 253, 248, 0.78);
}

.contact-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
}

.contact-card a {
  display: grid;
  gap: 4px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card a:last-child {
  border-bottom: 0;
}

.contact-card span {
  color: var(--olive-dark);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 6vw, 88px);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero,
  .about,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    height: 430px;
    min-height: 0;
  }

  .hero-photo img {
    object-position: center 24%;
  }

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

  .home-card:nth-child(2) {
    border-right: 0;
  }

  .certificate-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 16px 18px;
  }

  .brand span {
    font-size: 22px;
  }

  .brand small,
  .nav {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 16px;
    font-size: 11px;
  }

  .hero-copy,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-photo {
    height: 360px;
  }

  .home-cards,
  .request-grid,
  .format-summary,
  .payment-block {
    grid-template-columns: 1fr;
  }

  .home-card,
  .request-grid article {
    min-height: auto;
  }

  .home-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button.ghost {
    align-self: flex-start;
  }

  .footer {
    flex-direction: column;
  }
}
