/* ==========================================================================
   SHEVATON — одностраничный лендинг
   Макет: 1200 px рабочее поле, тёмно-синий фон #001F40, акцент #4281FE
   ========================================================================== */

/* --- Шрифт Inter (самохостинг, 4 сабсета) --------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-italic-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 {
  --bg: #001f40;
  --blue: #4281fe;
  --white: #ffffff;

  --field: 1200px;

  --label-size: 36px;
  --behance-size: 125px;
  --arttec-width: 178px;
  --cta-gap: 24px;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--field), 100% - 48px);
  margin-inline: auto;
}

/* --- Шапка ---------------------------------------------------------------- */

.site-header {
  flex: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  display: block;
  width: 161px;
  height: auto;
}

.phone {
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.phone:hover {
  color: var(--blue);
}

/* --- Первый экран --------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 40px;
}

.hero__title {
  margin: 0;
  font-size: 96px;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

/* «ИИ» — светлый курсив, как «на» в «Смотри на» */
.hero__title em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
}

/* --- Блок ссылок ---------------------------------------------------------- */

.cta {
  position: absolute;
  top: calc(50% + 12px);
  right: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-50%);
}

.cta__behance {
  display: flex;
  align-items: center;
  gap: var(--cta-gap);
  color: var(--white);
  text-decoration: none;
}

.cta__label {
  font-size: var(--label-size);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* «на» — светлый курсив, как «ИИ» в заголовке */
.cta__label em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

.cta__behance img {
  display: block;
  width: var(--behance-size);
  height: var(--behance-size);
  border-radius: 17.6%;
  transition: filter 0.2s ease;
}

.cta__arttec {
  display: flex;
  justify-content: flex-start;
  width: var(--behance-size);
  margin-top: 32px;
}

.cta__arttec img {
  display: block;
  flex: none;
  width: var(--arttec-width);
  max-width: none;
  height: auto;
  transition: filter 0.2s ease;
}

/* Логотипы-ссылки при наведении светлеют на 20 % */
.cta__behance:hover img,
.cta__arttec:hover img,
.cta__behance:focus-visible img,
.cta__arttec:focus-visible img {
  filter: brightness(1.2);
}

/* --- Подвал --------------------------------------------------------------- */

.site-footer {
  flex: none;
  color: var(--blue);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
  padding-block: 18px;
}

.copyright {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.email {
  color: var(--blue);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.email:hover {
  color: #8cb3fe;
}

/* ==========================================================================
   Планшет: блок ссылок уходит под заголовок
   ========================================================================== */

@media (max-width: 1199px) {
  :root {
    --label-size: clamp(20px, 3vw, 36px);
    --behance-size: clamp(72px, 10.4vw, 125px);
    --arttec-width: clamp(104px, 14.8vw, 178px);
    --cta-gap: clamp(14px, 2vw, 24px);
  }

  /* 78 px при 600 и 96 px при 1200 — стыкуется с телефонным правилом */
  .hero__title {
    font-size: clamp(78px, 3vw + 60px, 96px);
  }

  /* Заголовок поднимаем к шапке — на планшете он стоит выше, чем на десктопе */
  .hero__inner {
    padding-top: 32px;
  }

  /* На планшете раскладка как на большом экране: надпись слева от иконки,
     ArtTec — под её левым краем. */
  .cta__behance {
    flex-direction: row;
    align-items: center;
    gap: var(--cta-gap);
  }

  .cta {
    position: static;
    align-self: stretch;
    align-items: flex-end;
    /* Опускаем блок к середине первого экрана: отступ растёт вместе с высотой
       окна, поэтому на портретном планшете блок стоит низко, а в альбомной
       ориентации не уезжает под подвал. −10 px компенсируют сдвиг заголовка,
       чтобы блок остался на месте. */
    margin-top: clamp(32px, calc(15vh - 10px), 150px);
    /* ArtTec шире иконки Behance и свисает вправо (так же, как на десктопе
       он уходит в отступ 112 px). Сдвигаем блок на эту разницу, чтобы
       логотип встал ровно по правому краю поля, а не за экран. */
    padding-right: calc(var(--arttec-width) - var(--behance-size));
    transform: none;
  }

  .cta__arttec {
    justify-content: flex-start;
    margin-top: clamp(20px, 2.7vw, 32px);
  }
}

/* ==========================================================================
   Узкие планшеты: подвал в две строки
   ========================================================================== */

@media (max-width: 900px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   Телефон
   ========================================================================== */

@media (max-width: 600px) {
  .site-header__inner {
    height: 60px;
    gap: 16px;
  }

  .logo img {
    width: 120px;
  }

  .phone {
    font-size: 14px;
  }

  .hero {
    min-height: 520px;
  }

  .hero__inner {
    padding-top: 26px;
    padding-bottom: 52px;
  }

  .hero__title {
    font-size: 13vw;
    letter-spacing: -0.02em;
  }

  /* Главное изображение сдвинуто вправо на 30 px */
  .hero__bg {
    object-position: calc(50% + 30px) center;
  }

  /* На телефоне надпись снова встаёт над иконками, всё — по правому краю;
     блок прижат к низу экрана, чтобы ArtTec был у края постамента */
  .cta {
    margin-top: auto;
    padding-right: 0;
  }

  .cta__behance {
    flex-direction: column;
    align-items: flex-end;
  }

  .cta__arttec {
    justify-content: flex-end;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 22px;
  }

  .copyright,
  .email {
    font-size: 13px;
  }

  .copyright {
    max-width: 34ch;
  }
}

/* Очень узкие телефоны: уменьшаем логотип, чтобы телефон влез в строку */
@media (max-width: 360px) {
  .site-header__inner {
    gap: 10px;
  }

  .logo img {
    width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
