:root {
  --bg-body: #05060a;
  --bg-elevated: #10121a;
  --bg-elevated-soft: #141722;
  --accent: #ffb703;
  --accent-soft: rgba(255, 183, 3, 0.12);
  --accent-strong: #ff7b00;
  --text-main: #f7f7ff;
  --text-muted: #a0a4b8;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(3, 4, 8, 0.9);
  --input-border: rgba(255, 255, 255, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-subtle: 0 16px 40px rgba(0, 0, 0, 0.5);

  --bg-page: radial-gradient(circle at top, #15192a 0, #05060a 55%, #020308 100%);
  --bg-header: linear-gradient(to bottom, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.85));
  --bg-section-alt: radial-gradient(circle at top, rgba(21, 25, 42, 0.9), rgba(8, 10, 18, 0.96));
  --bg-section-accent: radial-gradient(
    circle at top right,
    rgba(255, 183, 3, 0.24),
    rgba(8, 10, 18, 1)
  );
  --bg-card: radial-gradient(circle at 0 0, rgba(255, 183, 3, 0.08), rgba(11, 13, 22, 0.98));
  --bg-surface-strong: rgba(5, 6, 10, 0.96);
  --bg-footer: rgba(3, 4, 8, 0.98);
}

[data-theme="light"] {
  --bg-body: #f5f5f8;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f3f4fb;
  --accent: #ffb703;
  --accent-soft: rgba(255, 183, 3, 0.16);
  --accent-strong: #ff8c00;
  --text-main: #15151f;
  --text-muted: #6b6f80;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.15);

  --bg-page: radial-gradient(circle at top, #ffffff 0, #f5f5f8 55%, #ececf3 100%);
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-section-alt: #f7f7fb;
  --bg-section-accent: linear-gradient(
    to right,
    rgba(255, 183, 3, 0.2),
    rgba(255, 255, 255, 0.9)
  );
  --bg-card: #ffffff;
  --bg-surface-strong: #ffffff;
  --bg-footer: #f3f4f8;
}

/* Иконки календаря и часов в date/time: в тёмной теме — светлые, в светлой — тёмные */
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"] {
  color-scheme: dark;
}

[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="time"] {
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  cursor: default;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a,
button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, var(--accent), var(--accent-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  box-shadow: 0 0 24px rgba(255, 183, 3, 0.7);
}

.logo-text {
  font-size: 14px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  font-weight: 500;
  font-size: 14px;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

html[data-theme="dark"] .theme-toggle-icon--sun {
  display: inline-flex;
}

html[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

html[data-theme="light"] .theme-toggle-icon--sun {
  display: none;
}

html[data-theme="light"] .theme-toggle-icon--moon {
  display: inline-flex;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  box-shadow: 0 14px 30px rgba(255, 123, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(255, 123, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 40px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-highlights li::before {
  content: "•";
  color: var(--accent);
  margin-right: 6px;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-card-header {
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(to right, rgba(255, 183, 3, 0.16), transparent);
}

.hero-card-body {
  padding: 16px 18px 18px;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 13px;
}

.field input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.field input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
}

.hero-card-form .field:last-of-type {
  margin-bottom: 0;
}

.messages-wrapper {
  padding-top: 12px;
  padding-bottom: 0;
}

.message {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 12px;
}

.message--success {
  background: rgba(39, 174, 96, 0.2);
  border: 1px solid rgba(39, 174, 96, 0.4);
  color: #2ecc71;
}

.message--error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #e74c3c;
}

.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-card-actions {
  display: block;
  margin-top: 2px;
}

/* Плавное появление секций при прокрутке */
.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 32px 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-accent {
  background: var(--bg-section-accent);
  border-top: 1px solid rgba(255, 183, 3, 0.15);
  border-bottom: 1px solid rgba(255, 183, 3, 0.12);
}

.section-title {
  font-size: 24px;
  margin: 0 0 8px;
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 620px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.advantages-list h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.advantages-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Те же цвета, что и в разделе «Цены»: фон блока и чередование строк */
.pricing-grid {
  --pricing-item-height: 44px;
  --pricing-visible-rows: 4;
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: rgba(11, 13, 22, 0.98);
  box-shadow: var(--shadow-subtle);
}

.pricing-ticker {
  height: calc(var(--pricing-visible-rows) * var(--pricing-item-height));
  overflow: hidden;
}

.pricing-ticker-list {
  transition: transform 0.6s ease-out;
  will-change: transform;
}

[data-theme="light"] .pricing-grid {
  background: #ffffff;
}

.pricing-item {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  min-height: var(--pricing-item-height, 44px);
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
  transition: background 0.2s ease;
  cursor: pointer;
}

.pricing-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.pricing-item:hover {
  background: var(--accent-soft) !important;
}

[data-theme="light"] .pricing-item:nth-child(odd) {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .pricing-item:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .pricing-item:hover {
  background: var(--accent-soft) !important;
}

.pricing-name {
  color: var(--text-main);
}

.pricing-value {
  text-align: right;
  font-weight: 600;
}

.pricing-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-pricing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  border: 0;
  box-shadow: 0 14px 32px rgba(255, 123, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 123, 0, 0.45);
  color: #000;
}

.btn-pricing:active {
  transform: translateY(0);
}

.btn-pricing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.btn-pricing:hover .btn-pricing-icon {
  transform: translateX(4px);
}

.booking-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.booking-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.booking-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
}

.booking-form .field {
  margin-bottom: 0;
}

.booking-form textarea.input {
  width: 100%;
  min-height: 90px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 13px;
  resize: vertical;
}

.input::placeholder,
.booking-form textarea.input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.booking-form-actions {
  margin-top: 4px;
}

.booking-contacts {
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 183, 3, 0.35);
  box-shadow: var(--shadow-subtle);
}

.booking-block + .booking-block {
  margin-top: 12px;
}

.booking-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* В блоке контактов выравниваем стиль заголовка «Мессенджеры» под подписи Адрес/Режим/Телефон */
.contacts-grid p strong,
.contacts-grid .booking-block .booking-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.booking-value {
  font-size: 15px;
}

.messenger-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease;
}

.messenger-link:hover {
  border-color: var(--accent);
  background-color: rgba(255, 183, 3, 0.08);
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(255, 183, 3, 0.25);
}

.messenger-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messenger-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.messenger-name {
  position: relative;
  top: -0.5px;
}

.booking-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 20px;
  margin-top: 12px;
  align-items: stretch;
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated-soft);
  height: 320px;
}

.map-container {
  width: 100%;
  height: 320px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0 20px;
  background: var(--bg-footer);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 24px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-card {
    margin-top: 6px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .booking-inner {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: left;
  }
}

/* ——— Страница «Цены и калькулятор» ——— */
.prices-hero {
  padding-top: 40px;
  padding-bottom: 0;
}

.prices-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.prices-tab-btn {
  flex: 1 1 200px;
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prices-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--text-main);
}

.prices-tab-btn.is-active {
  background: var(--accent-soft);
  border-color: rgba(255, 183, 3, 0.5);
  color: var(--text-main);
}

[data-theme="light"] .prices-tab-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-subtle);
}

