* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 26px 60px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  z-index: 999;
}

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

.nav a {
  text-decoration: none;
  color: #4a4a4a;
  font-family: Inter, sans-serif;
  font-size: 16px;

  transition: 0.25s;
}

.nav a:hover {
  color: #111;
}

.status {
  width: 6px;
  height: 6px;

  background: #ff4242;
  border-radius: 50%;
}

.header__info {
  display: flex;
  align-items: center;
  gap: 14px;

  font-family: Inter, sans-serif;
  font-size: 16px;
  color: #4a4a4a;
}

.divider {
  color: #bdbdbd;
}

#theme-toggle {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
}

body {
  background: #fff;
  color: #111;
}

.hero {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  margin-top: -80px;
}
.hero__avatar {
  width: 200px;
  height: 200px;

  border-radius: 18px;
  object-fit: cover;

  margin-bottom: 28px;
}

.hero__subtitle {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;

  letter-spacing: 0.4em;
  color: #9b9b9b;

  margin-bottom: 32px;
}
.hero__title {
  font-family: "Instrument Serif", serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #111;
  line-height: 1.4;
  max-width: 600px;

  text-decoration: none;
  transition: opacity 0.25s;
  margin-bottom: 16px;
}

.about__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.about__links a {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #555;

  text-decoration: none;

  transition: 0.25s;
}

.about__links a:hover {
  color: #111;
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 16px;
  }

  .header__info {
    display: none;
  }

  .hero {
    padding: 100px 20px 40px;
    min-height: auto;
  }

  .hero__content {
    margin-top: 0;
  }

  .hero__avatar {
    width: 128px;
    height: 128px;
    margin-bottom: 24px;
    margin-top: 48px;
  }

  .hero__subtitle {
    font-size: 12px;
    letter-spacing: 0.3em;
    margin-bottom: 32px;
    text-align: center;
  }

  .hero__title {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 20px;
  }

  .hero__link {
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 320px;
  }

  .about__links {
    gap: 18px;
    flex-direction: column;
    align-items: center;
    margin-bottom: 96px;
  }

  .about__links a {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    justify-content: center;
    padding: 18px 20px;
  }

  .header__info {
    display: none;
  }

  .nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== UI Design Section ===== */

.ui-design {
  padding: 80px 20px; /* Расстояние между блоками тут */

  display: flex;
  flex-direction: column;
  align-items: center;
}

.ui-design__subtitle {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #888;

  margin-bottom: 10px;
}

.ui-design__title {
  font-family: "Instrument Serif", serif;
  font-size: 48px;
  font-weight: 400;

  margin-bottom: 16px;
}

.ui-design__card {
  width: 640px;
  height: 640px;

  background: #ffd7cc;

  border-radius: 24px;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 48px;
}

.ui-design__card img {
  width: 100%;

  display: block;

  transform: translateY(15px);
}

.ui-design {
  transform: translateY(-220px);
}

/* ===== MOB UI Design Section ===== */

@media (max-width: 768px) {
  .ui-design {
    padding: 36px 20px;
    transform: translateY(-100px);
  }

  .ui-design__card {
    width: 100%;
    max-width: 340px;
    height: 340px;
    border-radius: 20px;
    margin-bottom: 32px;
  }

  .ui-design__card img {
    width: 100%;
    transform: translateY(8px);
  }

  .ui-design__title {
    font-size: 48px;
    margin-bottom: 12px;
    text-align: center;
  }

  .ui-design__subtitle {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-align: center;
  }
}

.ui-design__title {
  font-family: "Instrument Serif", serif;
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 16px;
  cursor: pointer;
}

/* Слайдер */
.slider {
  position: relative;
  width: 640px;
  height: 640px;
  overflow: hidden;
  border-radius: 24px;
  background: #f8eae2;
  margin-bottom: 40px;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.5s ease;
}

.slide {
  transition: transform 0.3s ease;
  cursor: pointer;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide.active {
  opacity: 1;
}

.slide:hover {
  transform: scale(1.02);
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.8);

  cursor: pointer;

  font-size: 22px;

  transition: 0.3s;

  z-index: 10;
}

.slider__btn:hover {
  background: white;
  opacity: 0.75;
}

.slider__btn--prev {
  left: 20px;
}

.slider__btn--next {
  right: 20px;
}

.slider__dots {
  position: absolute;

  bottom: 28px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.45);

  cursor: pointer;

  transition: 0.3s;
}

.dot.active {
  background: #ffffff;
}

/* ===== Mobile Slider ===== */

@media (max-width: 768px) {
  .slider {
    width: 100%;
    max-width: 340px;
    height: 340px;

    border-radius: 20px;
    margin-bottom: 32px;
  }

  .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.5s ease;
  }

  .slide {
    object-fit: contain;
  }

  .slider__btn {
    width: 32px;
    height: 32px;

    top: 50%;
    transform: translateY(-50%);

    padding: 0;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .slider__btn--prev {
    left: 12px;
  }

  .slider__btn--next {
    right: 12px;
  }

  .slider__btn img {
    width: 18px;
    height: 18px;
    display: block;
  }

  .slider__dots {
    bottom: 16px;
    gap: 8px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }
  .slider__btn img {
    width: 12px;
    height: 12px;
  }
}
.mobile-br {
  display: none;
}

@media (max-width: 768px) {
  .mobile-br {
    display: block;
  }
}

.hover-label {
  position: fixed;
  left: 0;
  top: 0;

  padding: 10px 18px;

  border-radius: 999px;

  background: #111;
  color: #fff;

  font-size: 14px;
  font-weight: 500;

  pointer-events: none;

  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);

  transition: opacity 0.25s ease, transform 0.25s ease;

  z-index: 9999;
}

.hover-label.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.ui-design__title {
  position: relative;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ui-design__title::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -78px;

  transform: translateY(-50%) translateX(-8px);
  opacity: 0;

  transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-link .ui-design__title {
  transition: opacity 0.3s ease;
}

.project-link:hover .ui-design__title {
  opacity: 0.55;
}
html {
  scroll-behavior: smooth;
}
.hero__link a {
  color: inherit;
  text-decoration: none;
}

.hero__link a:visited {
  color: inherit;
}

.hero__link a:hover {
  color: inherit;
  text-decoration: none;
}

.hero__link a:active {
  color: inherit;
}
.hero__link a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.hero__link a:hover {
  border-bottom-color: currentColor;
}

.hero2 {
  margin-top: 200px;
  margin-bottom: 400px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero2 {
    margin-bottom: 300px;
    margin-top: 164px;
  }
}

.hero2__title {
  font-size: 64px;
  text-align: center;
  font-family: "Instrument Serif", serif;

  font-weight: 400;

  margin-bottom: 16px;
}
