:root {
  --ink: #0b1f2a;
  --ink-soft: #1c3a4a;
  --mist: #e7f2f4;
  --paper: #f6fbfc;
  --teal: #0f7a72;
  --teal-deep: #0a5c56;
  --sand: #d8e8e4;
  --line: rgba(11, 31, 42, 0.12);
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(11, 31, 42, 0.12);
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #c8e8e4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #b9d8e8 0%, transparent 50%),
    linear-gradient(180deg, var(--mist), var(--paper) 40%, #eef6f5);
  min-height: 100vh;
  line-height: 1.5;
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: rgba(11, 31, 42, 0.62); }
.error { color: var(--danger); font-size: 0.9rem; display: block; margin-top: 0.35rem; }
.field-has-error .field-input {
  border-color: var(--danger);
  outline-color: var(--danger);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.site-logo:hover {
  text-decoration: none;
  color: var(--teal-deep);
}
.site-logo__mark {
  display: flex;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
}
.site-logo__mark svg,
.site-logo__mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.site-logo__text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.site-logo--footer {
  margin-bottom: 0.15rem;
}
.site-logo--footer .site-logo__text {
  font-size: 1.5rem;
}
.logo,
.site-logo { flex-shrink: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav a { color: var(--ink-soft); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--teal); }
.nav a.btn,
.nav a.btn:visited {
  color: #fff;
  background: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(11, 31, 42, 0.16);
}
.nav a.btn:hover {
  color: #fff;
  background: var(--teal-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #fff;
  border-color: rgba(11, 31, 42, 0.2);
  box-shadow: 0 8px 20px rgba(11, 31, 42, 0.08);
  outline: none;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}
.nav-toggle__icon {
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle.is-active .nav-toggle__icon { background: transparent; }
.nav-toggle.is-active .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}
.inline-form { display: inline; }
.linkish {
  background: none;
  border: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.linkish:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(11, 31, 42, 0.18);
}
.btn:hover { background: var(--teal-deep); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.7); color: var(--ink); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.92rem; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 1rem clamp(1.2rem, 4vw, 3rem) 3rem;
}
.hero-check {
  grid-template-columns: 1fr;
  justify-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  min-height: auto;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  text-align: center;
}
.hero-check .hero-copy {
  text-align: center;
  margin-bottom: 1rem;
}
.hero-check .lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-check .check-label-top {
  text-align: left;
}
.check-panel {
  width: 100%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.check-label-top {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.check-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}
.check-domain-input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  background: #eef2f5;
  font: inherit;
  width: 100%;
}
.check-domain-input:focus {
  outline: 2px solid rgba(15, 122, 114, 0.35);
  border-color: var(--teal);
  background: #fff;
}
.check-submit { white-space: nowrap; }
.check-hint { margin: 0.7rem 0 0; font-size: 0.92rem; }
.check-disclaimer {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.check-loading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 0.25rem 0.5rem;
  color: var(--ink-soft);
}
.check-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(11,31,42,0.15);
  border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.check-result-card {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.2rem;
}
.check-domain-pill {
  background: #eef2f5;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0.35rem;
  border-bottom: 1px solid rgba(11,31,42,0.08);
}
.check-row:last-child { border-bottom: none; }
.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #98a2b3;
}
.check-row.is-ok .check-dot { background: #12b76a; }
.check-row.is-bad .check-dot { background: #f04438; }
.check-name { font-weight: 500; }
.check-status { font-weight: 600; font-size: 0.95rem; }
.check-row.is-ok .check-status { color: #039855; }
.check-row.is-bad .check-status { color: #d92d20; }
.check-fix-btn {
  display: flex;
  width: 100%;
  margin-top: 0.85rem;
  background: #2e6bff;
  box-shadow: 0 10px 24px rgba(46, 107, 255, 0.28);
}
.check-fix-btn:hover { background: #1f54d8; color: #fff; }

@media (max-width: 640px) {
  .check-input-row { grid-template-columns: 1fr; }
  .check-submit { width: 100%; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 0.75rem;
}
.brand-hero {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
  animation: rise 0.8s ease both;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  animation: rise 0.9s ease 0.08s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1s ease 0.14s both;
}
.hero-visual { position: relative; min-height: 360px; }
.doc-stack { position: relative; height: 100%; }
.doc-sheet {
  position: absolute;
  width: min(320px, 80%);
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.doc-sheet span { font-weight: 600; display: block; margin-bottom: 1rem; }
.doc-sheet .lines {
  height: 110px;
  background:
    repeating-linear-gradient(
      transparent 0 12px,
      rgba(11,31,42,0.08) 12px 13px
    );
  border-radius: 4px;
}
.doc-sheet.s1 { top: 8%; left: 8%; animation: floatY 5s ease-in-out infinite; }
.doc-sheet.s2 { top: 28%; left: 28%; animation: floatY 5.5s ease-in-out 0.4s infinite; }
.doc-sheet.s3 { top: 48%; left: 14%; animation: floatY 6s ease-in-out 0.8s infinite; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  padding: 4.5rem clamp(1.2rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}
.section-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.section-center {
  text-align: center;
}
.section-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}
.section-alt {
  max-width: none;
  background: rgba(255,255,255,0.5);
  border-block: 1px solid var(--line);
}
.section-alt .section-inner,
.section-alt > .section-inner {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.section h2, .cabinet h1, .quiz h1, .auth-card h1, .checkout-card h1, .pack-detail h1, .doc-view h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.section-lead {
  color: var(--ink-soft);
  margin: 0 0 2rem;
  max-width: 36rem;
  line-height: 1.55;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  text-align: left;
}
.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}
.steps strong {
  display: block;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.steps span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  text-align: left;
  max-width: 760px;
}
.doc-list li {
  padding: 1.05rem 1.25rem;
  border-left: 3px solid var(--teal);
  background: rgba(255,255,255,0.82);
  border-radius: 0 14px 14px 0;
  box-shadow: 0 8px 24px rgba(11, 31, 42, 0.05);
}
.doc-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}
.doc-list .muted {
  display: block;
  line-height: 1.45;
}

.price-block {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.price {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.03em;
}
.price span { color: var(--teal-deep); }

.section-inner {
  width: 100%;
  max-width: 920px;
}
.section-inner-wide {
  max-width: 1120px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.25rem;
  text-align: left;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.55rem 1.35rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 100%);
  border: 1px solid rgba(11, 31, 42, 0.1);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 14px 36px rgba(11, 31, 42, 0.06);
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 22px 48px rgba(11, 31, 42, 0.1);
  border-color: rgba(15, 122, 114, 0.28);
}
.pricing-card.is-highlight {
  background:
    linear-gradient(165deg, rgba(15, 122, 114, 0.14) 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0.82) 100%);
  border-color: rgba(15, 122, 114, 0.42);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.75) inset,
    0 20px 44px rgba(15, 122, 114, 0.16);
  transform: translateY(-6px);
}
.pricing-card.is-highlight:hover {
  transform: translateY(-8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 26px 56px rgba(15, 122, 114, 0.2);
}
.pricing-card.is-current {
  border-color: rgba(15, 122, 114, 0.55);
  box-shadow:
    0 0 0 3px rgba(15, 122, 114, 0.12),
    0 16px 40px rgba(15, 122, 114, 0.12);
}
.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 122, 114, 0.28);
}
.pricing-badge-current {
  background: rgba(11, 31, 42, 0.08);
  color: var(--ink-soft);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.pricing-card-head {
  padding-right: 4.5rem;
  min-height: 4.6rem;
}
.pricing-card h2,
.pricing-card h3 {
  font-family: var(--serif);
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}
.pricing-price {
  margin: 0.15rem 0 0.2rem;
  padding: 0.85rem 0 0.95rem;
  border-top: 1px solid rgba(11, 31, 42, 0.08);
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
}
.pricing-amount {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.pricing-card.is-highlight .pricing-amount {
  color: var(--teal-deep);
}
.pricing-features {
  list-style: none;
  padding: 0.25rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}
.pricing-features li.is-included {
  color: var(--ink-soft);
}
.pricing-features li.is-excluded {
  color: rgba(11, 31, 42, 0.38);
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.2l2.4 2.4L12 5' stroke='%230f7a72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.72rem no-repeat,
    rgba(15, 122, 114, 0.12);
}
.pricing-features li.is-excluded::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%239aa3ab' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 0.68rem no-repeat,
    rgba(11, 31, 42, 0.06);
}
.pricing-features-heading {
  margin: 0.85rem 0 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(11, 31, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.pricing-features--integration {
  padding-top: 0;
}
.plans-integration-lead {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.plans-integration-lead strong {
  color: var(--ink);
}
.pricing-audience {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(11, 31, 42, 0.52);
  line-height: 1.4;
}
.pricing-cta {
  margin-top: auto;
  padding-top: 0.35rem;
}
.pricing-cta .btn,
.pricing-cta form,
.pricing-cta form .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.pricing-cta form {
  margin: 0;
}
.plan-pay-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}
.plan-pay-form .promo-inline {
  width: 100%;
  margin: 0;
}
.plan-pay-form .btn {
  width: 100%;
  justify-content: center;
}
.pricing-card .btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
  transform: none;
  pointer-events: none;
}
.plans-page {
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.plans-page-head {
  margin-bottom: 0.5rem;
}
.plans-page-head .eyebrow {
  margin-bottom: 0.35rem;
}
.plans-page-head h1 {
  margin-bottom: 0.45rem;
}
.section-pricing {
  max-width: 1200px;
}

.auto-update-points {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: left;
  max-width: 920px;
}
.auto-update-badge {
  display: inline-block;
  margin: 0.35rem 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 122, 114, 0.12);
  border: 1px solid rgba(15, 122, 114, 0.22);
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.auto-update-note {
  max-width: 42rem;
  margin: 1.35rem auto 0;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}
.auto-update-cta {
  margin-top: 1.25rem;
  text-align: center;
}
.auto-update-points li {
  padding: 1.2rem 1.15rem;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.auto-update-points strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}
.auto-update-points span {
  display: block;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}
.auto-update-card {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 122, 114, 0.28);
  background: rgba(15, 122, 114, 0.08);
  max-width: 42rem;
}
.auto-update-card strong {
  display: block;
  color: var(--teal-deep);
  margin-bottom: 0.3rem;
}
.auto-update-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.site-footer {
  margin-top: 3.5rem;
  padding: 0;
  border-top: none;
  background:
    linear-gradient(180deg, rgba(231, 242, 244, 0.35) 0%, rgba(255, 255, 255, 0.82) 38%, rgba(246, 251, 252, 0.95) 100%);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), #5eb8b0, var(--teal-deep));
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 122, 114, 0.08) 0%, transparent 68%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem clamp(1.2rem, 4vw, 3rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) 1.15fr minmax(180px, 0.75fr);
  gap: 2.25rem 3rem;
  align-items: start;
}
.footer-about {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-about .site-logo {
  align-self: flex-start;
}
.footer-tagline {
  margin: 0;
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}
.footer-disclaimer-card {
  margin-top: 0.15rem;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid rgba(11, 31, 42, 0.1);
  border-left: 3px solid var(--teal);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(11, 31, 42, 0.05);
}
.footer-disclaimer-card .service-disclaimer {
  font-size: 0.84rem;
  line-height: 1.48;
  color: rgba(11, 31, 42, 0.68);
}
.footer-legal-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: rgba(11, 31, 42, 0.5);
  line-height: 1.4;
}
.footer-col {
  min-width: 0;
}
.footer-heading {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
}
.footer-links--single {
  grid-template-columns: 1fr;
}
.footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a::before {
  content: "";
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: rgba(15, 122, 114, 0.35);
  transition: background 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover {
  color: var(--teal-deep);
  text-decoration: none;
  transform: translateX(2px);
}
.footer-links a:hover::before {
  background: var(--teal);
  transform: scale(1.15);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(11, 31, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer-copy {
  margin: 0;
  color: rgba(11, 31, 42, 0.62);
  font-size: 0.9rem;
}
.footer-seo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.footer-seo a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(11, 31, 42, 0.62);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.footer-seo a:hover {
  color: var(--teal-deep);
  border-color: rgba(15, 122, 114, 0.28);
  background: rgba(15, 122, 114, 0.06);
}

.footer-col--widget {
  min-width: 0;
}
.site-footer .footer-col--widget #docs-legal-widget {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  font-size: inherit;
  line-height: inherit;
  max-width: none;
  color: inherit !important;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
  color: var(--ink) !important;
  letter-spacing: -0.01em;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-links li {
  width: auto;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  transition: color 0.18s ease, transform 0.18s ease;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-links a::before {
  content: "";
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: rgba(15, 122, 114, 0.35);
  transition: background 0.18s ease, transform 0.18s ease;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-links a:hover {
  color: var(--teal-deep) !important;
  transform: translateX(2px);
  opacity: 1;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-links a:hover::before {
  background: var(--teal);
  transform: scale(1.15);
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-note {
  margin: 0.75rem 0 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.8rem;
  color: rgba(11, 31, 42, 0.55) !important;
  line-height: 1.4;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-note a {
  color: var(--teal-deep) !important;
  text-decoration: none !important;
  font-weight: 500;
}
.site-footer .footer-col--widget #docs-legal-widget .docs-w-note a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.footer-widget-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(11, 31, 42, 0.55);
  line-height: 1.4;
}
.footer-widget-note a {
  color: var(--teal-deep);
  text-decoration: none;
  font-weight: 500;
}
.footer-widget-note a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.service-disclaimer {
  margin: 0;
  color: rgba(11, 31, 42, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}
.disclaimer-box {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.disclaimer-box-compact {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.legal-page, .error-page {
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 4rem;
  max-width: 860px;
  margin: 0 auto;
}
.legal-page h1, .error-page h1, .error-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.legal-updated { margin-bottom: 1.5rem; }
.legal-body h2 { margin-top: 1.4rem; }
.legal-body h3 { margin-top: 1.1rem; font-size: 1.05rem; }
.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal-table th {
  font-weight: 600;
  background: rgba(15, 122, 114, 0.06);
}
.legal-table tr:last-child td { border-bottom: 0; }

.requisites-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}
.requisites-list li {
  margin-bottom: 0.45rem;
}
.requisites-list li strong {
  color: var(--ink);
}

.bank-details {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(15, 122, 114, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bank-details li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.bank-details li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.bank-details li:first-child {
  padding-top: 0;
}
.bank-details-empty {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

.error-body {
  min-height: 100vh;
  position: relative;
}
.error-top {
  position: relative;
  z-index: 2;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
.error-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.error-atmosphere-code {
  position: absolute;
  right: -4vw;
  top: 8vh;
  font-family: var(--serif);
  font-size: clamp(8rem, 28vw, 22rem);
  font-weight: 600;
  line-height: 0.85;
  color: rgba(15, 122, 114, 0.08);
  letter-spacing: -0.06em;
  user-select: none;
}
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.error-page-standalone {
  min-height: calc(100vh - 5rem);
}
.error-page-inner {
  max-width: 36rem;
}
.error-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 0.75rem;
}
.error-title {
  color: var(--ink);
}
.error-text,
.error-page .lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: rgba(11, 31, 42, 0.72);
  font-size: 1.05rem;
  line-height: 1.55;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Auth */
.auth-section, .checkout {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.auth-card, .checkout-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.checkout-card { width: min(520px, 100%); }
.success-card { width: min(560px, 100%); }
.upsell-card {
  margin: 1.25rem 0 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: rgba(15, 122, 114, 0.08);
  border: 1px solid rgba(15, 122, 114, 0.18);
  text-align: left;
}
.upsell-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.upsell-card p {
  margin: 0 0 1rem;
  color: rgba(11, 31, 42, 0.78);
  line-height: 1.45;
}
.upsell-card form { margin: 0; }
.upsell-card-inline {
  margin: 1rem 0 0;
  max-width: 36rem;
}
.form-stack { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field > span, .field label > span:first-child { font-weight: 560; font-size: 0.95rem; }
.field-input, 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);
}
.field-input:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(15, 122, 114, 0.35);
  border-color: var(--teal);
}

.address-suggest-wrap {
  position: relative;
  display: block;
  width: 100%;
  z-index: 5;
}
.address-suggest-wrap.is-open {
  z-index: 50;
}
.address-suggest-shell {
  position: relative;
  display: block;
}
.address-suggest-shell .field-input {
  padding-right: 2.5rem;
}
.address-suggest-caret {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.2rem;
  border-right: 2px solid rgba(11, 31, 42, 0.45);
  border-bottom: 2px solid rgba(11, 31, 42, 0.45);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.address-suggest-wrap.is-open .address-suggest-caret {
  transform: translateY(-20%) rotate(225deg);
}
.address-suggest-panel {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(11, 31, 42, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(11, 31, 42, 0.16);
  overflow: hidden;
}
.address-suggest-head {
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(15, 122, 114, 0.06);
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
}
.address-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 15rem;
  overflow: auto;
}
.address-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 31, 42, 0.06);
}
.address-suggest-item:last-child {
  border-bottom: 0;
}
.address-suggest-text {
  flex: 1;
  min-width: 0;
}
.address-suggest-pick {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-deep);
  opacity: 0.75;
}
.address-suggest-item:hover,
.address-suggest-item.is-active {
  background: rgba(15, 122, 114, 0.1);
}
.address-suggest-item:hover .address-suggest-pick,
.address-suggest-item.is-active .address-suggest-pick {
  opacity: 1;
}
.address-suggest-status {
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.9rem;
  color: rgba(11, 31, 42, 0.7);
  line-height: 1.4;
}
.field:has(.address-suggest-wrap.is-open) {
  position: relative;
  z-index: 40;
}
.site-profile-banner {
  margin-bottom: 0.25rem;
}
.site-profile-banner.is-error,
.party-lookup-banner.is-error {
  color: var(--danger);
}
.party-lookup-banner {
  margin: 0.15rem 0 0.35rem;
}
.auth-switch { margin-top: 1.25rem; color: var(--ink-soft); }

/* Cabinet / quiz */
.cabinet, .quiz, .pack-detail, .doc-view {
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 4rem;
  max-width: 960px;
  margin: 0 auto;
}
.cabinet-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.settings-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.75rem;
}
.settings-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

/* Referrals */
.referrals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.referrals-card { margin-bottom: 0; }
.referral-link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0.5rem;
}
.referral-link-input {
  flex: 1 1 14rem;
  min-width: 0;
}
.referral-code-line { margin: 0; font-size: 0.92rem; }
.referrals-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.5rem 0 0.85rem;
}
.referrals-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal-deep);
}
.referrals-stat-label { color: var(--ink-soft); font-size: 0.95rem; }
.referral-progress-wrap {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(11, 31, 42, 0.08);
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.referral-progress-bar {
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-deep) 100%);
  transition: width 0.35s ease;
}
.referral-progress-note { margin: 0; font-size: 0.92rem; }
.referrals-rules-list,
.referrals-rewards-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.referrals-rewards-list {
  list-style: none;
  padding-left: 0;
}
.referrals-rewards-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(11, 31, 42, 0.06);
}
.referrals-rewards-list li:last-child { border-bottom: 0; }

.settings-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  max-width: 28rem;
}
.settings-form .field {
  display: grid;
  gap: 0.35rem;
}
.settings-form .field > span {
  font-weight: 600;
  font-size: 0.95rem;
}
.settings-form .btn {
  justify-self: start;
}
.settings-preview {
  margin: 0.85rem 0 0;
}
.brand-widget-preview {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(11, 31, 42, 0.03);
  border: 1px dashed var(--line);
  max-width: 28rem;
}
.brand-widget-preview .docs-w-title {
  font-weight: 600;
  margin: 0 0 0.55rem;
}
.brand-widget-preview .docs-w-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-widget-preview .docs-w-links a {
  color: #0a5c56;
  text-decoration: none;
  font-size: 0.92rem;
  pointer-events: none;
}
.brand-widget-preview .docs-w-note a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}
.update-alert-card {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.28);
}
.update-alert-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.update-alert-card p {
  margin: 0 0 0.55rem;
  color: rgba(11, 31, 42, 0.8);
  line-height: 1.45;
}
.update-alert-eyebrow {
  margin: 0 0 0.35rem !important;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
}
.update-alert-cta {
  margin-bottom: 1rem !important;
}
.update-alert-card form { margin: 0; }
.pack-item.is-stale {
  border-color: rgba(180, 83, 9, 0.35);
}
.badge-stale {
  background: rgba(180, 83, 9, 0.14);
  color: #9a3412;
}
.pack-grid, .doc-cards {
  display: grid;
  gap: 1rem;
}
.pack-item, .doc-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.pack-item h2, .doc-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0.4rem 0;
}
.pack-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--sand);
}
.badge-paid { background: #c8efe4; color: #0a5c56; }
.badge-ready { background: #ffe8c7; color: #8a4b00; }
.badge-draft { background: #e4eaf0; color: #355066; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.empty {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.quiz-progress {
  height: 6px;
  background: rgba(11,31,42,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #1aa6a0);
  transition: width 0.35s ease;
}
.quiz-step-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 0.5rem;
}
.hint-banner {
  background: rgba(15, 122, 114, 0.08);
  border-left: 3px solid var(--teal);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}
.quiz-form { display: grid; gap: 1.1rem; }
.field-hint { color: rgba(11,31,42,0.55); font-size: 0.88rem; }
.field-label { font-weight: 560; font-size: 0.95rem; }
.field-tags { gap: 0.55rem; }
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.tag-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.tag-chip span {
  display: inline-block;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tag-chip:hover span {
  border-color: rgba(15, 122, 114, 0.45);
  color: var(--ink);
}
.tag-chip input:checked + span {
  border-color: var(--teal);
  background: rgba(15, 122, 114, 0.12);
  color: var(--teal-deep);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 122, 114, 0.12);
}
.tag-chip input:focus-visible + span {
  outline: 2px solid rgba(15, 122, 114, 0.45);
  outline-offset: 2px;
}
.check-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
}
.check-label input { width: auto; margin-top: 0.25rem; }
.check-label small { display: block; color: rgba(11,31,42,0.55); margin-top: 0.2rem; }
.check-card {
  min-height: 122px;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.check-card:hover {
  border-color: rgba(15, 122, 114, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(11, 31, 42, 0.08);
}

/* Quiz step 1: document picker cards */
.doc-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.85rem;
}
.field-doc-picker {
  margin: 0;
  min-width: 0;
}
.field-doc-picker .error {
  margin-top: 0.35rem;
  padding-left: 0.15rem;
}
.doc-check-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 0;
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 22px rgba(11, 31, 42, 0.04);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.doc-check-card:hover {
  border-color: rgba(15, 122, 114, 0.38);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px rgba(11, 31, 42, 0.08);
}
.doc-check-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.doc-check-mark {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  border-radius: 7px;
  border: 2px solid rgba(11, 31, 42, 0.16);
  background: #fff;
  display: grid;
  place-items: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: inset 0 1px 2px rgba(11, 31, 42, 0.04);
}
.doc-check-mark::after {
  content: "";
  width: 0.35rem;
  height: 0.62rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -0.12rem;
  transition: transform 0.16s ease;
}
.doc-check-body {
  flex: 1;
  min-width: 0;
}
.doc-check-body strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 650;
}
.doc-check-body small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(11, 31, 42, 0.58);
}
.doc-check-card:has(input:checked) {
  border-color: rgba(15, 122, 114, 0.52);
  background:
    linear-gradient(135deg, rgba(15, 122, 114, 0.11) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(15, 122, 114, 0.08),
    0 12px 30px rgba(15, 122, 114, 0.14);
}
.doc-check-card:has(input:checked) .doc-check-mark {
  border-color: var(--teal-deep);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 4px 12px rgba(15, 122, 114, 0.28);
}
.doc-check-card:has(input:checked) .doc-check-mark::after {
  transform: rotate(45deg) scale(1);
}
.doc-check-card:has(input:checked) .doc-check-body strong {
  color: var(--teal-deep);
}
.doc-check-card:has(input:focus-visible) {
  outline: 2px solid rgba(15, 122, 114, 0.45);
  outline-offset: 2px;
}
.field-doc-picker.field-has-error .doc-check-card {
  border-color: rgba(192, 57, 43, 0.55);
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.12);
}

