/* Бизнес калькуляторы — shared styles */
:root {
  color-scheme: dark light;
  --radius: 18px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-deep: #0c1222;
  --bg-card: rgba(18, 26, 44, 0.72);
  --bg-card-solid: #121a2c;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --muted: #9aa7c2;
  --accent: #f4b942;
  --accent-2: #3dd6c3;
  --danger: #ff6b6b;
  --ok: #5ee0a0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --body-bg-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(61, 214, 195, 0.18), transparent 50%),
    radial-gradient(ellipse 100% 60% at 90% 0%, rgba(244, 185, 66, 0.12), transparent 45%),
    linear-gradient(180deg, #0c1222 0%, #0a0f1a 100%);
  --header-bg: rgba(12, 18, 34, 0.75);
  --input-bg: rgba(8, 12, 22, 0.65);
  --input-focus-ring: rgba(61, 214, 195, 0.45);
  --prose-body: #c5cedf;
  --formula-bg: rgba(0, 0, 0, 0.35);
  --faq-bg: rgba(10, 14, 24, 0.5);
  --table-th-bg: rgba(0, 0, 0, 0.25);
  --calc-card-bg: linear-gradient(160deg, rgba(24, 34, 56, 0.95), rgba(14, 20, 36, 0.92));
  --calc-card-hover-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --tag-cloud-inner-bg: linear-gradient(145deg, rgba(22, 32, 54, 0.85), rgba(12, 18, 34, 0.65));
  --tag-cloud-inner-glow: rgba(61, 214, 195, 0.12);
  --tag-pill-bg: rgba(8, 14, 28, 0.65);
  --tag-pill-border: rgba(61, 214, 195, 0.22);
  --tag-pill-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  --tag-float-mid-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  --brand-mark-shadow: 0 8px 24px rgba(61, 214, 195, 0.35);
  --icon-on-accent: #0f1a14;
  --theme-toggle-bg: rgba(0, 0, 0, 0.25);
  --theme-toggle-active-bg: rgba(61, 214, 195, 0.2);
  --theme-color-meta: #0c1222;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #e8ecf4;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #ffffff;
  --stroke: rgba(26, 35, 51, 0.12);
  --text: #1a2333;
  --muted: #5c6a80;
  --accent: #c77d0a;
  --accent-2: #0d9488;
  --danger: #dc2626;
  --ok: #059669;
  --shadow: 0 20px 60px rgba(26, 35, 51, 0.12);
  --body-bg-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(13, 148, 136, 0.14), transparent 50%),
    radial-gradient(ellipse 100% 60% at 90% 0%, rgba(199, 125, 10, 0.1), transparent 45%),
    linear-gradient(180deg, #f4f6fb 0%, #e8ecf4 100%);
  --header-bg: rgba(255, 255, 255, 0.82);
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-focus-ring: rgba(13, 148, 136, 0.45);
  --prose-body: #3d4a5c;
  --formula-bg: rgba(26, 35, 51, 0.06);
  --faq-bg: rgba(255, 255, 255, 0.72);
  --table-th-bg: rgba(26, 35, 51, 0.06);
  --calc-card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  --calc-card-hover-shadow: 0 16px 40px rgba(26, 35, 51, 0.12);
  --tag-cloud-inner-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.88));
  --tag-cloud-inner-glow: rgba(13, 148, 136, 0.1);
  --tag-pill-bg: rgba(255, 255, 255, 0.95);
  --tag-pill-border: rgba(13, 148, 136, 0.28);
  --tag-pill-shadow: 0 4px 14px rgba(26, 35, 51, 0.08);
  --tag-float-mid-shadow: 0 10px 22px rgba(26, 35, 51, 0.1);
  --brand-mark-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
  --icon-on-accent: #fff;
  --theme-toggle-bg: rgba(26, 35, 51, 0.06);
  --theme-toggle-active-bg: rgba(13, 148, 136, 0.18);
  --theme-color-meta: #e8ecf4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  background-image: var(--body-bg-image);
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.25s ease;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #111;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--stroke);
  transition: background 0.3s ease, border-color 0.25s ease;
}

.site-header__wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 0.85rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
  padding-top: 0.7rem;
  margin-top: 0.55rem;
  border-top: 1px solid var(--stroke);
}
.header-links a {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}
.header-links a::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s, transform 0.2s;
}
.header-links a:hover {
  color: var(--accent-2);
}
.header-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--accent);
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), #2a8f82);
  display: grid;
  place-items: center;
  box-shadow: var(--brand-mark-shadow);
  color: #fff;
}
.brand__mark svg {
  width: 22px;
  height: 22px;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}
