@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   OMLETE — common stylesheet
   ========================================================================== */

:root {
  --bg: #020617;
  --bg-soft: rgba(15, 23, 42, 0.72);
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-soft: #c4b5fd;
  --indigo: #6366f1;
  --pink: #ec4899;
  --pink-light: #fb7185;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --gradient-text: linear-gradient(135deg, #f0abfc 0%, #fb7185 50%, #a78bfa 100%);
}

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

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.2);
}

body::after {
  right: -200px;
  bottom: -200px;
  width: 500px;
  height: 500px;
  background: rgba(236, 72, 153, 0.2);
}

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

a:hover {
  color: #ddd6fe;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #0f172a;
}

.bg-blob {
  position: fixed;
  top: 33%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(217, 70, 239, 0.1);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header, logo, navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px 14px;
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(135deg, var(--violet-light), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.menu-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

/* Garland */

.garland {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.garland-wire {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.2);
}

.garland-bulbs {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 6px;
}

.garland .bulb {
  position: relative;
  width: 10px;
  height: 14px;
  margin-top: 7px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: var(--c, var(--violet-light));
  box-shadow: 0 0 4px var(--c), 0 0 10px var(--c), 0 0 18px var(--c);
  transform-origin: top center;
  animation: bulbSwing 3.2s ease-in-out infinite, bulbGlow 2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, filter;
}

.garland .bulb::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 3px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #1e293b;
}

@keyframes bulbSwing {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

@keyframes bulbGlow {
  0%, 100% { filter: brightness(1.4) saturate(1.2); }
  50% { filter: brightness(0.55) saturate(0.7); }
}

/* ==========================================================================
   Main layout
   ========================================================================== */

.site-main {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--violet-soft);
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: "🔥";
  font-size: 0.9rem;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 .brand {
  color: #ffffff;
}

.hero h1 .brand span,
.hero h1 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(203, 213, 225, 0.92);
  font-size: 1.05rem;
  line-height: 1.65;
}

.stats-block {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.stat-item {
  padding: 20px 36px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.12));
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.15);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(139, 92, 246, 0.28);
}

.stat-value {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Buttons */

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--indigo) 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
  color: #ffffff;
}

.btn-video {
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
  color: #ffffff;
}

.btn-video:hover {
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.5);
  color: #ffffff;
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   Home SEO content
   ========================================================================== */

.seo-text {
  max-width: 900px;
  margin: 60px auto 30px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: var(--shadow);
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.seo-text h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--violet-light), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.seo-text h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
  color: var(--violet-light);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.seo-text p {
  margin-bottom: 12px;
}

.seo-text strong {
  color: #ffffff;
  font-weight: 600;
}

.seo-text ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  list-style: none;
}

