:root {
  color-scheme: light;
  --bg: #f1efe8;
  --panel: #fffefa;
  --panel2: #f7f5ee;
  --line: #dedbd0;
  --text: #1b2821;
  --muted: #74796f;
  --cyan: #00DAFF;
  --cyan-soft: #a5f4ff;
  --red: #ff806b;
  --green: #06475a;
  --green-deep: #082b36;
  --shadow: 0 28px 80px #18251c24;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 95% 0%, #e7dfcd 0, transparent 32rem),
    var(--bg);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #00DAFF80;
  outline-offset: 3px;
}

.shell {
  width: min(100% - 56px, 1320px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 27px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 17px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.status i,
.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #4d9a64;
  box-shadow: 0 0 0 4px #4d9a641c;
}

.theme-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #00b8d8;
  border-radius: 999px;
  color: #075269;
  background: #00DAFF20;
  box-shadow: 0 3px 10px #00a9cc12;
  font-size: 11px;
  font-weight: 800;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  color: #042b37;
  background: #00DAFF;
  box-shadow: 0 6px 16px #00a9cc2b;
}

.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  margin: 0 0 24px;
  padding: 5px;
  border: 1px solid #dedbd0;
  border-radius: 14px;
  background: #e5e9e7;
}

.tab {
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #777b72;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: #052b35;
  background: var(--cyan);
  box-shadow: 0 4px 12px #00a9cc38;
}

.hero {
  position: relative;
  display: flex;
  min-height: 225px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 32px 38px;
  border-radius: 24px;
  color: #fffefa;
  background:
    radial-gradient(ellipse at 88% 8%, #00daff35, transparent 29%),
    linear-gradient(115deg, #061f2a, #075268);
  box-shadow: 0 15px 32px #06425c24;
}

.hero::after {
  position: absolute;
  top: -115px;
  right: 7%;
  width: 330px;
  height: 330px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #ffffff08, 0 0 0 68px #ffffff05;
  content: "";
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 9px 0 9px;
  color: #fffefa;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .98;
}

.hero h1 span {
  color: var(--cyan);
}

.hero p {
  max-width: 560px;
  margin: 0;
  color: #d0d8cf;
  font-size: 14px;
}

.load-status {
  margin-bottom: 4px;
  color: #d0d8cf;
  font-size: 12px;
}

.searchbar,
.visual-search {
  position: relative;
  display: block;
}

.searchbar {
  margin-bottom: 11px;
}

.searchbar > span,
.visual-search > span {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #8b8d83;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}

.searchbar input,
.visual-search input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 49px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 3px 9px #18251c08;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.searchbar input:focus,
.visual-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px #00DAFF24;
}

.searchbar input::placeholder,
.visual-search input::placeholder {
  color: #9b9b91;
}

.searchhint,
.category-prompt {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.searchhint b {
  color: var(--text);
}

.cars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.car-card {
  position: relative;
  min-width: 0;
  padding: 19px 20px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--panel);
  text-align: left;
  box-shadow: 0 4px 12px #18251c08;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.car-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--cyan);
  content: "";
  opacity: 0;
  transition: opacity .18s ease;
}

.car-card:hover {
  transform: translateY(-3px);
  border-color: #71d8e8;
  box-shadow: 0 12px 24px #18251c12;
}

.car-card:hover::before {
  opacity: 1;
}

.car-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.car-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.arrow {
  color: var(--cyan);
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}

.car-card:hover .arrow {
  transform: translate(2px, -2px);
}

.full-pricetitle {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}

.full-price {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.2;
}

.salon-price {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ece9e0;
  color: var(--muted);
  font-size: 11px;
}

.salon-price b {
  color: var(--text);
  font-weight: 750;
}

.empty {
  grid-column: 1 / -1;
  padding: 34px 20px;
  border: 1px dashed #c9c5b8;
  border-radius: 16px;
  color: var(--muted);
  background: #fffefa80;
  text-align: center;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.visual-card,
.settings-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 4px 12px #18251c08;
}

.visual-stage {
  display: grid;
  min-height: 320px;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 62%, #00DAFF24, transparent 38%),
    linear-gradient(140deg, #244437, #14271f);
}

.visual-stage svg {
  width: min(92%, 560px);
  height: auto;
  filter: drop-shadow(0 20px 22px #0006);
}

.settings-card {
  display: grid;
  align-content: start;
  gap: 20px;
}

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

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--panel);
  border-radius: 50%;
  outline: 1px solid #c9c5b8;
  transition: transform .15s ease, outline-color .15s ease;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch[aria-pressed="true"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.swatch-cyan {
  background: #00DAFF;
}

.swatch-light {
  background: #e4e7e1;
}

.swatch-red {
  background: #bf4634;
}

.swatch-blue {
  background: #668bab;
}

.swatch-graphite {
  background: #626a64;
}

.select {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel2);
}

.visual-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid #d9d6cb;
  color: #85877d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.backdrop {
  position: fixed;
  z-index: 5;
  display: grid;
  padding: 18px;
  place-items: center;
  inset: 0;
  background: #101a14b8;
  backdrop-filter: blur(8px);
}

.modal {
  width: min(680px, 100%);
  max-height: min(88vh, 850px);
  overflow: auto;
  padding: 26px;
  border: 1px solid #dcd8cd;
  border-radius: 22px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.modal-head h2 {
  margin: 2px 0 0;
  font-size: 28px;
  letter-spacing: -.05em;
}

.modal .eyebrow {
  color: var(--cyan);
}

.close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel2);
  font-size: 22px;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.close:hover {
  border-color: var(--cyan);
  color: #fff;
  background: var(--cyan);
}

.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 21px 0;
}

.summarybox {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: var(--panel2);
  font-size: 11px;
}

.summarybox strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -.04em;
}