.nav-main a[aria-current="page"],
.nav-main a:hover {
  color: var(--text);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--stroke);
  gap: 2px;
  flex-shrink: 0;
}
.theme-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.theme-toggle__btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.theme-toggle__btn:hover {
  color: var(--text);
}
.theme-toggle__btn.is-active {
  background: var(--theme-toggle-active-bg);
  color: var(--accent-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
html[data-theme="dark"] .theme-toggle__btn.is-active {
  color: var(--text);
}
.theme-toggle__btn:focus-visible {
  outline: 2px solid var(--input-focus-ring);
  outline-offset: 2px;
}
.theme-toggle__text {
  display: none;
}
@media (min-width: 520px) {
  .theme-toggle__text {
    display: inline;
  }
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  animation: fadeUp 0.7s ease both;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
}

.breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.45;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .layout--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.layout--split > .layout__span-full {
  grid-column: 1 / -1;
}

/* ROI: один столбец, калькулятор на всю ширину контейнера */
.layout.layout--roi {
  max-width: min(1280px, 100%);
  grid-template-columns: 1fr;
}
.layout.layout--roi > .layout__span-full {
  grid-column: 1 / -1;
}

.layout.layout--roas {
  max-width: min(1280px, 100%);
  grid-template-columns: 1fr;
}
.layout.layout--roas > .layout__span-full {
  grid-column: 1 / -1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.55s ease both;
  transition: background 0.35s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.card--delay {
  animation-delay: 0.08s;
}

.card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.grid-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.calc-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--calc-card-bg);
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(244, 185, 66, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.calc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 214, 195, 0.35);
  box-shadow: var(--calc-card-hover-shadow);
}
html[data-theme="light"] .calc-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
}
.calc-card:hover::before {
  opacity: 1;
}
.calc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(61, 214, 195, 0.12);
  color: var(--accent-2);
}
.calc-card__icon svg {
  width: 24px;
  height: 24px;
}
.calc-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.calc-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.calc-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.form-row small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.9;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--input-focus-ring);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #e09a1f);
  color: #1a1204;
  box-shadow: 0 12px 32px rgba(244, 185, 66, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px rgba(244, 185, 66, 0.45);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(61, 214, 195, 0.5);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.results {
  display: grid;
  gap: 0.65rem;
}
.result-pill {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(61, 214, 195, 0.08);
  border: 1px solid rgba(61, 214, 195, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease;
}
html[data-theme="light"] .result-pill {
  background: rgba(13, 148, 136, 0.09);
  border-color: rgba(13, 148, 136, 0.22);
}
.result-pill strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.prose {
  color: var(--prose-body);
}
.prose h2 {
  font-family: var(--font-serif);
  color: var(--text);
  font-size: 1.45rem;
  margin-top: 2rem;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--text);
}
.prose p,
.prose li {
  font-size: 0.98rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose--about ul {
  margin: 0.5rem 0 1rem;
}
.prose--about ul li {
  margin-bottom: 0.35rem;
}
.prose__service-url {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--formula-bg);
  font-size: 0.95rem;
}
.prose__service-url a {
  word-break: break-all;
  font-weight: 600;
}
.prose .formula {
  font-family: ui-monospace, "Cascadia Code", monospace;
  background: var(--formula-bg);
  border: 1px solid var(--stroke);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin: 0.75rem 0;
  font-size: 0.92rem;
  overflow-x: auto;
}

.prose--guide h2:first-of-type {
  margin-top: 0;
}
.prose--guide .prose-compare {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}
@media (min-width: 640px) {
  .prose--guide .prose-compare {
    grid-template-columns: 1fr 1fr;
  }
}
.prose--guide .prose-compare__col {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--faq-bg);
}
.prose--guide .prose-compare__col h3 {
  margin-top: 0;
  font-size: 1.05rem;
}
.prose--guide .prose-subcard {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--formula-bg);
}
.prose--guide .prose-subcard h3 {
  margin-top: 0;
  font-size: 1.05rem;
}
.prose--guide .prose-guide__head {
  margin-bottom: 0.25rem;
}
.prose--guide .prose-guide__h-num {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.prose--guide h4.prose-guide__h-num {
  font-family: var(--font-sans, inherit);
}

.faq {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}
.faq h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text);
}
.faq details {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--faq-bg);
  transition: background 0.25s ease;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq details[open] summary {
  color: var(--accent-2);
}
.faq details p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--prose-body);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}
.prose--guide .table-wrap {
  margin: 1rem 0 1.25rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th,
td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--stroke);
  text-align: left;
}
th {
  background: var(--table-th-bg);
  color: var(--muted);
  font-weight: 600;
}

