:root {
  --ink: #1c1c1e;
  --ink-soft: #3a3a3e;
  --muted: #6f6f76;
  --line: #e4e2dc;
  --paper: #fbfaf7;
  --white: #ffffff;
  --red: #e11d26;
  --red-soft: #fdeceb;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .brand-mark { height: 34px; width: 34px; border-radius: 8px; object-fit: cover; }
.logo .brand-name { font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.logo .brand-name .pl { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; text-decoration: none; font-size: 15px; color: var(--ink-soft);
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 10px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(225,29,38,.7); }
.btn-primary:hover { background: #c9151d; border-color: #c9151d; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }

/* Hero */
.hero { padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px;
}
.eyebrow .pl {
  display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--red); color: #fff; letter-spacing: 0;
}
h1 {
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.025em;
  margin: 0 0 24px; font-weight: 800;
}
h1 .accent { color: var(--red); }
.lead { font-size: clamp(17px, 1.7vw, 19px); color: var(--ink-soft); max-width: 520px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Визуал: макет браузера */
.browser {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(28,28,30,.25);
  overflow: hidden; transform: rotate(-1.2deg);
  transition: transform .6s var(--ease);
}
.browser:hover { transform: rotate(0) translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f6f5f1; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d3cb; display: block; }
.browser-bar i:first-child { background: var(--red); }
.url {
  margin-left: 10px; flex: 1; font-size: 12px; color: var(--muted); background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { border-radius: 10px; background: var(--ink); color: #fff; padding: 22px; }
.mock-hero b { display: block; font-size: 20px; margin-bottom: 6px; }
.mock-hero span { font-size: 13px; color: #c9c9cf; }
.mock-hero .mini-btn { display: inline-block; margin-top: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 6px; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cols div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--muted); }
.mock-cols div strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }

/* Общие секции */
section { padding: 96px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 0 48px; }
.section-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }

/* О нас */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about p { font-size: 17px; color: var(--ink-soft); margin: 0 0 16px; max-width: 620px; }
.principles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.principles li {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
}
.principles svg { width: 26px; height: 26px; color: var(--red); }
.principles b { display: block; margin-bottom: 2px; }
.principles span { color: var(--muted); font-size: 15px; }

/* Возможности: карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px rgba(28,28,30,.28); border-color: #d9d6cd; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; margin-bottom: 22px; transition: transform .45s var(--ease);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: #f1efe9; border-radius: 6px; padding: 4px 8px; }

/* Процесс */
.process { background: var(--ink); color: #fff; }
.process .section-lead { color: #a8a8b0; }
.process .section-title { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: #3a3a40;
}
.steps li { position: relative; padding: 0 18px 0 0; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); border: 1px solid #50505a;
  color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 18px; position: relative; z-index: 1;
  transition: background-color .3s, border-color .3s;
}
.steps li:hover::before { background: var(--red); border-color: var(--red); }
.steps h3 { font-size: 18px; margin: 0 0 8px; }
.steps p { margin: 0; color: #a8a8b0; font-size: 15px; }

/* Контакт */
.contact { text-align: left; }
.contact-box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 52px);
}
.contact-box p { color: var(--muted); font-size: 17px; margin: 0; max-width: 540px; }
.contact-cta { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.contact-handle { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }
.contact-handle b { color: var(--ink); }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.footer-inner a:hover { color: var(--red); }

/* Анимации появления */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.hero .hero-text > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero .hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero .hero-text > *:nth-child(4) { animation-delay: .3s; }
.hero .hero-text > *:nth-child(5) { animation-delay: .4s; }
.hero .browser { opacity: 0; animation: rise 1.1s .35s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Интерактивная вкладка в макете */
.tab-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row b { color: var(--red); }
.server-line { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-soft); background: #f6f5f1; border-radius: 8px; padding: 12px; line-height: 1.8; }
.server-line .ok { color: #1a7f37; font-weight: 700; }
.dns-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; font-size: 12px; text-align: center; }
.dns-flow div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 6px; color: var(--ink-soft); }
.dns-flow span { color: var(--red); font-weight: 800; }

/* Адаптив */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-box { grid-template-columns: 1fr; }
  .browser { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .35s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }
  .cards, .mock-cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal, .hero .hero-text > *, .hero .browser { opacity: 1; transform: none; }
}

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(251,250,247,.98); border-top: 1px solid #e6e1d8; box-shadow: 0 -8px 24px rgba(0,0,0,.08); padding: 16px; }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-banner-inner p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: inherit; opacity: .8; }
.footer-links a:hover { opacity: 1; }
