html {
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
}
img {
  max-width: 100%;
  display: block;
}
article > * + * {
  margin-top: 1em;
}
input,
button,
textarea,
select {
  padding: 0;
  font: inherit;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
	--color-black: #000;
	--stroke: rgba(255, 255, 255, 0.2);
	--color-body: rgba(255, 255, 255, 0.8);
	--color-accent: #6821cb;
	--color-white: #fff;
	--color-title: rgba(255, 255, 255, 0.98);

  --font-family: "Geist Mono", sans-serif;
  --second-family: "Instrument Sans", sans-serif;
  --third-family: "Geist", sans-serif;

  --muted: rgba(233,233,233,0.7);
  --radius-s: 8px;
  --radius-m: 12px;
}

html { background: var(--color-black); }

body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--third-family);
  font-weight: 500;
  font-size: 17px;
  line-height: 130%;
}

img { display: block; }
a { text-decoration: none; color: inherit; }

h2 {
  font-size: 62px;
}
h3{
  font-size: 46px;
}

.wrapper {
  max-width: 1440px;
  padding: 0 60px;
  margin: 0 auto;
}

.divider {
  position: relative;
}
.divider::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  height: 0;
  width: 100%;
  display: block;
  border: 1px dashed var(--stroke);
}

.section-titles {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.section-label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 115%;
  letter-spacing: 0.08em;
  color: var(--color-white);
}
.section-title {
  font-family: var(--second-family);
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

/* ── BUTTONS ── */
.buttons-box {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 39px;
}
.btn-primary {
  background: var(--color-white);
  border-radius: 0 0 8px 0;
  padding: 8px 22px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-black);
  display: inline-flex; gap: 12px; 
  align-items: center;
  white-space: nowrap;
  transition: color 200ms ease-in-out;
}
.btn-primary:hover,
.btn-secondary:hover {
  color: var(--color-accent);
  transition: color 200ms ease-in-out;
}
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 0 8px 0;
  padding: 8px 22px;
  backdrop-filter: blur(20px);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-title);
  white-space: nowrap;
  background: transparent;
  transition: color 200ms ease-in-out;
}
.scroll-down__btn {
  min-height: 23px;
  display: flex;
  gap: 2px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 11px;
  line-height: 140%;
  color: var(--color-white);
  transition: color 200ms ease-in-out;
}
.scroll-down__text, 
.scroll-down__icon {
  border-radius: 0 0 8px 0;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
}
.scroll-down__text {
  padding: 3px 7px;
}
.scroll-down__icon {
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scroll-down__btn:hover {
  color: var(--color-accent);
  transition: color 200ms ease-in-out;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease;
}
.header--scrolled {
  background: rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  padding: 10px 0;
  gap: 20px;
}
.logo {
  flex-shrink: 0;
  max-width: 127px;
  width: 100%;
}
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-menu a {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-title);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 0 12px 0;
  padding: 3px 16px;
  white-space: nowrap;
  display: inline-block;
}
.socials { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
}
.social-link {
  width: 28px; 
  height: 28px;
  border-radius: 100px;
  background-color: var(--stroke);
  overflow: hidden;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #fff;
  transition: background-color 200ms, color 200ms ease-in-out;
}
.social-link.social-link__tg { 
  justify-content: flex-start;
  padding-left: 4px;
}
.social-link:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--color-accent);
  transition: background-color 200ms, color 200ms ease-in-out;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 182px;
  margin-bottom: 17px;
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin-bottom: 54px;
}
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bottom-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, transparent 0%, #010101 50%);
  width: 100%;
  height: 182px;
  z-index: 3;
}
.hero-content {
  padding: 24px;
  position: relative;
  z-index: 4;
}
.hero-content__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-left {
  max-width: 540px;
}
.hero-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 90px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}
.hero-subtitle {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  color: var(--color-white);
  margin-top: 13px;
}
.hero-buttons {
  margin-top: 62px;
}

/* --- PROJECTS --- */
.projects__inner{
  padding: 80px 0 58px;
}
.projects__items {
  margin-top: 72px;
}
.project {
  display: flex;
  gap: 60px;
}
.project:nth-child(even) {
  flex-direction: row-reverse;
  margin-top: 6px;
  padding-top: 115px;
}
.project-video__box {
  border-radius: 18px;
  max-width: 730px;
  width: 100%;
  height: 716px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 39px;
}
.project-video__wrapper {
  max-width: 310px;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  width: calc(100% - 20px);
}
.project-video__frame {
  position: relative;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}