/* Облако тегов перед футером */
.tag-cloud-section {
  margin-top: 2.5rem;
  padding: 0 1.25rem 0.5rem;
  animation: fadeUp 0.65s ease both;
}
.tag-cloud-section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--tag-cloud-inner-bg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.25s ease;
}
html[data-theme="light"] .tag-cloud-section__inner {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.tag-cloud-section__inner::before {
  content: "";
  position: absolute;
  inset: -40% 50% 40% -20%;
  background: radial-gradient(ellipse, var(--tag-cloud-inner-glow), transparent 65%);
  pointer-events: none;
}
.tag-cloud-section__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
  position: relative;
  letter-spacing: -0.02em;
}
.tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  position: relative;
}
.tag-cloud li {
  margin: 0;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none !important;
  background: var(--tag-pill-bg);
  border: 1px solid var(--tag-pill-border);
  box-shadow: var(--tag-pill-shadow);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.2s ease;
  animation: tag-float 4.2s ease-in-out infinite;
}
.tag-pill:hover {
  color: var(--icon-on-accent);
  background: linear-gradient(135deg, var(--accent-2), #2eb8a8);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(61, 214, 195, 0.4);
  transform: translateY(-5px) scale(1.03);
  animation-play-state: paused;
}
html[data-theme="light"] .tag-pill:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35);
}
.tag-cloud li:nth-child(1) .tag-pill { animation-delay: 0s; }
.tag-cloud li:nth-child(2) .tag-pill { animation-delay: 0.35s; }
.tag-cloud li:nth-child(3) .tag-pill { animation-delay: 0.7s; }
.tag-cloud li:nth-child(4) .tag-pill { animation-delay: 1.05s; }
.tag-cloud li:nth-child(5) .tag-pill { animation-delay: 0.2s; }
.tag-cloud li:nth-child(6) .tag-pill { animation-delay: 0.55s; }
.tag-cloud li:nth-child(7) .tag-pill { animation-delay: 0.9s; }
.tag-cloud li:nth-child(8) .tag-pill { animation-delay: 1.25s; }

@keyframes tag-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: var(--tag-pill-shadow);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: var(--tag-float-mid-shadow);
  }
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.5rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent 0%, rgba(61, 214, 195, 0.04) 40%, transparent 100%);
  transition: background 0.35s ease;
}
html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(13, 148, 136, 0.06) 45%, transparent 100%);
}

.site-footer__wrap {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer__panel {
  text-align: left;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}
.site-footer__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-2));
  opacity: 0.85;
}

.site-footer__tagline {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.85rem;
}

.site-footer__lead {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.1rem;
}

.site-footer__p,
.site-footer__closing {
  margin: 0 0 1.1rem;
  line-height: 1.65;
  color: var(--prose-body);
}
.site-footer__closing {
  margin-bottom: 0;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--stroke);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__highlights {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.site-footer__highlights li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--faq-bg);
  line-height: 1.55;
  color: var(--prose-body);
  font-size: 0.86rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.site-footer__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: 0.9;
}
.site-footer__highlights li:hover {
  border-color: rgba(61, 214, 195, 0.28);
  transform: translateX(2px);
}
html[data-theme="light"] .site-footer__highlights li:hover {
  border-color: rgba(13, 148, 136, 0.35);
}

.site-footer__highlights a {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-footer__highlights a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.notice {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.notice--ok {
  background: rgba(94, 224, 160, 0.1);
  border-color: rgba(94, 224, 160, 0.25);
}

.period-list .period-item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 600px) {
  .period-item__dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.hero__title-deco {
  background: linear-gradient(90deg, var(--text), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .tag-pill {
    animation: none !important;
  }
  .tag-pill:hover {
    transform: none;
  }
}

/* ROI calculator: sliders & Chart.js */
input[type="range"] {
  width: 100%;
  accent-color: var(--accent-2);
}
.roi-scenarios {
  margin: 1rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--faq-bg);
}
.roi-scenarios legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 0.35rem;
}
.range-row {
  margin-top: 0.85rem;
}
.range-row:first-of-type {
  margin-top: 0.25rem;
}
.range-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
  width: 100%;
}
.range-row input[type="range"] {
  margin-top: 0.4rem;
}
.range-val {
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  font-weight: 700;
  white-space: nowrap;
}
.roi-charts-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.35rem;
}
@media (min-width: 800px) {
  .roi-charts-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.roi-chart-block {
  min-width: 0;
}
.roi-chart-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-serif);
  color: var(--text);
}
.roi-chart-wrap {
  position: relative;
  height: 220px;
  margin-top: 0.5rem;
}
.roi-chart-wrap--line {
  height: 240px;
}
