@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Sora:wght@600;700;800&display=swap");

:root {
  --surface: #ffffff;
  --muted: #f4f7fb;
  --border: #e2e8f0;
  --ink: #0f172a;
  --body: #475569;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-400: #3b82f6;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --shadow-card: 0 4px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-hero: 0 24px 64px -16px rgba(37, 99, 235, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: var(--surface);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-100);
  color: var(--ink);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:not(.btn):not(.brand) { text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.55rem;
  background: var(--ink);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text strong {
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a { display: inline-flex; align-items: center; min-height: 24px; font-size: 0.9rem; transition: color 0.2s; }

.nav a:hover { color: var(--brand-600); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover { background: var(--brand-600); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
}

.hero {
  padding: 8.5rem 0 4.5rem;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}

h1, h2, h3 { font-family: "Sora", sans-serif; color: var(--ink); }

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 .accent { color: var(--brand-500); }

.hero-lead {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 68% 18%;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-hero);
}

.portrait figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.section { padding: 4.5rem 0; }

.section-muted { background: var(--muted); }

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header h2,
.ip-grid h2,
.contact-box h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-header p { margin: 0.75rem 0 0; font-size: 1.05rem; }

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p { margin: 0; font-size: 0.95rem; }

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat {
  padding: 1rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
  color: var(--brand-600);
}

.stat span { font-size: 0.85rem; }

.ip-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.ip-points { margin: 0; }

.contact { text-align: center; }

.contact-box {
  max-width: 36rem;
  margin-inline: auto;
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff 0%, var(--brand-50) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.contact-box p { margin: 0.75rem 0 1.5rem; }

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  text-align: left;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
  border-color: var(--brand-700);
}

.contact-form .btn { justify-self: start; }

.contact-form .btn:disabled { opacity: 1; background: var(--brand-700); }

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.form-status { margin: 0; font-size: 0.95rem; }

.form-status.is-ok { color: #166534; }

.form-status.is-error { color: #b91c1c; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p { margin: 0; }

@media (min-width: 768px) {
  .hero-grid,
  .ip-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .domains { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .ip-points { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .card-grid:not(.tools):not(.ip-points) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

section[id],
:focus {
  scroll-margin-top: 6.5rem;
  scroll-margin-bottom: 8rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }

  .site-header .container { position: relative; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 14rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-card);
  }

  .nav.is-open { display: flex; }

  .nav a:not(.btn) { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
