:root {
  --bg: #0a0b10;
  --bg-card: #12141c;
  --bg-elevated: #1a1d28;
  --text: #f0f2f8;
  --text-muted: #8b92a8;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.45);
  --wb: #cb11ab;
  --wb-glow: rgba(203, 17, 171, 0.35);
  --ozon: #005bff;
  --ozon-glow: rgba(0, 91, 255, 0.35);
  --success: #00d68f;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --font: "Manrope", system-ui, sans-serif;
  --font-display: "Unbounded", system-ui, sans-serif;
  --btn-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  --btn-shadow-hover: 0 8px 28px rgba(108, 92, 231, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, var(--wb-glow), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, var(--ozon-glow), transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

a {
  color: inherit;
  text-decoration: none;
}

.accent {
  color: var(--accent);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  border-radius: 10px;
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ——— Кнопки ——— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.45);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, #7c6cf0 0%, #6c5ce7 45%, #5b4cdb 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    var(--btn-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 20px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #8f82f5 0%, #7c6cf0 45%, #6c5ce7 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    var(--btn-shadow-hover),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: var(--btn-shadow);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-ghost:active {
  background: rgba(255, 255, 255, 0.06);
}

.btn-checker {
  color: #5dffc4;
  background: rgba(0, 214, 143, 0.08);
  border-color: rgba(0, 214, 143, 0.35);
  box-shadow: 0 2px 12px rgba(0, 214, 143, 0.12);
}

.btn-checker:hover {
  color: #7dffcf;
  background: rgba(0, 214, 143, 0.16);
  border-color: rgba(0, 214, 143, 0.55);
  box-shadow: 0 6px 20px rgba(0, 214, 143, 0.2);
  transform: translateY(-1px);
}

.btn-checker:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.35);
}

.btn-ai {
  width: 100%;
  margin-top: 0.75rem;
  min-height: 52px;
  font-size: 1rem;
  color: #0a0b10;
  background: linear-gradient(145deg, #00e89a 0%, #00d68f 50%, #00b377 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 24px rgba(0, 214, 143, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ai:hover {
  background: linear-gradient(145deg, #1ff0a8 0%, #00e89a 50%, #00d68f 100%);
  box-shadow: 0 8px 32px rgba(0, 214, 143, 0.4);
  transform: translateY(-1px);
}

.btn-ai:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.45);
}

