/* Токены из Figma: AI Khan, страница «sayfullaev.uz · Desktop 1440» */
:root {
  --ink: #0e1716;
  --graphite: #5b6472;
  --line: #d9dee3;
  --paper: #f4f6f7;
  --white: #ffffff;
  --primary: #0e5e55;
  --deep: #003d3a;
  --step-900: #0e2321;
  --tint50: #e6f4f1;
  --tint100: #bfe3db;
  --tint300: #7cc4b4;
  --link: #1f7a66;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-alt: "Montserrat Alternates", sans-serif;

  --container: 1160px;
  --gutter: max(20px, calc((100% - var(--container)) / 2));
  --radius-card: 16px;
  --radius-btn: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.section { padding: 104px var(--gutter); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--deep); }

/* Надзаголовок секции */
.eyebrow {
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.78px;
  text-transform: uppercase;
  color: var(--primary);
}
.section--deep .eyebrow { color: var(--tint300); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  max-width: 760px;
}
.section--deep .section-title { color: var(--white); }
.section-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--graphite);
  max-width: 680px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: normal;
  padding: 14px 24px;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn--s { font-size: 14px; padding: 10px 16px; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--deep); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost.btn--s { padding: 8.5px 14.5px; }
.btn--ghost:not(.btn--s) { padding: 12.5px 22.5px; }
.btn--ghost:hover { border-color: var(--primary); }
.btn--ondark { background: var(--tint300); color: var(--ink); }
.btn--ondark:hover { background: var(--tint100); }
.btn:focus-visible,
.nav a:focus-visible,
.contact-row a:focus-visible { outline: 2px solid var(--tint300); outline-offset: 3px; }

/* Чипы */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  background: var(--tint50);
  color: var(--deep);
}
.chip--muted { background: none; border: 1px solid var(--line); color: var(--graphite); }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 23.64px; height: 26px; }
.logo span { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.5; }
.nav { display: flex; gap: 32px; font-weight: 500; font-size: 15px; line-height: 1.5; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { font-family: var(--font-alt); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--graphite); }

/* Первый экран */
.hero {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 88px var(--gutter) 96px;
}
.hero-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: 62px; line-height: 1.05; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Бейдж аккредитации */
.badge { position: relative; flex: none; width: 420px; height: 520px; }
.badge-strap {
  position: absolute;
  left: 192px;
  top: -20px;
  width: 36px;
  height: 120px;
  border-radius: 4px;
  background: var(--primary);
}
.badge-wrap {
  position: absolute;
  left: 10.77px;
  top: 70px;
  width: 368.4px;
  height: 441.7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-card {
  width: 340px;
  transform: rotate(4deg);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(13, 23, 23, 0.12);
}
.badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.56px;
}
.badge-top img { width: 20px; height: 22px; }
.badge-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.badge-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 48px;
  background: var(--tint50);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.5;
}
.badge-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.badge-role { font-size: 14px; line-height: 1.5; color: var(--graphite); }
.badge-zones { display: flex; gap: 8px; }
.badge-zones span {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--tint50);
  color: var(--deep);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}
.badge-zones span:first-child { background: var(--primary); color: var(--white); }
.badge-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: var(--graphite);
}
.barcode { display: flex; gap: 2px; }
.barcode i { display: block; width: 2px; height: 22px; background: var(--ink); }
.barcode i.w1 { width: 1px; }
.barcode i.w3 { width: 3px; }

/* Цифры */
.stats-wrap { padding: 0 var(--gutter); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 32px; background: var(--white); line-height: 1.5; }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: 40px; }
.stat span { font-size: 15px; color: var(--graphite); }

/* Опыт */
.timeline-item {
  display: flex;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.timeline-date {
  flex: none;
  width: 200px;
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--primary);
}
.timeline-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.5; }
.timeline-org { font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.timeline-body p { font-size: 16px; line-height: 1.55; color: var(--graphite); }

/* Проекты */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 371px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.project-logo-noma { display: flex; flex-direction: column; gap: 1.1px; padding: 1.1px; }
.project-logo-noma .row { display: flex; align-items: center; gap: 1.1px; }
.project-logo-noma .row--end { justify-content: flex-end; }
.project-logo-noma .n1 { width: 20.62px; height: 21.94px; }
.project-logo-noma .n2 { width: 21.94px; height: 21.94px; }
.project-logo-noma .n3 { width: 35.97px; height: 21.94px; }
.project-logo-noma .n4 { width: 22.16px; height: 21.83px; }
.project-logo-noma .np { width: 40.22px; height: 8.77px; }
.project-logo-brainos { font-family: var(--font-alt); font-weight: 600; font-size: 32px; line-height: normal; }
.project-logo-brainos span { font-weight: 300; color: var(--primary); }
.project-logo-aikhan { width: 163.58px; height: 28px; }
.project-kind { font-family: var(--font-alt); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--graphite); }
.project-desc { font-size: 16px; line-height: 1.55; color: var(--graphite); }
.project-link { display: flex; align-items: center; gap: 12px; }
.project-link span { font-size: 13px; line-height: 1.5; color: var(--link); }

