@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400&family=Sora:wght@400;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --primary-dark: #1a1a2e;
  --secondary-dark: #16213e;
  --accent: #e94560;
  --accent-hover: #ff6b6b;
  --light-text: #eee;
  --body-bg: #0f0f23;
  --card-bg: #1a1a2e;
  --border-subtle: #2a2a4a;
  --shadow-deep: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(233, 69, 96, 0.12);
  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-quote: "Bitter", Georgia, serif;
  --radius-card: 12px;
  --radius-img: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--light-text);
  background: var(--body-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(233, 69, 96, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(22, 33, 62, 0.6), transparent 45%);
  background-attachment: fixed;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-img);
  object-fit: cover;
}

ul,
ol {
  list-style: none;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

code,
kbd,
samp,
.tech-spec {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--secondary-dark);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

blockquote,
.quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.75;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.06), transparent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: rgba(238, 238, 238, 0.92);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(233, 69, 96, 0.2);
  border-top-color: var(--accent);
  border-right-color: var(--accent-hover);
  animation: loader-spin 0.85s linear infinite;
  box-shadow: var(--shadow-glow);
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.cookie-banner.cookie-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
}

.cookie-banner__text {
  flex: 1 1 280px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(238, 238, 238, 0.88);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-cookie {
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-cookie--accept {
  background: linear-gradient(135deg, var(--accent), #c73e54);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.35);
}

.btn-cookie--accept:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.4);
}

.btn-cookie--reject {
  background: transparent;
  color: var(--light-text);
  border: 1px solid var(--border-subtle);
}

.btn-cookie--reject:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8000;
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.92) 0%, rgba(26, 26, 46, 0.88) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 42, 74, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--light-text);
  background: linear-gradient(90deg, var(--light-text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(238, 238, 238, 0.85);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--light-text);
  text-decoration: none;
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(26, 26, 46, 0.6);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--light-text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 7998;
  background: rgba(5, 5, 15, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 7999;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  padding: 5.5rem 1.75rem 2rem;
  background: linear-gradient(165deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, #0f0f23 100%);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-text);
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--accent-hover);
  padding-left: 0.5rem;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, rgba(15, 15, 35, 0.75) 0%, rgba(26, 26, 46, 0.55) 40%, rgba(233, 69, 96, 0.15) 100%),
    radial-gradient(circle at 30% 20%, rgba(233, 69, 96, 0.2), transparent 45%),
    var(--secondary-dark);
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.45;
  mix-blend-mode: luminosity;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.hero__content p {
  font-size: 1.15rem;
  color: rgba(238, 238, 238, 0.88);
  max-width: 560px;
  margin: 0 auto;
}

.section {
  padding: 80px 1.5rem;
}

.section--tight {
  padding-top: 60px;
  padding-bottom: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
  border-color: rgba(233, 69, 96, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: rgba(238, 238, 238, 0.82);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #b83a4d);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(233, 69, 96, 0.35);
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 107, 107, 0.4);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(233, 69, 96, 0.12);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.article__meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(238, 238, 238, 0.55);
  margin-bottom: 1rem;
}

.article h1 {
  margin-bottom: 1.25rem;
}

.article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article p {
  margin-bottom: 1.25rem;
}

.article ul,
.article ol {
  margin: 1rem 0 1.25rem 1.25rem;
  list-style: disc;
}

.article ol {
  list-style: decimal;
}

.article li {
  margin-bottom: 0.5rem;
}

.article img {
  width: 100%;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-deep);
}

.article a {
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(180deg, var(--secondary-dark) 0%, #0a0a18 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(238, 238, 238, 0.75);
}

.footer-col a {
  display: block;
  margin-bottom: 0.4rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(238, 238, 238, 0.45);
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  body {
    font-size: 1.05rem;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

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

  .section {
    padding: 56px 1.25rem;
  }

  .hero {
    min-height: 60vh;
    padding: 4rem 1.25rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
