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

:root {
  --color-text: #F0F2F5;
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-border: rgba(240, 242, 245, 0.12);
  --color-muted: rgba(240, 242, 245, 0.6);
  --color-accent: #F0F2F5;

  --font-family: "Inter", "Poppins", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;

  --text-base: 16px;
  --text-nav: 20px;
  --weight-normal: 400;
  --weight-semibold: 600;

  --header-height: 80px;
  --container: 1120px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  width: 220px !important;
  height: auto !important;
  max-width: none !important;
  flex-shrink: 0;
}

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

.nav__link {
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--color-muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link--cta {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

.nav__link--cta:hover {
  background: rgba(240, 242, 245, 0.08);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 48px) clamp(20px, 4vw, 48px) 80px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-bottom: 64px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__platforms {
  width: clamp(210px, 27vw, 330px);
  height: auto;
  max-width: none !important;
}

.hero__label {
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--color-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: var(--weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.accent {
  color: var(--color-muted);
}

.hero__desc {
  max-width: 560px;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: rgba(240, 242, 245, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: rgba(240, 242, 245, 0.3);
  background: rgba(240, 242, 245, 0.05);
}

.btn--full {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.stat__value {
  display: block;
  font-size: var(--text-nav);
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 14px;
  color: var(--color-muted);
}

/* Sections */

.section {
  padding: 96px clamp(20px, 4vw, 48px);
  max-width: var(--container);
  margin: 0 auto;
}

.section__header {
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--color-muted);
  max-width: 480px;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(240, 242, 245, 0.22);
}

.card__num {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.card__title {
  font-size: var(--text-nav);
  font-weight: var(--weight-semibold);
  margin-bottom: 12px;
}

.card__text {
  color: var(--color-muted);
  font-size: var(--text-base);
}

/* Cases */

.section--cases {
  border-top: 1px solid var(--color-border);
}

.cases {
  display: grid;
  gap: 20px;
}

.case {
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.case:hover {
  background: var(--color-surface);
}

.case__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.case__tag {
  font-size: 14px;
  color: var(--color-muted);
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.case__result {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.case__title {
  font-size: var(--text-nav);
  font-weight: var(--weight-semibold);
  margin-bottom: 8px;
}

.case__text {
  color: var(--color-muted);
}

/* About */

.section--about {
  border-top: 1px solid var(--color-border);
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text p {
  color: var(--color-muted);
  margin-bottom: 16px;
}

.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__list li {
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
}

/* Contact */

.section--contact {
  border-top: 1px solid var(--color-border);
  padding-bottom: 120px;
}

.telegram {
  max-width: 640px;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.telegram__desc {
  color: var(--color-muted);
  margin-bottom: 32px;
}

.telegram__btn {
  font-size: var(--text-nav);
  padding: 16px 32px;
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link:hover {
  color: var(--color-text);
}

/* Mobile */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__platforms {
    width: 240px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .telegram {
    padding: 28px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .logo__img {
    width: 160px !important;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-nav);
    font-weight: var(--weight-semibold);
  }

  .nav__link:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
