/* ФИНИН-КАПИТАЛ — базовые стили
   Палитра снята с действующего лендинга: чёрный + белый + тёплый песочный. */

:root {
  --ink: #0e0e0e;
  --ink-soft: #1b1b1b;
  --paper: #ffffff;
  --sand: #f7f6f3;
  --muted: #6b6b6b;
  --muted-light: #9a9a9a;
  --rule: #e5e5e5;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --container: 1200px;
  --pad: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(32px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
}

h3 {
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.2;
  margin-bottom: 14px;
}

h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.kicker-light { color: rgba(255, 255, 255, .55); }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #3a3a3a;
  max-width: 34em;
  margin-top: 22px;
}

.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-solid:hover { background: #2b2b2b; border-color: #2b2b2b; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #cfcfcf;
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { color: var(--muted); border-color: var(--muted); }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover { background: #e9e7e2; border-color: #e9e7e2; }

.btn-sm { font-size: 13px; padding: 11px 18px; }

.only-mobile { display: none; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 16px; }
.link-arrow::after { content: "→"; font-weight: 400; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.brand-mark-sm { width: 38px; height: 38px; font-size: 15px; }

.brand-text { display: flex; flex-direction: column; gap: 3px; }

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 30px;
  font-size: 14px;
}

.nav a {
  color: #2f2f2f;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Первый экран ---------- */

.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--rule); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-figure { margin: 0; position: relative; }

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  max-height: 520px;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
}

.hero-figure figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}


/* ---------- Нижняя строка первого экрана ---------- */

.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.hero-teaser {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  max-width: 360px;
  transition: opacity .25s var(--ease);
}

.hero-teaser-right { text-align: right; align-items: flex-end; margin-left: auto; }

.t-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}

.dot-soon { background: transparent; border: 1px solid var(--muted-light); }

.t-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}

.hero-teaser:hover .t-name { border-color: var(--ink); }
.hero-teaser:hover { opacity: .85; }


/* Низкие экраны: подписи проектов должны попадать в первый экран */
@media (min-width: 1025px) and (max-height: 1160px) {
  .hero { padding: 34px 0 40px; }
  h1 { font-size: clamp(32px, 5.4vw, 62px); }
  .lead { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .hero-meta { margin-top: 18px; }
  .hero-figure img { max-height: 360px; }
  .hero-foot { margin-top: 26px; padding-top: 16px; }
}

/* ---------- Секции ---------- */

.section { padding: 104px 0; border-bottom: 1px solid var(--rule); }
.section-sand { background: var(--sand); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--ink);
}

.num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.section-intro {
  max-width: 46em;
  color: #3a3a3a;
  margin-bottom: 36px;
}

/* ---------- О компании ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 80px;
}

.about-text p { font-size: 17px; line-height: 1.72; color: #2f2f2f; max-width: 44em; }
.about-text p + p { margin-top: 20px; }

.facts { margin: 0; display: grid; gap: 26px; }

.fact { border-top: 1px solid var(--ink); padding-top: 14px; }

.fact dt {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}

.fact dd {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Проекты ---------- */

.project {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid #dcdcdc;
}
.project:first-of-type { border-top: 0; padding-top: 0; }

.project-index {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted-light);
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.project-body p { max-width: 46em; color: #2f2f2f; }

.project-featured {
  grid-template-columns: 72px 1fr 0.8fr;
  align-items: start;
}

.project-figure { margin: 0; }

.project-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
}

