@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter';
  line-height: 1.6;
  color: #1a1a1a;
  background: radial-gradient(
    165.14% 53.17% at 146.06% -11.5%,
    rgba(231, 68, 74, 1) 0%,
    rgba(47, 14, 15, 1) 57.69%,
    rgba(0, 0, 0, 1) 87.98%
  );
  padding: 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0b5ed7;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==== Хедер ==== */
.site-header {
  padding: 48px 20px 0;
}
.intro h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: white;
  font-family: 'Unbounded';
  font-weight: 700;
  font-size: 65px;
  margin: 0;
}
.intro .lead {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: 26px;
  font-family: 'Gilroy';
  font-weight: 400;
}

/* Контакты */
.contacts {
  margin-top: 32px;
}
.contacts__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px;
  max-width: 280px;
  background: #00000033;
  border: 0.31px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}
.qr-block p {
  font-family: 'Unbounded';
  font-weight: 400;
  font-size: 16px;
  color: white;
  margin: 0;
  text-align: center;
}
.contacts__qr {
  margin: 0;
  flex: 0 0 auto;
}

.contacts__qr img {
  width: 100%;
  border-radius: 8px;
  background: transparent;
}

.background-photo {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  z-index: -1;
  right: -13%;
}

/* Правый блок — flex row из групп */
.contacts__list {
  display: flex;
  flex: 1 1 320px;
  gap: 24px;
  flex-wrap: wrap;
  flex-direction: column;
  position: relative;
}
.contacts__group {
  min-width: 180px;
}
.contacts__group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 400;
  font-family: 'Unbounded';
}

/* Иконки мессенджеров и соцсетей */
.icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-left: 12px;
}
.icons a {
  display: inline-flex;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.icons a:hover {
  transform: scale(1.08);
  text-decoration: none;
}
.icons img {
  display: block;
  max-width: 50px;
}

/* Телефоны и почта */
.contacts__plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-family: 'Unbounded';
  font-size: 20px;
  line-height: 1.3;
}
.contacts__plain a {
  color: #ffffff;
  font-weight: 400;
}
.contacts__plain a:hover {
  color: #0b5ed7;
}

