@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("/fonts/pt-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  /* Палитра C «Морской» — см. README.md */
  --bg: #ffffff;
  --bg-alt: #f1f6f6;
  --ink: #1a1a1a;
  --sub: #4a4a4a;
  --line: #c2c2c2;
  --line-soft: #e1e8e8;
  --accent: #0b6b75;
  --hero-bg: #0c2b31;
  --hero-ink: #ffffff;
  --hero-sub: #a3c6c9;
  --hero-mark: #ffffff;
  --hero-rule: #4fb3bd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a1c;
    --bg-alt: #152427;
    --ink: #e8eeee;
    --sub: #9fb4b6;
    --line: #3a4c50;
    --line-soft: #22343a;
    --accent: #5cc2cc;
    --hero-bg: #0a2227;
    --hero-ink: #ffffff;
    --hero-sub: #a3c6c9;
    --hero-mark: #ffffff;
    --hero-rule: #5cc2cc;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 "PT Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.mark { fill: currentColor; display: block; }

html { scroll-padding-top: 80px; scroll-behavior: smooth; }
header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  header { background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 34px; height: 33px; }
.brand span { font-weight: 700; font-size: 20px; letter-spacing: .28em; }
nav a { color: var(--sub); text-decoration: none; margin-left: 24px; font-size: 16px; }
nav a:hover { color: var(--ink); }

.hero {
  padding: 88px 0 80px;
  color: var(--hero-ink);
  background:
    linear-gradient(90deg, rgba(12,43,49,.45) 0%, rgba(12,43,49,.45) 78%, rgba(12,43,49,.1) 100%),
    url("/img/hero.webp?v=202609252100") 50% 70% / cover no-repeat,
    var(--hero-bg);
}
.hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.hero .mark { width: 190px; height: 183px; color: var(--hero-mark); }
.wordmark { font-weight: 700; font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: .3em; margin: 0 -.3em 0 0; }
.latin { color: var(--hero-sub); font-size: 20px; letter-spacing: .3em; margin: 18px 0 0; }
.rule { width: 72px; height: 3px; background: var(--hero-rule); margin: 28px 0 24px; border: 0; }
.slogan { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; margin: 0 0 14px; }
.lead { color: var(--hero-sub); margin: 0; max-width: 560px; }

section { padding: 56px 0; border-top: 1px solid var(--line-soft); }
h2 { font-size: 26px; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-alt); border-top: 3px solid var(--accent); padding: 22px 22px 24px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, background-color .35s ease; }
.card .card-img { transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease; transform-origin: 50% 60%; }
.card h3 { transition: color .25s ease; }
.card-more span { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--hero-rule); z-index: 1; transition: width .45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(12,43,49,.45); }
  .card:hover .card-img { transform: scale(1.07); filter: brightness(1.12) saturate(1.1); }
  .card:hover h3 { color: var(--accent); }
  .card:hover .card-more span { transform: translateX(6px); }
  .card:hover::before { width: 100%; }
}
.card-link { all: unset; cursor: pointer; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 700; font-size: 15.5px; }
.card-img { display: block; width: calc(100% + 44px); height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -22px -22px 20px; background: var(--hero-bg); }
.card h3 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.card p { margin: 0; color: var(--sub); font-size: 16.5px; }

.people { display: grid; grid-template-columns: 1fr; gap: 20px; }
.person { display: grid; grid-template-columns: 300px 1fr; gap: 32px; background: var(--bg-alt); border-top: 3px solid var(--accent); padding: 24px 26px 26px; }
.person .role { color: var(--sub); font-size: 16px; }
.person .name { font-weight: 700; font-size: 20px; line-height: 1.3; margin-top: 6px; }
.person .degree { color: var(--accent); font-weight: 700; font-size: 15px; margin-top: 8px; }
.person .edu { color: var(--sub); font-size: 15px; margin-top: 8px; line-height: 1.4; }
.section-lead { margin: -12px 0 24px; color: var(--sub); }
.person .expertise p { margin: 0 0 10px; }
.person .expertise ul { margin: 0; padding-left: 20px; color: var(--sub); font-size: 16.5px; }
.person .expertise li { margin: 3px 0; }
@media (max-width: 720px) {
  .person { grid-template-columns: 1fr; gap: 14px; padding: 20px 20px 22px; }
}

table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
th { color: var(--sub); font-weight: 400; width: 36%; padding-right: 16px; }
td { overflow-wrap: anywhere; }

.contacts p { margin: 0 0 10px; }
a { color: var(--accent); text-underline-offset: 3px; }

footer { border-top: 1px solid var(--line-soft); padding: 28px 0 44px; color: var(--sub); font-size: 15px; }
footer .wrap { display: flex; align-items: center; gap: 12px; }
footer .mark { width: 20px; height: 19px; flex: none; }
.brand .mark { color: var(--accent); }

@media (max-width: 720px) {
  nav a { margin-left: 16px; font-size: 15px; }
  nav a.nav-home { display: none; }
  .hero {
    padding: 48px 0 52px;
    background:
      linear-gradient(rgba(12,43,49,.6), rgba(12,43,49,.6)),
      url("/img/hero-900.webp?v=202609252100") 88% 70% / cover no-repeat,
      var(--hero-bg);
  }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .mark { width: 110px; height: 106px; }
  th { width: 44%; }
}

