:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #10131a;
  --muted: #5b6472;
  --line: #e4e7ec;
  --accent: #2b5cff;
  --accent-soft: #eef2ff;
  --radius: 14px;
  --maxw: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 15px;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.lang {
  display: flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
}

.lang button[aria-pressed="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 19, 26, 0.08);
}

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 680;
}

h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 28px;
}

h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; font-weight: 620; }

p { margin: 0 0 16px; }

.lede { font-size: 20px; color: var(--muted); max-width: 62ch; }

/* Hero */
.hero { padding-top: 96px; }
.hero .role {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-weight: 550;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn:hover { text-decoration: none; border-color: #c9cfd9; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #1f4ae0; border-color: #1f4ae0; }

.btn-download {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
  font-weight: 600;
}
.btn-download:hover { background: #e2e9ff; border-color: transparent; text-decoration: none; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 44px;
}
.hero-text { flex: 1; min-width: 0; }

.avatar {
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* Carousel */
.carousel { position: relative; }

.car-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.car-track::-webkit-scrollbar { display: none; }

.car-item {
  flex: 0 0 clamp(260px, 62%, 460px);
  scroll-snap-align: center;
  margin: 0;
}

.car-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
  background: var(--bg-soft);
}

.car-item figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 9px;
  text-align: center;
}

.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 19, 26, 0.1);
}
.car-nav:hover { border-color: #c9cfd9; }
.car-nav:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -10px; }
.car-next { right: -10px; }

.car-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.car-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.car-dots button[aria-current="true"] { background: var(--accent); }

/* Awards */
.award-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.award-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.award-list li:last-child { border-bottom: 0; }
.award-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #c9cfd9; transform: translateY(-2px); }

.card p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
}
.card-head h3 { margin: 0; }

/* Высота фиксирована, ширина по пропорциям: широкие логотипы не сплющиваются
   в квадрат и остаются читаемыми. contain — чтобы ничего не обрезалось. */
.card-logo {
  height: 34px;
  width: auto;
  max-width: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 2px 9px;
}

/* Timeline */
.timeline { border-left: 2px solid var(--line); padding-left: 26px; margin-left: 6px; }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-period { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item p { color: var(--muted); font-size: 16px; margin: 6px 0 0; }
.verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: 999px;
}
.verify-link:hover { background: #e2e9ff; text-decoration: none; }

/* Skills */
.skill-group { margin-bottom: 22px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h3 { font-size: 15px; margin-bottom: 10px; }

/* Contact */
.contact-list { display: flex; flex-wrap: wrap; gap: 10px; }

footer {
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .nav a { display: none; }
  section { padding: 52px 0; }
  .hero { padding-top: 60px; }
  .lede { font-size: 18px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 26px; }
  .avatar { width: 128px; height: 128px; }
}
