/* =========================================================
   Sudebnyy kalkulyator. /calc/sud/. Redaktsiya 26.09.2026.
   Vse pod konteynerom .lv-sud, chtoby ne zadet ostalnoy sayt.
   ========================================================= */

.lv-sud {
  --s-bg: #101820;
  --s-bg2: #16212b;
  --s-acc: #c9a063;
  --s-acc-l: #f4e4c8;
  --s-line: rgba(255, 255, 255, 0.12);
  --s-line-d: #e6e9ec;
  --s-text: #182531;
  --s-mut: #5d6b78;
  --s-max: 1180px;
  --s-pad: 24px;

  background: #fff;
  color: var(--s-text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.lv-sud * { box-sizing: border-box; }
.lv-sud h1, .lv-sud h2, .lv-sud h3 { text-transform: none; letter-spacing: -0.02em; margin: 0; }
.lv-sud p { margin: 0; }
.lv-sud a { text-decoration: none; color: inherit; }

.lvs-wrap { max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-pad); }

/* ---------- Pervyy ekran ---------- */

.lvs-hero {
  position: relative;
  background: var(--s-bg);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) 0 0;
  overflow: hidden;
}
.lvs-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60%;
  height: 160%;
  background: linear-gradient(148deg, rgba(201, 160, 99, 0.14) 0%, rgba(201, 160, 99, 0) 62%);
  transform: rotate(32deg);
  pointer-events: none;
}
.lvs-hero > * { position: relative; z-index: 1; }

.lvs-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-acc);
  margin-bottom: 14px !important;
}
.lvs-h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px !important;
}
.lvs-lead {
  max-width: 640px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.72);
  padding-left: 18px;
  border-left: 2px solid var(--s-acc);
}

.lvs-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--s-line);
  margin-top: clamp(32px, 4vw, 54px);
}
.lvs-fact {
  background: var(--s-bg);
  padding: 20px 22px 22px;
}
.lvs-fact span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}
.lvs-fact b { font-size: 15px; font-weight: 600; line-height: 1.35; }

.lvs-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  border-top: 1px solid var(--s-line);
  margin-top: clamp(28px, 3vw, 40px);
}
.lvs-anchors a {
  padding: 18px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 2px solid transparent;
  transition: color 0.35s, border-color 0.35s;
}
.lvs-anchors a:hover { color: #fff; border-color: var(--s-acc); }

/* ---------- Sektsii ---------- */

.lvs-sec { padding: clamp(44px, 6vw, 84px) 0; }
.lvs-sec--grey { background: #f6f7f8; }
.lvs-sec--dark { background: var(--s-bg); color: #fff; }

.lvs-h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px !important;
}
.lvs-sub {
  max-width: 720px;
  color: var(--s-mut);
  margin-bottom: clamp(24px, 3vw, 40px) !important;
}
.lvs-sec--dark .lvs-sub { color: rgba(255, 255, 255, 0.6); }

/* ---------- Setka kalkulyatora ---------- */

.lvs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.lvs-col { min-width: 0; }

.lvs-group { margin-bottom: 26px; }
.lvs-group__t {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-mut);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--s-line-d);
  margin-bottom: 4px !important;
}

/* ---------- Stroka objekta ---------- */

.lvs-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--s-line-d);
  cursor: pointer;
  transition: background-color 0.25s;
}
.lvs-item:hover { background: #fafbfb; }
.lvs-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.lvs-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid #c3cbd2;
  background: #fff;
  position: relative;
  transition: border-color 0.25s, background-color 0.25s;
}
.lvs-box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.lvs-check:checked ~ .lvs-box {
  background: var(--s-acc);
  border-color: var(--s-acc);
}
.lvs-check:checked ~ .lvs-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.lvs-check:focus-visible ~ .lvs-box { outline: 2px solid var(--s-acc); outline-offset: 2px; }

.lvs-item__body { flex: 1 1 auto; min-width: 0; }
.lvs-item__n { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.lvs-item__note { display: block; font-size: 13px; color: var(--s-mut); margin-top: 4px; }

.lvs-item__right {
  flex: 0 0 auto;
  text-align: right;
  padding-left: 12px;
}
.lvs-item__p { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; }
.lvs-item__d { display: block; font-size: 12px; color: var(--s-mut); margin-top: 3px; white-space: nowrap; }

.lvs-qty {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
}
.lvs-qty__b {
  width: 30px;
  height: 30px;
  border: 1px solid var(--s-line-d);
  background: #fff;
  font-size: 16px;
  line-height: 1;
  color: var(--s-text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lvs-qty__b:hover { border-color: var(--s-acc); color: var(--s-acc); }
.lvs-qty__v { min-width: 26px; text-align: center; font-weight: 600; font-size: 15px; }

.lvs-item--mod .lvs-item__p { color: var(--s-acc); }

/* ---------- Itog ---------- */

.lvs-total { position: sticky; top: 96px; }
.lvs-total__in {
  background: var(--s-bg);
  color: #fff;
  padding: 26px 26px 28px;
}
.lvs-total__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px !important;
}
.lvs-total__sum {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lvs-total__nds {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 6px 0 20px !important;
}
.lvs-total__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--s-line);
  font-size: 14px;
}
.lvs-total__row span { color: rgba(255, 255, 255, 0.55); }
.lvs-total__row b { font-weight: 600; white-space: nowrap; }

.lvs-total__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--s-line);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: none;
}
.lvs-total__list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.lvs-total__list li b { color: #fff; font-weight: 600; white-space: nowrap; }

.lvs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 0 24px;
  background: var(--s-acc);
  color: #101820;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color 0.35s, transform 0.35s, opacity 0.25s;
}
.lvs-btn:hover:not(:disabled) { background: var(--s-acc-l); transform: translateY(-2px); }
.lvs-btn:disabled { opacity: 0.35; cursor: default; }
.lvs-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: none;
}
.lvs-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.lvs-total__hint {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px !important;
}

