@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-Light.woff2') format('woff2'), url('fonts/CodecPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-Regular.woff2') format('woff2'), url('fonts/CodecPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-Bold.woff2') format('woff2'), url('fonts/CodecPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-ExtraBold.woff2') format('woff2'), url('fonts/CodecPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Codec Pro';
  src: url('fonts/CodecPro-Heavy.woff2') format('woff2'), url('fonts/CodecPro-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-Regular.woff2') format('woff2'), url('fonts/Unbounded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-SemiBold.woff2') format('woff2'), url('fonts/Unbounded-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-Bold.woff2') format('woff2'), url('fonts/Unbounded-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-Black.woff2') format('woff2'), url('fonts/Unbounded-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Puerrito Brand';
  src: url('fonts/PuerritoBrand.woff2') format('woff2'), url('fonts/PuerritoBrand.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #e20505;
  --color-secondary: #921616;
  --color-accent: #520c0c;
  --color-highlight: #ff4444;
  --color-gold: #ff6b35;
  --bg-dark: #000000;
  --bg-medium: #0a0a0a;
  --bg-card: rgba(34, 26, 24, 0.96);
  --text-primary: #ffffff;
  --text-secondary: #eeeeee;
  --text-muted: #bbbbbb;
  --gradient-primary: linear-gradient(273deg, rgba(226, 5, 5, 0.95) 0%, rgba(146, 22, 22, 0.95) 62%, rgba(82, 12, 12, 0.95) 100%);
  --gradient-secondary: linear-gradient(273deg, rgba(255, 107, 53, 0.9) 0%, rgba(226, 5, 5, 0.9) 50%, rgba(146, 22, 22, 0.9) 100%);
  /* Page backdrop, unique to this link-hub site — the main site uses a
     two-tone diagonal glow (top-left red, bottom-right orange) on
     catalog/privacy/404. This is a three-tone variant (orange glow
     centered above the brand title, red glow bottom-left, dark-red
     bottom-right) so the link page reads as its own space rather than a
     copy of the main site's page chrome. */
  --gradient-page:
      radial-gradient(circle at 50% -5%, rgba(255, 107, 53, 0.5) 0%, transparent 42%),
      radial-gradient(circle at 8% 100%, rgba(226, 5, 5, 0.45) 0%, transparent 50%),
      radial-gradient(circle at 100% 105%, rgba(82, 12, 12, 0.55) 0%, transparent 55%),
      #0a0303;
  --font-main: 'Codec Pro', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: 'Unbounded', system-ui, sans-serif;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(226, 5, 5, 0.25);
  --transition-block: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0; overflow-x: hidden; line-height: 1.4;
}

.hidden { display: none !important; }

.ambient-bg {
  position: fixed; inset: 0; z-index: -2;
  background: var(--gradient-page);
  pointer-events: none;
}

.wrapper {
  width: 100%; max-width: 720px;
  padding: 40px 24px 32px;
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; transform: translateY(24px);
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.hero { text-align: center; padding: 20px 0 10px; position: relative; }
.brand {
  font-family: 'Puerrito Brand', var(--font-brand);
  font-size: clamp(3rem, 10vw, 4.5rem); font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; line-height: 0.9; margin-bottom: 12px;
  color: #ffffff;
  filter: drop-shadow(0 4px 16px rgba(226, 5, 5, 0.25));
}
.tagline { font-size: 1.05rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0.05em; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-6 { grid-column: span 6; }

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative; overflow: hidden;
  transition: var(--transition-block);
}
/* The Email tile is a <button> (opens a modal instead of navigating), not
   an <a> like the others — undo the UA button defaults that would
   otherwise fight .card's own layout/typography. */
button.card {
  font: inherit;
  text-align: left;
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, transparent 50%, rgba(226, 5, 5, 0.15) 100%);
  opacity: 0; transition: opacity 0.4s ease; z-index: 0; pointer-events: none;
}
.card::after {
  content: ''; position: absolute; inset: -2px;
  background: var(--gradient-secondary); border-radius: calc(var(--radius) + 2px);
  z-index: -1; opacity: 0; transition: opacity 0.4s ease; filter: blur(8px);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow-hover);
  background: rgba(48, 38, 34, 0.96);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

/* Внутренние элементы БЕЗ анимаций, иконки строго белые */
.card > * { position: relative; z-index: 1; }
.card .icon { font-size: 32px; margin-bottom: 16px; color: #ffffff; display: block; width: 1em; height: 1em; fill: currentColor; }
.card h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.02em; }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.card .arrow { position: absolute; top: 20px; right: 20px; font-size: 16px; color: var(--text-muted); width: 1em; height: 1em; fill: currentColor; display: block; }
.card .badge {
  /* right-отступ освобождает угол под иконку .arrow */
  position: absolute; top: 16px; right: 44px;
  background: var(--gradient-secondary); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 4px 8px;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; z-index: 2;
}

.footer {
  text-align: center; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer p { font-family: 'Puerrito Brand', var(--font-main); color: var(--text-muted); font-size: 0.8rem; }
.footer-link { color: var(--text-muted); font-size: 0.8rem; text-decoration: none; }
.footer-link:hover { color: var(--color-gold); text-decoration: underline; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(226, 5, 5, 0.35);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  font-family: var(--font-main);
  animation: fadeInUp 0.4s ease;
}
.cookie-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  max-width: 800px;
}
.cookie-text a { color: var(--color-gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept,
.cookie-decline {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition-block);
}
.cookie-accept {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}
.cookie-accept:hover { box-shadow: 0 0 16px rgba(226, 5, 5, 0.35); }
.cookie-decline {
  background: transparent;
  color: var(--text-muted);
}
.cookie-decline:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.3); }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; padding: 14px 18px; gap: 10px; }
  .cookie-text { font-size: 13px; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .span-4, .span-6 { grid-column: span 2; }
  .span-3, .span-2 { grid-column: span 1; }
  .wrapper { padding: 16px 16px 24px; gap: 16px; }
  .brand { font-size: 3rem; }
  /* Компактные горизонтальные карточки (иконка слева от текста), чтобы
     весь список помещался на один экран телефона без прокрутки */
  .card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 30px 12px 14px; }
  .card .icon { font-size: 22px; margin-bottom: 0; flex-shrink: 0; }
  .card h2 { font-size: 0.95rem; margin-bottom: 2px; }
  .card p { font-size: 0.75rem; }
  .card .arrow { top: 50%; right: 12px; transform: translateY(-50%); }
  .card .badge { top: 50%; right: 36px; transform: translateY(-50%); }
}
/* Запрет прокрутки на телефонах: контент растянут на весь экран.
   min-height отсекает низкие/ландшафтные экраны, где контент мог бы не
   влезть; privacy.html остаётся прокручиваемой */