@media (max-width: 720px) {
  .doc-picker-grid {
    grid-template-columns: 1fr;
  }
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.selection-summary {
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.selection-summary p {
  margin: 0.2rem 0;
}
.review-grid {
  display: grid;
  gap: 0.55rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.review-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(11,31,42,0.06);
}
.review-key { color: rgba(11,31,42,0.5); font-size: 0.88rem; word-break: break-all; }
.review-note { margin-top: 0.5rem; }
.consent-field { margin-top: 1rem; }
.consent-check span {
  font-size: 0.95rem;
  line-height: 1.45;
}
.consent-check a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-check a:hover { color: var(--teal); }
.consent-field.field-has-error .consent-check {
  border-color: var(--danger);
  background: rgba(180, 35, 24, 0.04);
}
.consent-field > .error { display: block; margin-top: 0.45rem; }
.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.doc-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.doc-content h1 { font-family: var(--serif); font-size: 1.8rem; }
.doc-content h2 { font-family: var(--serif); font-size: 1.2rem; margin-top: 1.5rem; }
.doc-content ul:not(.bank-details) {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.doc-content ul:not(.bank-details) li {
  margin-bottom: 0.35rem;
}

.checkout-docs {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.demo-note {
  background: #fff4df;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  z-index: 20;
  animation: rise 0.25s ease;
}
.flash-wrap { padding: 0 clamp(1.2rem, 4vw, 3rem); }
.flash {
  background: #dff5ef;
  border: 1px solid #9ed9cb;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card.is-highlight { transform: none; }
  .pricing-card.is-highlight:hover { transform: translateY(-4px); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.25rem;
  }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-visual { min-height: 280px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .auto-update-points { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pricing-card:hover,
  .pricing-card.is-highlight,
  .pricing-card.is-highlight:hover { transform: none; }
  .pricing-card-head { padding-right: 0; min-height: 0; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 210;
    max-width: none;
    width: 100%;
    margin: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: rgba(246, 251, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  body.nav-open .site-header {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(11, 31, 42, 0.06);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(11, 31, 42, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    top: calc(var(--site-header-height, 4.25rem) + 0.5rem);
    right: clamp(0.75rem, 3vw, 1.25rem);
    left: clamp(0.75rem, 3vw, 1.25rem);
    max-height: calc(100dvh - var(--site-header-height, 4.25rem) - 1.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.45rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    z-index: 220;
    box-shadow: var(--shadow);
  }
  .nav.open a,
  .nav.open .linkish {
    display: block;
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    font-size: 1rem;
    text-align: left;
    text-decoration: none;
  }
  .nav.open a:hover,
  .nav.open .linkish:hover {
    background: rgba(15, 122, 114, 0.08);
    text-decoration: none;
  }
  .nav.open .inline-form {
    display: block;
    width: 100%;
  }
  .nav.open .inline-form .linkish {
    width: 100%;
  }
  .nav.open a.btn {
    justify-content: center;
    margin-top: 0.35rem;
    text-align: center;
    transform: none;
    box-shadow: 0 10px 24px rgba(11, 31, 42, 0.16);
  }
  .nav.open a.btn:hover {
    transform: none;
  }
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 230;
  }
  .review-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .footer-seo { justify-content: flex-start; }
}

.integration {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.integration h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.integ-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1rem;
}
.integ-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.integ-tab.is-active,
.integ-tab:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.integ-panel { display: none; }
.integ-panel.is-active { display: block; }
.code-box {
  background: #0b1f2a;
  color: #e7f2f4;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0.75rem 0 1rem;
}

.widget-preview {
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.widget-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
}
.widget-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5ced6;
}
.widget-preview-dot:nth-child(1) { background: #ff5f57; }
.widget-preview-dot:nth-child(2) { background: #febc2e; }
.widget-preview-dot:nth-child(3) { background: #28c840; }
.widget-preview-url {
  margin-left: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.widget-preview-page { background: #f8fafb; }
.widget-preview-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.widget-preview-hero span { color: var(--ink-soft); }
.widget-preview-body { padding: 1.1rem 1.15rem 0.4rem; }
.widget-preview-lines {
  height: 72px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      transparent 0 12px,
      rgba(11,31,42,0.07) 12px 13px
    );
  margin-bottom: 0.75rem;
}
.widget-preview-footer-wrap {
  margin: 0.5rem 1.15rem 1.15rem;
  padding: 0.85rem 1.15rem 1.15rem;
  border-radius: 0 0 12px 12px;
  background: transparent;
  transition: background 0.2s ease;
}
.widget-preview-footer-wrap.is-text-white {
  background: linear-gradient(180deg, #243040 0%, #171f28 100%);
}
.widget-preview-footer-wrap.is-text-dark {
  background: #f8fafb;
}
.widget-preview-footer {
  margin: 0;
  padding: 0.25rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
  color: inherit;
}
.widget-preview-footer .docs-w-title {
  font-weight: 600;
  margin: 0 0 10px;
}
.widget-preview-footer .docs-w-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.widget-preview-footer .docs-w-links--row {
  flex-wrap: wrap;
  gap: 8px 14px;
}
.widget-preview-footer .docs-w-links--column {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
}
.widget-preview-footer .docs-w-links a {
  text-decoration: none;
  font-weight: 500;
}
.widget-preview-footer .docs-w-links a:hover { opacity: 0.85; }
.widget-preview-footer .docs-w-note a { text-decoration: none; }
.widget-preview-footer .docs-w-note {
  margin: 10px 0 0;
  font-size: 12px;
}
.widget-preview-footer.docs-w-theme-brand {
  color: #1c3a4a;
}
.widget-preview-footer.docs-w-theme-brand .docs-w-title { color: #0b1f2a; }
.widget-preview-footer.docs-w-theme-brand .docs-w-links a { color: #0a5c56; }
.widget-preview-footer.docs-w-theme-brand .docs-w-note,
.widget-preview-footer.docs-w-theme-brand .docs-w-note a { color: rgba(11, 31, 42, 0.62); }
.widget-preview-footer.docs-w-theme-auto {
  color: inherit;
}
.widget-preview-footer.docs-w-theme-auto .docs-w-title,
.widget-preview-footer.docs-w-theme-auto .docs-w-links a,
.widget-preview-footer.docs-w-theme-auto .docs-w-note,
.widget-preview-footer.docs-w-theme-auto .docs-w-note a {
  color: inherit;
  text-decoration: none;
}
.widget-preview-footer.docs-w-theme-light,
.widget-preview-footer.docs-w-theme-light .docs-w-title,
.widget-preview-footer.docs-w-theme-light .docs-w-links a,
.widget-preview-footer.docs-w-theme-light .docs-w-note,
.widget-preview-footer.docs-w-theme-light .docs-w-note a {
  color: #fff;
  text-decoration: none;
}
.widget-preview-footer.docs-w-theme-dark,
.widget-preview-footer.docs-w-theme-dark .docs-w-title,
.widget-preview-footer.docs-w-theme-dark .docs-w-links a,
.widget-preview-footer.docs-w-theme-dark .docs-w-note,
.widget-preview-footer.docs-w-theme-dark .docs-w-note a {
  color: #0b1f2a;
  text-decoration: none;
}
.widget-settings-form {
  margin: 1rem 0 1.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 100%);
  border: 1px solid rgba(11, 31, 42, 0.08);
  box-shadow: 0 10px 28px rgba(11, 31, 42, 0.05);
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
}
.widget-settings-form.settings-form {
  max-width: none;
}
.widget-settings-form .field { display: grid; gap: 0.4rem; }
.widget-settings-form label { font-weight: 600; font-size: 0.92rem; }
.widget-theme-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.widget-theme-fieldset legend {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  padding: 0;
}
.widget-theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.widget-theme-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.95rem 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 42, 0.1);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}
.widget-theme-option:hover {
  border-color: rgba(15, 122, 114, 0.28);
  box-shadow: 0 8px 20px rgba(11, 31, 42, 0.06);
  transform: translateY(-1px);
}
.widget-theme-option:has(input:checked) {
  border-color: rgba(15, 122, 114, 0.5);
  background: linear-gradient(180deg, rgba(15, 122, 114, 0.12) 0%, rgba(15, 122, 114, 0.06) 100%);
  color: var(--teal-deep);
  box-shadow:
    0 0 0 3px rgba(15, 122, 114, 0.1),
    0 10px 24px rgba(15, 122, 114, 0.12);
}
.widget-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.widget-theme-option span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.widget-theme-option span::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(11, 31, 42, 0.14);
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.65);
}
.widget-theme-option:has(input[value="brand"]) span::before {
  background: linear-gradient(135deg, #0b1f2a 0 50%, #0a5c56 50% 100%);
}
.widget-theme-option:has(input[value="auto"]) span::before {
  background:
    linear-gradient(135deg, #fff 0 50%, #0b1f2a 50% 100%);
}
.widget-theme-option:has(input[value="light"]) span::before {
  background: #fff;
}
.widget-theme-option:has(input[value="dark"]) span::before {
  background: #0b1f2a;
}
.widget-layout-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.1rem;
}
.widget-layout-picker-center {
  justify-content: center;
}
.widget-layout-label {
  font-weight: 600;
  color: var(--ink);
}
.widget-layout-options {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(11, 31, 42, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 8px 22px rgba(11, 31, 42, 0.05);
}
.widget-layout-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.widget-layout-btn.is-active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 122, 114, 0.28);
}
.widget-layout-btn:hover:not(.is-active) {
  color: var(--teal-deep);
  background: rgba(15, 122, 114, 0.08);
}
.widget-layout-btn:active {
  transform: translateY(1px);
}
.widget-preview-demo {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Галерея превью виджетов */
.widget-gallery {
  margin: 0 0 2rem;
}
.widget-gallery--compact {
  margin-bottom: 1.5rem;
}
.widget-gallery-heading {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.widget-gallery-lead {
  max-width: 42rem;
  margin: 0 0 1.1rem;
}
.widget-gallery-meta {
  margin: 0 0 0.85rem;
}
.widget-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.widget-type-tab {
  border: 1px solid rgba(11, 31, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.widget-type-tab.is-active {
  border-color: rgba(15, 122, 114, 0.45);
  background: linear-gradient(135deg, rgba(15, 122, 114, 0.14) 0%, rgba(15, 122, 114, 0.06) 100%);
  color: var(--teal-deep);
  box-shadow: 0 6px 16px rgba(15, 122, 114, 0.12);
}
.widget-type-tab:hover:not(.is-active) {
  border-color: rgba(15, 122, 114, 0.25);
  color: var(--teal-deep);
}
.widget-type-hint {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}
.widget-layout-picker--inline {
  margin-bottom: 1rem;
}
.widget-layout-picker--inline[hidden] {
  display: none;
}
.widget-preview-panels {
  position: relative;
}
.widget-preview-panel {
  display: none;
}
.widget-preview-panel.is-active {
  display: block;
}
.widget-preview-body--minimal {
  min-height: 5.5rem;
}
.widget-preview-body--cookie {
  position: relative;
  min-height: 11.5rem;
  padding: 0.85rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}
.widget-preview-body--cookie .widget-preview-lines {
  flex: 1;
  min-height: 2.5rem;
  margin-bottom: 0.5rem;
}
.widget-preview-cookie-mount {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  z-index: 2;
  margin: 0 auto;
}
.widget-preview-cookie-mount .cookie-banner.cookie-banner--preview,
.widget-preview-cookie-mount .cookie-banner.cookie-banner--preview.is-visible {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  pointer-events: none;
  margin: 0 auto;
}
.widget-preview-cookie-mount .cookie-banner--preview .cookie-banner-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.95rem;
  gap: 0.75rem;
  border-radius: 16px;
}
@media (max-width: 640px) {
  .widget-preview-cookie-mount .cookie-banner--preview .cookie-banner-inner {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon text"
      "btn btn";
    gap: 0.65rem 0.75rem;
    padding: 0.85rem;
  }
  .widget-preview-cookie-mount .cookie-banner-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
  }
  .widget-preview-cookie-mount .cookie-banner-body {
    grid-area: text;
  }
  .widget-preview-cookie-mount .cookie-banner-btn {
    grid-area: btn;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .widget-preview-cookie-mount .cookie-banner-more {
    white-space: normal;
  }
}
.widget-preview-cookie-mount .cookie-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.widget-preview-cookie-mount .cookie-banner-icon svg {
  width: 22px;
  height: 22px;
}
.widget-preview-cookie-mount .cookie-banner-text {
  font-size: 0.78rem;
}
.widget-preview-cookie-mount .cookie-banner-btn {
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
}
.widget-preview-cookie-mount .cookie-banner--dark .cookie-banner-inner {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #0b1f2a 0%, #132a38 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.widget-preview-cookie-mount .cookie-banner--dark .cookie-banner-icon {
  color: #7ee8dc;
  background: linear-gradient(145deg, rgba(126, 232, 220, 0.18) 0%, rgba(126, 232, 220, 0.06) 100%);
}
.widget-preview-cookie-mount .cookie-banner--dark .cookie-banner-text {
  color: rgba(255, 255, 255, 0.88);
}
.widget-preview-cookie-mount .cookie-banner--dark .cookie-banner-more {
  color: #7ee8dc;
}
.widget-preview-cookie-mount .cookie-banner--dark .cookie-banner-btn {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.widget-preview-cookie-mount .cookie-banner--green .cookie-banner-inner {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(15, 122, 114, 0.96) 0%, rgba(10, 92, 86, 0.98) 100%);
  box-shadow: 0 16px 40px rgba(10, 92, 86, 0.22);
}
.widget-preview-cookie-mount .cookie-banner--green .cookie-banner-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.widget-preview-cookie-mount .cookie-banner--green .cookie-banner-text {
  color: rgba(255, 255, 255, 0.94);
}
.widget-preview-cookie-mount .cookie-banner--green .cookie-banner-more {
  color: #fff;
  text-decoration: underline;
}
.widget-preview-cookie-mount .cookie-banner--green .cookie-banner-btn {
  color: var(--teal-deep);
  background: #fff;
  box-shadow: 0 6px 16px rgba(11, 31, 42, 0.12);
}
.widget-preview-body--form {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 12.5rem;
  padding: 1.35rem 1rem 1.65rem;
}
.widget-preview-cookie-bar {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(11, 31, 42, 0.92);
  color: #fff;
  font-size: 0.82rem;
  box-shadow: 0 10px 28px rgba(11, 31, 42, 0.18);
}
.widget-preview-cookie-bar p {
  margin: 0;
  flex: 1 1 12rem;
  line-height: 1.45;
}
.widget-preview-cookie-bar a {
  color: #7ee8dc;
  text-decoration: underline;
}
.widget-preview-cookie-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  background: var(--teal);
  color: #fff;
  cursor: default;
  white-space: nowrap;
}
.widget-preview-form-card {
  width: min(100%, 27rem);
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(11, 31, 42, 0.08);
  box-shadow: 0 8px 24px rgba(11, 31, 42, 0.06);
}
.widget-preview-form-card--checkout {
  width: min(100%, 24rem);
}
.widget-preview-form-title {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.widget-preview-form-field-wrap {
  margin-bottom: 0.65rem;
}
.widget-preview-form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.widget-preview-form-field {
  height: 2.15rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafb 0%, #eef2f5 100%);
  border: 1px solid rgba(11, 31, 42, 0.1);
}
.widget-preview-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(11, 31, 42, 0.03);
  border: 1px solid rgba(11, 31, 42, 0.06);
  font-size: 0.9rem;
}
.widget-preview-order-row strong {
  font-size: 1rem;
  color: var(--teal-deep);
  white-space: nowrap;
}
.widget-preview-consent {
  margin: 0.85rem 0 1rem;
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  background: rgba(15, 122, 114, 0.045);
  border: 1px solid rgba(15, 122, 114, 0.14);
}
.widget-preview-consent .docs-consent-check,
.widget-consent-demo {
  display: flex !important;
  gap: 0.55rem !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
  color: var(--ink-soft) !important;
  cursor: default;
}
.widget-preview-consent .docs-consent-check span,
.widget-consent-demo span {
  flex: 1;
  min-width: 0;
}
.widget-preview-consent .docs-consent-check input[type="checkbox"],
.widget-consent-demo input[type="checkbox"] {
  margin: 0.15rem 0 0 !important;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: default;
}
.widget-preview-consent a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(10, 92, 86, 0.35);
}
.widget-preview-consent a:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}
.widget-preview-form-submit {
  width: 100%;
  margin-top: 0.15rem;
  box-shadow: 0 6px 16px rgba(11, 31, 42, 0.12);
}
.widget-preview-form-submit:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}
.cabinet .widget-gallery {
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 100%);
  border: 1px solid rgba(11, 31, 42, 0.08);
  box-shadow: 0 12px 32px rgba(11, 31, 42, 0.05);
}
.integration .widget-gallery {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.integration .widget-gallery-heading,
.integration .widget-gallery-lead {
  display: none;
}

/* Landing: блок «Виджет документов для сайта» */
.section-widget .widget-gallery-lead {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-widget .widget-gallery-heading {
  text-align: center;
}
.section-widget .widget-type-tabs,
.section-widget .widget-type-hint,
.section-widget .widget-layout-picker--inline {
  justify-content: center;
  text-align: center;
}
.section-widget .widget-type-tabs {
  justify-content: center;
}
.section-widget .widget-layout-picker--inline {
  display: flex;
  justify-content: center;
}
.section-widget .widget-preview-demo {
  max-width: 100%;
  margin-top: 1.5rem;
}
.section-widget .widget-preview-footer-wrap {
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.section-widget .widget-preview-body {
  padding-bottom: 0.85rem;
}
.section-widget .widget-preview-footer {
  padding-top: 0;
}
.section-widget .widget-layout-picker-center {
  margin-top: 0.25rem;
}

/* Blog */
.blog-page,
.blog-article-page {
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.blog-hero,
.blog-article-hero {
  margin-bottom: 2rem;
  max-width: 42rem;
}
.blog-hero h1,
.blog-article-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 0.75rem;
}
.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: rgba(11, 31, 42, 0.55);
  font-size: 0.9rem;
}
.blog-breadcrumb a {
  color: var(--teal-deep);
  text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.blog-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.blog-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: rgba(11, 31, 42, 0.55);
  font-size: 0.85rem;
}
.blog-card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--teal-deep); }
.blog-card-excerpt {
  margin: 0;
  color: rgba(11, 31, 42, 0.72);
  line-height: 1.45;
}
.blog-card-link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
}
.blog-card-link:hover { text-decoration: underline; }
.blog-card-linkish {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-card-linkish:hover {
  border-color: rgba(15, 122, 114, 0.35);
  transform: translateY(-1px);
}
.blog-card-linkish h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}
.blog-card-linkish p {
  margin: 0;
  color: rgba(11, 31, 42, 0.7);
  font-size: 0.95rem;
  line-height: 1.4;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  background: rgba(15, 122, 114, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.blog-article-body {
  max-width: 42rem;
}
.blog-lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(11, 31, 42, 0.78);
  margin: 0 0 1.5rem;
}
.blog-section {
  margin-bottom: 1.5rem;
}
.blog-section h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.7rem;
}
.blog-section p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: rgba(11, 31, 42, 0.82);
}
.blog-section ul {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.blog-section li { margin-bottom: 0.35rem; }
.blog-risks {
  margin: 1.75rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(180, 60, 40, 0.06);
  border: 1px solid rgba(180, 60, 40, 0.14);
}
.blog-risks h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
}
.blog-risks ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}
.blog-cta {
  margin: 2rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: rgba(15, 122, 114, 0.08);
  border: 1px solid rgba(15, 122, 114, 0.16);
}
.blog-cta p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.45;
}
.blog-related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.blog-related h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: 1rem;
  right: 1rem;
  z-index: 1200;
  width: auto;
  max-width: 680px;
  margin: 0 auto;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem 1rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 251, 252, 0.88) 100%);
  box-shadow:
    0 20px 50px rgba(11, 31, 42, 0.14),
    0 2px 8px rgba(11, 31, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cookie-banner-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--teal-deep);
  background: linear-gradient(145deg, rgba(15, 122, 114, 0.14) 0%, rgba(15, 122, 114, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.cookie-banner-body { flex: 1; min-width: 0; }
.cookie-banner-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.cookie-banner-more {
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
  white-space: nowrap;
}
.cookie-banner-more:hover { text-decoration: underline; }
.cookie-banner-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 8px 20px rgba(15, 122, 114, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cookie-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 122, 114, 0.34);
}
.cookie-banner-btn:active { transform: translateY(0); }

@media (max-width: 640px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
  .cookie-banner-inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "icon text"
      "btn btn";
    align-items: start;
    gap: 0.75rem 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
  }
  .cookie-banner-icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .cookie-banner-icon svg {
    width: 24px;
    height: 24px;
  }
  .cookie-banner-body {
    grid-area: text;
    min-width: 0;
  }
  .cookie-banner-text {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .cookie-banner-more {
    white-space: normal;
    display: inline;
  }
  .cookie-banner-btn {
    grid-area: btn;
    width: 100%;
    margin: 0;
    padding: 0.72rem 1rem;
    text-align: center;
    justify-self: stretch;
  }
}

/* Legal documents index */
.legal-index .section-lead {
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.legal-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.legal-index-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.legal-index-link:hover {
  text-decoration: none;
  border-color: rgba(15, 122, 114, 0.28);
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 31, 42, 0.07);
  transform: translateY(-1px);
}
.legal-index-title { font-weight: 600; }
.legal-index-arrow {
  color: var(--teal);
  font-size: 1.1rem;
  transition: transform 0.18s ease;
}
.legal-index-link:hover .legal-index-arrow { transform: translateX(3px); }