[data-theme="light"] .prices-tab-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

[data-theme="light"] .prices-tab-btn.is-active {
  background: var(--accent-soft);
  border-color: rgba(255, 183, 3, 0.5);
}

.prices-tab-panel {
  display: none;
}

.prices-tab-panel.is-visible {
  display: block;
}

.prices-main {
  padding-top: 28px;
}

/* Заголовки над модулями — чуть больше отступ сверху */
.prices-module-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

/* Общий модуль: сплошной цвет как в правом нижнем углу блока */
.prices-list-section {
  --prices-row-height: 64px;
  --prices-rows: 10;
  --prices-list-content-height: calc(var(--prices-row-height) * var(--prices-rows) + 96px);
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 13, 22, 0.98);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 20px 20px 20px;
}

[data-theme="light"] .prices-list-section {
  background: #ffffff;
}

/* Блоки категорий и списка — без обводки, под заголовком сразу контент */
.prices-module {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Нижний отступ только у секции (20px) — как между списком и пагинацией. overflow: visible чтобы нижняя граница кнопок пагинации не обрезалась */
.prices-module-list {
  padding: 0;
  overflow: visible;
}

.prices-module-categories {
  padding: 0;
}

.prices-sidebar {
  padding: 0;
  min-height: var(--prices-list-content-height);
  max-height: var(--prices-list-content-height);
  display: flex;
  flex-direction: column;
}



/* Кнопка «Все услуги» — обводка когда не активна, чтобы выделялась на фоне */
.prices-category-link.prices-category-all {
  flex-shrink: 0;
  margin-bottom: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  text-align: center;
}

.prices-category-link.prices-category-all:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08) !important;
}