/* ---------- Forma zaprosa ---------- */

.lvs-form {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.lvs-fields { display: flex; flex-direction: column; gap: 16px; }
.lvs-field { display: block; }
.lvs-field span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 7px;
}
.lvs-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background-color 0.25s;
}
.lvs-field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.lvs-field input:focus {
  outline: none;
  border-color: var(--s-acc);
  background: rgba(255, 255, 255, 0.1);
}

.lvs-preview { min-width: 0; }
.lvs-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--s-line);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.lvs-preview__text {
  margin: 16px 0 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 340px;
  overflow: auto;
}
.lvs-send {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.lvs-send .lvs-btn {
  margin-top: 0;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.lvs-copy {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.lvs-copy:hover { border-color: var(--s-acc); color: var(--s-acc); }
.lvs-copy.is-done { border-color: var(--s-acc); color: var(--s-acc); }

.lvs-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--s-mut);
  margin-top: 14px !important;
}
.lvs-sec--dark .lvs-note { color: rgba(255, 255, 255, 0.4); }
.lvs-note--wide { max-width: 860px; margin-top: 22px !important; }

/* ---------- Kartochki ---------- */

.lvs-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.lvs-card {
  background: #fff;
  border: 1px solid var(--s-line-d);
  padding: clamp(22px, 2.4vw, 32px);
}
.lvs-sec--grey .lvs-card { background: #fff; }
.lvs-card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--s-acc);
  margin-bottom: 10px !important;
}
.lvs-card__t {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px !important;
}
.lvs-card p + p { margin-top: 10px !important; }
.lvs-card p { color: var(--s-mut); font-size: 15px; }
.lvs-card p b { color: var(--s-text); }

.lvs-ul { margin: 0; padding-left: 18px; color: var(--s-mut); font-size: 15px; }
.lvs-ul li { margin-bottom: 8px; }

/* ---------- Voprosy ---------- */

.lvs-q { max-width: 900px; }
.lvs-q__g {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-mut);
  margin: 26px 0 10px !important;
}
.lvs-q__g:first-child { margin-top: 0 !important; }
.lvs-q__i {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--s-line-d);
  border-left: 3px solid var(--s-acc);
  padding: 15px 18px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--s-text);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
}
.lvs-q__i:hover { background: #fffdf9; transform: translateX(2px); }
.lvs-q__i.is-done { border-color: var(--s-acc); background: #fffaf2; }
.lvs-q__i.is-done::after {
  content: " — скопировано";
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s-acc);
}

.lvs-warn {
  margin-top: 30px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--s-line-d);
  border-top: 3px solid var(--s-acc);
  max-width: 900px;
}
.lvs-warn p { font-size: 15px; color: var(--s-mut); }
.lvs-warn p + p { margin-top: 10px !important; }
.lvs-warn b { color: var(--s-text); }

/* ---------- Rekvizity ---------- */

.lvs-req {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  background: #f6f7f8;
  border: 1px solid var(--s-line-d);
  padding: 22px 24px;
  max-width: 760px;
}
.lvs-req pre {
  flex: 1 1 320px;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.lvs-req .lvs-copy { border-color: #c3cbd2; color: var(--s-mut); }
.lvs-req .lvs-copy:hover { border-color: var(--s-acc); color: var(--s-acc); }

/* ---------- Planshet ---------- */

@media (max-width: 992px) {
  .lvs-grid { grid-template-columns: 1fr; }
  .lvs-total { position: static; }
  .lvs-form { grid-template-columns: 1fr; }
  .lvs-facts { grid-template-columns: 1fr; }
  .lvs-two { grid-template-columns: 1fr; }
}

/* ---------- Telefon ---------- */

@media (max-width: 640px) {
  .lv-sud { --s-pad: 20px; }
  .lvs-item { flex-wrap: wrap; padding: 14px 2px; }
  .lvs-item__body { flex: 1 1 0; }
  .lvs-item__right { width: 100%; text-align: left; padding-left: 36px; margin-top: 6px; }
  .lvs-item__p, .lvs-item__d { display: inline-block; }
  .lvs-item__d { margin-left: 10px; }
  .lvs-qty { margin-left: auto; }
  .lvs-anchors { gap: 0 18px; }
  .lvs-anchors a { padding: 14px 0; font-size: 12px; }
  .lvs-total__in { padding: 22px 20px 24px; }
  .lvs-send { grid-template-columns: 1fr; }
  .lvs-q__i { font-size: 14px; padding: 13px 14px; }
}

/* ---------- Umenshit dvizhenie ---------- */

@media (prefers-reduced-motion: reduce) {
  .lv-sud *, .lv-sud *::before, .lv-sud *::after {
    transition: none !important;
    animation: none !important;
  }
}
