﻿:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #111a33;
  --muted: #516184;
  --line: #d8e2ff;
  --primary: #2456ff;
  --secondary: #6b2ff4;
  --accent: #04b7d7;
  --ok: #0f9b8e;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 14px 26px rgba(30, 55, 130, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 6%, rgba(107,47,244,.12), transparent 35%),
    radial-gradient(circle at 90% 4%, rgba(4,183,215,.12), transparent 34%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dce5ff;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: #162552;
}

.logo span {
  background: linear-gradient(130deg, var(--primary), var(--secondary));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.menu-toggle {
  display: none;
  border: 1px solid #cad8ff;
  background: #fff;
  color: #2246a7;
  padding: .4rem .6rem;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.menu a {
  display: inline-flex;
  align-items: center;
  padding: .42rem .68rem;
  border-radius: 9px;
  font-weight: 700;
  color: #1c2f65;
  transition: .2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: #eaf1ff;
  color: var(--primary);
  outline: none;
}

main section { padding: 2.2rem 0; }
.hero { padding: 4.6rem 0 2.8rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  font-size: .86rem;
  font-weight: 800;
  color: #1f45c4;
  border: 1px solid #d4e0ff;
  background: #eaf0ff;
  border-radius: 999px;
  padding: .3rem .68rem;
  margin-bottom: .78rem;
}

h1 {
  font-size: clamp(1.95rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: .82rem;
  max-width: 21ch;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.05rem;
  font-size: 1.03rem;
}

.btn,
.btn-secondary,
.btn-ghost,
.mini-btn {
  border: none;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, var(--primary), var(--secondary));
  color: #fff;
  padding: .8rem 1.12rem;
  box-shadow: 0 11px 22px rgba(36, 86, 255, .27);
}

.btn-secondary {
  background: #fff;
  color: #2148b3;
  border: 1px solid #cbd9ff;
  padding: .8rem 1.08rem;
  margin-left: .45rem;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  padding: .58rem .84rem;
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.mini-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.card,
.tool-card,
.content-card,
.ad-slot,
.faq-item,
.legal-card,
.contact-card,
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 1rem; }
.section-title {
  font-size: clamp(1.42rem, 2.5vw, 2.18rem);
  margin-bottom: .26rem;
  letter-spacing: -.2px;
}

.section-sub { color: var(--muted); margin-bottom: .92rem; max-width: 68ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }

.tool-card,
.content-card,
.about-card,
.contact-card,
.legal-card { padding: 1rem; }
.tool-card h2,
.content-card h2,
.about-card h2,
.contact-card h2,
.legal-card h2 { margin-bottom: .4rem; color: #1f3473; }

.seo-content p {
  margin-bottom: .86rem;
  color: #3f507a;
  font-size: .95rem;
}

.seo-content h2,
.seo-content h3 {
  margin: .95rem 0 .42rem;
  color: #1f3472;
}

label {
  display: block;
  margin: .35rem 0 .2rem;
  font-size: .9rem;
  font-weight: 700;
  color: #243971;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfdbff;
  border-radius: 9px;
  padding: .7rem;
  font: inherit;
  color: #15274f;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 86, 255, .14);
}

textarea { min-height: 100px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }

.loader {
  display: none;
  align-items: center;
  gap: .45rem;
  margin-top: .48rem;
  color: #24449d;
  font-weight: 700;
  font-size: .88rem;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(36, 86, 255, .25);
  border-top-color: #2456ff;
  animation: spin .8s linear infinite;
}

.result-box {
  margin-top: .72rem;
  min-height: 105px;
  border: 1px solid #c9d8ff;
  border-radius: 11px;
  background: #f6f9ff;
  padding: .8rem;
  white-space: pre-wrap;
  color: #142a62;
  font-size: .93rem;
}

.result-actions {
  margin-top: .58rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.mini-btn {
  border: 1px solid #c8d7ff;
  background: #fff;
  color: #1e3b91;
  padding: .42rem .7rem;
  font-size: .83rem;
}

.faq-grid {
  display: grid;
  gap: .62rem;
  margin-top: .7rem;
}

.faq-item { padding: .7rem; }
.faq-item h3 { font-size: .96rem; margin-bottom: .2rem; color: #1f3472; }
.faq-item p { font-size: .9rem; color: #4d608d; }

.ad-slot {
  padding: .95rem;
  text-align: center;
  border-style: dashed;
  border-width: 1px;
  border-color: #b8caf9;
  background: repeating-linear-gradient(135deg,#f6f9ff,#f6f9ff 12px,#edf3ff 12px,#edf3ff 24px);
  color: #4d639f;
  font-weight: 700;
}

.breadcrumb {
  font-size: .86rem;
  color: #5a6c95;
  margin-bottom: .55rem;
}

footer {
  margin-top: 2.1rem;
  border-top: 1px solid #d8e3ff;
  background: #f9fbff;
}

.footer-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
  color: #465a86;
  font-size: .93rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.footer-links a { color: #2c4fa8; font-weight: 700; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  background: #12224f;
  color: #fff;
  border-radius: 12px;
  padding: .88rem;
  box-shadow: 0 14px 28px rgba(7, 14, 34, .36);
}

.toast {
  position: fixed;
  right: 1rem;
  top: 5rem;
  z-index: 1300;
  background: #0f2a67;
  color: #fff;
  border-radius: 9px;
  padding: .62rem .82rem;
  font-weight: 700;
  font-size: .88rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: .25s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1020px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .field-grid { grid-template-columns: 1fr; }

  .btn-secondary { margin-left: 0; margin-top: .45rem; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 70px;
    width: min(280px, calc(100% - 2rem));
    background: #fff;
    border: 1px solid #d8e4ff;
    border-radius: 11px;
    padding: .5rem;
    box-shadow: var(--shadow);
  }
  .menu.open { display: grid; }
  .menu li { width: 100%; }
  .menu a { width: 100%; }
}