@media (max-width: 768px) and (min-height: 540px) {
  body:not(.page-privacy) { height: 100dvh; overflow: hidden; }
  body:not(.page-privacy) .wrapper { height: 100%; justify-content: space-between; padding: 12px 16px 16px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .span-4, .span-6 { grid-column: span 2; }
  .span-3, .span-2 { grid-column: span 1; }
  .brand { font-size: 2.2rem; }
  .tagline { font-size: 0.85rem; }
  .hero { padding: 8px 0 0; }
  .wrapper { gap: 12px; }
  .card { padding: 12px 28px 12px 12px; }
  .card h2 { font-size: 0.95rem; }
}

/* Подгон высоты под низкие ДЕСКТОПНЫЕ окна, чтобы всё помещалось без
   скролла; на мобильной ширине своя компактная раскладка выше */
@media (min-width: 769px) and (max-height: 700px) {
  .wrapper { padding-top: 12px; padding-bottom: 16px; gap: 10px; }
  .hero { padding: 8px 0 6px; }
  .footer { padding-top: 12px; }
}
@media (min-width: 769px) and (max-height: 600px) {
  .grid { gap: 10px; }
  .card { padding: 10px; }
  .card .icon { font-size: 20px; margin-bottom: 6px; }
  .card h2 { font-size: 0.95rem; margin-bottom: 2px; }
  .card p { font-size: 0.8rem; }
  .brand { font-size: 2rem; margin-bottom: 6px; }
  .tagline { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
a:focus-visible, .card:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }
#soon-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  transform: translateY(-12px);
  background: rgba(20, 20, 20, 0.97);
  border: 1px solid rgba(226, 5, 5, 0.4);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 24px rgba(226,5,5,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  white-space: nowrap;
}
#soon-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Privacy page (privacy.html) ---------- */
body.page-privacy { display: block; }
.privacy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}
.privacy-back:hover { opacity: 0.85; text-decoration: underline; }
.privacy-back svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.privacy-article h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.2;
}
.privacy-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.privacy-article h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--color-gold);
  line-height: 1.35;
}
.privacy-article p,
.privacy-article li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.privacy-article ul { padding-left: 22px; margin-bottom: 12px; }
.privacy-article li { margin-bottom: 6px; }
.privacy-article a {
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.privacy-article a:hover { text-decoration: underline; }
.privacy-article strong { color: var(--text-primary); font-weight: 600; }
.privacy-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 480px) { .privacy-wrap { padding: 32px 16px 60px; } }

