/* ============================================================
   Оксана Ратникова — Портфолио
   Дизайн-система: Швейцарский минимализм (Swiss / International)
   ============================================================ */

:root {
  --bg:        #fcfcfa;
  --soft:      #f4f5f1;
  --ink:       #101112;
  --blue:      #1450ff;
  --muted:     #4c5058;
  --faint:     #9a9ea6;
  --line:      #101112;   /* жирные hairline-линии */
  --line-soft: #d9d9d4;   /* тонкие разделители */
  --hover:     #f2f3ef;

  --wrap: 1160px;
  --pad: 32px;

  --f-head: "Inter Tight", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .idx, .num, .stat-val, .logo { font-family: var(--f-head); }

a { color: inherit; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

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

/* ---------- Общие утилиты ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 40px;
}
.section-title em { font-style: normal; color: var(--blue); }

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-soft { background: var(--soft); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
}
.logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--blue); }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* ---------- Hero (главная) ---------- */
.hero { padding: 84px 0 60px; border-bottom: 1px solid var(--line); }
.hero .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 24px;
}
.wordmark {
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.wordmark em { font-style: normal; color: var(--blue); }

.hero .byline {
  margin-top: 26px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
}
.hero .lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  margin-top: 14px;
}
.hero-statement {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-top: 22px;
  max-width: 640px;
}
.hero-statement em { font-style: normal; color: var(--blue); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* Портрет в герое */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 335px);
  gap: 60px;
  align-items: center;
}
.hero-grid .wordmark { font-size: clamp(48px, 6.6vw, 88px); }

.hero-portrait { position: relative; margin-top: 24px; }
.hero-portrait picture { display: block; }
.hero-portrait img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.04);
}
.hero-portrait::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 74px;
  height: 74px;
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
  pointer-events: none;
}
.hero-portrait figcaption {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Page hero (внутренние) ---------- */
.page-hero { padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero p { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: 17px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  white-space: nowrap;
}
.marquee-track { display: inline-block; animation: scroll-x 32s linear infinite; }
.marquee span {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.marquee b { color: var(--blue); margin: 0 18px; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 7px 13px;
  background: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border: 2px solid var(--ink);
  transition: background .18s, color .18s, border-color .18s;
  cursor: pointer;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- Grid & Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 32px 30px;
  background: var(--bg);
  transition: background .2s;
}
.card:hover { background: var(--hover); }
.card .icon { font-size: 26px; margin-bottom: 18px; }
.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.card p { color: var(--muted); font-size: 15px; }

.skill-group h3 { margin-bottom: 16px; }
.skill-group .tags { margin-top: 0; }

/* ---------- Case list (Swiss rows) ---------- */
.case-list { border-top: 1px solid var(--line); }
.case-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px 32px;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
.case-row:hover { background: var(--hover); }
.case-row .idx { font-size: 15px; font-weight: 700; color: var(--faint); padding-top: 6px; }
.case-row h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.case-row p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 620px; }
.case-row .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-row .tools span {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft); padding: 4px 9px;
}
.case-row .cat {
  font-family: var(--f-head);
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); padding-top: 6px;
}
.case-row .arr { font-size: 22px; color: var(--ink); padding-top: 4px; text-align: right; }