.summarybox.accent {
  border-color: #a5e7ef;
  background: #e9faff;
}

.summarybox.accent strong {
  color: var(--green);
}

.parts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 8px;
}

.parts-head h3 {
  margin: 0;
  font-size: 13px;
}

.checkrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid #ece9e0;
  transition: opacity .15s ease;
}

.checkrow:has(input:disabled) {
  opacity: .5;
}

.checkrow input,
.full-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--cyan);
}

.part-info {
  flex: 1;
}

.part-name {
  font-size: 13px;
  font-weight: 700;
}

.part-price {
  font-size: 13px;
  font-weight: 800;
}

.full-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #a5e7ef;
  border-radius: 13px;
  background: #e9faff;
}

.full-row strong {
  flex: 1;
  color: var(--green);
  font-size: 13px;
}

.full-row > span {
  font-size: 12px;
  font-weight: 800;
}

.discount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.discount-btn {
  padding: 10px 13px;
  border: 1px solid #83dbea;
  border-radius: 10px;
  color: #075269;
  background: #e8faff;
  font-size: 11px;
  font-weight: 850;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.discount-btn[aria-pressed="true"] {
  border-color: var(--cyan);
  color: #fff;
  background: var(--cyan);
}

.total {
  text-align: right;
}

.total small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.total strong {
  color: var(--green);
  font-size: 25px;
  letter-spacing: -.04em;
}

.old-price {
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: line-through;
}

.notice {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #83dbea;
  border-radius: 12px;
  color: #075269;
  background: #e8faff;
  font-size: 12px;
}

/* Calculator services */
.visual-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.visual-search {
  flex: 1;
  min-width: 160px;
}

.visual-search input {
  height: 48px;
}

.visual-search > span {
  left: 15px;
}

.calc-tool {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.calc-tool:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.category-prompt {
  margin-bottom: 10px;
}

.service-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-bottom: 12px;
  padding: 2px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: #c9c5b8 transparent;
}

.service-tab {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #676d63;
  background: var(--panel);
  font-size: 11px;
  font-weight: 800;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.service-tab:hover {
  border-color: #71d8e8;
  color: var(--text);
}

.service-tab b {
  margin-left: 6px;
  color: #95958a;
  font-size: 10px;
}

.service-tab.active {
  border-color: var(--cyan);
  color: #fffefa;
  background: var(--green);
}

.service-tab.active b {
  color: var(--cyan);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 20px;
}

.service-catalog {
  max-height: 680px;
  overflow: auto;
  padding-right: 7px;
  scrollbar-color: #c6c2b6 transparent;
  scrollbar-width: thin;
}

.service-category {
  margin-bottom: 13px;
}

.category-heading {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  border: 0;
  color: var(--green);
  background: transparent;
  font-weight: 850;
  text-align: left;
}

.category-heading small {
  margin-left: 7px;
  color: #9a9b91;
  font-size: 10px;
}

.collapse-label {
  color: #85877d;
  font-size: 10px;
  font-weight: 650;
}

.service-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 4px 12px #18251c08;
}

.service-item {
  display: flex;
  min-height: 65px;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid #eeece5;
  background: var(--panel);
  transition: background .15s ease;
}

.service-item:hover {
  background: #faf8f2;
}

.service-item:last-child {
  border-bottom: 0;
}

.service-info {
  flex: 1;
  min-width: 0;
}

.service-info strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.service-info small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity {
  width: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.qty-button {
  width: 34px;
  height: 34px;
  border: 1px solid #d6d2c7;
  border-radius: 10px;
  color: var(--green);
  background: #f5f3ec;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}

.qty-button:hover {
  transform: translateY(-1px);
  border-color: var(--green);
}

.qty-button.plus {
  border-color: var(--cyan);
  color: #052b35;
  background: var(--cyan);
}

.qty-button.plus:hover {
  border-color: var(--cyan);
  background: var(--cyan);
}

.calc-no-results {
  padding: 25px;
  border: 1px dashed #c9c5b8;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.calc-summary {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #08728f;
  border-radius: 18px;
  color: #f7f5ee;
  background:
    radial-gradient(ellipse at 100% 0%, #00daff24, transparent 45%),
    #071f2a;
  box-shadow: 0 16px 32px #071f2a30;
}

.calc-summary h2 {
  margin: 0 0 14px;
  color: #fffefa;
  font-size: 17px;
  letter-spacing: -.02em;
}

.selected-services {
  min-height: 90px;
  max-height: 210px;
  overflow: auto;
  margin-bottom: 11px;
  padding: 11px;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #0b1e16a8;
}

.calc-empty {
  padding: 8px 2px;
  color: #c6cec4;
  font-size: 12px;
  font-weight: 650;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0;
  color: #dbe1d9;
  font-size: 11px;
}

.calc-summary-row b {
  color: #fffefa;
  white-space: nowrap;
}

.calc-primary,
.calc-secondary {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-weight: 850;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.calc-primary:hover,
.calc-secondary:hover {
  transform: translateY(-1px);
}

.calc-primary {
  border: 1px solid var(--cyan);
  color: #052b35;
  background: var(--cyan);
}

.calc-primary:hover {
  border-color: #00b9da;
  background: #00b9da;
}

.calc-secondary {
  margin-top: 7px;
  border: 1px solid #ffffff27;
  color: #e2e7de;
  background: #ffffff0a;
}

.calc-secondary:hover {
  border-color: #ffffff60;
  background: #ffffff14;
}

.discount-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.discount-group {
  min-width: 0;
  margin: 0;
}

.discount-option {
  display: flex;
  width: 100%;
  min-height: 53px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px;
  border: 1px solid #ffffff35;
  border-radius: 10px;
  color: #72eaff;
  background: transparent;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.discount-option:hover,
.discount-option.active {
  border-color: var(--cyan);
  color: #fffefa;
  background: #00DAFF28;
}

.discount-option b {
  color: #c5cec3;
  font-size: 9px;
  letter-spacing: .08em;
}

.discount-option.active b {
  color: var(--cyan);
}

.discount-group small {
  display: block;
  min-height: 25px;
  margin: 5px 2px 0;
  color: #b7c1b5;
  font-size: 9px;
  line-height: 1.25;
}

.discount-group .active + small {
  color: var(--cyan);
}

.calc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 0 5px;
  border-top: 1px solid #ffffff25;
}

.calc-total small {
  color: #c5cec3;
  font-size: 10px;
}

.calc-total-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.calc-total-prices s {
  color: #c5cec3;
  font-size: 11px;
  line-height: 1.2;
}

.calc-total-prices strong {
  color: #fffefa;
  font-size: 26px;
  letter-spacing: -.05em;
  line-height: 1.2;
  transition: color .3s ease, transform .3s ease;
}

.calc-total strong.update {
  animation: calc-grow .55s ease-out;
}

@keyframes calc-grow {
  50% {
    transform: scale(1.06);
    color: var(--cyan);
  }
}

.fx-box {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #ffffff25;
}

.fx-box label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #c5cec3;
  font-size: 11px;
}

.fx-box input {
  width: 100%;
  padding: 9px;
  border: 1px solid #ffffff35;
  border-radius: 9px;
  color: #fffefa;
  background: #0b1e16;
}

.calc-toast {
  position: fixed;
  z-index: 20;
  bottom: 22px;
  left: 50%;
  padding: 12px 17px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: #fffefa;
  background: var(--green-deep);
  box-shadow: 0 12px 30px #0b1e1630;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .2s ease, transform .2s ease;
}

.calc-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confetti-piece {
  position: fixed;
  z-index: 30;
  top: 42%;
  width: 7px;
  height: 10px;
  background: var(--confetti-color);
  pointer-events: none;
  transform: rotate(var(--confetti-rotate));
  animation: confetti-fall 1.1s ease-in forwards;
}

@keyframes confetti-fall {
  to {
    top: 100%;
    opacity: 0;
    transform: translateX(60px) rotate(720deg);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07151e;
  --panel: #0e202a;
  --panel2: #132b36;
  --line: #254653;
  --text: #e8f6f9;
  --muted: #9bb5bc;
  --green: #6feaff;
  --green-deep: #071f2a;
  --shadow: 0 28px 80px #0008;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 95% 0%, #00627b45 0, transparent 34rem),
    var(--bg);
}

html[data-theme="dark"] .theme-toggle {
  border-color: #00a9c7;
  color: #a8f4ff;
  background: #00DAFF15;
}

html[data-theme="dark"] .theme-toggle:hover {
  color: #052b35;
  background: var(--cyan);
}

html[data-theme="dark"] .tabs {
  border-color: var(--line);
  background: #0c202a;
}

html[data-theme="dark"] .tab.active {
  color: #052b35;
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse at 88% 8%, #00daff30, transparent 29%),
    linear-gradient(115deg, #061821, #073e50);
}

html[data-theme="dark"] .car-card,
html[data-theme="dark"] .visual-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .service-list {
  border-color: var(--line);
  background: var(--panel);
}

html[data-theme="dark"] .car-card:hover {
  border-color: #00aeca;
}

html[data-theme="dark"] .full-price,
html[data-theme="dark"] .summarybox.accent strong,
html[data-theme="dark"] .total strong {
  color: var(--cyan);
}

html[data-theme="dark"] .salon-price {
  border-color: var(--line);
}

html[data-theme="dark"] .empty,
html[data-theme="dark"] .calc-no-results {
  border-color: #315461;
  background: #0e202a;
}

html[data-theme="dark"] .foot {
  border-color: var(--line);
}

html[data-theme="dark"] .modal {
  border-color: var(--line);
  background: var(--panel);
}

html[data-theme="dark"] .summarybox,
html[data-theme="dark"] .close {
  border-color: var(--line);
  background: var(--panel2);
}

html[data-theme="dark"] .summarybox.accent,
html[data-theme="dark"] .full-row {
  border-color: #08728f;
  background: #0a3341;
}

html[data-theme="dark"] .summarybox.accent strong,
html[data-theme="dark"] .full-row strong {
  color: var(--cyan);
}

html[data-theme="dark"] .checkrow {
  border-color: var(--line);
}

html[data-theme="dark"] .discount-btn,
html[data-theme="dark"] .notice {
  border-color: #08728f;
  color: #a8f4ff;
  background: #0a3341;
}

html[data-theme="dark"] .discount-btn[aria-pressed="true"] {
  color: #052b35;
  background: var(--cyan);
}

html[data-theme="dark"] .service-tab {
  border-color: var(--line);
  color: #b4c9ce;
  background: var(--panel);
}

html[data-theme="dark"] .service-tab.active {
  border-color: var(--cyan);
  color: #052b35;
  background: var(--cyan);
}

html[data-theme="dark"] .service-tab.active b {
  color: #075269;
}

html[data-theme="dark"] .service-item {
  border-color: #1d3945;
  background: var(--panel);
}

html[data-theme="dark"] .service-item:hover {
  background: #132b36;
}

html[data-theme="dark"] .qty-button {
  border-color: #315461;
  color: #a8f4ff;
  background: #132b36;
}

html[data-theme="dark"] .qty-button.plus {
  border-color: var(--cyan);
  color: #052b35;
  background: var(--cyan);
}

html[data-theme="dark"] .calc-summary {
  border-color: #08728f;
  background:
    radial-gradient(ellipse at 100% 0%, #00daff20, transparent 45%),
    #071f2a;
}

html[data-theme="dark"] .selected-services,
html[data-theme="dark"] .fx-box input {
  border-color: #254653;
  background: #061821;
}

html[data-theme="dark"] .calc-primary {
  color: #052b35;
}

html[data-theme="dark"] .calc-primary:hover {
  border-color: #32e4ff;
  background: #32e4ff;
}

html[data-theme="dark"] .calc-toast {
  background: #071f2a;
}

html[data-theme="dark"] .select {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel2);
}

@media (max-width: 1000px) {
  .calculator-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 15px;
  }

  .cars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 36px, 650px);
    padding-top: 20px;
  }

  .topline {
    margin-bottom: 19px;
  }

  .hero {
    min-height: 205px;
    padding: 28px;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .service-catalog {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .calc-summary {
    position: static;
    max-height: none;
    grid-row: 1;
  }

  .visual-toolbar {
    flex-wrap: wrap;
  }

  .visual-search {
    flex-basis: 100%;
  }

  .calc-tool {
    flex: 1;
  }

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

  .visual-stage {
    min-height: 250px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 460px);
    padding: 15px 0 30px;
  }

  .brand {
    gap: 8px;
    font-size: 10px;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .header-tools {
    gap: 9px;
  }

  .theme-toggle {
    min-height: 35px;
    gap: 6px;
    padding: 0 10px;
    font-size: 10px;
  }

  .theme-icon {
    width: 15px;
    height: 15px;
  }

  .status {
    gap: 7px;
    font-size: 8px;
    letter-spacing: .07em;
  }

  .tabs {
    margin-bottom: 17px;
  }

  .tab {
    min-height: 39px;
    padding: 0 14px;
    font-size: 10px;
  }

  .hero {
    min-height: 190px;
    margin-bottom: 19px;
    padding: 24px 21px;
    border-radius: 19px;
  }

  .hero h1 {
    font-size: clamp(39px, 13vw, 53px);
  }

  .hero p {
    max-width: 340px;
    font-size: 12px;
  }

  .hero::after {
    right: -160px;
  }

  .load-status {
    margin-top: 12px;
  }

  .cars {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .car-card {
    padding: 16px 17px;
  }

  .full-pricetitle {
    margin-top: 11px;
  }

  .full-price {
    font-size: 23px;
  }

  .summary {
    gap: 8px;
  }

  .summarybox {
    padding: 12px;
  }

  .summarybox strong {
    font-size: 17px;
  }

  .modal {
    padding: 20px;
    border-radius: 18px;
  }

  .modal-head h2 {
    font-size: 24px;
  }

  .service-item {
    gap: 7px;
    padding: 9px;
  }

  .quantity-controls {
    gap: 5px;
  }

  .qty-button {
    width: 31px;
    height: 32px;
  }

  .calc-summary {
    padding: 16px;
  }

  .foot {
    display: block;
    margin-top: 28px;
  }

  .foot span {
    display: block;
    margin-top: 6px;
  }
}

@media (max-width: 370px) {
  .shell {
    width: calc(100% - 22px);
  }

  .status {
    max-width: 130px;
    font-size: 0;
  }

  .header-tools {
    gap: 8px;
  }

  .theme-toggle {
    min-width: 36px;
    justify-content: center;
    padding: 0 9px;
  }

  .theme-label {
    display: none;
  }

  .discount-options {
    gap: 4px;
  }

  .discount-option {
    font-size: 9px;
  }

  .discount-group small {
    font-size: 8px;
  }

  .calc-total-prices strong {
    font-size: 23px;
  }

  .discount-row {
    align-items: flex-start;
  }
}

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