.project-video__btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  backdrop-filter: blur(30px);
  background: rgba(255, 255, 255, 0.15);
}
.project-video__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.project-description {
  margin-top: 77px;
  max-width: 541px;
  width: 100%;
}
.project-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-tags li {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 0;
  padding: 4px 16px;
  white-space: nowrap;
  display: inline-block;
}
.project-titles {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.project-subtitle {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-white);
}
.project-text {
  margin-top: 88px;
  color: rgba(233, 233, 233, 0.7);
}

/* --- ABOUT --- */
.about__inner {
  padding: 98px 0 168px 0;
}
.about__top {
  display: flex;
  align-items: center;
  gap: 90px;
}
.about-slider__box{
  position: relative;
  width: 218px;
  height: 125px;
}
.about-slider {
  border-radius: 0 0 5px 0;
}
.about-label {
  position: absolute;
  left: 8px;
  bottom: 11px;
  z-index: 5;
}
.about-text__box {
  margin-top: -11px;
}
.about-text {
  font-family: var(--second-family);
  font-size: 74px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #a0a0a0 0%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- HACKATHONS --- */
.hackathons .section-titles{
  max-width: 495px;
}
.hackathons__inner {
  padding: 80px 0 72px;
}
.hackathons__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hackathons-slider {
  min-height: 585px;
  padding-top: 72px;
}
.hackathons-slider .swiper-wrapper {
  align-items: flex-start;
}
.hackathons-slider--disabled .hackathons-slider__nav {
  display: none;
}
.hackathons-slider--disabled .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  transform: none !important;
}
.hackathons-slider--disabled .hackathon-slide {
  width: calc(25% - 16px);
}
.hackathons-slider__nav {
  display: flex;
  gap: 18px;
}
.hackathons-slider__button {
  background: transparent;
  cursor: pointer;
  border: 1px solid var(--stroke);
  border-radius: 0 0 8px 0;
  width: 30px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  transition: border-color 400ms ease-in-out;
}
.hackathons-slider__button:hover {
  border-color: var(--color-white);
  transition: border-color 400ms ease-in-out;
}
.hackathon-slide {
  width: 292px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hackathon-slide.swiper-slide-active {
  width: 396px;
}
.hackathon-img__box {
  border-radius: 0 0 12px 0;
  position: relative;
  height: 234px;
  transition: height 400ms ease-in-out;
  overflow: hidden;
}
.hackathon-img__box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1000ms ease;
}
.hackathon-img__box:hover img {
  transform: scale(1.2);
}
.swiper-slide-active .hackathon-img__box {
  height: 347px;
  transition: height 400ms ease-in-out;
}
.hackathon-img__box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.hackathon-slide__inner {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.hackathon-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 26px;
  line-height: 110%;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-shadow: 0 0 24px rgba(0, 0, 0, 1), 0 2px 8px rgba(0, 0, 0, 0.9);
}
.hackathon-arrow {
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 8px 0;
  width: 26px;
  height: 26px;
  background-color: var(--color-white);
  color: var(--color-black);
  transition: all 400ms ease-in-out;
}
.hackathon-img__box:hover .hackathon-arrow {
  background-color: var(--color-accent);
  color: var(--color-white);
  transition: all 400ms ease-in-out;
}
.hackathon-slide__bottom {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hackathon-slide:not(.swiper-slide-active) .hackathon-subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hackathon-slide__bottom p{
  color: var(--color-body);
}
.hackathon-description {
  display: none;
}
.swiper-slide-active .hackathon-description,
.hackathons-slider--disabled .hackathon-description {
  display: block;
}

/* --- FOOTER --- */
.footer {
  background: url('../img/main-bg.jpg') center / cover no-repeat;
}
.footer__inner {
  padding-bottom: 28px;
}
.contacts {
  position: relative;
}
.contacts::after {
  content: '';
  position: absolute;
  height: calc(100% + 80px);
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.contacts__inner {
  z-index: 2;
  position: relative;
  padding: 80px 0 74px;
  display: flex;
  justify-content: space-between;
  gap: 30px
}
.contacts__left {
  max-width: 430px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.contacts__label {
  padding-top: 3px;
}
.contacts__description {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.6);
}
.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 65px;
}
.contacts__item-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 11px;
  line-height: 115%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
}
.contacts__item-link {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 74px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--color-white);
  position: relative;
}
.contacts__item-link::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  top: 2px;
  background: linear-gradient(90deg, #a0a0a0 0%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}
.contacts__item-link:hover::after {
  opacity: 1;
}
.footer__copyright {
  position: relative;
  z-index: 2;
  margin-top: 237px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 12px;
  line-height: 115%;
  letter-spacing: 0.08em;
  color: #fdfdfd;
  text-align: center;
}