.status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid #cfcfcf;
  color: var(--muted);
  margin-bottom: 16px;
}
.status-done { border-color: #cfcfcf; color: #4a4a4a; }
.status-live { border-color: var(--ink); color: var(--ink); }
.status-soon { border-style: dashed; color: var(--muted-light); }

/* ---------- Принципы ---------- */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.principle {
  padding: 36px 44px 36px 0;
  border-bottom: 1px solid var(--rule);
}
.principle:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 44px; }
.principle:nth-child(even) { padding-left: 44px; }
.principle p { color: #3a3a3a; max-width: 34em; }

/* ---------- Тёмная полоса ---------- */

.band {
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.band h2 { color: #fff; margin-bottom: 18px; }

.band-text { color: rgba(255, 255, 255, .78); max-width: 40em; }

.band-note {
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  margin-top: 16px;
}

/* ---------- Документы ---------- */

.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }

.doc-list li {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.doc-type {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-name { font-family: var(--serif); font-size: 18px; }

.doc-meta { font-size: 12px; color: var(--muted-light); letter-spacing: 0.04em; }

/* ---------- Контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}

.form-note { color: #3a3a3a; margin-bottom: 34px; max-width: 38em; }

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .2s var(--ease);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field input::placeholder { color: #b5b5b5; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-legal {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-light);
}
.form-legal a { border-bottom: 1px solid #d0d0d0; }

.contacts-side {
  display: grid;
  gap: 30px;
  align-content: start;
}

.contact-block { border-top: 1px solid var(--ink); padding-top: 14px; }

.label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-link {
  font-family: var(--serif);
  font-size: 23px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.contact-link:hover { border-color: var(--ink); }

.contact-text { color: #3a3a3a; font-size: 15px; }

/* ---------- Подвал ---------- */

.site-footer {
  padding: 64px 0 48px;
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.footer-brand { display: flex; gap: 16px; align-items: center; }

.footer-name {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-sub { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a:hover { color: var(--ink); }

.disclaimer {
  max-width: 60em;
  margin: 32px 0;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 11px;
  color: var(--muted-light);
}
.footer-bottom p { margin: 0; }

/* ---------- Модальные окна ---------- */

.modal {
  width: min(560px, calc(100vw - 32px));
  border: 1px solid var(--rule);
  padding: 44px 44px 38px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .16);
}

.modal::backdrop {
  background: rgba(12, 12, 12, .45);
  backdrop-filter: blur(2px);
}

.modal h2 { margin-bottom: 14px; }

.modal-text { color: #3a3a3a; margin-bottom: 28px; font-size: 15px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--muted-light);
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--ink); }

.form-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 13px;
}
.form-links a { border-bottom: 1px solid #d0d0d0; }
.form-links a:hover { border-color: var(--ink); }

.modal-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted-light);
}

.form-success {
  text-align: center;
  padding: 26px 0 8px;
}
.success-mark {
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 12px;
}


.notice {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 18px;
  margin: 0 0 28px;
}
.notice-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.notice-text { font-size: 15px; color: #3a3a3a; }

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-featured { grid-template-columns: 72px 1fr; }
  .project-featured .project-figure { grid-column: 2; margin-top: 24px; }
  .band-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .nav { display: none; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .nowrap { white-space: normal; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .brand-sub { display: none; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 38px; height: 38px; font-size: 15px; }
  .btn-sm { font-size: 12px; padding: 9px 12px; }
  .btn { white-space: normal; text-align: center; }
  .hero-foot { flex-direction: column; gap: 22px; margin-top: 44px; padding-top: 20px; }
  .hero-teaser { max-width: none; }
  .hero-teaser-right { text-align: left; align-items: flex-start; margin-left: 0; }

  .header-inner { height: 74px; gap: 14px; }
  .brand-name { font-size: 15px; }
  .hero { padding: 52px 0 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; padding-bottom: 20px; }
  .project { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .project-index { padding-top: 0; }
  .project-featured .project-figure { grid-column: 1; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(odd), .principle:nth-child(even) {
    padding: 26px 0;
    border-right: 0;
  }
  .doc-list li { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 32px 24px 28px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}




/* ---------- Лендинг проекта ---------- */

.hero-lp h1 { font-size: clamp(40px, 6.6vw, 82px); }

.hero-figure-tall img { max-height: 560px; aspect-ratio: 4 / 3.4; }

.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--ink);
}

.fact-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 28px 0 0;
}
.fact-cell + .fact-cell { border-left: 1px solid var(--rule); padding-left: 28px; }

.fact-value { font-family: var(--serif); font-size: 30px; line-height: 1; }
.fact-caption { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

.split-text p { font-size: 17px; line-height: 1.72; color: #2f2f2f; max-width: 40em; }
.split-text p + p { margin-top: 18px; }

.split-figure { margin: 0; }
.split-figure img, .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.02);
}
.split-figure figcaption, .gallery figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; }

.band-pad { padding: 92px 0; }
.band-pad h2 { margin-bottom: 20px; }

.params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.param {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 28px 0 0;
}
.param + .param { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 28px; }
.param-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.param-value { font-family: var(--serif); font-size: 24px; color: #fff; }

.table-wrap { overflow-x: auto; }

.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.cmp th {
  text-align: left;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 20px 16px 0;
  border-bottom: 1px solid var(--ink);
}
.cmp td {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid #dcdcdc;
  font-size: 15px;
  color: #2f2f2f;
  vertical-align: top;
}
.cmp td:first-child { color: var(--muted); width: 24%; }
.cmp td b { font-weight: 500; color: var(--ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-num { font-family: var(--serif); font-size: 13px; color: var(--muted-light); display: block; margin-bottom: 12px; }
.step h4 { font-size: 20px; margin-bottom: 8px; }
.step p { color: #3a3a3a; font-size: 15px; }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .params { grid-template-columns: 1fr 1fr; }
  .param:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  .facts-strip { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .fact-cell { padding: 18px 16px 0 0; }
  .fact-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact-value { font-size: 24px; }
  .gallery { grid-template-columns: 1fr; margin-top: 36px; }
  .params { grid-template-columns: 1fr; }
  .param + .param { border-left: 0; padding-left: 0; }
  .band-pad { padding: 56px 0; }
  .hero-figure-tall img { max-height: none; }
  .band .btn { margin-top: 8px; }
}
