/* Визитка Антона Аверьянова. Макет: Figma ST-IT 2.0, узел 40000920:2121 (мобильная 375 – основная,
   десктоп – адаптив). Стилистика лендингов ST IT: Geist, уголки .corners, красный #FE3232. */
/* Geist (OFL 1.1, Vercel) – свои файлы, без Google Fonts: адреса посетителей не уходят третьим лицам */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/geist-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../fonts/geist-latin.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 {
  --red: #FE3232;
  --ink: #1A1A1A;
  --text-2: #4D4D4D;
  --muted: #707070;
  --label: #818181;
  --line: #E6E8EF;
  --tile: #F2F3F7;
  --tag: #DCE2E5;
  --black: #040404;
  --pad: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
/* gutter: место под полосу прокрутки зарезервировано, при открытом меню шапка не сдвигается; на это время gutter в цвет меню */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; scrollbar-gutter: stable; }
html:has(body.is-menu) { background: var(--black); }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 16px/1.4 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, dl, dd, h1, h2, h3, p { margin: 0; padding: 0; }
ul { list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }

/* Уголки: --s сторона, --w толщина, --c цвет (компонент .corners лендингов, size=m) */
.corners { position: relative; --s: 20px; --w: 1.5px; --c: var(--red); }
.corners::before, .corners::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s);
  background-repeat: no-repeat;
}
.corners::after { transform: scaleY(-1); }
.corners--gray { --c: #B9C2C9; }

.h2 { font-size: 20px; font-weight: 500; line-height: 1.4; text-transform: uppercase; }
.label { font-size: 14px; line-height: 20px; text-transform: uppercase; color: var(--label); }
.label::before { content: "["; color: var(--red); margin-right: 2px; }
.label::after { content: "]"; color: var(--red); margin-left: 2px; }
.tag { display: inline-block; padding: 4px 12px; background: var(--tag); color: var(--text-2); font-size: 14px; line-height: 28px; text-transform: uppercase; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }

/* Шапка поверх обложки */
.header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px; max-width: 1200px; margin-inline: auto; }
.header__logo img { width: 195px; height: 24px; }
.header__burger { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.header__close, .header__burger[aria-expanded="true"] .header__open { display: none; }
.header__burger[aria-expanded="true"] .header__close { display: block; }
.menu { position: fixed; z-index: 15; inset: 0; background: var(--black); padding: 88px max(var(--pad), calc((100% - 1200px) / 2 + var(--pad))) 32px; display: flex; flex-direction: column; gap: 4px; }
/* Меню проявляется плавно, пункты следом с шагом 50 мс (--i ставит app.js) */
.menu { opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu[hidden] { display: none; }
.menu a { align-self: flex-start; color: #fff; font-size: 24px; font-weight: 400; line-height: 1.4; padding: 8px 0; text-transform: uppercase;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s var(--ease); }
.menu.is-open a { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 50ms), calc(80ms + var(--i, 0) * 50ms), 0s; }
.menu a:hover { color: var(--red); }
.header__burger img { transition: transform .45s var(--ease); }
.header__burger[aria-expanded="true"] .header__close { animation: spin-in .45s var(--ease); }
@keyframes spin-in { from { opacity: 0; transform: rotate(-90deg); } }
body.is-menu { overflow: hidden; }
body.is-menu .header { position: fixed; }

/* Обложка */
.hero { position: relative; overflow: hidden; background: var(--black); min-height: 410px; }
.hero__squares { position: absolute; left: 119px; top: 31px; width: 309px; height: 241px; opacity: 0.3; pointer-events: none; }
.hero__inner { position: relative; padding-top: 72px; padding-bottom: 26px; display: flex; flex-direction: column; gap: 20px; }
.hero__photo img { width: 196px; height: 196px; object-fit: cover; border: 1px solid #2E333D; }
.hero__name { color: var(--red); font-size: 32px; font-weight: 500; line-height: 1.18; }
.hero__role { color: #BFBFBF; font-size: 18px; line-height: 1.15; margin-top: 4px; }
.hero__partner { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.hero__partner img { width: 87px; height: 28px; }
/* Обложка при загрузке: фото, имя и должности поднимаются по очереди, узор проявляется */
.hero__photo, .hero__name, .hero__role { animation: rise .9s var(--ease) both; }
.hero__name { animation-delay: .12s; }
.hero__role { animation-delay: .22s; }
.hero__partner { animation-delay: .3s; }
.hero__squares { animation: fade-in 1.6s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade-in { from { opacity: 0; } }

/* Появление блоков при прокрутке: data-reveal ставит app.js только тем, что ниже первого экрана */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Контакты */
.contacts { margin-top: 40px; }
.contacts__card { padding: 16px; background: #fff; }
.contacts__title { font-size: 16px; font-weight: 400; line-height: 20px; color: var(--muted); text-transform: uppercase; }
.contacts__list li + li a { border-top: 1px solid var(--line); }
.contacts__list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 16px; line-height: 1.4; transition: color .25s var(--ease); }
.contacts__list a:hover span { color: var(--red); }
.contacts__list img { flex: none; width: 40px; height: 40px; transition: transform .3s var(--ease); }
.contacts__list a:hover img { transform: scale(1.08); }
.contacts__list span { min-width: 0; overflow-wrap: anywhere; }

/* Бегущая строка */
.awards { margin-top: 80px; }
.awards .h2 { padding-left: 20px; }
.marquee { margin-top: 14px; overflow: hidden; padding-left: 20px; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track, .marquee:active .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; width: 120px; height: 56px; display: flex; align-items: center; justify-content: center; }
.marquee__track img { width: auto; max-width: 100px; max-height: 42px; }
.marquee__text { width: auto !important; min-width: 120px; color: var(--text-2); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* Обо мне */
.about { margin-top: 80px; }
.about__list { margin-top: 20px; display: grid; gap: 20px; }
.about__list > div { display: flex; flex-direction: column; gap: 4px; }
.about__list dd { font-size: 16px; line-height: 20px; }

/* ГК СТ ИТ */
.stit { margin-top: 80px; padding-inline: 20px; }
.stit__lead { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.stit__grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--tile); padding: 16px; display: flex; flex-direction: column; }
.tile img { width: 64px; height: 64px; object-fit: contain; object-position: left center; transition: transform .5s var(--ease); }
.tile:hover img { transform: translateY(-6px); }
.tile h3 { margin-top: 16px; font-size: 16px; font-weight: 500; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.tile p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* В СМИ */
.media { margin-top: 80px; display: flex; flex-direction: column; gap: 16px; }
.media__news { display: grid; gap: 16px; }
.news { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.news h3 { font-size: 20px; font-weight: 500; line-height: 1.25; }
.news > p:not(.meta) { color: var(--text-2); font-size: 16px; line-height: 1.4; }
.news__link { color: var(--red); font-weight: 500; align-self: flex-start; }
.news__link:hover { text-decoration: underline; }
.media__news + .label { margin-top: 24px; }
.media__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.media__logos li { height: 52px; display: flex; align-items: center; justify-content: center; }
.media__logos img { width: auto; max-width: 142px; max-height: 38px; }

/* Видео */
.video { margin-top: 80px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.video__main { display: grid; gap: 40px; }
.clip { display: flex; flex-direction: column; gap: 12px; }
.clip h3 { color: #4C4C4C; font-size: 18px; font-weight: 500; line-height: 1.4; }
.clip .meta { color: #8E8E8E; }
.clip__player, .clip__preview { position: relative; display: block; aspect-ratio: 343 / 193; background: #1A1A1A; overflow: hidden; }
.clip__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip__preview > picture img, .yt__preview > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; translate: -50% -50%; transition: transform .25s var(--ease); }
.clip__preview:hover .play, .yt__preview:hover .play { transform: scale(1.08); }
.clip__preview > picture img, .yt__preview > picture img { transition: transform .8s var(--ease); }
.clip__preview:hover > picture img, .yt__preview:hover > picture img { transform: scale(1.04); }
.video__label { color: #8E8E8E; font-size: 16px; line-height: 1.4; text-transform: uppercase; }
.video__yt { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
.video__yt::-webkit-scrollbar { display: none; }
.yt { flex: none; width: 260px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.yt p { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.yt__preview { position: relative; display: block; width: 100%; aspect-ratio: 260 / 146; padding: 0; border: 0; background: #1A1A1A; overflow: hidden; cursor: pointer; }
.yt__preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__all { align-self: flex-start; color: #373737; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.video__all:hover { color: var(--red); }

/* Подвал и закрепленная панель */
.footer { background: var(--black); border-top: 1px solid #212121; padding: 24px 0 104px; }
.footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.footer img { width: 195px; height: 24px; }
.footer p { color: #8E8E8E; font-size: 14px; line-height: 1.4; }
.bar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; background: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08); }
.button { display: flex; align-items: center; justify-content: center; height: 52px; padding: 16px 28px; background: var(--red); color: #FFF8F5; font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; transition: background-color .25s var(--ease); }
.button:hover { background: #EB1320; }
.button:active { background: #D90005; }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .hero__photo, .hero__name, .hero__role, .hero__squares, .header__burger[aria-expanded="true"] .header__close { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .menu, .menu a { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* Планшет: колонка та же, сетки шире */
@media (min-width: 768px) {
  :root { --pad: 32px; }
  .header { padding-inline: var(--pad); }
  /* Полный узор, прижат к правому краю экрана и к низу обложки, как в презентациях и КП */
  .hero__squares { left: auto; right: 0; top: auto; bottom: 0; width: auto; height: 360px; }
  .hero__inner { padding-top: 96px; padding-bottom: 40px; }
  .hero__photo img { width: 240px; height: 240px; }
  .hero__name { font-size: 44px; }
  .hero__role { font-size: 20px; }
  .contacts__card { padding: 24px 32px; }
  .contacts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .contacts__list li a, .contacts__list li + li a { border-top: 0; border-bottom: 1px solid var(--line); }
  .awards .h2 { padding-left: var(--pad); }
  .marquee { padding-left: max(var(--pad), calc((100vw - 1200px) / 2 + var(--pad))); }
  .about__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .stit { padding-inline: var(--pad); }
  .stit__lead { max-width: 640px; }
  .media__news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; }
  .video__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .bar { background: transparent; box-shadow: none; padding: 0; left: auto; right: max(var(--pad), calc((100vw - 1200px) / 2 + var(--pad))); bottom: 24px; }
  .button { width: 280px; box-shadow: 0 8px 24px rgba(254, 50, 50, 0.25); }
  /* Подвал высотой 100: центр текстов на 50 от низа совпадает с центром плавающей кнопки (24 + 52/2) */
  .footer { padding: 0; }
  .footer .wrap { min-height: 100px; justify-content: center; gap: 12px; }
}
/* Десктоп: фото и имя в строку, квадраты справа */
@media (min-width: 1100px) {
  .hero__inner { flex-direction: row; align-items: flex-end; gap: 40px; padding-top: 104px; padding-bottom: 48px; }
  .hero__photo img { width: 280px; height: 280px; }
  .hero__name { font-size: 56px; }
  .stit__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .video__yt { overflow: visible; margin-inline: 0; padding-inline: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .yt { width: auto; }
}