/* Навыки */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }
.skill { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-card); background: var(--step-900); }
.skill h3 { font-family: var(--font-alt); font-weight: 600; font-size: 20px; line-height: 1.5; color: var(--tint300); }
.skill p { font-size: 15px; line-height: 1.55; color: var(--tint100); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
  padding: 8px 16px;
  border: 1px solid var(--tint300);
  border-radius: 999px;
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

/* Образование и языки */
.edu-lang { display: flex; gap: 72px; align-items: flex-start; }
.edu { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; line-height: 1.5; }
.edu-item { display: flex; gap: 32px; padding: 18px 0; border-top: 1px solid var(--line); }
.edu-year { flex: none; width: 80px; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--primary); }
.edu-item div { display: flex; flex-direction: column; gap: 2px; }
.edu-item b { font-weight: 600; font-size: 17px; }
.edu-item span { font-size: 15px; color: var(--graphite); }
.langs { flex: none; width: 420px; display: flex; flex-direction: column; gap: 18px; }
.lang-item { display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.lang-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lang-head b { font-weight: 600; font-size: 17px; }
.lang-head span { font-size: 15px; color: var(--graphite); }
.lang-bar { height: 6px; border-radius: 4px; background: var(--tint50); overflow: hidden; }
.lang-bar i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.lvl-100 { width: 100%; }
.lvl-70 { width: 70%; }
.lvl-35 { width: 35%; }
.lvl-20 { width: 20%; }

/* Публикации */
.pubs { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 28px; }
.pubs .section-title { line-height: 1.5; max-width: none; }
.pub { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.pub-kind { font-family: var(--font-alt); font-weight: 500; font-size: 13px; line-height: 1.5; color: var(--primary); }
.pub h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.3; }
.pub p { font-size: 14px; line-height: 1.5; color: var(--graphite); }

/* Контакты */
.contacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 88px var(--gutter);
  background: var(--primary);
  color: var(--white);
}
.contacts-text { display: flex; flex-direction: column; gap: 20px; line-height: 1.5; }
.contacts .eyebrow { color: var(--tint300); }
.contacts h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; }
.contact-row { display: flex; align-items: center; gap: 20px; }
.contact-row span { width: 100px; flex: none; font-family: var(--font-alt); font-weight: 500; font-size: 14px; color: var(--tint100); }
.contact-row a { font-weight: 600; font-size: 24px; }
.contact-row a:hover { color: var(--tint100); }

/* Подвал */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  font-size: 13px;
  line-height: 1.5;
  color: var(--graphite);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 16.36px; height: 18px; }

/* Планшет */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .hero { gap: 40px; }
  .hero-title { font-size: 52px; }
  .badge { transform: scale(.85); transform-origin: center; margin: -39px -32px; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .edu-lang { gap: 48px; }
  .langs { width: 360px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 64px; }
  .badge { align-self: center; margin: -20px 0 -40px; transform: scale(.9); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .project { min-height: 0; }
  .edu-lang { flex-direction: column; }
  .langs { width: 100%; }
  .contacts { flex-direction: column; align-items: flex-start; }
}

/* Телефон */
@media (max-width: 600px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .header { padding-top: 16px; padding-bottom: 16px; }
  .lang { display: none; }
  .hero-title { font-size: 38px; }
  .hero-lead { font-size: 17px; }
  .badge { transform: scale(.72); margin: -60px -60px -90px; }
  .stat { padding: 24px; }
  .stat b { font-size: 32px; }
  .section-title { font-size: 30px; }
  .section-lead { font-size: 17px; }
  .timeline-item { flex-direction: column; gap: 8px; }
  .timeline-date { width: auto; }
  .timeline-body h3 { font-size: 19px; }
  .skills { grid-template-columns: 1fr; }
  .edu-item { gap: 16px; }
  .edu-year { width: 56px; font-size: 17px; }
  .pubs .section-title { line-height: 1.15; }
  .contacts { padding-top: 64px; padding-bottom: 64px; }
  .contacts h2 { font-size: 30px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-row a { font-size: 20px; word-break: break-all; }
  .footer { flex-direction: column; align-items: flex-start; }
}