/* навигация: текущая страница */
nav a[aria-current="page"] { color: var(--ink); }

/* полоса-ссылка на страницу реквизитов (главная) */
.more { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.more p { margin: 0; color: var(--sub); }
.more a { font-weight: 700; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* шапка внутренней страницы: та же фотография, узкой полосой */
.page-head {
  padding: 56px 0 48px;
  color: var(--hero-ink);
  background:
    linear-gradient(90deg, rgba(12,43,49,.6) 0%, rgba(12,43,49,.6) 70%, rgba(12,43,49,.2) 100%),
    url("/img/hero.webp?v=202609252100") 50% 62% / cover no-repeat,
    var(--hero-bg);
}
.page-head .crumbs { margin: 0 0 10px; font-size: 15px; color: var(--hero-sub); }
.page-head .crumbs a { color: var(--hero-sub); }
.page-head h1 { margin: 0; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; }
.page-head .rule { margin: 20px 0 0; }
@media (max-width: 720px) {
  .page-head {
    padding: 40px 0 36px;
    background:
      linear-gradient(rgba(12,43,49,.65), rgba(12,43,49,.65)),
      url("/img/hero-900.webp?v=202609252100") 88% 62% / cover no-repeat,
      var(--hero-bg);
  }
}

footer .wrap { flex-wrap: wrap; column-gap: 20px; row-gap: 6px; }
footer a { color: var(--sub); }

.page-head + section { border-top: 0; }

/* модальные окна направлений */
.dlg { box-sizing: border-box; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-top: 3px solid var(--accent); background: var(--bg); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: auto; }
.dlg::backdrop { background: rgba(8,24,28,.72); }
.dlg-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; background: var(--hero-bg); }
.dlg-body { padding: 26px 32px 30px; }
.dlg-body h2 { font-size: 26px; margin: 0 0 12px; }
.dlg-body h3 { font-size: 17px; margin: 22px 0 8px; color: var(--accent); }
.dlg-lead { margin: 0; }
.dlg-body ul { margin: 0; padding-left: 20px; color: var(--sub); }
.dlg-body li { margin: 4px 0; }
.dlg-body p { margin: 0; }
.dlg-body h3 + p { color: var(--sub); }
.dlg-cta { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.dlg-x { position: sticky; top: 0; height: 0; z-index: 2; }
.dlg-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(12,43,49,.75); color: #fff; font: 26px/1 "PT Sans", sans-serif; cursor: pointer; }
.dlg-close:hover, .dlg-close:focus-visible { background: var(--accent); outline: none; }
.dlg form { margin: 0; }
@media (max-width: 720px) {
  .dlg { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; }
  .dlg-body { padding: 22px 20px 28px; }
  .dlg-img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card .card-img, .card-more span, .card::before, .dlg[open], .dlg[open]::backdrop { transition: none !important; animation: none !important; }
  .card:hover, .card:hover .card-img { transform: none !important; }
}

.dlg[open] { animation: dlg-in .35s cubic-bezier(.2,.7,.2,1); }
.dlg[open]::backdrop { animation: dlg-fade .35s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dlg-fade { from { opacity: 0; } to { opacity: 1; } }

/* цифры */
.stats { padding: 40px 0; background: var(--bg-alt); border-top: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { border-left: 3px solid var(--accent); padding-left: 16px; }
.stat-v { font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; color: var(--accent); white-space: nowrap; }
.stat-l { margin-top: 8px; color: var(--sub); font-size: 15.5px; line-height: 1.45; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; gap: 20px; } }

/* как мы работаем */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line-soft); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step-n { font-weight: 700; font-size: 34px; line-height: 1; color: var(--accent); opacity: .9; margin-bottom: 14px; letter-spacing: .02em; }
.step h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.step p { margin: 0; color: var(--sub); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* призыв */
.cta { padding: 56px 0; border-top: 0; color: var(--hero-ink);
  background: linear-gradient(90deg, rgba(12,43,49,.55), rgba(12,43,49,.35)), url("/img/hero.webp?v=202609252100") 50% 75% / cover no-repeat, var(--hero-bg); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta h2 { margin: 0 0 6px; font-size: 30px; }
.cta p { margin: 0; color: var(--hero-sub); }
.cta-btn { display: inline-block; padding: 14px 28px; border: 2px solid var(--hero-rule); color: #fff; font-weight: 700; font-size: 19px; text-decoration: none; transition: background-color .25s ease, color .25s ease; }
.cta-btn:hover, .cta-btn:focus-visible { background: var(--hero-rule); color: #0c2b31; outline: none; }

/* направления — сетка 2 × 2 */
#about .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { #about .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { #about .grid { grid-template-columns: 1fr; } }

/* щит на первом экране (js/hero-shield.js) */
.hero { position: relative; overflow: hidden; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero > .wrap { position: relative; z-index: 1; }