.seo-text li {
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.seo-text li:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.seo-text a {
  border-bottom: 1px dashed rgba(167, 139, 250, 0.4);
  font-weight: 500;
}

.seo-text a:hover {
  border-bottom-color: var(--violet-soft);
}

.site-info {
  max-width: 900px;
  margin: 30px auto 60px;
  padding: 24px 32px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.site-info strong {
  color: #ffffff;
  font-weight: 600;
}

.site-info-links {
  margin-top: 10px;
  color: var(--muted);
}

.site-info-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
  padding: 60px 20px 30px;
  text-align: center;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--violet-soft);
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.page-badge::before {
  content: "📋";
  font-size: 0.9rem;
}

.contacts-page .page-badge::before {
  content: "💬";
}

.error-page .page-badge::before {
  content: "⚠️";
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-hero h1 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  max-width: 580px;
  margin: 0 auto;
  color: rgba(203, 213, 225, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.content {
  width: 100%;
  max-width: 820px;
  margin: 30px auto 60px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: var(--shadow);
  color: var(--muted-strong);
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.content-updated {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

.content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 14px;
  color: var(--violet-light);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content h2 .num,
.rule-section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
  color: var(--violet-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.content p {
  margin-bottom: 12px;
}

.content strong {
  color: #ffffff;
  font-weight: 600;
}

.content a {
  border-bottom: 1px dashed rgba(167, 139, 250, 0.4);
  font-weight: 500;
}

.content a:hover {
  border-bottom-color: var(--violet-soft);
}

/* Table of contents */

.toc {
  margin-bottom: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.06);
}

.toc h2 {
  margin: 0 0 12px !important;
  color: var(--violet-soft) !important;
  font-size: 1rem !important;
}

.toc ol {
  display: grid;
  gap: 6px;
  padding-left: 22px;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.toc a {
  border-bottom: none;
}

/* Rules */

.rule-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: 110px;
}

.rule-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.rule-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--violet-light);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rule-section p:last-child {
  margin-bottom: 0;
}

.rule-section ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  list-style: none;
}

.rule-section li {
  position: relative;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.55;
  transition: background 0.2s, border-color 0.2s;
}

.rule-section li::before {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  color: var(--pink-light);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.rule-section li:hover {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.rule-section ul.positive li::before {
  content: "✓";
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.rule-section ul.warn li::before {
  content: "!";
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Contact box */

.contact-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
}

.contact-box .contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.2);
  font-size: 1.3rem;
}

.contact-box .contact-content {
  flex: 1;
  min-width: 0;
}

.contact-box .contact-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-box a {
  border-bottom: none;
  color: var(--violet-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-box a:hover {
  color: #ffffff;
}

/* Contact cards */

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.08);
}

.contact-card .cc-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
  font-size: 1.3rem;
}

.contact-card .cc-content {
  flex: 1;
  min-width: 0;
}

.contact-card .cc-label {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card .cc-value {
  border-bottom: none;
  color: var(--violet-soft);
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-card:hover .cc-value {
  color: #ffffff;
}

/* Contact lists */

.content > ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  list-style: none;
}

.content > ul li {
  position: relative;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.content > ul li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* Forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #64748b;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.7);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form button {
  margin-top: 4px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form button:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.form button:active {
  transform: scale(0.98);
}

.field-error {
  margin: 0;
  color: #fda4af;
  font-size: 0.8rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.9rem;
}

.alert-success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.alert-error {
  border-color: rgba(251, 113, 133, 0.35);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
}

/* SEO block on contacts */

.seo-block {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(236, 72, 153, 0.06));
}

.seo-block h2 {
  margin-top: 0 !important;
  color: var(--violet-light) !important;
  font-size: 1rem !important;
}

.seo-block p {
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
}

/* Error pages */

.error-content .buttons {
  justify-content: flex-start;
  margin-top: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 28px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.6);
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand strong {
  color: var(--muted-strong);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  color: #94a3b8;
}

/* ==========================================================================
   Counters
   ========================================================================== */

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

.counters img {
  display: block;
}

/* ==========================================================================
   Age modal
   ========================================================================== */

.age-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.age-modal-content {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  backdrop-filter: blur(20px);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.age-modal-content .modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  font-size: 1.8rem;
}

.age-modal-content h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.age-modal-content p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.age-modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.age-modal-content label:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.age-modal-content label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--violet);
}

.age-modal-content button {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.age-modal-content button:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.age-modal-content button:disabled {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: #475569;
  cursor: not-allowed;
}

/* ==========================================================================
   Ad landing pages (noindex)
   ========================================================================== */

.ad-page {
  background: #020617;
}

.ad-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 8px;
  text-align: center;
}

.ad-notice {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-title {
  margin: 8px 0 4px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ad-subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.ad-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.ad-slot {
  min-height: 250px;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.ad-footnote {
  margin: 24px auto;
  max-width: 620px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.ad-back {
  padding: 0 16px 28px;
  text-align: center;
  font-size: 0.85rem;
}

.ad-back a {
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .site-header {
    padding: 30px 16px 12px;
  }

  .garland {
    height: 26px;
  }

  .garland .bulb {
    width: 9px;
    height: 13px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
  }

  .site-header nav.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 10px 14px;
  }

  .hero {
    padding: 40px 16px 0;
  }

  .stats-block {
    margin-top: 28px;
  }

  .stat-item {
    padding: 16px 28px;
  }

  .stat-value {
    font-size: 1.9rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin: 28px auto 0;
  }

  .btn {
    width: 100%;
    padding: 15px 24px;
  }

  .seo-text {
    margin: 40px 16px 20px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .seo-text h2 {
    font-size: 1.3rem;
  }

  .seo-text h3 {
    font-size: 1.05rem;
  }

  .site-info {
    margin: 20px 16px 40px;
    padding: 20px;
    border-radius: 18px;
  }

  .page-hero {
    padding: 40px 16px 20px;
  }

  .content {
    margin: 20px 16px 40px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .content h2 {
    font-size: 1.1rem;
  }

  .rule-section h2 {
    font-size: 1.05rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 14px 16px;
  }

  .contact-box {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .error-content .buttons {
    max-width: none;
  }

  .age-modal-content {
    padding: 24px 20px;
  }

  .ad-banners {
    grid-template-columns: 1fr;
  }
}

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

  .garland .bulb {
    animation: none;
  }

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

body.modal-open {
  overflow: hidden;
}

.content h2,
.rule-section h2 {
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .content h2,
  .rule-section h2 {
    font-size: 1rem;
  }
}
