/* =========================
   Design Tokens
   ========================= */
:root {
  /* Colors */
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --muted-2: #9a9a9a;
  --line: #eaeaea;
  --accent: #2f6bff;
  --accent-ink: #ffffff;

  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  --fs-display: clamp(40px, 5vw, 72px);
  --fs-h1: clamp(34px, 4vw, 56px);
  --fs-h2: clamp(22px, 2.2vw, 32px);
  --fs-h3: clamp(18px, 1.6vw, 22px);
  --fs-body: 16px;
  --fs-small: 13px;
  --lh-tight: 1.05;
  --lh-normal: 1.45;
  --lh-loose: 1.7;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 96px;

  /* Radius */
  --r-1: 8px;
  --r-2: 12px;
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

p {
  margin: 0 0 var(--s-4) 0;
}

ul {
  margin: 0;
  padding: 0 0 0 var(--s-5);
}

li + li {
  margin-top: var(--s-2);
}

/* =========================
   Typography
   ========================= */
.h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-5) 0;
}

.h1-small {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-5) 0;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4) 0;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--s-3) 0;
}

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

.small {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* =========================
   Layout
   ========================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--s-8) 0;
}

.section-tight {
  padding: var(--s-6) 0;
}

.stack > * + * {
  margin-top: var(--s-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

/* =========================
   Components
   ========================= */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  font-weight: var(--fw-semibold);
  font-size: 18px;
  display: block;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--accent);
  text-decoration: none;
}

.brand-link-static {
  color: var(--text);
  cursor: default;
}

.brand-link:hover,
.brand-link:focus-visible {
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--s-5);
  padding: 0;
  margin: 0;
}

.nav-link {
  font-weight: var(--fw-medium);
  display: inline-block;
  line-height: 1.2;
  padding: 0;
  vertical-align: baseline;
}

.hero {
  padding: var(--s-9) 0 var(--s-8);
}

.hero-home {
  position: relative;
  overflow: visible;
}

.hero-home .hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero-home .hero-content {
  position: relative;
  z-index: 2;
}

.hero-home .hero-photo {
  position: relative;
  min-height: 620px;
  margin-left: -80px;
  margin-bottom: -120px;
}

.hero-home .hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../Images/nikita.png");
  background-size: auto 100%;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: var(--r-2);
}

.hero-meta {
  font-size: 18px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-illustration {
  width: min(420px, 100%);
  margin-top: var(--s-5);
  border-radius: var(--r-2);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
  background: #fff;
  height: 100%;
}

.card-link {
  display: block;
}

.card-link:hover,
.card-link:focus-visible {
  text-decoration: none;
  border-color: var(--accent);
}

.telegram-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
  padding: calc(var(--s-6) * 0.7);
  background: #f5f9ff;
}

.telegram-icon {
  width: 70px;
  height: 70px;
}

.telegram-icon a {
  display: block;
  width: 70px;
  height: 70px;
  cursor: pointer;
}

.telegram-icon-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.telegram-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-end;
  text-align: right;
}

.telegram-right {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}

.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-1);
  font-weight: var(--fw-medium);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  text-decoration: none;
  background: #265be0;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: var(--s-3);
}

.site-footer .list-clean li + li {
  margin-top: var(--s-2);
}

.divider {
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

.mt-6 {
  margin-top: var(--s-6);
}

.mt-7 {
  margin-top: var(--s-7);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0;
}

.footer-title {
  margin-bottom: calc(var(--s-5) + 15px);
}

.footer-disclaimer {
  margin-top: var(--s-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.privacy-link {
  margin-top: auto;
}

.privacy-link a {
  color: var(--muted);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-5);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-home .hero-photo {
    margin-left: 0;
    margin-bottom: 0;
    min-height: 420px;
  }

  .telegram-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .telegram-info {
    align-items: flex-start;
    text-align: left;
  }

  .telegram-right {
    align-items: flex-start;
  }

  .pricing-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--s-8) 0 var(--s-6);
  }

  .hero-illustration {
    margin-top: var(--s-4);
  }

  .hero-home .hero-photo {
    min-height: 320px;
  }

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

  .section {
    padding: var(--s-7) 0;
  }
}
