@font-face {
  font-family: "Onest";
  src: url("../fonts/OnestRegular1602-hint.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/OnestBold1602-hint.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/OnestExtraBold1602-hint.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dedede;
  --blue: #0436fe;
  --text: #080808;
  --radius: 14px;
  --page-max: 800px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}


/* ------------------------------
   ОСНОВНОЙ КОНТЕЙНЕР
------------------------------ */

.page {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: 30px 27px 50px;
}


/* ------------------------------
   РОСТИСЛАВ.РФ
------------------------------ */

.brand {
  position: relative;
  z-index: 1;

  display: block;
  width: max-content;

  margin-left: 11px;
  margin-bottom: -2px;

  color: var(--blue);

  font-size: 45px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.055em;

  text-decoration: none;
}


/* ------------------------------
   ПЕРВЫЙ ЭКРАН
------------------------------ */

.hero {
  position: relative;

  display: grid;
  grid-template-columns: 327px minmax(0, 1fr);

  gap: 34px;
  align-items: start;

  margin-top: 0;
}


/* ------------------------------
   ФОТО
------------------------------ */

.portrait-wrap {
  position: relative;
  z-index: 2;

  width: 327px;
  height: 404px;
}

.portrait-shadow {
  position: absolute;

  inset: 15px -14px -14px 14px;

  border-radius: var(--radius);

  background: var(--blue);
}

.portrait-card {
  position: relative;

  width: 100%;
  height: 401px;

  overflow: hidden;

  border: 1px solid var(--blue);
  border-radius: var(--radius);

  background: #fff;
}

.portrait-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  filter: brightness(90%);
  transform: scale(1.2);
}


/* ------------------------------
   ПРАВАЯ КОЛОНКА
------------------------------ */

.hero-copy {
  display: flex;
  flex-direction: column;

  min-height: 418px;

  padding-top: 16px;
}

.hero-copy h1 {
  margin: 0;

  font-size: 25px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.role {
  margin: 3px 0 0;

  font-size: 19px;
  line-height: 1.2;
}


/* ------------------------------
   ТЕКСТ
------------------------------ */

.hero-about {
  margin-top: 22px;
}

.hero-about p {
  margin: 0 0 18px;

  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.hero-about p:last-child {
  margin-bottom: 0;
}

.hero-about a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-about a:hover {
  color: var(--blue);
}


/* ------------------------------
   СОЦСЕТИ
------------------------------ */

.socials {
  display: flex;
  justify-content: flex-end;

  gap: 13px;

  width: 100%;

  margin-top: auto;
}

.social {
  display: grid;
  place-items: center;

  width: 55px;
  height: 55px;

  border-radius: 12px;

  text-decoration: none;

  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.social:hover {
  transform: translateY(-2px);
  opacity: 0.86;
}

.social svg {
  width: 55%;
  height: 55%;

  fill: #fff;
}

.social-telegram {
  background: #28a8e9;
}

.social-linkedin {
  background: #0a66c2;

  color: #fff;

  font-size: 26px;
  font-weight: 700;
}

.social-blog {
  background: #2b2f35;

  color: #fff;

  font-size: 34px;
  font-weight: 700;
}


/* ------------------------------
   ПРОЕКТЫ
------------------------------ */

.projects {
  margin-top: 70px;
}

.projects h2 {
  margin: 0;

  color: var(--blue);

  font-size: 45px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.projects h2 span {
  margin-right: 3px;

  font-size: 0.58em;
}


/* ------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
------------------------------ */

@media (max-width: 680px) {

  .page {
    padding: 28px 18px 45px;
  }

.brand {
  margin-left: 12px;
  margin-bottom: -1px;

  transform: none;

  font-size: clamp(38px, 12vw, 54px);
  line-height: 1;
}

  .hero {
    grid-template-columns: 1fr;

    gap: 34px;

    margin-top: 0;
  }

  .portrait-wrap {
    width: calc(100% - 12px);
    max-width: 560px;
    height: auto;

    aspect-ratio: 523 / 647;
  }

  .portrait-shadow {
    inset: 14px -12px -12px 12px;
  }

  .portrait-card {
    height: 100%;
  }

  .hero-copy {
    min-height: 0;

    padding-top: 0;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .role {
    margin-top: 5px;

    font-size: clamp(20px, 5.4vw, 28px);
  }

  .hero-about {
    margin-top: 30px;
  }

  .hero-about p {
    margin-bottom: 22px;

    font-size: 19px;
    line-height: 1.45;
  }

  .socials {
    justify-content: flex-end;

    gap: 14px;

    margin-top: 30px;
  }

  .social {
    width: 72px;
    height: 72px;

    border-radius: 16px;
  }

  .social-linkedin {
    font-size: 34px;
  }

  .social-blog {
    font-size: 46px;
  }

  .projects {
    margin-top: 84px;
  }

  .projects h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

}

/* ------------------------------
   ОПЫТ
------------------------------ */

.experience {
  margin-top: 35px;
}

/* Горизонтальная шкала */

.experience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  border-top: 1px solid var(--blue);
}


/* Компания */

.experience-item {
  position: relative;

  padding-top: 20px;
  padding-right: 10px;
}


/* Маркер на линии */

.experience-dot {
  position: absolute;

  top: -4px;
  left: 0;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--blue);
}


/* Название компании */

.experience-company {
  font-size: 18px;
  line-height: 1.3;

  font-weight: 400;
  letter-spacing: -0.02em;
}


/* Продолжительность */

.experience-duration {
  margin-top: 8px;

  color: var(--blue);

  font-size: 21px;
  line-height: 1.2;
  font-weight: 400;
}

.experience-duration span {
  font-size: 15px;
}


/* ------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
------------------------------ */

@media (max-width: 680px) {

/* ------------------------------
   ОПЫТ — МОБИЛЬНАЯ ВЕРСИЯ
------------------------------ */

.experience {
  margin-top: 30px;
}

.experience-list {
  display: flex;
  gap: 0;

  overflow-x: auto;
  overflow-y: hidden;

  margin-left: 0;
  padding: 5px 0 15px;

  border: none;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}

.experience-list::-webkit-scrollbar {
  display: none;
}

.experience-item {
  position: relative;

  flex: 0 0 40%;
  min-width: 0;

  padding: 20px 10px 0 0;

  border-top: 1px solid var(--blue);

  scroll-snap-align: start;
}

.experience-item:last-child {
  padding-bottom: 0;
}

.experience-dot {
  top: -4px;
  left: 0;
}

.experience-company {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;

  min-height: 2.6em;
}

.experience-duration {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.2;

  min-height: 2.4em;
}
}