.btn-sm {
  min-height: 36px;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  min-height: 50px;
  padding: 0.85rem 2rem;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

/* Группы кнопок */
.hero-actions,
.page-actions,
.checker-cta,
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.cta-inline {
  flex-direction: column;
}

.cta-inline .btn {
  min-width: 220px;
}

.checker-cta {
  justify-content: flex-start;
}

.checker-cta .btn {
  flex: 0 1 auto;
}

.contact-form .btn {
  margin-top: 0.25rem;
}

/* Шапка: блок кнопок */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header .btn-sm {
  padding: 0.4rem 1rem;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  background: rgba(108, 92, 231, 0.15);
  border-radius: 100px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(0, 214, 143, 0.12);
  color: var(--success);
  border: 1px solid rgba(0, 214, 143, 0.25);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.marketplace {
  display: inline;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.marketplace.wb {
  color: var(--wb);
  background: var(--wb-glow);
}

.marketplace.ozon {
  color: #4d9fff;
  background: var(--ozon-glow);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-actions {
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.stat {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-featured {
  border-color: rgba(108, 92, 231, 0.4);
  background: linear-gradient(160deg, var(--bg-card), rgba(108, 92, 231, 0.08));
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.wb-icon {
  background: var(--wb-glow);
  color: var(--wb);
}

.ozon-icon {
  background: var(--ozon-glow);
  color: #4d9fff;
}

.review-icon {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Advantages */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.advantage {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.advantage-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.advantage h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.advantage p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.advantage strong {
  color: var(--success);
}

/* Calculator */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.calc-form,
.calc-result {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.calc-result {
  position: sticky;
  top: 100px;
}

.calc-result h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

input[type="number"],
input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0.5rem 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.range-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-value input {
  width: 80px;
  text-align: center;
}

.range-value span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.toggle-group {
  display: flex;
  gap: 0.5rem;
}

.toggle {
  flex: 1;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-label {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: all 0.2s;
}

.toggle input:checked + .toggle-label.wb {
  background: var(--wb-glow);
  border-color: var(--wb);
  color: var(--wb);
}

.toggle input:checked + .toggle-label.ozon {
  background: var(--ozon-glow);
  border-color: var(--ozon);
  color: #4d9fff;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  padding-top: 1.75rem;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.deliverability-bar {
  height: 10px;
  background: var(--bg-elevated);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.deliverability-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #00b377);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.deliverability-text {
  font-size: 0.8rem;
  color: var(--success);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.result-item span {
  color: var(--text-muted);
}

.result-item.highlight strong {
  color: var(--success);
  font-size: 1.25rem;
}

.result-item.subtle {
  opacity: 0.7;
  font-size: 0.8rem;
}

.result-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.result-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.result-total span {
  font-weight: 600;
}

.result-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.result-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

/* Timeline */
.timeline {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.timeline li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-left: 2px solid var(--border);
  margin-left: 1.25rem;
  padding-left: 2rem;
  position: relative;
}

.timeline li:last-child {
  border-left-color: transparent;
}

.step {
  position: absolute;
  left: -1.35rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent);
  color: white;
  border-radius: 50%;
}

.timeline h4 {
  margin-bottom: 0.35rem;
}

.timeline p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-box {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(160deg, var(--bg-card), rgba(108, 92, 231, 0.1));
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius);
}

.contact-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-box > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--success);
  min-height: 1.4em;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
}

/* Mobile nav */
.nav.open {
  display: flex;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

@media (max-width: 900px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-result {
    position: static;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 4rem 1rem 3rem;
  }
}

/* ——— Навигация: dropdown, чекер ——— */
.nav a.active,
.nav-dropdown-btn.active {
  color: var(--text);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-dropdown-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.has-dropdown.open .nav-dropdown-btn {
  color: var(--text);
  background: rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.25);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}

.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: var(--bg-elevated);
  color: var(--text);
}

.header .nav {
  flex: 1;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 900px) {
  .nav.open .has-dropdown {
    display: block;
    width: 100%;
  }

  .nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 0.5rem;
    margin-top: 0.5rem;
  }

  .nav.open .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .header-actions {
    display: none;
  }
}

.nav-mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  .nav.open .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav.open .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover h3 {
  color: var(--accent);
}

.card-all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-style: dashed;
}

.pf-icon-sm,
.edu-icon-sm,
.unit-icon-sm {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.pf-icon-sm {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.edu-icon-sm {
  background: rgba(108, 92, 231, 0.2);
}

.unit-icon-sm {
  background: rgba(0, 214, 143, 0.2);
  color: var(--success);
}

/* ——— Внутренние страницы ——— */
.page-main {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.page-hero {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.breadcrumb {
  padding: 1rem 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.content-block h2,
.section-title-sm {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.content-block p,
.content-p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.content-list.ordered {
  list-style: decimal;
}

.content-list li {
  margin-bottom: 0.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-item > span {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-item h4 {
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.highlight-box {
  padding: 2rem;
  background: linear-gradient(160deg, var(--bg-card), rgba(108, 92, 231, 0.12));
  border: 1px solid rgba(108, 92, 231, 0.35);
  border-radius: var(--radius);
  margin: 0 2rem;
}

.highlight-box h3 {
  margin-bottom: 0.75rem;
}

.highlight-box p {
  color: var(--text-muted);
}

.cta-inline {
  text-align: center;
  padding: 2rem;
}

.cta-inline > p {
  flex: 1 1 100%;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ozon-tag,
.wb-tag {
  font-size: inherit;
}

.wb-tag {
  background: var(--wb-glow);
  color: var(--wb);
}

.ozon-tag {
  background: var(--ozon-glow);
  color: #4d9fff;
}

.wb-highlight {
  border-color: rgba(203, 17, 171, 0.35);
  background: linear-gradient(160deg, var(--bg-card), var(--wb-glow));
}

.ozon-highlight {
  border-color: rgba(0, 91, 255, 0.35);
  background: linear-gradient(160deg, var(--bg-card), var(--ozon-glow));
}

.mp-specs .section-title-sm {
  padding: 0 2rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 0 2rem;
}

.spec-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.spec-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.spec-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.highlight-box a {
  color: var(--accent);
}

.highlight-box a:hover {
  text-decoration: underline;
}

/* Услуги — каталог */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 0 2rem 2rem;
}

.service-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.4);
}

.service-card.featured {
  border-color: rgba(108, 92, 231, 0.5);
  background: linear-gradient(160deg, var(--bg-card), rgba(108, 92, 231, 0.1));
}

.service-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.pf-icon {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.edu-icon {
  background: rgba(108, 92, 231, 0.2);
}

.unit-icon {
  background: rgba(0, 214, 143, 0.2);
  color: var(--success);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 2rem;
}

.module-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.module-card h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.module-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.unit-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 0 2rem;
}

.unit-metric {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.unit-metric strong {
  display: block;
  margin-bottom: 0.35rem;
}

.unit-metric span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Статьи */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 2rem;
}

.article-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.article-card h3 {
  margin: 0.75rem 0;
  font-size: 1.1rem;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-page .article-content {
  padding: 0 2rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.article-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0.75rem 0 1rem;
}

.article-meta-line {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-content .btn {
  margin-top: 1.5rem;
}

/* ——— Чекер карточки ——— */
.checker-page .page-main {
  max-width: 960px;
}

.ai-tag {
  background: rgba(0, 214, 143, 0.15);
  color: var(--success);
}

.checker-board-wrap {
  padding: 1rem 2rem 2rem;
}

.checker-board {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.checker-board-col {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.checker-board-input {
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.1);
}

.checker-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.checker-board-head h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}

.checker-mp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--success);
}

.checker-form-compact .form-group {
  margin-bottom: 0.85rem;
}

.checker-form-compact label {
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.toggle-group-compact .toggle-label {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.checker-categories-hint {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checker-categories-hint p {
  margin: 0 0 0.35rem;
}

.checker-categories-hint ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.checker-token-hint {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--success);
}

.checker-token-hint code {
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.checker-ai-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.checker-ai-summary[hidden] {
  display: none;
}

.checker-setup-hint {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.checker-setup-hint code {
  background: var(--bg-elevated);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.checker-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 200px;
}

.checker-placeholder[hidden] {
  display: none;
}

.checker-ph-icon {
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.checker-loader {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.checker-loader[hidden] {
  display: none;
}

.checker-loader p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--success);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checker-result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.checker-result-body[hidden] {
  display: none;
}

.checker-score-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.score-circle-sm {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #00b377);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a0b10;
  flex-shrink: 0;
}

.checker-score-row > div strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.results-stats-compact {
  display: flex;
  gap: 0.65rem;
  font-size: 0.75rem;
}

.stat-ok { color: var(--success); }
.stat-warn { color: #ffc107; }
.stat-bad { color: #ff6b6b; }

.checker-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.checker-filter-btn {
  padding: 0.3rem 0.55rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.checker-filter-btn:hover {
  color: var(--text);
}

.checker-filter-btn.active {
  background: rgba(0, 214, 143, 0.15);
  border-color: rgba(0, 214, 143, 0.35);
  color: var(--success);
}

.params-list-compact {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  max-height: 320px;
  margin-bottom: 0.65rem;
}

.param-compact {
  display: grid;
  grid-template-columns: 22px 52px 1fr 32px 20px;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border-left: 2px solid var(--success);
  background: rgba(255, 255, 255, 0.02);
}

.param-compact.status-warn {
  border-left-color: #ffc107;
}

.param-compact.status-bad {
  border-left-color: #ff6b6b;
}

.param-compact-num {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.param-compact-cat {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.param-compact-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.param-compact-score {
  text-align: right;
  font-weight: 700;
}

.param-compact-status {
  text-align: center;
  font-weight: 800;
  font-size: 0.7rem;
}

.status-ok .param-compact-status { color: var(--success); }
.status-warn .param-compact-status { color: #ffc107; }
.status-bad .param-compact-status { color: #ff6b6b; }

.checker-cta-compact {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.checker-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.checker-board .btn-ai {
  color: #0a0b10;
  background: linear-gradient(145deg, #00e89a 0%, #00d68f 50%, #00b377 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.checker-board .btn-ai:hover {
  background: linear-gradient(145deg, #1ff0a8 0%, #00e89a 50%, #00d68f 100%);
}

.ai-spark {
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .checker-board {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .checker-board-input {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .params-list-compact {
    max-height: 280px;
  }
}

/* ——— Прайс-лист ——— */
.pricing-section {
  padding-top: 3rem;
}

.price-list-card {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(145deg, rgba(26, 32, 58, 0.95) 0%, rgba(18, 22, 42, 0.9) 100%);
  border: 1px solid rgba(108, 130, 255, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.price-list-glow {
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.2), transparent 70%);
  pointer-events: none;
}

.price-list-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none'%3E%3Cpath d='M10 100 Q60 20 120 80 T200 40' stroke='rgba(255,255,255,0.08)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.price-list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.price-list-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}

.price-list-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.price-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.price-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.price-table th:first-child,
.price-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.price-table tbody tr {
  transition: background 0.2s;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.price-tier-row.active {
  background: rgba(108, 92, 231, 0.2);
}

.price-tier-row.active td {
  color: #fff;
}

.price-tier-row.active td:first-child {
  color: #a29bfe;
}

.price-list-note {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.price-list-card .btn-primary {
  position: relative;
  z-index: 1;
  display: flex;
  margin: 0 auto;
  min-width: 260px;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-checkboxes-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.5rem 0;
}

.buyout-method-block {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.buyout-method-block[hidden] {
  display: none !important;
}

.method-toggles {
  display: none;
  margin-bottom: 1rem;
}

.method-toggles.is-visible {
  display: flex;
}

.method-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.method-option-field {
  display: none;
}

.method-option-field.is-visible {
  display: block;
}

.method-hint {
  display: none;
}

.method-hint.is-visible {
  display: block;
}

.method-option-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.method-option-field input {
  max-width: 160px;
}

.method-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.65rem 0.85rem;
  background: rgba(0, 91, 255, 0.08);
  border: 1px solid rgba(0, 91, 255, 0.2);
  border-radius: var(--radius-sm);
  margin: 0;
}

.method-hint strong {
  color: #4d9fff;
}

#pickupMethodWrap {
  display: none;
  transition: opacity 0.2s;
}

#pickupMethodWrap.is-visible {
  display: flex;
}

.form-group label small {
  font-weight: 400;
  color: var(--text-muted);
}

.result-tier strong {
  color: var(--accent);
}

.result-bundle-hint {
  font-size: 0.75rem;
  color: var(--success);
  margin: -0.25rem 0 0.75rem;
  padding: 0 0 0.25rem;
  display: none;
}

.calc-result .result-item strong {
  font-variant-numeric: tabular-nums;
}

/* ——— Калькулятор рейтинга ——— */
.rating-calc-page .page-main {
  max-width: 1000px;
}

.rating-calc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  padding: 0 2rem 2rem;
  align-items: start;
}

.card-panel {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.rating-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.rating-input-row {
  display: grid;
  grid-template-columns: 1fr 100px 32px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.rating-input-row:focus-within {
  border-color: rgba(108, 92, 231, 0.45);
}

.rating-input-row label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  cursor: default;
}

.rating-stars-label {
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.stars-5 { color: #ffc107; }
.stars-4 { color: #e0b030; }
.stars-3 { color: #c49020; }
.stars-2 { color: #a07018; }
.stars-1 { color: #ff6b6b; }

.rating-count-input {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
}

.rating-input-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.breakdown-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.current-rating-box {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

.current-rating-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.current-rating-meta {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.targets-title {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.targets-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.targets-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.target-row {
  padding: 0.75rem 0.85rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.target-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.target-row-top strong {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.target-row-prices {
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.target-row-prices strong {
  color: var(--accent);
  font-weight: 600;
}

.target-row-prices a {
  color: var(--accent);
}

.target-row-prices[hidden] {
  display: none;
}

.target-row-prices .total-line {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text);
}

.target-row-prices .total-sum {
  font-size: 1rem;
  color: var(--success);
}

.target-row-prices .total-detail {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.target-row-prices .price-warn {
  color: #ffc107;
  font-size: 0.72rem;
}

.target-row-five {
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.need-impossible {
  color: #ff6b6b;
  font-size: 0.85rem;
}

.need-done {
  color: var(--success);
  font-size: 0.85rem;
}

.five-warning {
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-sm);
}

.five-warning strong {
  display: block;
  color: #ff8a8a;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.five-warning p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .rating-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rating-input-row {
    grid-template-columns: 1fr 80px 28px;
    gap: 0.5rem;
    padding: 0.75rem;
  }
}

/* ——— Калькулятор ПФ (компакт) ——— */
.pf-calc-page .page-main {
  max-width: 920px;
}

.page-hero-compact {
  padding: 1.5rem 2rem 0.5rem;
}

.page-hero-compact h1 {
  font-size: 1.75rem;
  margin: 0.35rem 0;
}

.page-hero-compact .page-lead {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.pf-tag {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}

.pf-calc-board-wrap {
  padding: 1rem 2rem 3rem;
}

.pf-calc-board {
  display: grid;
  grid-template-columns: 1fr 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pf-board-col {
  padding: 1rem 1.15rem;
}

.pf-board-services {
  border-right: 1px solid var(--border);
}

.pf-board-calc {
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.pf-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pf-board-head h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}

.pf-table-head,
.pf-table-row {
  display: grid;
  grid-template-columns: 1fr 52px 72px;
  gap: 0.5rem;
  align-items: center;
}

.pf-table-head {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 0.35rem 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.pf-table-head span:nth-child(2),
.pf-table-head span:nth-child(3) {
  text-align: center;
}

.pf-table-row {
  padding: 0.4rem 0.35rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.pf-table-row.is-active {
  background: rgba(255, 152, 0, 0.08);
}

.pf-row-label {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-row-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.pf-qty-input {
  width: 100%;
  padding: 0.4rem 0.35rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.pf-limit-compact {
  margin-bottom: 0.75rem;
}

.pf-limit-compact > span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-align: right;
}

.pf-limit-fill {
  background: linear-gradient(90deg, #ff9800, #ffc107);
}

.pf-limit-warn {
  font-size: 0.7rem;
  color: #ffc107;
  margin: 0.35rem 0 0;
}

.pf-limit-warn[hidden] {
  display: none;
}

.pf-summary-lines {
  flex: 1;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.25rem;
}

.pf-summary-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  padding: 1.5rem 0;
}

.pf-sum-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pf-sum-name {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-sum-line strong {
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
}

.pf-calc-totals {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.pf-calc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
}

.pf-calc-total-row strong {
  color: var(--text);
}

.pf-calc-total-main {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.pf-calc-total-main strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--success);
}

#pfOrderBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .pf-calc-board {
    grid-template-columns: 1fr;
  }

  .pf-board-services {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pf-summary-lines {
    max-height: 160px;
  }
}

@media (max-width: 640px) {
  .price-list-card {
    padding: 1.5rem 1rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.78rem;
  }
}
