:root {
  --bg: #edf4f8;
  --panel: #ffffff;
  --ink: #0b1f27;
  --muted: #5b737e;
  --deep: #05222d;
  --deep-2: #0a3241;
  --accent: #2a7f9e;
  --ice: #bfe2ee;
  --line: rgba(5, 34, 45, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

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

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237, 244, 248, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 20px;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--deep);
  font-weight: 700;
}

.brand span { color: var(--accent); }

nav { display: flex; gap: 22px; flex-wrap: wrap; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  transition: color .15s;
}

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

/* ---------- hero ---------- */

.hero-full {
  position: relative;
  height: min(76vh, 680px);
  min-height: 460px;
  overflow: hidden;
  background: #061c25;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: heroIn 1.6s ease-out both;
}

@keyframes heroIn {
  from { transform: scale(1.05); opacity: .5; }
  to   { transform: scale(1); opacity: 1; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 22, 30, .9) 0%, rgba(4, 22, 30, .35) 45%, rgba(4, 22, 30, .05) 75%),
    linear-gradient(to right, rgba(4, 22, 30, .5), transparent 65%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 48px;
  color: #fff;
}

.kicker {
  margin: 0 0 12px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #a9d6e4;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(54px, 11vw, 120px);
  line-height: .9;
  letter-spacing: -.02em;
  font-weight: 700;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .3);
}

.hero-sub {
  margin: 0;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: #d6ecf3;
}

/* ---------- вступление ---------- */

.intro { padding: 66px 0 8px; }

.lead-big {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.55;
  color: var(--deep);
  margin: 0 0 20px;
  max-width: 840px;
}

.intro p:not(.lead-big) {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

/* ---------- заголовки секций ---------- */

.section-title {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 28px;
}

/* ---------- цифры ---------- */

.facts {
  margin: 68px 0;
  padding: 68px 0;
  background: var(--deep);
  color: #eaf4f8;
}

.facts .section-title { color: #6fb6cc; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 44px;
}

.fact-num {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.fact-num span {
  font-size: .36em;
  letter-spacing: .04em;
  color: #8fcfe2;
  margin-left: 6px;
  vertical-align: .55em;
}

.fact p {
  margin: 0;
  color: #a9c6d0;
  font-size: 15.5px;
  line-height: 1.55;
}

/* ---------- галерея ---------- */

.gallery-section { padding: 6px 0 18px; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.g-item { margin: 0; }

.g-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .6s ease;
}

.g-item img:hover { transform: scale(1.02); }

.g-wide { grid-column: 1 / -1; }
.g-wide img { aspect-ratio: 16 / 8.5; }

figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 2px 0;
}

/* ---------- карточки ---------- */

.cards-section { padding: 42px 0 10px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 127, 158, .35);
  box-shadow: 0 14px 34px rgba(5, 34, 45, .10);
}

.thumb { display: block; height: 155px; overflow: hidden; background: #dbeaf0; }

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 17px 19px 20px; }

.meta {
  margin: 0 0 8px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.card h3 a { color: var(--deep); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 14.8px; }

/* ---------- страницы статей ---------- */

article.post { padding: 54px 0 10px; max-width: 730px; }

article.post h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.16;
  color: var(--deep);
  margin: 0 0 10px;
}

article.post .meta { margin-bottom: 22px; }

article.post h2 { font-size: 23px; color: var(--deep); margin: 36px 0 10px; }

article.post p { margin: 0 0 16px; }

article.post ul { margin: 0 0 18px; padding-left: 22px; }
article.post li { margin-bottom: 6px; }

.cover {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 8px;
  background: #dbeaf0;
}

.cover img { display: block; width: 100%; height: auto; }

.post figure { margin: 0 0 26px; }

table.credits {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  margin: 10px 0 22px;
}

table.credits th, table.credits td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.credits th {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- подвал ---------- */

.site-footer {
  margin-top: 68px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p { margin: 0 0 6px; font-size: 14.5px; }
.site-footer .small { font-size: 13px; opacity: .9; }
.site-footer a { color: var(--accent); }

/* ---------- мобильные ---------- */

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .g-item img, .g-wide img { aspect-ratio: 4 / 3; }
  .hero-full { min-height: 400px; height: 64vh; }
  .hero-content { padding-bottom: 30px; }
  .facts { padding: 48px 0; margin: 48px 0; }
  .intro { padding-top: 44px; }
  table.credits { font-size: 13px; }
  table.credits th, table.credits td { padding: 8px 6px; }
}