/* ==== Main ==== */
main {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.section h2 {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}
.section-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

/* Сетка на 3 колонки */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.card {
  background: transparent;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 20px;
  box-sizing: border-box;
  background-clip: padding-box;
}
.card a {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover a {
  text-decoration: none;
}
.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Inter';
  color: white;
}
.card img {
  width: 100%;
  object-fit: contain;
}
.card p {
  margin: 0;
  color: #ffffff;
  font-family: 'Inter';
  line-height: 1.3;
}

.card p span {
  font-weight: 700;
  color: white;
}

article.card:nth-child(1 of .card) {
  background: radial-gradient(60.48% 94.14% at -10.34% -12.12%, #ba2e32 0%, rgba(0, 0, 0, 0) 100%)
    /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

article.card:nth-child(2 of .card) {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    radial-gradient(60.48% 94.14% at -10.34% -12.12%, #e5a14e 0%, rgba(0, 0, 0, 0) 100%)
      /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

article.card:nth-child(3 of .card) {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    radial-gradient(60.48% 94.14% at -10.34% -12.12%, #f79722 0%, rgba(0, 0, 0, 0) 100%)
      /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

/* Простой блок с 3 колонками без картинок */
.cards-3--plain > * {
  padding: 20px;
  border-left: 3px solid #0b5ed7;
  background: #f9fafb;
  border-radius: 0 8px 8px 0;
}
.cards-3--plain h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.cards-3--plain p {
  margin: 0;
  color: #ffffff;
}

/* Блок во всю ширину */
.block-wide p {
  margin: 0 0 12px;
}
.block-wide p:last-child {
  margin-bottom: 0;
}

.profile-community {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0000001a;
  backdrop-filter: blur(13.399999618530273px);
  padding: 20px;
  gap: 12px;
  display: flex;
  flex-direction: column;
  color: white;
}

.profile-community h3 {
  font-family: 'Gilroy';
  font-weight: 400;
  font-size: 16px;
  margin: 0;
}

.profile-community p {
  font-family: 'Inter';
  font-weight: 400;
  font-size: 16px;
}

.section .aboutMe {
  font-family: 'Unbounded';
  font-size: 24px;
  font-weight: 400;
  background-image: linear-gradient(90deg, #e7444a 0%, #ffc5c8 100%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section .aboutMe-block,
.section.about .achievements-block {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(13.399999618530273px);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.section .aboutMe-block h3,
.section.about .achievements-block h3 {
  font-family: 'Unbounded';
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  color: white;
}

.section .aboutMe-block p,
.section.about .achievements-block p {
  font-size: 16px;
  font-family: 'Inter';
  font-weight: 300;
}

.section.achievements {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 20px;
  gap: 24px;
}

.section .achievements-block {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  max-width: 370px;
}

.section .year-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section .year-block .year-includes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section .year-block h3 {
  background-image: linear-gradient(90deg, #e7444a 0%, #ffc5c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Unbounded';
  margin: 0;
}

.section .year-block h4 {
  font-family: 'Inter';
  font-weight: 600;
  font-size: 16px;
  color: white;
  margin: 0;
  line-height: 1.3;
}

.section .year-block p {
  font-family: 'Inter';
  font-weight: 300;
  font-size: 16px;
  max-width: 90%;
  line-height: 1.3;
}

#s4-title {
  font-size: 16px;
  font-family: Unbounded;
  font-weight: 400;
  color: white;
}

.section.final-text {
  position: relative;
  border-radius: 24px;
  padding: 20px;
  gap: 8px;
}

.section.final-text::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #e7444a 0%, #ffc5c8 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.section.final-text p {
  font-family: 'Unbounded';
  font-weight: 400;
  background-image: linear-gradient(90deg, #e7444a 0%, #ffc5c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
}

/* ==== Футер ==== */
.site-footer {
  padding: 0;
  font-size: 14px;
  color: #ffffff;
  width: 100%;
  max-width: 1200px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__inner p {
  margin: 0;
  font-family: 'Inter';
  font-weight: 300;
  font-size: 16px;
}

.footer__inner .website-link a {
  font-family: 'Unbounded';
  font-weight: 400;
  font-size: 14px;
  color: white;
  text-transform: uppercase;
}

.site-footer .blur-welcome {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 99999;
  backdrop-filter: blur(30px);
  transition: all 100ms ease;
}

.site-footer .blur-welcome.anim {
  animation: blur-welcome 400ms ease forwards;
}

@keyframes blur-welcome {
  0% {
    backdrop-filter: blur(30px);
  }
  100% {
    backdrop-filter: blur(0px);
  }
}

#add-to-contacts {
  display: none;
}

.achievements-block-mobile {
  display: none;
}

.back-to-top {
  display: none;
}

.footer__inner p:first-child br {
  display: none;
}

.background-photo-mobile {
  display: none;
}

.section.about .achievements-block.achievements-block-mobile {
  display: none;
}

/* ==== Адаптив ==== */
@media (max-width: 900px) {
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }

  body {
    max-width: 100%;
    width: 100%;
    padding: 20px;
    gap: 32px;
  }

  .intro h1 {
    font-size: 40px;
  }

  .intro .lead {
    font-size: 16px;
  }

  .qr-block {
    display: none;
  }

  .site-header {
    padding: 20px;
    border-radius: 24px;
    margin-top: 400px;
    border: 0.5px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(13.399999618530273px);
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
      radial-gradient(
        126.75% 98.98% at -6.3% 105.04%,
        rgba(231, 68, 74, 0.4) 0%,
        rgba(47, 14, 15, 0.24) 62.28%,
        rgba(0, 0, 0, 0) 87.98%
      );
    /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */
    max-width: 372px;
  }

  .background-photo {
    display: none;
  }

  .background-photo-mobile {
    display: block;
    position: absolute;
    z-index: -1;
    width: 700px;
    max-width: 700px;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
  }

  .icons {
    gap: 22px;
  }

  main,
  footer {
    max-width: 372px;
    gap: 32px;
  }

  .contacts {
    margin-top: 24px;
  }

  .contacts__inner {
    gap: 24px;
  }

  #add-to-contacts {
    display: flex;
    padding: 10px 22px;
    font-size: 20px;
    text-align: center;
    font-family: 'Unbounded';
    font-weight: 400;
    color: white;
    background: #e7444a;
    border-radius: 24px;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .section .aboutMe {
    margin-bottom: 32px;
  }

  .achievements {
    display: none;
  }

  .section.about .achievements-block.achievements-block-mobile {
    display: flex;
  }

  .section .aboutMe-block,
  .section.about .achievements-block {
    position: relative;
  }

  .section.about .achievements-block h3 {
    color: white;
    background-image: none;
    -webkit-text-fill-color: unset;
  }

  .section.about .achievements-block {
    margin-top: 69px;
  }

  .section.about .achievements-block h2 {
    color: white;
    position: absolute;
    top: -16%;
    left: 0;
    font-size: 16px;
    font-family: 'Unbounded';
    font-weight: 400;
  }

  .section .aboutMe-block:nth-child(3 of .aboutMe-block),
  .section .aboutMe-block:nth-child(4 of .aboutMe-block) {
    margin-top: 48px;
  }

  .section .aboutMe-block:nth-child(3 of .aboutMe-block) h3,
  .section .aboutMe-block:nth-child(4 of .aboutMe-block) h3 {
    position: absolute;
    top: -11%;
    left: 0;
  }

  .section.final-text p {
    font-size: 16px;
    text-align: center;
  }

  .section.final-text p br {
    display: none;
  }

  .back-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    gap: 16px;
    color: white;
    background: transparent;
    border: none;
  }

  .back-to-top img {
    object-fit: contain;
  }

  .back-to-top span {
    font-family: 'Unbounded';
    font-weight: 400;
    font-size: 16px;
    margin: 0;
  }

  .footer__inner {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .footer__inner p:first-child {
    order: 2;
    text-align: center;
  }

  .footer__inner .website-link {
    order: 1;
  }

  .footer__inner p:first-child br {
    display: block;
  }
}

@media (max-width: 640px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .contacts__inner {
    flex-direction: column;
  }
  .contacts__qr img {
    width: 140px;
    height: 140px;
  }
}
