/* ==========================================================================
   DONGHONG — landing page styles
   Source of truth: Figma file "donghong", frame 139:11 (1470 px desktop).
   Desktop values are 1:1 with the layout (sizes calibrated against the
   exported vector outlines). Breakpoints below 1470 px are an adaptive
   interpretation — the Figma file has no tablet/mobile frames.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* brand */
  --navy:        #112973;
  --navy-dark:   #0d215d;
  --ink:         #16244c;   /* headings */
  --green:       #7dd60f;   /* accent (logo green) */

  /* text */
  --muted:       #5b6b88;
  --gray:        #64748b;   /* captions, secondary paragraphs */
  --gray-warm:   #787b7e;   /* services body text */
  --gray-warm-2: #787d81;   /* projects body text */

  /* surfaces */
  --bg:          #ffffff;
  --bg-soft:     #f7faff;   /* team section */
  --bg-warm:     #f9f8f6;   /* projects section */
  --bg-form:     #fbfdff;
  --bg-tile:     #eef4fd;   /* photo card */
  --bg-figure:   #f6f9fd;   /* photo figure */
  --bg-box:      #f6f9ff;   /* official-name box */

  /* lines */
  --line:        #e2e9f3;   /* section & bar borders */
  --line-card:   #dfe8f4;   /* team cards */
  --line-figure: #dbe5f2;
  --line-cells:  #dce5f1;   /* services grid inner lines */
  --line-info:   #e4eaf3;   /* contacts dividers */
  --line-soft:   rgba(24, 58, 143, .10);  /* grid / card / form outlines */
  --line-input:  rgba(24, 58, 143, .16);
  --line-footer: rgba(24, 58, 143, .08);

  --cta-from:    #0d215d;
  --cta-to:      #112973;

  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans:  "Helvetica Neue", Helvetica, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;

  --container: 1290px;
  --gutter: 90px;
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Icons ---------- */
.icon { display: block; width: 1em; height: 1em; flex: none; color: var(--navy); }
.icon--16 { width: 16px; height: 16px; }
.icon--17 { width: 17px; height: 17px; }
.icon--27 { width: 27px; height: 27px; }
.icon--30 { width: 30px; height: 30px; }
.icon--36 { width: 36px; height: 36px; }
.icon--42 { width: 42px; height: 42px; }

/* ---------- Typography helpers ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38.5px;
  line-height: 43px;
  color: var(--ink);
}
.accent { color: var(--navy); }
.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 15px;
  color: var(--navy);
  text-transform: uppercase;
}
.label-caps {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 15px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 45px;
  padding: 0 25px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn .icon { color: currentColor; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.btn--light:hover { background: #eef2fb; }
.btn--sm { min-height: 43px; padding: 0 18px; font-size: 11px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .program__toggle:focus-visible, .lang:focus-visible, .nav a:focus-visible, .info-block__link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.brand__tile img { width: 32px; height: 32px; }
.brand__tile--sm { width: 35px; height: 35px; }
.brand__tile--sm img { width: 27px; height: 27px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 21px;
  letter-spacing: -0.8px;
  color: var(--navy);
}
.brand__sub {
  font-size: 7.3px;
  font-weight: 700;
  letter-spacing: 0.35px;
  line-height: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.brand--footer .brand__name { font-size: 18px; line-height: 18px; }

/* ---------- Header ---------- */
.header { background: var(--bg); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 82px;
}
.nav { display: flex; gap: 32px; font-size: 13px; line-height: 18px; color: var(--ink); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--navy); }
.header__actions { display: flex; align-items: center; gap: 26px; }
.lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; line-height: 16.5px; color: var(--ink);
}
.lang .icon { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 449px;
  overflow: hidden;
  background: var(--bg);
}
.hero__media {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 279px);   /* 456 px from the left edge of the 1470 px frame */
  right: 0;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  min-width: 1014px;
  height: 472px;
  object-fit: cover;
  object-position: left center;
}
/* Overlays from the layout: white fade from the left, top highlight, navy tint */
.hero__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #fff 0px, #fff 1px, rgba(255,255,255,.96) 129px, rgba(255,255,255,.86) 258px, rgba(255,255,255,.34) 459px, rgba(255,255,255,0) 752px),
    linear-gradient(180deg, rgba(238,244,255,.65) 0%, rgba(238,244,255,0) 27%),
    linear-gradient(0deg, rgba(24,58,143,.14) 0%, rgba(24,58,143,.06) 100%);
}
.hero__inner { position: relative; height: 100%; }
.hero__content { max-width: 833px; padding-top: 51.5px; }
.hero__cn {
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
  color: #48618a;
}
.hero__title {
  margin-top: 17px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 54.5px;
  line-height: 65px;
  color: var(--navy);
}
.hero__lead {
  max-width: 609px;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 24.5px;
  color: #505358;
}
.hero__cta { margin-top: 22px; }

