:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #111522;
  --muted: #657084;
  --line: #dfe5ef;
  --soft: #eef2f8;
  --red: #e50914;
  --red-dark: #b80610;
  --black: #050507;
  --shadow: 0 18px 55px rgba(17, 21, 34, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 7, .96);
  color: #fff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .2px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.85); border-radius: 12px;
  color: var(--red); font-weight: 950; font-size: 20px;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 800; }
.nav-links a { opacity: .92; transition: color .2s ease, opacity .2s ease; }
.nav-links a:hover, .nav-links a.active { color: #ff2b35; opacity: 1; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent; color: #fff; border-radius: 10px;
}
.menu-toggle span { display: block; height: 2px; width: 21px; margin: 5px auto; background: currentColor; }

.hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(229,9,20,.12), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f4f7fc 54%, #fff 100%);
  padding: 74px 0 46px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; text-align: center; }
.eyebrow { color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: 1.8px; font-size: 13px; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 16px; letter-spacing: 0; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 950; }
h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 950; }
h3 { font-size: 23px; font-weight: 900; }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 840px; margin: 0 auto; }
.hero-actions { margin-top: 28px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.button, button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  border-radius: 12px;
  padding: 14px 18px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button.primary, .btn-primary {
  background: linear-gradient(135deg, #ff2631, #c9000b);
  color: #fff;
  box-shadow: 0 15px 28px rgba(229,9,20,.25);
}
.button.secondary, .btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button:hover, button:hover { transform: translateY(-1px); }

.section { padding: 54px 0; }
.section-tight { padding: 34px 0; }
.tool-card, .content-card, .post-card, .article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-card { max-width: 940px; margin: -18px auto 0; overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: #f0f4fa; border-bottom: 1px solid var(--line); }
.tab {
  border-radius: 0;
  background: transparent;
  border-right: 1px solid var(--line);
  color: #748097;
  padding: 18px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}
.tab.active { color: var(--ink); background: #fff; box-shadow: inset 0 -4px 0 var(--red); }
.tool-body { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .7fr; gap: 16px; }
label { display: block; color: #75829a; font-size: 12px; font-weight: 950; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 8px; }
select, input, textarea {
  width: 100%;
  border: 1px solid #cbd5e4;
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
textarea { min-height: 145px; resize: vertical; }
.button-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; margin: 20px 0 26px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.result-item { border: 1px solid #cbd5e4; border-radius: 16px; padding: 18px; background: #fbfcff; margin-bottom: 16px; }
.ua-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.ua-text { overflow-wrap: anywhere; font-size: 15px; }
.mini-copy { padding: 10px 14px; border: 1px solid #cbd5e4; background: #fff; color: #30405a; flex: 0 0 auto; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 16px; }
.detail { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.detail:nth-child(3n) { border-right: 0; }
.detail:nth-last-child(-n+3) { border-bottom: 0; }
.detail span { display: block; color: #7e8ba1; font-size: 12px; text-transform: uppercase; font-weight: 950; letter-spacing: 1px; }
.detail strong { display: block; margin-top: 4px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.content-card { padding: 32px; }
.content-card p, .article-card p, .legal-page p { color: #30394a; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature b { color: var(--red); }
.faq { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  padding: 20px 22px;
  text-align: left;
}
.faq-answer { display: none; padding: 0 22px 20px; color: #374154; }
.faq-item.open .faq-answer { display: block; }
.faq-icon { color: var(--red); font-size: 22px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-art {
  min-height: 190px;
  padding: 22px;
  display: flex;
  align-items: end;
  color: #fff;
  background: linear-gradient(135deg, #121722, #e50914);
}
.post-art.alt { background: linear-gradient(135deg, #070707, #46546b 48%, #e50914); }
.post-art.third { background: linear-gradient(135deg, #e50914, #111522 68%); }
.post-art span { max-width: 250px; font-weight: 950; font-size: 26px; line-height: 1.1; }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.meta, .category { color: #748097; font-size: 14px; font-weight: 750; }
.category { color: var(--red); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.post-body .button { align-self: flex-start; margin-top: auto; }
.page-hero { padding: 62px 0; background: linear-gradient(135deg, #fff, #f1f4fa); text-align: center; }
.article-card, .legal-page { padding: clamp(24px, 4vw, 46px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-card { max-width: 900px; margin: 0 auto; }
.toc { background: #f7f9fd; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.toc a { display: block; color: #1d64c8; font-weight: 750; padding: 4px 0; }
.legal-page { max-width: 980px; margin: 0 auto; }
.contact-form { display: grid; gap: 16px; }
.site-footer { background: #050507; color: #fff; padding: 34px 0; margin-top: 52px; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: #ff2b35; }
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  background: #111522; color: #fff; padding: 14px 18px;
  border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 78px;
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 20px; background: #050507;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .button-row, .two-col, .feature-list, .blog-grid { grid-template-columns: 1fr; }
  .button-row .btn-primary { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail, .detail:nth-child(3n), .detail:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail:last-child { border-bottom: 0; }
  .ua-line { align-items: flex-start; flex-direction: column; }
  .footer-wrap { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { padding-top: 46px; }
  .tool-body { padding: 20px; }
  .tabs { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