/* ---------- Email modal (index.html) ---------- */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.feedback-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 32px 24px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  font-family: var(--font-main);
  color: var(--text-primary);
  animation: fadeInUp 0.3s ease;
}
.feedback-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.feedback-modal-close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.feedback-modal-content h3 { font-size: 22px; margin-bottom: 6px; font-weight: 700; }
.feedback-lead { color: var(--text-secondary); font-size: 14px; margin-bottom: 18px; line-height: 1.5; }

/* The 3-way choice screen shown first; .email-choices/.feedback-form/
   .feedback-success are mutually exclusive views inside the same modal,
   toggled via .hidden by script.js rather than being separate dialogs. */
.email-choices { display: flex; flex-direction: column; }
.email-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-block);
}
.email-choice:last-child { margin-bottom: 0; }
.email-choice:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.email-choice-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: var(--color-gold);
}
.email-choice span { display: flex; flex-direction: column; gap: 2px; }
.email-choice strong { font-size: 15px; font-weight: 600; }
.email-choice small { font-size: 12.5px; color: var(--text-muted); }

.feedback-form { display: flex; flex-direction: column; gap: 12px; }
.feedback-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.feedback-field input,
.feedback-field textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.feedback-field input:focus,
.feedback-field textarea:focus {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.5);
  outline: none;
}
.feedback-recaptcha { display: flex; justify-content: center; }
.feedback-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
}
.feedback-consent input { margin-top: 3px; accent-color: var(--color-primary); }
.feedback-consent a { color: var(--color-gold); text-decoration: none; }
.feedback-consent a:hover { text-decoration: underline; }
/* Honeypot — visually hidden but still a real, focusable-by-default field,
   so naive bots that auto-fill every <input> they find still catch it.
   position:absolute off-screen (not display:none) on purpose — some bots
   skip display:none fields. */
.feedback-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.feedback-error {
  background: rgba(226, 5, 5, 0.15);
  border: 1px solid rgba(226, 5, 5, 0.4);
  color: #ffcccc;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.feedback-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.feedback-submit {
  background: var(--gradient-primary);
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 28px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feedback-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(226, 5, 5, 0.35); }
.feedback-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.email-form-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}
.email-form-back:hover { color: var(--text-primary); }
.feedback-success { text-align: center; padding: 10px 0; }
.feedback-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.feedback-success p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.feedback-fallback-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px !important;
  color: var(--text-muted) !important;
}
.feedback-fallback-note a { color: var(--color-gold); text-decoration: none; }
.feedback-fallback-note a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .feedback-modal-content { padding: 26px 20px 20px; }
  .email-choice { padding: 12px 14px; }
}