.prices-category-link.prices-category-all.is-active {
  border-color: rgba(255, 183, 3, 0.5);
  background: var(--accent-soft) !important;
  color: var(--text-main);
}

/* Прокрутка только у списка категорий; заголовок и «Все услуги» остаются на месте */
.prices-category-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .prices-category-list-scroll {
  scrollbar-color: var(--accent) rgba(0, 0, 0, 0.08);
}

.prices-category-list-scroll::-webkit-scrollbar {
  width: 8px;
}

.prices-category-list-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.prices-category-list-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  border-radius: 4px;
}

.prices-category-list-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.prices-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Чётные/нечётные категории — как в списке услуг */
.prices-category-list li:nth-child(odd) .prices-category-link {
  background: rgba(255, 255, 255, 0.02);
}

.prices-category-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.prices-category-link:hover {
  color: var(--text-main);
  background: var(--accent-soft) !important;
}

.prices-category-link.is-active {
  background: var(--accent-soft) !important;
  color: var(--text-main);
  border-color: rgba(255, 183, 3, 0.35);
  font-weight: 500;
}

/* Светлая тема: категории и список услуг с чётким разделением */

[data-theme="light"] .prices-category-list li:nth-child(odd) .prices-category-link {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .prices-category-list li:nth-child(even) .prices-category-link {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .prices-category-link:hover {
  background: var(--accent-soft) !important;
  color: var(--text-main);
}

[data-theme="light"] .prices-category-link.is-active {
  background: var(--accent-soft) !important;
  border-color: rgba(255, 183, 3, 0.4);
}

[data-theme="light"] .prices-category-link.prices-category-all {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-subtle);
}

[data-theme="light"] .prices-category-link.prices-category-all:hover,
[data-theme="light"] .prices-category-link.prices-category-all.is-active {
  background: var(--accent-soft) !important;
  border-color: rgba(255, 183, 3, 0.5);
}

.prices-list {
  min-width: 0;
  padding: 0;
  max-height: none;
  min-height: var(--prices-list-content-height);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prices-subcategory-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px 0;
}

.prices-subcategory-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.prices-subcategory-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-main);
}

.prices-subcategory-link.is-active {
  background: var(--accent-soft);
  border-color: rgba(255, 183, 3, 0.45);
  color: var(--text-main);
}

[data-theme="light"] .prices-subcategory-link {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .prices-subcategory-link:hover,
[data-theme="light"] .prices-subcategory-link.is-active {
  background: var(--accent-soft) !important;
  border-color: rgba(255, 183, 3, 0.45);
  color: var(--text-main);
}

.prices-module-list [data-prices-list-container] {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--prices-row-height) * var(--prices-rows));
}

.prices-module-list [data-prices-list-container] .service-table {
  flex: 0 0 auto;
}

/* Блок «Калькулятор» — внутри вкладки, без лишнего отступа сверху */
.prices-calculator-section {
  width: 100%;
  margin-top: 0;
}

.prices-list-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Пагинация — только номера страниц, окно ±2. Небольшой padding снизу, чтобы граница кнопок не обрезалась */
.prices-module-list .prices-pagination {
  flex-shrink: 0;
  margin-top: 20px;
  padding: 0 0 2px 0;
}

.pagination-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.pagination-link,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pagination-link {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.pagination-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
  transform: scale(1.05);
}

.pagination-current {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 183, 3, 0.25));
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(255, 183, 3, 0.15);
}

.prices-module-list .service-table {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  margin-top: 0;
}

