/* LinkCV — посадочная страница (вариант E, макет Figma 2026-10-07). Чистый CSS, без сборки и внешних CDN. */

/* Шрифты: Golos Text и Source Serif 4, SIL Open Font License 1.1 (см. fonts/OFL-*.txt). Подмножества: кириллица и латиница. */
/* golos-text-cyrillic-wght-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* golos-text-latin-ext-wght-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* golos-text-latin-wght-normal */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(fonts/golos-text-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* source-serif-4-cyrillic-opsz-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-cyrillic-opsz-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-serif-4-latin-ext-opsz-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-opsz-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(fonts/source-serif-4-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


:root {
  --ink: #26211D;
  --ink-strong: #1D1D1F;
  --text: #363636;
  --muted: #6A645C;
  --faint: #776F66;
  --quiet: #AAAAAA;
  --dim: #A0988D;
  --border: #E5E5E5;
  --line: #ECE8E1;
  --soft: #F2F2F2;
  --white: #FFFFFF;
  --orange: #FF6A3D;
  --orange-text: #E8541F;
  --orange-link: #FF7100;
  --blue: #2B6CF5;

  /* Шрифты подключены выше через @font-face; системные — запасной вариант. */
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --shadow-card: 0 17.5px 46.8px rgba(0, 0, 0, 0.04), 0 9.4px 25px rgba(0, 0, 0, 0.03), 0 5.25px 14px rgba(0, 0, 0, 0.02);
  --shadow-panel: 0 9.4px 25px rgba(0, 0, 0, 0.03), 0 5.25px 14px rgba(0, 0, 0, 0.02);
  --shadow-row: 0 10px 28px -18px rgba(60, 30, 10, 0.3);

  /* Тёмно-красный градиент из макета. Верх: заканчивается белым под карточкой; финал: заканчивается оранжевым. */
  --grad-top: linear-gradient(180deg, #3A0303 0%, #400503 19%, #4D0903 35%, #5A0E02 45%, #6E1502 55%, #901F01 65%, #B72E01 71%, #D63800 74%, #E95A26 77%, #EF8863 81%, #F3AB91 84%, #F7C4B2 87%, #F9D7CB 90%, #FBE6DF 94%, #FEFCFB 100%);
  --grad-cta: linear-gradient(180deg, #3A0303 0%, #400503 23%, #4D0903 43%, #5A0E02 54%, #6E1502 66%, #901F01 78%, #B72E01 85%, #D63800 89%, #E95A26 93%, #EF8863 97%, #F3AB91 100%);
  /* Насколько карточка-образец заходит на градиент. */
  --overlap: 120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.page { min-height: 100vh; overflow-x: hidden; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.slash { color: var(--orange-text); }
.dim { color: var(--dim); }

.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3; mix-blend-mode: multiply; pointer-events: none; }
.grain-strong { opacity: 0.32; }

/* Тёмные зоны: белый текст и белая обводка фокуса */
.top, .cta { color: var(--white); }
.top a, .cta a { color: var(--white); }
.top :focus-visible, .cta :focus-visible { outline-color: var(--white); }

/* Кнопка на тёмном */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: 56px; padding: 0 24px; border: 0; border-radius: 16px;
  background: var(--white); color: #090909; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #F2ECE8; }

/* Верх: шапка и первый экран на градиенте */
.top { background: var(--grad-top); padding-bottom: calc(64px + var(--overlap)); }

.site-header { max-width: 1120px; margin: 0 auto; padding: 20px 16px 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 500; letter-spacing: -0.03em; }
.top .brand:hover { color: var(--white); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px; background: var(--white); color: var(--ink);
}
.brand-mark--sm { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--white); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
.nav-link + .nav-link { padding: 0 18px; }
.top .nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }

.hero { padding-top: clamp(56px, 9.4vw, 130px); }
.display {
  margin: 0; max-width: 940px;
  font-weight: 500; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.03em;
}
.display .dim { color: rgba(255, 255, 255, 0.4); }

/* Форма адреса: одна и та же на первом экране и в финале */
.slug-form { margin-top: 40px; max-width: 560px; display: flex; flex-wrap: wrap; gap: 8px; }
.slug-field {
  flex: 1 1 240px; min-width: 0; display: flex; align-items: center; height: 56px; padding: 0 24px;
  background: rgba(255, 255, 255, 0.1); border-radius: 12px; font-size: 17px;
}
.slug-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--white); padding: 0 0 0 1px; }
.slug-field input::placeholder { color: rgba(255, 255, 255, 0.6); }
.slug-field input:focus { outline: none; }
.slug-field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
/* New system state: address availability. Empty state preserves supplied layout. */
.slug-status { flex-basis: 100%; margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 1.5; }
.slug-status:empty { display: none; }

/* Карточка резюме поверх края градиента */
.demo { position: relative; margin-top: calc(-1 * var(--overlap)); }
.cv-card {
  margin: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-card);
}
.cv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cv-url { min-width: 0; font-size: 13px; color: var(--muted); background: var(--soft); padding: 6px 14px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-url-slug { color: var(--ink); }
.cv-share { font-size: 13px; white-space: nowrap; }
/* Содержимое — колонка 528px по центру, как в макете */
.cv-body {
  padding: clamp(24px, 5vw, 48px) max(clamp(20px, 6vw, 56px), calc((100% - 528px) / 2)) clamp(28px, 5vw, 52px);
  font-size: 15px; line-height: 1.6;
}
.cv-head { display: flex; align-items: center; gap: 18px; }
.cv-name { font-family: var(--serif); font-optical-sizing: auto; font-size: 25px; letter-spacing: -0.015em; line-height: 1.25; color: #161512; }
.cv-muted { color: var(--muted); }
.cv-section { margin-top: 32px; }
.cv-about { margin: 6px 0 0; color: var(--text); }
.cv-row { margin-top: 12px; display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 2px; }
.cv-when { flex: 0 0 132px; color: var(--quiet); }
.cv-what { flex: 1 1 240px; min-width: 0; }
.cv-what > div:first-child { font-weight: 500; color: var(--ink-strong); }
.cv-what .cv-muted { color: var(--quiet); }

.avatar {
  position: relative; flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 70% at 30% 75%, #F6D9A8 0%, rgba(246, 217, 168, 0) 70%),
    radial-gradient(55% 70% at 70% 20%, #8DB6F0 0%, rgba(141, 182, 240, 0) 72%),
    radial-gradient(50% 50% at 90% 80%, #FF9A70 0%, rgba(255, 154, 112, 0) 70%),
    #EFE9E0;
}
.avatar-initials { position: relative; font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }

/* Нейтральные превью проектов */
.thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 181px)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; }
.thumb--warm {
  background:
    radial-gradient(60% 80% at 18% 28%, #FFB08A 0%, rgba(255, 176, 138, 0) 70%),
    radial-gradient(60% 80% at 88% 90%, #F6D29A 0%, rgba(246, 210, 154, 0) 70%),
    #EFE6DA;
}
.thumb--cool {
  background:
    radial-gradient(60% 80% at 82% 20%, #A8C6F5 0%, rgba(168, 198, 245, 0) 70%),
    radial-gradient(55% 70% at 15% 95%, #F2DCC0 0%, rgba(242, 220, 192, 0) 70%),
    #EAEAE6;
}
.phone {
  position: absolute; left: 34%; top: 16%; width: 32%; height: 100%;
  padding: 9px 8px; background: var(--white); border-radius: 10px 10px 0 0;
  box-shadow: 0 10px 24px -12px rgba(60, 30, 10, 0.35);
}
.phone-title { width: 45%; height: 5px; border-radius: 3px; background: #E2DBD0; }
.phone-item { display: flex; gap: 5px; margin-top: 8px; }
.phone-item span:first-child { flex-shrink: 0; width: 12px; height: 12px; border-radius: 3px; background: #F3EDE4; }
.phone-item span:last-child { flex: 1; height: 5px; margin-top: 4px; border-radius: 3px; background: #EEE8DF; }
.phone-cta { margin-top: 10px; width: 62%; height: 10px; border-radius: 999px; background: var(--orange); }
.board {
  position: absolute; left: 12%; right: 12%; top: 20%; bottom: -12%;
  padding: 10px; background: var(--white); border-radius: 10px; box-shadow: 0 10px 24px -12px rgba(10, 30, 70, 0.3);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}
.board-col { display: flex; flex-direction: column; gap: 5px; }
.board-col span { height: 14px; border-radius: 4px; background: #F1F3F7; }
.board-col .board-head { height: 4px; width: 60%; border-radius: 2px; background: #D9DEE8; }
.board-col .is-accent { background: var(--blue); }

/* 12 разделов */
.section { margin-top: clamp(112px, 13vw, 184px); }
.h2 { margin: 0; font-weight: 500; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.02em; color: #161512; }
.sections-layout { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.tab-list {
  flex: 1 1 100%; min-width: 260px; padding: 12px; display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-panel);
}
.tab {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px;
  border: 0; border-radius: 14px; background: transparent; color: var(--text);
  font-size: 15px; text-align: left; cursor: pointer;
}
.tab:hover { color: var(--ink); background: #F7F7F7; }
.tab[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
/* Чипса кейса и миниатюра окна кейса — как в настоящем резюме. */
.read-chip {
  display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; height: 32px; margin-top: 12px;
  padding: 0 12px 0 10px; border-radius: 999px; background: var(--soft); color: var(--ink-strong);
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
}
.read-chip-icon { flex: none; }
.read-chip-time { margin-left: -2px; color: var(--text); font-weight: 400; }
.cv-card .read-chip { margin-bottom: 12px; }
.case-card {
  position: relative; display: flex; flex-direction: column; height: 250px; margin-left: clamp(0px, 6%, 38px);
  padding: 22px 24px 0; overflow: hidden; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-row);
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
}
.case-card span { display: block; flex: none; border-radius: 4px; }
.case-card .cc-close { position: absolute; top: 12px; right: 16px; color: var(--quiet); font-size: 18px; line-height: 1; }
.case-card .cc-year { width: 38px; height: 14px; border-radius: 999px; background: var(--soft); }
.cc-title { width: 52%; height: 10px; margin-top: 10px; background: #D9D2C9; }
.case-card .cc-image {
  height: 96px; margin-top: 16px; border-radius: 10px;
  background:
    radial-gradient(60% 80% at 18% 28%, #FFB08A 0%, rgba(255, 176, 138, 0) 70%),
    radial-gradient(60% 80% at 88% 90%, #F6D29A 0%, rgba(246, 210, 154, 0) 70%),
    #EFE6DA;
}
.cc-heading { width: 32%; height: 8px; margin-top: 16px; background: #D9D2C9; }
.cc-line { height: 5px; margin-top: 8px; background: var(--line); }
.cc-line--short { width: 72%; }
.accordion .case-card { margin-left: 0; height: 220px; padding: 18px 16px 0; border-radius: 14px; }
.tab-panel {
  display: none; flex: 1 1 420px; min-width: 0; flex-direction: column;
  padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-panel);
}
.panel-rows { flex: 1; padding: clamp(16px, 3vw, 28px); background: var(--soft); border-radius: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.row-card {
  padding: 16px 20px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow-row);
  display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 2px; font-size: 15px; line-height: 1.55;
}
.row-card:nth-child(even) { margin-left: clamp(0px, 6%, 38px); }
.row-when { flex: 0 0 116px; color: var(--quiet); }
.row-what { flex: 1 1 200px; min-width: 0; }
.row-title { font-weight: 500; color: var(--ink-strong); }
.row-sub { color: var(--quiet); }
.checks { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.checks li { display: flex; gap: 12px; }
.checks li[hidden] { display: none; }
.checks .icon { margin-top: 2px; stroke-width: 1.8; }

/* Аккордеон на телефоне: landing.js переносит его под выбранный таб */
.accordion { margin: 4px 0 10px; padding: 14px; background: var(--soft); border-radius: 18px; }
.accordion .panel-rows { margin: 0; padding: 0; background: none; gap: 8px; }
.accordion .row-card { display: block; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; margin-left: 0; }
.accordion .row-when { font-size: 13px; }
.accordion .row-title { margin-top: 2px; }
.accordion .checks { margin-top: 12px; font-size: 14px; }

/* Финал и подвал на втором градиенте */
.cta { margin-top: clamp(112px, 13vw, 200px); padding-top: clamp(88px, 15vw, 210px); background: var(--grad-cta); }
.cta-title { margin: 0; font-weight: 500; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.cta-login { margin: 24px 0 0; font-size: 16px; }
.cta .cta-login a { color: var(--orange-link); text-decoration: underline; text-underline-offset: 3px; }
.cta .cta-login a:hover { color: var(--white); }

.footer {
  /* Ширина — ровно по контенту (1120 − 2×16), чтобы линия не выходила за края текста. */
  width: min(1088px, calc(100% - 32px)); margin: clamp(64px, 8vw, 110px) auto 0; padding: 24px 0 48px; border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cta .footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* Адаптив */
@media (max-width: 400px) {
  .bar { padding-right: 0; padding-left: 0; }
  .nav-link, .nav-link + .nav-link { padding: 0 10px; }
}
@media (min-width: 880px) {
  :root { --overlap: 173px; }
  .tab-list { flex: 0 1 300px; }
  .tab-panel { display: flex; }
  .accordion { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
