:root {
  --bg: #f3f6ff;
  --bg-2: #e8eeff;
  --ink: #15203a;
  --ink-soft: #3d4a68;
  --muted: #6b7694;
  --line: #cfd8f0;
  --paper: #ffffff;
  --paper-2: #f7f9ff;
  --accent: #2f5bff;
  --accent-hover: #1f48e8;
  --accent-2: #4068ff;
  --ok: #1a9f6e;
  --warm: #ff7a45;
  --shadow: 0 12px 36px rgba(47, 91, 255, 0.1);
  --radius: 16px;
  --max: 1120px;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 92% -8%, rgba(255, 122, 69, 0.18), transparent 55%),
    radial-gradient(800px 400px at -5% 20%, rgba(47, 91, 255, 0.16), transparent 50%),
    radial-gradient(600px 320px at 70% 90%, rgba(26, 159, 110, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 30;
}
.skip:focus {
  left: 8px;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  perspective: 600px;
}
.logo img {
  height: 36px;
  width: auto;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
  animation: logo-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 68, 255, 0.28));
}
.logo:hover img {
  animation-play-state: paused;
  transform: rotateY(-12deg) rotateX(6deg) scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(0, 68, 255, 0.45));
}
.hero-logo { margin: 0 0 1.25rem; line-height: 0; perspective: 800px; }
.hero-logo img {
  height: clamp(48px, 8vw, 72px);
  width: auto;
  transform-style: preserve-3d;
  animation: logo-hero 5.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 28px rgba(0, 68, 255, 0.35));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotateY(0deg); filter: drop-shadow(0 4px 10px rgba(0, 68, 255, 0.28)); }
  50% { transform: translateY(-3px) rotateY(8deg); filter: drop-shadow(0 10px 18px rgba(0, 68, 255, 0.42)); }
}
@keyframes logo-hero {
  0%, 100% { transform: translateY(0) rotateY(-4deg) rotateX(2deg) scale(1); filter: drop-shadow(0 10px 28px rgba(0, 68, 255, 0.35)); }
  50% { transform: translateY(-6px) rotateY(6deg) rotateX(-2deg) scale(1.03); filter: drop-shadow(0 16px 36px rgba(0, 68, 255, 0.48)); }
}
@media (prefers-reduced-motion: reduce) {
  .logo img, .hero-logo img { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .logo img, .hero-logo img { animation: none; }
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.burger {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: #b8c4e8; }
.btn-accent { background: #fff; color: var(--accent); }
.btn-accent:hover { background: #f0f3ff; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.hero { padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem); }
.hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(243, 246, 255, 0.94) 0%, rgba(243, 246, 255, 0.82) 42%, rgba(243, 246, 255, 0.35) 72%, rgba(243, 246, 255, 0.15) 100%),
    linear-gradient(180deg, rgba(243, 246, 255, 0.2), rgba(232, 238, 255, 0.55));
}
.hero-copy { max-width: 36rem; }
.hero-logo { margin: 0 0 1.25rem; line-height: 0; }
.hero-logo img {
  height: clamp(48px, 8vw, 72px);
  width: auto;
}
.entry-visual {
  margin: 0 0 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 320px;
}
.entry-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1, h2, h3 {
  font-family: var(--sans);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); max-width: 16ch; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); text-wrap: balance; }
h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 1.1rem 0 1.6rem;
}
.hero-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.trust { color: var(--muted); font-size: 0.875rem; margin-top: 1.1rem; max-width: 42ch; }

.section { padding: clamp(3rem, 6vw, 4.25rem) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.muted { color: var(--muted); }

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    border-color: #a8b8f0;
  }
}
.card a.more {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}
.card a.more:hover { color: var(--accent); text-decoration: underline; }
.card ul { margin: 0.75rem 0 1rem; padding-left: 1.1rem; color: var(--ink-soft); }
.card li + li { margin-top: 0.35rem; }
.card p { color: var(--ink-soft); }
.num {
  color: var(--accent);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.yes { border-top: 3px solid var(--ok); }
.no { border-top: 3px solid var(--accent); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.step p { color: var(--ink-soft); margin: 0.4rem 0 0; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}
.faq details[open] { border-color: #a8b8f0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin: 0.65rem 0 0; }

.cta-band {
  background: linear-gradient(135deg, #2f5bff 0%, #5b7cff 55%, #ff7a45 160%);
  border: none;
  color: #fff;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(47, 91, 255, 0.28);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band > * { position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin: 0.5rem 0 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--ink);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.social:hover { transform: translateY(-1px); }
.social-tg { border-color: #9ec4ff; background: #eef5ff; color: #1a4a9c; }
.social-wa { border-color: #9fd9b8; background: #eefaf3; color: #0f6b42; }
.social-max { border-color: #c5b8ff; background: #f3f0ff; color: #3b2f8f; }
.socials-note { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.foot .socials { margin-top: 0.35rem; }
.foot .social { min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.8125rem; }

.page-hero { padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.25rem; }
.prose { max-width: 72ch; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

form { display: grid; gap: 0.75rem; }
label { font-size: 0.875rem; font-weight: 700; display: grid; gap: 0.35rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 44px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.2);
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--accent-2); }
.form-ok {
  color: var(--ok);
  font-weight: 700;
  margin: 0;
}
.form-err {
  color: #ff6b6b;
  font-weight: 700;
  margin: 0;
}

.work-card { text-decoration: none; color: inherit; display: block; }
.work-card h3 { margin-top: 0.5rem; color: var(--ink); }
a.work-card-link { text-decoration: none; color: inherit; display: block; }
.work-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  background: #f0f3ff;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.03); }
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.cards-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.cards-duo img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  margin-right: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 600px) {
  .cards-duo { grid-template-columns: 1fr; }
}

body.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .grid-3, .grid-4, .steps, .split, .grid-2 { grid-template-columns: 1fr; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(243, 246, 255, 0.92), rgba(243, 246, 255, 0.78));
  }
  .entry-visual, .entry-visual img { max-height: 220px; height: 220px; }
  .nav-cta .btn-primary { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head { align-items: start; }
  h1 { max-width: none; }
  .logo img { height: 32px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .hero-actions .btn { width: 100%; }
  .card { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}


.check-pd {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.check-pd input {
  width: auto;
  min-height: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.check-pd a { color: var(--accent-2); }
