:root {
  color-scheme: light;
  --brand: #2B4F4F;
  --brand-deep: #173737;
  --brand-soft: #E7EFEC;
  --brand-pale: #F5F9F7;
  --ink: #173737;
  --muted: #59706C;
  --line: #D5E1DD;
  --paper: #FFFFFF;
  --shadow: 0 18px 46px rgba(23, 55, 55, 0.13);
}

* { box-sizing: border-box; }

html { color: var(--ink); overflow-x: hidden; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--brand-pale);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  display: block;
  width: 74vmax;
  height: 74vmax;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(43, 79, 79, 0.1);
  border-radius: 44% 56% 59% 41% / 47% 42% 58% 53%;
}

body::before {
  top: -43vmax;
  right: -35vmax;
  box-shadow: inset 0 0 0 34px rgba(43, 79, 79, 0.035), inset 0 0 0 108px rgba(43, 79, 79, 0.025);
  transform: rotate(-18deg);
}

body::after {
  bottom: -55vmax;
  left: -45vmax;
  border-color: rgba(43, 79, 79, 0.08);
  box-shadow: inset 0 0 0 28px rgba(43, 79, 79, 0.025);
  transform: rotate(23deg);
}

.shell {
  position: relative;
  width: min(100%, 720px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 18px 34px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  margin: 0 -18px 24px;
  padding: 16px 22px;
  background: var(--paper);
  border-bottom: 1px solid rgba(43, 79, 79, 0.08);
  box-shadow: 0 10px 30px rgba(23, 55, 55, 0.06);
}

.topbar:has(.brand-logo) { justify-content: center; }

.brand-logo {
  display: block;
  width: min(100%, 385px);
  max-height: 53px;
  height: auto;
  object-fit: contain;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  flex: 1;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.12;
  font-weight: 750;
}

h2 {
  font-size: 20px;
  line-height: 1.22;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(100%, 390px);
  margin: 0 auto;
}

.menu-shell .grid {
  min-height: calc(100svh - 140px);
  grid-template-rows: repeat(8, minmax(0, 1fr));
}

.card,
.panel,
.item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card,
.panel { border-radius: 18px; }

.menu-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 16px 15px 15px 18px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.menu-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--brand);
  opacity: 0;
  transition: opacity 160ms ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  border-color: rgba(43, 79, 79, 0.42);
  box-shadow: 0 18px 36px rgba(23, 55, 55, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.menu-card:hover::before,
.menu-card:focus-visible::before { opacity: 1; }
.menu-card:active { transform: scale(0.985); }

.menu-card strong {
  display: block;
  min-width: 0;
  padding-right: 3px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.menu-copy {
  display: grid;
  min-width: 0;
}

.menu-copy small {
  min-width: 0;
  margin-top: 4px;
  padding-right: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
}

.menu-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(43, 79, 79, 0.18);
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--brand);
}

.menu-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.panel {
  display: grid;
  gap: 10px;
  padding: 19px;
}

.panel > h2 { font-size: 20px; }
.form-section-title { margin-top: 14px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.item {
  padding: 18px;
  border-radius: 16px;
}

.list { display: grid; gap: 12px; margin-top: 14px; }
.item h2 { margin-bottom: 7px; font-size: 19px; }
.muted { color: var(--muted); }

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(23, 55, 55, 0.16);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
button:hover { background: var(--brand-deep); box-shadow: 0 12px 22px rgba(23, 55, 55, 0.22); }
.btn:active,
button:active { transform: scale(0.98); }

.btn.ghost {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
  color: var(--brand);
}

.btn.ghost:hover { background: var(--brand-pale); border-color: rgba(43, 79, 79, 0.3); }

.topbar .btn.ghost {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin-left: 0;
  padding: 0;
  border-radius: 50%;
  order: -1;
}

button:disabled { cursor: default; opacity: 0.42; }

label {
  display: block;
  margin: 6px 0 1px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 79, 79, 0.11); }
input::placeholder,
textarea::placeholder { color: #8CA19C; }
textarea { min-height: 128px; resize: vertical; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.check input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--brand);
}

.status {
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(43, 79, 79, 0.18);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 14px;
  line-height: 1.4;
}

.status.error { border-color: rgba(43, 79, 79, 0.45); background: white; color: var(--brand); }
.danger { color: var(--brand); }

.iframe-wrap {
  min-height: 620px;
  height: calc(100svh - 130px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

iframe { width: 100%; height: 100%; border: 0; }

.service-panel {
  margin: 18px auto 0;
  width: min(100%, 390px);
  box-shadow: none;
}

.tax-certificate-form,
.tax-certificate-form h2,
.tax-certificate-form label,
.tax-certificate-form input,
.tax-certificate-form textarea,
.tax-certificate-form select,
.tax-certificate-form .check {
  color: var(--brand);
}

.tax-certificate-form input::placeholder,
.tax-certificate-form textarea::placeholder {
  color: rgba(43, 79, 79, 0.58);
}

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.service-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

/* Чек-ап */
.checkup-page { max-width: 520px; padding-top: 18px; }

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 19px;
  color: var(--ink);
}

.app-header h1 { color: var(--ink); font-size: 26px; }
.app-kicker,
.result-kicker { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.65px; text-transform: uppercase; }

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 16px rgba(23, 55, 55, 0.08);
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
  text-decoration: none;
}