/* ---------- Case study (проблема → система → результат) ---------- */
.case-study { border-top: 1px solid var(--line); padding: 44px 0; }
.case-study:last-of-type { border-bottom: 1px solid var(--line); }
.cs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.cs-head .idx { font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--faint); }
.cs-head .cat { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.case-study > h3 { font-size: clamp(22px, 2.6vw, 31px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 30px; max-width: 900px; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); margin-bottom: 24px; }
.cs-col { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 24px 24px; }
.cs-col h4 { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.cs-col p { font-size: 14.5px; color: var(--ink); }
.cs-col .metric-lg { font-family: var(--f-head); font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--ink); display: block; margin-bottom: 10px; }
.cs-col .metric-lg i { font-style: normal; color: var(--blue); }
.case-study .tools { display: flex; flex-wrap: wrap; gap: 8px; }
.case-study .tools span {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft); padding: 4px 9px;
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.filter-btn {
  font-family: var(--f-head);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 9px 15px;
  cursor: pointer;
  transition: all .18s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.process .step { padding: 28px 20px 28px 0; border-right: 1px solid var(--line-soft); }
.process .step:last-child { border-right: none; }
.process .num { font-size: 15px; font-weight: 900; color: var(--blue); margin-bottom: 14px; }
.process .step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.process .step p { font-size: 14px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.stats .stat { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 30px 24px; }
.stats .value { font-family: var(--f-head); font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; }
.stats .value em, .stats .value i { font-style: normal; color: var(--blue); }
.stats .stat h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.stats .stat p { font-size: 13px; color: var(--muted); }

/* ---------- Метрики (крупные) ---------- */
.metrics { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 8px; }
.metric b { display: block; font-family: var(--f-head); font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.metric b i { font-style: normal; color: var(--blue); }
.metric span { font-size: 13px; color: var(--muted); }

/* ---------- Quote ---------- */
.quote h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; max-width: 900px; }
.quote p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 640px; }

/* ---------- About layout ---------- */
.about-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); font-size: 16px; margin-bottom: 16px; max-width: 620px; }
.about-text .btn { margin-top: 14px; }
.checklist { list-style: none; }
.checklist li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 15px;
}
.checklist li:first-child { border-top: 1px solid var(--line-soft); }
.checklist li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ---------- Education ---------- */
.edu-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.edu-item:first-of-type { border-top: 1px solid var(--line); }
.edu-item .year { font-family: var(--f-head); font-weight: 900; font-size: 20px; color: var(--blue); }
.edu-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.edu-item p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: padding-left .2s;
}
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item:hover { padding-left: 8px; }
.contact-item .icon { font-size: 24px; }
.contact-item .label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.contact-item .value { font-family: var(--f-head); font-size: 20px; font-weight: 700; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 13px 14px;
  transition: border-color .18s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 84px 0; background: var(--ink); color: var(--bg); }
.cta h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1; text-transform: uppercase; }
.cta p { margin-top: 20px; max-width: 560px; color: #c9ccce; font-size: 17px; }
.cta-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.cta .btn-outline { color: var(--bg); border-color: var(--bg); }
.cta .btn-outline:hover { background: var(--bg); color: var(--ink); }
.cta .btn-primary { background: var(--blue); border-color: var(--blue); }
.cta .btn-primary:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; background: var(--bg); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { padding-top: 22px; font-size: 13px; color: var(--faint); }

/* ---------- Столпы (3 направления) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
}
.pillar {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background .2s;
}
.pillar:hover { background: var(--hover); }
.pillar .no { font-family: var(--f-head); font-size: 14px; font-weight: 900; color: var(--blue); letter-spacing: .1em; margin-bottom: 22px; }
.pillar h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.pillar > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.pillar ul { list-style: none; margin-bottom: 26px; }
.pillar ul li { font-size: 14px; padding: 8px 0 8px 20px; position: relative; border-bottom: 1px solid var(--line-soft); }
.pillar ul li:first-child { border-top: 1px solid var(--line-soft); }
.pillar ul li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.pillar .proof { margin-top: auto; padding-top: 20px; border-top: 2px solid var(--ink); }
.pillar .proof b { font-family: var(--f-head); font-size: 32px; font-weight: 900; letter-spacing: -.03em; line-height: 1; display: block; margin-bottom: 6px; }
.pillar .proof b i { font-style: normal; color: var(--blue); }
.pillar .proof span { font-size: 12px; color: var(--muted); }

/* ---------- Манифест ---------- */
.manifesto p { font-family: var(--f-head); font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; max-width: 940px; }
.manifesto p em { font-style: normal; color: var(--blue); }
.manifesto .sign { margin-top: 24px; font-size: 14px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 900px) {
  .grid, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process .step { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .case-row { grid-template-columns: 40px 1fr 28px; }
  .case-row .cat { grid-column: 2; padding-top: 12px; }
  .cs-grid { grid-template-columns: 1fr; }

  /* На средних экранах колонки сохраняем, портрет сжимаем */
  .hero-grid { grid-template-columns: 1fr 240px; gap: 32px; }
  .hero-portrait { margin-top: 0; }
  .hero-portrait figcaption { font-size: 11px; letter-spacing: .1em; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a.active { border-bottom-color: var(--line-soft); }
  .burger { display: block; }

  .grid, .grid-2, .stats { grid-template-columns: 1fr; }
  .metrics { gap: 28px 40px; }
  .edu-item { grid-template-columns: 1fr; gap: 6px; }

  /* Телефон: портрет наверх, небольшим кадром — чтобы не выдавливал текст */
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-portrait { order: -1; width: 260px; margin-top: 0; }
  .hero-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
  .hero-portrait::before { width: 46px; height: 46px; left: -8px; top: -8px; border-width: 2px; }
  .hero-portrait figcaption { margin-top: 8px; padding-top: 8px; }
}