/* ---------- Features strip ---------- */
.features { background: var(--bg); }
.features__list {
  display: grid;
  grid-template-columns: repeat(5, 258px);
  align-items: center;
  height: 102px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 54px;
  padding-left: 17px;
  border-left: 1px solid var(--line);
}
.feature:first-child { padding-left: 0; border-left: 0; }
.feature__text { display: flex; flex-direction: column; }
.feature__title { font-size: 12px; font-weight: 700; line-height: 16px; color: var(--ink); }
.feature__sub { margin-top: 5px; max-width: 173px; font-size: 10px; line-height: 15.5px; color: var(--gray); }

/* ---------- Why / DMC partner ---------- */
.why { background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.why__grid {
  display: grid;
  grid-template-columns: 271px 1fr;
  align-items: start;
  height: 254px;
}
.why__title { max-width: 240px; padding-top: 74px; font-size: 39px; }
.why__cards {
  display: grid;
  grid-template-columns: repeat(4, 251px);
  margin-top: 51px;
}
.why-card {
  min-height: 183px;
  padding: 10px 18px 0 26px;
  border-left: 1px solid var(--line);
}
.why-card__title {
  margin-top: 16.5px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: var(--ink);
  white-space: nowrap;
}
.why-card__text {
  max-width: 186px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 19.5px;
  color: var(--gray);
}
.why__note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 65px;
  font-size: 13px;
  line-height: 21px;
  color: #354c72;
}
.why__note > span:last-child { padding-top: 4.5px; }
.why__note strong { color: var(--navy); }
.check-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--navy);
}
.check-badge .icon { width: 11.63px; height: 12.32px; color: #fff; }

/* ---------- Section heads (two columns: title / text) ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 429px;
  gap: 40px;
  align-items: end;
}
.section-head__text { font-size: 14px; line-height: 24px; color: #61718b; }
.section-head__text--sm { font-size: 13px; line-height: 21px; color: var(--gray); }
.section-head--tight { align-items: start; }
.section-head--projects { grid-template-columns: 1fr 347px; padding-right: 188px; }

/* ---------- Team ---------- */
.team {
  padding: 74px 0 64px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.team__title { font-size: 43.5px; line-height: 51.5px; color: #1a263c; }
.team__row {
  display: grid;
  grid-template-columns: 647.73fr 622.34fr;
  gap: 20px;
  margin-top: 30px;
}
.team__photo {
  padding: 18px;
  border: 1px solid var(--line-card);
  border-radius: 6px;
  background: var(--bg-tile);
}
.team__figure {
  height: 624.75px;
  overflow: hidden;
  border: 1px solid var(--line-figure);
  background: var(--bg-figure);
}
.team__figure img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.team__card {
  padding: 60px 50px 60px;
  border: 1px solid var(--line-card);
  border-radius: 6px;
  background: #fff;
}
.team__label { display: flex; align-items: center; gap: 14px; }
.team__label .label-caps { color: #7886a0; }
.team__role { margin-top: 22px; font-size: 13px; line-height: 20px; color: #5d718f; }
.team__name {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56.5px;
  line-height: 66px;
  color: var(--navy);
}
.team__name-cn { margin-top: 10px; font-size: 22px; font-weight: 700; line-height: 32px; color: var(--navy); }
.team__name-en { margin-top: 7px; font-size: 12px; font-weight: 700; letter-spacing: 1px; line-height: 18px; color: #536c94; }
.team__line { display: block; width: 54px; height: 3px; margin: 28px 0 24px; background: var(--green); }
.team__text { max-width: 500px; font-size: 14px; line-height: 24px; color: #586b89; }
.official {
  display: flex; flex-direction: column;
  margin-top: 23px;
  padding: 15px 21px 15px;
  border-left: 3px solid var(--green);
  background: var(--bg-box);
}
.official__label { color: #677c9e; }
.official__name { margin-top: 8px; font-size: 12px; line-height: 17px; color: var(--navy); }
.official__cn { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--navy); }
.team__card .btn { margin-top: 25px; }

.team__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  padding: 18px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.benefit {
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 55px;
  padding: 9px 20px;
  border-left: 1px solid var(--line);
}
.benefit:first-child { border-left: 0; }
.benefit > div { display: flex; flex-direction: column; }
.benefit__title { font-size: 13px; font-weight: 700; line-height: 17.5px; color: var(--navy); }
.benefit__sub { margin-top: 2px; font-size: 11px; line-height: 17.5px; color: #71819b; }

/* ---------- Programs ---------- */
.programs { padding: 58px 0; background: var(--bg); }
.programs__grid {
  display: grid;
  grid-template-columns: 281px 1fr;
  align-items: start;
}
.programs__title { max-width: 255px; font-size: 32px; line-height: 35.5px; }
.programs__text { max-width: 213px; margin-top: 20px; font-size: 14px; line-height: 22px; color: var(--gray); }
.programs__list {
  display: grid;
  grid-template-columns: repeat(3, 326px);
  gap: 14px;
  align-items: start;
}
.program { background: #fff; border-radius: 4px; overflow: hidden; }
.program__media { height: 159px; overflow: hidden; }
.program__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
.program:hover .program__media img { transform: scale(1.03); }
.program__body { padding: 14px 17px 17px; }
.program__title {
  max-width: 236px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 21px;
  color: var(--ink);
}
.program__sub { margin-top: 6px; font-size: 11px; line-height: 15px; color: var(--gray); }
.program__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  min-height: 33px;
  margin-top: 12px;
  padding: 0 12.5px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  transition: background-color .2s ease;
}
.program__toggle:hover { background: var(--navy-dark); }
.program__chevron { width: 14.86px; height: 8px; color: #fff; transform: rotate(180deg); transition: transform .3s ease; }
.program__toggle[aria-expanded="true"] .program__chevron { transform: rotate(0deg); }
.program__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.program__details-inner { overflow: hidden; }
.program.is-open .program__details { grid-template-rows: 1fr; }
.program__details p {
  font-size: 12px;
  line-height: 14.5px;
  color: var(--ink);
}
.program__details p:first-child { margin-top: 12px; }
.program__details p + p { margin-top: 14.5px; }
.program__details strong { font-weight: 700; }

/* ---------- Process ---------- */
.process { padding: 26px 0 64px; background: var(--bg); }
.process__grid {
  display: grid;
  grid-template-columns: 269px 1fr;
  align-items: start;
}
.process__title { max-width: 260px; font-size: 36px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 254.5px);
  margin-top: 46.5px;
}
.step { padding-right: 12px; }
.step__head { position: relative; display: flex; align-items: center; height: 37px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 37px; height: 37px; flex: none;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 6px #f0f5ff;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.step__line {
  position: absolute;
  left: 47px;
  right: 12px;
  top: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(24,58,143,.22) 0%, rgba(59,111,99,.27) 25%, rgba(83,147,70,.32) 50%, rgba(114,194,31,.42) 100%);
}
.step__line::after {
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  width: 7px; height: 7px;
  border-top: 1.5px solid #857c73;
  border-right: 1.5px solid #857c73;
  transform: translateY(1px) rotate(45deg);
}
.step__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  color: var(--ink);
  white-space: nowrap;
}
.step__text { max-width: 185px; margin-top: 5px; font-size: 12px; line-height: 17.5px; color: var(--gray); }

/* ---------- Services ---------- */
.services { padding: 58px 0 56px; background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.service {
  min-height: 174.25px;
  padding: 26px;
  border-left: 1px solid var(--line-cells);
  border-top: 1px solid var(--line-cells);
}
.service:nth-child(3n + 1) { border-left: 0; }
.service:nth-child(-n + 3) { border-top: 0; }
.service__title {
  margin-top: 20.5px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 24px;
  color: var(--ink);
}
.service__text { max-width: 350px; margin-top: 8px; font-size: 13px; line-height: 19.5px; color: var(--gray-warm); }

/* ---------- Projects ---------- */
.projects { padding: 58px 0 27px; background: var(--bg-warm); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 24px;
}
.project {
  min-height: 389px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.project__img { width: 100%; height: 205px; object-fit: cover; object-position: center 50%; }
.project:nth-child(2) .project__img { object-position: center 72%; }
.project:nth-child(3) .project__img { object-position: center 36%; }
.project__body { padding: 24px 20px 24px; }
.project__meta {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 15px;
  color: var(--navy);
  text-transform: uppercase;
}
.project__title {
  margin-top: 11px;
  max-width: 379px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 26px;
  color: var(--ink);
}
.project:nth-child(1) .project__title { max-width: 265px; }
.project:nth-child(2) .project__title { max-width: 269px; }
.project__text { max-width: 379px; margin-top: 15px; font-size: 13px; line-height: 20.5px; color: var(--gray-warm-2); }

/* ---------- CTA band ---------- */
.cta {
  color: #fff;
  background: linear-gradient(90deg, var(--cta-from) 0%, var(--cta-to) 100%);
}
.cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}
.cta__title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 36px; }
.cta__text { font-size: 13px; line-height: 20px; color: #d9e5ff; }
.cta .btn { min-width: 219px; justify-content: space-between; }

/* ---------- Contacts ---------- */
.contacts { padding: 58px 0; background: var(--bg); }
.contacts__grid {
  display: grid;
  grid-template-columns: 516px 680px;
  gap: 20px;
  align-items: stretch;
  min-height: 566.57px;
}
.contacts__title { max-width: 419px; font-size: 40.5px; line-height: 45px; }
.contacts__lead { max-width: 420px; margin-top: 20px; font-size: 14px; line-height: 22.5px; color: var(--gray); }
.info-block {
  display: flex; flex-direction: column;
  max-width: 510px;
  margin-top: 24px;
  padding-top: 11px;
  border-top: 1px solid var(--line-info);
}
.info-block + .info-block { margin-top: 19px; }
.info-block__label { font-size: 10px; font-weight: 700; line-height: 15px; color: var(--navy); }
.info-block__strong { margin-top: 9px; font-size: 13px; line-height: 20px; color: var(--navy); }
.info-block__text { margin-top: 9px; font-size: 13px; line-height: 19.5px; color: var(--gray); }
.info-block__cn { margin-top: 5px; font-size: 13px; line-height: 22px; color: #526581; }
.info-block__link { margin-top: 5px; font-size: 12px; line-height: 18px; color: var(--gray); transition: color .2s ease; }
.info-block__link:hover { color: var(--navy); }

.form {
  padding: 29px;
  border: 1px solid var(--line-soft);
  background: var(--bg-form);
}
.form__title { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 33px; color: var(--ink); }
.form__sub { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--gray); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.form__row .field { margin-bottom: 0; }
.form__row + .field { margin-top: 14px; }
.field__label { font-size: 11px; font-weight: 700; line-height: 17px; color: var(--ink); }
.field__input {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13.5px;
  line-height: 16px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder { color: #757575; font-weight: 500; opacity: 1; }
.field__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17,41,115,.08); }
.field__input.is-invalid { border-color: #c73c3c; }
.field__textarea { min-height: 102px; padding: 12px 14px; resize: vertical; line-height: 20px; }
.form__note { margin-top: 13px; font-size: 10px; line-height: 15px; color: var(--gray); }
.form__error { margin-top: 10px; font-size: 12px; line-height: 16px; color: #c73c3c; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 95px;
  border-bottom: 1px solid var(--line-footer);
}
.nav--footer { gap: 23px; font-size: 11px; line-height: 17px; }
.footer__place { font-size: 9.5px; font-weight: 700; letter-spacing: 2px; line-height: 14px; color: var(--gray); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 49px;
}
.footer__copy, .footer__cn { font-size: 10px; line-height: 15px; color: var(--gray); }

/* ==========================================================================
   Responsive — adaptive interpretation below the 1470 px design width
   ========================================================================== */
@media (max-width: 1469px) {
  :root { --gutter: 48px; }
  .hero__media { left: 38%; }
  .hero__content { max-width: 720px; }
  .hero__title { font-size: 50px; line-height: 58px; }
  .features__list { grid-template-columns: repeat(5, 1fr); }
  .why__cards { grid-template-columns: repeat(4, 1fr); }
  .why-card__title, .step__title { white-space: normal; }
  .section-head--projects { padding-right: 0; }
  .programs__list { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contacts__grid { grid-template-columns: minmax(0, 516px) minmax(0, 680px); }
}

@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .hero { height: auto; min-height: 449px; }
  .hero__media { left: 48%; }
  .hero__title { font-size: 44px; line-height: 50px; }
  .hero__content { padding-bottom: 48px; }
  .features__list { grid-template-columns: repeat(3, 1fr); height: auto; padding: 20px 0; row-gap: 20px; }
  .feature:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .feature__sub { max-width: none; }
  .why__grid { grid-template-columns: 1fr; height: auto; }
  .why__title { padding-top: 48px; }
  .why__cards { grid-template-columns: repeat(2, 1fr); margin-top: 28px; row-gap: 24px; }
  .why-card { min-height: 0; padding-bottom: 8px; }
  .why__note { margin-top: 24px; min-height: 0; padding-bottom: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .team__title { font-size: 36px; line-height: 43px; }
  .team__row { grid-template-columns: 1fr; }
  .team__figure { height: auto; aspect-ratio: 4 / 3; }
  .team__figure img { object-fit: cover; object-position: center 28%; }
  .team__card { padding: 40px 36px; }
  .team__benefits { grid-template-columns: 1fr; padding: 6px 6px; }
  .benefit { border-left: 0; border-top: 1px solid var(--line); }
  .benefit:first-child { border-top: 0; }
  .programs__grid { grid-template-columns: 1fr; gap: 28px; }
  .programs__title, .programs__text { max-width: none; }
  .programs__text { margin-top: 12px; }
  .programs__list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .program__title { max-width: none; }
  .process__grid { grid-template-columns: 1fr; gap: 24px; }
  .process__title { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); margin-top: 0; row-gap: 28px; }
  .step:nth-child(2) .step__line { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n + 1) { border-left: 1px solid var(--line-cells); }
  .service:nth-child(-n + 3) { border-top: 1px solid var(--line-cells); }
  .service:nth-child(2n + 1) { border-left: 0; }
  .service:nth-child(-n + 2) { border-top: 0; }
  .projects { padding-bottom: 40px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project { min-height: 0; }
  .project__title { max-width: none !important; }
  .cta__inner { grid-template-columns: 1fr auto; row-gap: 4px; padding: 24px 0; }
  .cta__text { grid-column: 1; }
  .cta .btn { grid-column: 2; grid-row: 1 / span 2; }
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .contacts__title { max-width: none; }
  .footer__top { flex-wrap: wrap; height: auto; padding: 24px 0; row-gap: 16px; }
  .nav--footer { flex-wrap: wrap; order: 3; width: 100%; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .header__inner { height: 68px; gap: 16px; }
  .brand__sub { display: none; }
  .btn--sm span { display: none; }
  .btn--sm { padding: 0 12px; min-height: 38px; }
  .hero { min-height: 0; }
  .hero__media {
    position: relative; left: 0; right: 0;
    height: 220px; margin-top: 24px;
  }
  .hero__img { min-width: 0; height: 220px; object-position: center; }
  .hero__fade { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 35%); }
  .hero__content { padding-top: 28px; padding-bottom: 0; }
  .hero__title { font-size: 34px; line-height: 40px; margin-top: 12px; }
  .hero__lead { font-size: 15px; line-height: 23px; }
  .features__list { grid-template-columns: 1fr; row-gap: 0; padding: 8px 0 16px; }
  .feature { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .feature__title { font-size: 13px; }
  .feature__sub { font-size: 12px; }
  .h2, .why__title, .process__title { font-size: 28px; line-height: 34px; }
  .why__title { padding-top: 32px; }
  .why__cards { grid-template-columns: 1fr; }
  .why-card { padding-left: 18px; }
  .why-card__text { font-size: 13px; max-width: none; }
  .team__figure { aspect-ratio: 1 / 1; }
  .team { padding: 48px 0 40px; }
  .team__title { font-size: 28px; line-height: 34px; }
  .team__card { padding: 28px 20px; }
  .team__name { font-size: 42px; line-height: 50px; }
  .programs, .services, .contacts { padding: 44px 0; }
  .projects { padding: 44px 0; }
  .programs__list { grid-template-columns: 1fr; }
  .program__media { height: auto; aspect-ratio: 326 / 159; }
  .program__details p, .service__text, .project__text, .step__text { font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .step__line { display: none; }
  .step__text { max-width: none; }
  .services__grid { grid-template-columns: 1fr; }
  .service { border-left: 0 !important; border-top: 1px solid var(--line-cells) !important; min-height: 0; padding: 22px 18px; }
  .service:first-child { border-top: 0 !important; }
  .service__text { max-width: none; }
  .projects__grid { grid-template-columns: 1fr; }
  .project__img { height: auto; aspect-ratio: 418 / 205; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .cta__title { font-size: 26px; line-height: 32px; }
  .contacts__title { font-size: 28px; line-height: 34px; }
  .form { padding: 22px 16px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__row .field { margin-bottom: 14px; }
  .form__row + .field { margin-top: 0; }
  .field__input { font-size: 16px; } /* prevents iOS zoom on focus */
  .footer__bottom { flex-direction: column; align-items: flex-start; height: auto; padding: 16px 0 24px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
