:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #161513;
  --muted: #686159;
  --line: #d8d0c4;
  --accent: #0e7c66;
  --accent-dark: #0a4f43;
  --red: #b4412e;
  --blue: #224f7a;
  --shadow: 0 24px 80px rgba(39, 34, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(244, 241, 234, 0.86);
  border-bottom: 1px solid rgba(216, 208, 196, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.text-link:hover {
  color: var(--accent-dark);
}

.hero {
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: relative;
  min-height: 560px;
  background: #d9d5cf;
  overflow: hidden;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(244, 241, 234, 0.55));
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.06);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 92px);
}

.eyebrow,
.tag {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.button--primary {
  background: var(--ink);
  color: var(--paper);
}

.button--ghost {
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 21, 19, 0.16);
}
.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.ticker {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1.2fr 1fr 0.8fr;
  border-bottom: 1px solid var(--line);
}

.ticker span {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.ticker span:nth-child(2n) {
  color: var(--blue);
}

.ticker span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section__head {
  margin-bottom: 36px;
}

.section__head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

/* note cards hover + featured span (+24.05.2026 design pass) */
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.note-card { display: block; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.note-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 28px rgba(39, 34, 27, 0.08); }
.note-card--featured { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.note-card--featured h3 { font-size: 30px; }
.note-card--featured .tag { color: rgba(255, 253, 248, 0.62); }
.note-card--featured:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
@media(max-width: 900px) { .note-grid { grid-template-columns: 1fr; } .note-card--featured { grid-column: span 1; } }

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.section--intro {
  background: var(--paper);
}

.principles,
.note-grid,
.playbook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principles article:first-child { background: var(--paper); padding: 22px; border-radius: 8px; border: 1px solid var(--line); }
.principles article:first-child span { font-size: 38px; color: var(--accent-dark); }

.principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles article,
.note-card,
.playbook article {
  min-height: 260px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.principles span {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-weight: 900;
}

.principles p,
.note-card p,
.project-list p,
.playbook p {
  color: var(--muted);
}

.note-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.note-card--featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.note-card--featured p {
  color: #d7d0c6;
}

.note-card--featured .tag {
  color: #83d7c4;
}

.note-card span {
  margin-top: auto;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.note-card--featured span {
  color: #83d7c4;
}

.section--projects {
  background: #e7e2d8;
}

.project-list {
  border-top: 1px solid rgba(22, 21, 19, 0.18);
}

.project-list article {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1.2fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(22, 21, 19, 0.18);
}

.project-list h3 {
  max-width: 520px;
  font-size: clamp(24px, 3vw, 38px);
}

.project-list p:last-child {
  max-width: 680px;
  font-size: 18px;
}

.section--playbook {
  background: var(--paper);
}

.playbook article {
  min-height: 210px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(20px, 5vw, 72px);
  padding: clamp(34px, 5vw, 64px);
  background: var(--accent-dark);
  color: var(--paper);
  border-radius: 8px;
}

.contact h2 {
  max-width: 760px;
}

.contact .eyebrow {
  color: #98dfce;
}

.contact .button {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--accent-dark);
  white-space: nowrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: 420px;
  }

  .ticker,
  .principles,
  .note-grid,
  .playbook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .section__head--row,
  .contact,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
  }

  .nav a {
    padding-right: 12px;
  }

  .hero__media {
    min-height: 300px;
    order: 2;
  }

  .hero__content {
    order: 1;
    padding: 34px 20px 48px;
  }

  h1 {
    max-width: calc(100vw - 40px);
    font-size: 24px;
    line-height: 1.04;
    overflow-wrap: break-word;
  }

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

  .hero__actions .button {
    width: 100%;
  }

  .ticker,
  .principles,
  .note-grid,
  .playbook {
    grid-template-columns: 1fr;
  }

  .ticker span {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .note-card--featured {
    grid-column: span 1;
  }

  .project-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* === fix 2026-05-24: ссылки на каналы в блоке Связь === */
.contact {
  background: #161513 !important;   /* тёмный графит вместо тёмно-зелёного для контраста с акцентом */
  border-radius: 12px;
}
.contact .lead {
  color: rgba(255, 253, 248, 0.88);
  margin-top: 18px;
  font-size: 17px;
}
/* footer rich */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  padding: 28px clamp(20px, 5vw, 72px) 36px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--ink); font-weight: 700; }
.footer a:hover { color: var(--accent-dark); }

.contact .text-link {
  color: #6fe1c4;                   /* светло-мятный, видный на графите */
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(111, 225, 196, 0.45);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.contact .text-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}
