:root {
  --bg: #141418;
  --bg-card: #1c1c22;
  --surface: #242430;
  --accent: #e63946;
  --accent-deep: #ff6b35;
  --accent-dim: rgba(230, 57, 70, 0.1);
  --accent-deep-dim: rgba(255, 107, 53, 0.07);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-deep));
  --text: #f0f0f2;
  --text-secondary: #c8c8d0;
  --muted: #78788a;
  --stroke: rgba(255, 255, 255, 0.06);
  --stroke-hover: rgba(230, 57, 70, 0.35);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --radius: 1.25rem;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(230,57,70,0.06), transparent),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(255,107,53,0.04), transparent);
  background-attachment: fixed;
}

/* ── ASPHALT GRAIN ── */
.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── ROAD CENTER LINES ── */
.road-lines {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,200,50,0.12) 0px,
    rgba(255,200,50,0.12) 40px,
    transparent 40px,
    transparent 80px
  );
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.3) 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 20%, rgba(0,0,0,0.3) 80%, transparent);
}

/* ── HEADLIGHT BEAMS ── */
.headlight {
  position: fixed;
  bottom: -20%;
  width: 500px;
  height: 800px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: headlightFade 6s ease-in-out infinite;
}

.headlight-l {
  left: 10%;
  background: conic-gradient(
    from 170deg at 50% 100%,
    transparent 0deg,
    rgba(255,240,200,0.04) 10deg,
    rgba(255,240,200,0.07) 20deg,
    rgba(255,240,200,0.04) 30deg,
    transparent 40deg
  );
  animation-delay: 0s;
}

.headlight-r {
  right: 10%;
  background: conic-gradient(
    from 170deg at 50% 100%,
    transparent 0deg,
    rgba(255,240,200,0.04) 10deg,
    rgba(255,240,200,0.07) 20deg,
    rgba(255,240,200,0.04) 30deg,
    transparent 40deg
  );
  animation-delay: 3s;
}

@keyframes headlightFade {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}

/* ── SPEED STREAKS ── */
.speed-streak {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  opacity: 0;
  animation: streakDash 4s ease-in-out infinite;
}

.streak-1 {
  width: 120px; height: 1px;
  top: 18%; left: 5%;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.3), transparent);
  animation-delay: 0s;
  transform: rotate(-5deg);
}
.streak-2 {
  width: 80px; height: 1px;
  top: 35%; right: 8%;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.25), transparent);
  animation-delay: 1.2s;
  transform: rotate(3deg);
}
.streak-3 {
  width: 150px; height: 1px;
  top: 55%; left: 3%;
  background: linear-gradient(90deg, transparent, rgba(255,200,50,0.15), transparent);
  animation-delay: 2.4s;
  transform: rotate(-2deg);
}
.streak-4 {
  width: 100px; height: 1px;
  top: 72%; right: 12%;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.2), transparent);
  animation-delay: 0.8s;
  transform: rotate(4deg);
}
.streak-5 {
  width: 60px; height: 1px;
  top: 88%; left: 15%;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,0.2), transparent);
  animation-delay: 2s;
  transform: rotate(-3deg);
}

@keyframes streakDash {
  0% { opacity: 0; transform: translateX(-30px) rotate(var(--r, 0deg)); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(80px) rotate(var(--r, 0deg)); }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 110%, rgba(230,57,70,0.1), transparent 60%),
    radial-gradient(ellipse 30% 40% at 50% 105%, rgba(255,107,53,0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230,57,70,0.3), rgba(255,107,53,0.2), transparent);
  z-index: 0;
}

.hero-inner {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── LOGO ── */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 200px;
}

.logo-emblem svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(230,57,70,0.25));
}

.logo-emblem img {
  width: 100%;
  max-width: 200px;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(230,57,70,0.25));
  border-radius: 0.5rem;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-name span {
  font-weight: 400;
  opacity: 0.65;
  margin-left: 0.15em;
}

/* ── TELEGRAM BUTTON ── */
.tg-btn {
  position: relative;
  display: inline-flex;
  text-decoration: none;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.tg-btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #38bdf8, #6366f1, #2aabee);
  background-size: 300% 300%;
  animation: glowShift 4s ease infinite;
  z-index: 0;
}

@keyframes glowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tg-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.2rem;
  background: var(--bg-card);
  border-radius: 999px;
  transition: background 0.3s;
}

.tg-btn:hover .tg-btn-content {
  background: rgba(28, 28, 34, 0.85);
}

.tg-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(42,171,238,0.2),
    0 0 60px rgba(99,102,241,0.08);
}

.tg-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(42,171,238,0.3));
}

.tg-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tg-arrow {
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
  flex-shrink: 0;
}

.tg-btn:hover .tg-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── PHONE BLOCK ── */
.phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.phone-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, color 0.3s, transform 0.25s var(--ease);
}

.phone-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.phone-link:hover {
  border-color: var(--stroke-hover);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── EU FLAG ── */
.eu-flag {
  font-size: 0.75em;
  vertical-align: middle;
  margin-left: 0.1em;
}

/* ── HEADING ── */
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero-tagline strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-desc {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  letter-spacing: 0.005em;
}

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem 1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.feature:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.7rem;
  background: var(--accent-dim);
  color: var(--accent);
}

.feature span {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── AUTHOR SECTION ── */
.author {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(230,57,70,0.04), transparent),
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255,107,53,0.03), transparent);
  border-top: 1px solid var(--stroke);
}

.author-inner {
  max-width: 640px;
  margin: 0 auto;
}

.author-photo-top {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 752 / 1376;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.author-photo-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
  pointer-events: none;
}

.author-photo-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.author-photo-top .author-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.author-info {
  min-width: 0;
  text-align: center;
}

.author-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.author-info h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
  text-align: center;
}

.author-bio {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  letter-spacing: 0.005em;
  margin-bottom: 1.5rem;
}

.author-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(42,171,238,0.25);
  background: rgba(42,171,238,0.06);
  color: #5bc5f2;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.author-tg:hover {
  background: rgba(42,171,238,0.12);
  border-color: rgba(42,171,238,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(42,171,238,0.12);
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke);
  padding: 1.5rem;
  background: rgba(16, 16, 20, 0.7);
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer span {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 2rem 1.25rem 3rem; }

  .features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.2rem;
  }

  .feature span { text-align: left; }

  .tg-btn-content {
    padding: 0.85rem 1.4rem;
    gap: 0.6rem;
  }

  .tg-label { font-size: 0.85rem; }

  .author-photo-top {
    max-width: 220px;
  }
}