[data-theme="light"] .service-table {
  background: var(--bg-surface-strong);
  border-color: var(--border-subtle);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  align-items: center;
  min-height: var(--prices-row-height, 64px);
  box-sizing: border-box;
}

/* Тёмная тема: чередование фона строк (нечётные чуть светлее), hover — как у категорий */
.service-row:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.service-row:hover {
  background: var(--accent-soft) !important;
}

/* Светлая тема: те же цвета, что и у категорий (чёткое чередование, hover) */
[data-theme="light"] .service-row:nth-of-type(odd) {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service-row:nth-of-type(even) {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .service-row:hover {
  background: var(--accent-soft) !important;
}

.service-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-weight: 500;
}

.service-description {
  color: var(--text-muted);
  font-size: 13px;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 10px;
}

.service-subcategory-chip,
.service-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.service-price {
  font-weight: 600;
}

.prices-calculator-card {
  border-radius: var(--radius-md);
  background: rgba(11, 13, 22, 0.98);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 18px 16px;
}

[data-theme="light"] .prices-calculator-card {
  background: #ffffff;
}

.prices-calculator-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(5, 6, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.price-option:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.price-option-input {
  accent-color: var(--accent);
}

.price-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-option-name {
  font-size: 14px;
}

.price-option-category {
  font-size: 12px;
  color: var(--text-muted);
}

.price-option-value {
  font-weight: 600;
  font-size: 14px;
}

.prices-calculator-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prices-calculator-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}

.prices-calculator-label {
  color: var(--text-muted);
}

.prices-calculator-total {
  font-weight: 600;
}

.prices-calculator-note {
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.prices-list-section--maintenance .prices-sidebar {
  min-height: 280px;
  max-height: 280px;
}

.prices-maintenance-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  justify-content: center;
}

[data-theme="light"] .prices-maintenance-card {
  background: rgba(0, 0, 0, 0.03);
}

.prices-maintenance-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.prices-maintenance-text {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .prices-list-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .prices-sidebar {
    max-height: none;
  }

  .prices-list-section {
    padding: 20px 16px 16px 16px;
  }


  .prices-category-link.prices-category-all {
    margin-bottom: 8px;
  }

  .prices-category-list-scroll {
    overflow: visible;
    flex: none;
  }

  .prices-category-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .prices-category-link {
    padding: 6px 12px;
  }

  .prices-list {
    padding: 16px 16px 20px;
  }
}

/* ——— Модальное окно услуги (раздел Цены) ——— */
.prices-module-list .service-row {
  cursor: pointer;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.service-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.service-modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 13, 22, 0.98);
  box-shadow: var(--shadow-soft);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.service-modal[aria-hidden="false"] .service-modal__box {
  transform: scale(1);
}

[data-theme="light"] .service-modal__box {
  background: #ffffff;
  border-color: var(--border-subtle);
}

.service-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.service-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

[data-theme="light"] .service-modal__close {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
}

[data-theme="light"] .service-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.service-modal__content {
  padding: 24px 24px 28px;
}

.service-modal__title {
  margin: 0 0 12px;
  padding-right: 48px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.service-modal__description {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-modal__description.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-modal__description.is-expandable {
  cursor: pointer;
}

.service-modal__description:empty {
  display: none;
}

.service-modal__price {
  margin-bottom: 20px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
}

.service-modal__form {
  margin-bottom: 0;
}

.service-modal__form .field {
  margin-bottom: 12px;
}

.service-modal__form .field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.service-modal__form .input {
  width: 100%;
  box-sizing: border-box;
}

.service-modal__form-actions {
  margin-top: 16px;
  margin-bottom: 12px;
}

.service-modal__form .form-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.service-modal__form-errors {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--accent-strong);
}

.service-modal__form .field--error .input {
  border-color: rgba(255, 123, 0, 0.5);
}

/* Тостер «Заявка принята» после успешной отправки */
.service-modal-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: var(--radius-md);
  background: rgba(34, 50, 34, 0.98);
  border: 1px solid rgba(76, 175, 80, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.service-modal-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.service-modal-toast__icon {
  color: #81c784;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal-toast__text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #c8e6c9;
}