.checkup-card,
.checkup-result {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 20px;
}

.checkup-progress { display: flex; justify-content: space-between; align-items: center; color: var(--brand); font-size: 13px; font-weight: 700; }
.checkup-track { height: 6px; margin: 9px 0 25px; overflow: hidden; border-radius: 999px; background: var(--brand-soft); }
.checkup-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width 200ms ease; }
.checkup-card h2,
.program-card h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.23; }
.checkup-help { margin-bottom: 18px; font-size: 14px; }
.checkup-options { display: grid; gap: 9px; }

.checkup-option {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 56px;
  padding: 11px 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 160ms ease, border-color 160ms ease;
}

.checkup-option:has(input:checked) { border-color: var(--brand); background: var(--brand-pale); }
.checkup-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.checkup-control { display: grid; place-items: center; width: 21px; height: 21px; border: 1.5px solid #A5BAB5; border-radius: 50%; }
.checkup-option input[type="checkbox"] + .checkup-control { border-radius: 6px; }
.checkup-option input:checked + .checkup-control { border-color: var(--brand); background: var(--brand); }
.checkup-option input:checked + .checkup-control::after { width: 8px; height: 4px; content: ""; border-bottom: 2px solid white; border-left: 2px solid white; transform: rotate(-45deg) translateY(-1px); }
.form-error { margin: 14px 0 0; color: var(--brand); font-size: 13px; font-weight: 700; }
.checkup-actions { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 9px; margin-top: 20px; }
.checkup-result { display: grid; gap: 14px; }
.program-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.program-card > p { font-size: 14px; }
.program-price { color: var(--ink); font-size: 20px !important; font-weight: 750; }
.program-price del { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.program-card details { margin: 16px 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.program-card summary { cursor: pointer; color: var(--brand); font-weight: 750; }
.program-card details section { margin-top: 14px; font-size: 14px; }
.program-card ul { margin: 7px 0 0; padding-left: 19px; line-height: 1.45; }
.program-card .btn,
.restart { width: 100%; }
.additional-label { margin: 0 0 10px !important; color: var(--brand) !important; font-size: 11px !important; font-weight: 750; letter-spacing: 0.6px; text-transform: uppercase; }
.site-link { display: block; width: fit-content; max-width: 100%; margin: 17px auto 0; color: var(--brand); font-size: 13px; line-height: 1.3; text-align: center; }

/* The full ALT72 check-up logic uses this compact layout inside the mobile bot. */
.checkup-page { width: min(100%, 680px); max-width: none; }
.checkup-card,
.checkup-result { border-color: #DDE7E4; box-shadow: 0 18px 45px rgba(43, 79, 79, 0.12); }
.checkup-card::before { display: block; height: 7px; margin: -24px -24px 22px; content: ""; background: var(--brand); }
.checkup-card h2 { color: var(--brand); font-size: 25px; }
.checkup-option { min-height: 54px; border-color: #DDE7E4; border-radius: 6px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.checkup-option:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(43, 79, 79, .1); }
.checkup-option:has(input:checked) { background: #F4F8F7; }
.checkup-actions { margin-top: 24px; }
.program-card { overflow: hidden; border-color: #DDE7E4; border-radius: 8px; box-shadow: none; }
.program-card > h2,
.program-card > p,
.program-card > details,
.program-card > a { margin-right: 20px; margin-left: 20px; }
.program-card > h2 { margin-top: 20px; font-size: 22px; }
.program-card > a { margin-bottom: 20px; }

/* Full ALT72 check-up widget, kept inside the bot rather than opening the site. */
.ap-checkup-widget { width: 100%; color: #54595F; font-family: Raleway, Arial, sans-serif; }
.ap-checkup-widget * { box-sizing: border-box; }
.ap-checkup-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border: 1px solid #DDE7E4; border-radius: 8px; background: #fff; box-shadow: 0 18px 45px rgba(43, 79, 79, .12); }
.ap-checkup-side { padding: 24px 18px; color: #fff; background: var(--brand); }
.ap-checkup-kicker { margin: 0 0 10px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; text-transform: uppercase; opacity: .8; }
.ap-checkup-title { margin: 0; color: #fff; font-size: 23px; line-height: 1.18; font-weight: 600; }
.ap-checkup-note { margin: 14px 0 0; color: #fff; font-size: 13px; line-height: 1.5; opacity: .88; }
.ap-checkup-progress { margin-top: 24px; }
.ap-checkup-progress-text { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #fff; font-size: 12px; font-weight: 700; }
.ap-checkup-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.24); }
.ap-checkup-progress-fill { height: 100%; border-radius: inherit; background: #fff; transition: width .26s ease; }
.ap-checkup-main { min-width: 0; padding: 26px; }
.ap-checkup-step-label { margin: 0 0 7px; color: var(--brand); font-size: 13px; font-weight: 600; }
.ap-checkup-question { margin: 0 0 16px; color: var(--brand); font-size: 23px; line-height: 1.25; font-weight: 600; }
.ap-checkup-help { margin: -7px 0 16px; color: #59706C; font-size: 14px; line-height: 1.45; }
.ap-options { display: grid; gap: 9px; }
.ap-option { position: relative; display: flex; align-items: flex-start; gap: 11px; min-height: 50px; padding: 13px 14px; border: 1px solid #DDE7E4; border-radius: 6px; background: #fff; cursor: pointer; font-weight: 400; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.ap-option:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(43,79,79,.1); }
.ap-option input { position: absolute; opacity: 0; pointer-events: none; }
.ap-control { display: inline-grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; margin-top: 1px; border: 2px solid #B8C9C5; background: #fff; }
.ap-option-radio .ap-control { border-radius: 50%; }
.ap-option-checkbox .ap-control { border-radius: 5px; }
.ap-option input:checked + .ap-control { border-color: var(--brand); background: var(--brand); }
.ap-option-radio input:checked + .ap-control::after { width: 7px; height: 7px; content: ""; border-radius: 50%; background: #fff; }
.ap-option-checkbox input:checked + .ap-control::after { width: 9px; height: 5px; content: ""; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.ap-option input:checked ~ .ap-option-text { color: var(--brand); font-weight: 600; }
.ap-option-text { color: #54595F; font-size: 15px; font-weight: 400; line-height: 1.35; }
.ap-checkup-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px; border: 2px solid var(--brand); border-radius: 6px; font: 600 14px/1.2 Raleway,Arial,sans-serif; text-decoration: none; cursor: pointer; }
.ap-btn-primary { color: #fff; background: var(--brand); }
.ap-btn-primary:hover, .ap-btn-primary:focus { color: var(--brand); background: #fff; }
.ap-btn-secondary { color: var(--brand); background: #fff; }
.ap-btn-secondary:hover, .ap-btn-secondary:focus { color: #fff; background: var(--brand); }
.ap-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ap-error { display: none; margin: 14px 0 0; color: #B23A3A; font-size: 13px; font-weight: 600; }
.ap-error.is-visible { display: block; }
.ap-result { display: grid; gap: 16px; }
.ap-result-head { padding-bottom: 16px; border-bottom: 1px solid #DDE7E4; }
.ap-result-eyebrow { margin: 0 0 7px; color: #59706C; font-size: 13px; font-weight: 700; }
.ap-result-title { margin: 0; color: var(--brand); font-size: 25px; line-height: 1.18; font-weight: 600; }
.ap-program-card { overflow: hidden; border: 1px solid #DDE7E4; border-radius: 8px; background: #fff; }
.ap-program-main { padding: 20px; }
.ap-program-name { margin: 0 0 10px; color: var(--brand); font-size: 20px; line-height: 1.25; font-weight: 600; }
.ap-program-description { margin: 0 0 14px; color: #54595F; font-size: 15px; line-height: 1.5; }
.ap-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 0 0 15px; }
.ap-price { color: var(--brand); font-size: 22px; font-weight: 700; }
.ap-old-price { color: #59706C; font-size: 13px; text-decoration: line-through; }
.ap-program-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 20px 20px; }
.ap-program-section { padding: 12px; border-radius: 6px; background: #F4F8F7; }
.ap-program-section h4 { margin: 0 0 7px; color: var(--brand); font-size: 14px; font-weight: 700; }
.ap-program-section ul { margin: 0; padding-left: 17px; color: #54595F; font-size: 13px; line-height: 1.45; }
.ap-program-section li + li { margin-top: 3px; }
.ap-additional-label { margin: 8px 0 -5px; color: #59706C; font-size: 13px; font-weight: 700; }

@media (max-width: 680px) {
  .shell { padding: 0 14px 26px; }
  .topbar { min-height: 82px; margin: 0 -14px 20px; padding: 14px 18px; }
  .brand-logo { max-height: 48px; }
  .menu-card { min-height: 73px; }
  .panel,
  .item { padding: 16px; }
  .btn,
  button { width: 100%; }
  .checkup-page { padding-top: 14px; }
  .checkup-card,
  .checkup-result { padding: 17px; }
  .checkup-actions .btn,
  .checkup-actions button { min-width: 0; padding: 13px 9px; }
  .ap-checkup-shell { grid-template-columns: 1fr; }
  .ap-checkup-side,
  .ap-checkup-main { padding: 20px 16px; }
  .ap-checkup-note { margin-top: 10px; }
  .ap-checkup-progress { margin-top: 16px; }
  .ap-checkup-question { font-size: 21px; }
  .ap-program-main { padding: 16px; }
  .ap-program-sections { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .ap-checkup-actions { flex-direction: column-reverse; }
  .ap-btn { width: 100%; }
}

@media (min-width: 681px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 640px); }
  .service-panel { width: min(100%, 640px); }
}
