:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --soft: #f5f3ee;
  --soft-2: #f0ede6;
  --ink: #141715;
  --text: #343a36;
  --muted: #6f7771;
  --faint: #9aa19c;
  --line: #e3e0d8;
  --line-dark: #c9c5ba;
  --accent: #0a7a62;
  --accent-dark: #075947;
  --accent-soft: #edf7f3;
  --note: #fff8e8;
  --radius: 8px;
  --container: 1120px;
  --article: 760px;
  --scroll-progress: 0%;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(10, 122, 98, 0.18);
  color: var(--ink);
}

html {
  scroll-padding-top: 86px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 410px),
    var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  max-width: 930px;
  margin: 0 0 18px;
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(31px, 3.4vw, 46px);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 720;
  line-height: 1.3;
}

p {
  color: var(--text);
}

ul,
ol {
  color: var(--text);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 62px;
  padding: 9px max(24px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(16px);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.site-header.is-scrolled {
  border-color: rgba(201, 197, 186, 0.78);
  background: rgba(251, 250, 247, 0.96);
  box-shadow: 0 10px 28px rgba(20, 23, 21, 0.05);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background:
    linear-gradient(90deg, var(--accent) var(--scroll-progress), transparent 0),
    transparent;
  content: "";
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.brand img {
  display: block;
  width: clamp(146px, 13vw, 196px);
  height: auto;
  max-height: 30px;
}

.site-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 10px;
}

.site-nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.site-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-nav a:focus-visible,
.button:focus-visible,
.header-cta:focus-visible,
.header-phone:focus-visible,
.nav-toggle:focus-visible,
.lead-form input:focus-visible,
.lead-form textarea:focus-visible {
  outline: 2px solid rgba(10, 122, 98, 0.34);
  outline-offset: 3px;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-weight: 680;
  line-height: 1.15;
}

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

.header-contact {
  position: relative;
}

.header-contact::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 16px;
  content: "";
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  line-height: 1;
  padding: 8px 10px;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.header-phone::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.header-contact:hover .header-phone,
.header-contact:focus-within .header-phone {
  background: var(--soft);
  color: var(--accent-dark);
}

.header-contact:hover .header-phone::after,
.header-contact:focus-within .header-phone::after {
  transform: rotate(45deg) translate(1px, 0);
}

.contact-bubble {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 255px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(20, 23, 21, 0.1);
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.contact-bubble::before {
  position: absolute;
  top: -5px;
  right: 24px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: white;
  content: "";
  transform: rotate(45deg);
}

.header-contact:hover .contact-bubble,
.header-contact:focus-within .contact-bubble {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contact-bubble a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 720;
}

.contact-bubble span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.lock-link::before {
  width: 14px;
  height: 14px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.75 7V5.25C4.75 3.45 6.2 2 8 2s3.25 1.45 3.25 3.25V7M4 7h8c.55 0 1 .45 1 1v4.5c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1Z' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.75 7V5.25C4.75 3.45 6.2 2 8 2s3.25 1.45 3.25 3.25V7M4 7h8c.55 0 1 .45 1 1v4.5c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1Z' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.header-cta {
  min-height: 36px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-size: 13px;
  padding: 8px 13px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 12px 15px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: white;
}

.button.primary:hover {
  background: var(--accent);
}

.button.ghost {
  border-color: var(--line-dark);
  background: transparent;
  color: var(--ink);
}

.article-shell {
  background: transparent;
}

.article-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(251, 250, 247, 0.98)),
    var(--bg);
  padding: clamp(44px, 6vw, 82px) 0 clamp(32px, 4vw, 56px);
}

.article-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 122, 98, 0.08), transparent 36%),
    linear-gradient(180deg, transparent, rgba(227, 224, 216, 0.35));
  content: "";
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.5vw, 38px);
}

.hero-copy {
  max-width: 900px;
}

.section-label {
  display: block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(18px, 1.75vw, 21px);
  line-height: 1.52;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 2px;
}

.cta-row p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cover-card {
  margin: 2px 0 0;
}

.cover-card img {
  display: block;
  width: 100%;
  max-height: 300px;
  aspect-ratio: 21 / 6.2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 48%;
}

.article-layout {
  max-width: 900px;
  padding: 30px 0 clamp(70px, 9vw, 120px);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin: 0 auto 34px;
  max-width: var(--article);
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.toc span {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.toc a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.toc a.is-active {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.article-content {
  max-width: var(--article);
  margin-inline: auto;
}

.article-section {
  scroll-margin-top: 86px;
  padding: clamp(48px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
}

.article-section:target {
  animation: targetGlow 1.3s ease;
}

@keyframes targetGlow {
  0% {
    background: rgba(10, 122, 98, 0.08);
    box-shadow: 0 0 0 18px rgba(10, 122, 98, 0.08);
  }

  100% {
    background: transparent;
    box-shadow: 0 0 0 0 transparent;
  }
}

.article-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-section > p {
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.76;
}

.article-section > p:last-child {
  margin-bottom: 0;
}

.article-section > h3 {
  margin-top: 28px;
}

.intro {
  position: relative;
  padding-bottom: clamp(38px, 5vw, 62px);
}

.intro::before {
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 22px;
  background: var(--accent);
  content: "";
}

.intro p {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.62;
}

.intro p:first-child {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.36;
}

.intro p + p {
  margin-top: 16px;
}

.table-block {
  overflow: hidden;
  margin: 26px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  padding: 14px 16px;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(10, 122, 98, 0.025);
}

th {
  width: 33%;
  background: rgba(245, 243, 238, 0.52);
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

td {
  color: var(--text);
  font-size: 15px;
}

.compact-table td {
  font-weight: 680;
}

.compact-table tr:last-child th,
.compact-table tr:last-child td {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pull-quote {
  margin: 28px 0 0;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 68%);
  color: var(--ink);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 620;
  line-height: 1.42;
  padding: 16px 0 16px 22px;
}

.note-list,
.warning-box {
  margin: 26px 0;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
}

.note-list h3 {
  max-width: 640px;
  margin-bottom: 14px;
}

.note-list ul,
.warning-box ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.step-list,
.numbered-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.step-list li,
.numbered-list li {
  position: relative;
  counter-increment: item;
  border-top: 1px solid var(--line);
  padding: 20px 0 20px 58px;
}

.step-list li:last-child,
.numbered-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-list li::before,
.numbered-list li::before {
  position: absolute;
  top: 21px;
  left: 0;
  color: var(--accent);
  content: counter(item, decimal-leading-zero);
  font-size: 13px;
  font-weight: 740;
}

.step-list h3,
.step-list p {
  margin-bottom: 0;
}

.step-list h3 {
  color: var(--ink);
}

.step-list h3 + p {
  margin-top: 5px;
}

.step-list p,
.numbered-list li {
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
}

.numbered-list + p {
  margin-top: 26px;
}

.article-section > ul:not(.tag-list) {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  padding-left: 22px;
}

.compare-section h2 {
  max-width: 720px;
  font-size: clamp(29px, 3.1vw, 40px);
}

.compare-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  margin: 28px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.compare-block article {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
}

.compare-block article + article {
  border-left: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(10, 122, 98, 0.08), transparent 64%),
    var(--accent-soft);
}

.compare-block span {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
}

.compare-block h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 740;
  line-height: 1.14;
}

.compare-block p {
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 620;
  line-height: 1.42;
}

.compare-block article + article span {
  border-color: rgba(10, 122, 98, 0.2);
  color: var(--accent-dark);
}

.compare-block article + article h3 {
  color: var(--accent-dark);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(10, 122, 98, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  line-height: 1.35;
  padding: 6px 10px;
}

.warning-box {
  border-left-color: #b07418;
  background: var(--note);
}

.warning-box h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.warning-box p {
  color: var(--text);
}

.warning-box ul + p {
  margin-top: 20px;
}

.access-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin: clamp(34px, 5vw, 58px) 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(10, 122, 98, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(10, 122, 98, 0.06), transparent 58%),
    var(--paper);
  padding: clamp(24px, 4vw, 38px);
}

.access-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.access-card h2 {
  max-width: 430px;
  margin-bottom: 16px;
  font-size: clamp(29px, 3.1vw, 40px);
  line-height: 1.08;
}

.access-card p {
  max-width: 470px;
  color: var(--text);
}

.access-card > div,
.access-card form,
.success-panel {
  position: relative;
}

.lead-form,
.callback-form {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: 18px;
}

.lead-form label,
.callback-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
}

.lead-form input,
.lead-form textarea,
.callback-form input {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  outline: 0;
  background: white;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 13px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.lead-form input:focus,
.lead-form textarea:focus,
.callback-form input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(10, 122, 98, 0.09);
}

.lead-form label.has-error,
.callback-form label.has-error {
  color: #9b2c2c;
}

.lead-form label.has-error input,
.callback-form label.has-error input {
  border-color: rgba(155, 44, 44, 0.6);
  box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.08);
}

.field-error {
  min-height: 16px;
  color: #9b2c2c;
  font-size: 12px;
  line-height: 1.3;
}

.lead-form .button,
.callback-form .button {
  width: 100%;
  margin-top: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lead-form.is-sent .form-note {
  color: var(--accent);
}

.lead-form.is-sent .form-note::before {
  content: "Заявка принята. ";
  font-weight: 720;
}

.lead-form.is-sent .button {
  border-color: rgba(10, 122, 98, 0.18);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.lead-form.is-sent,
.callback-form.is-sent {
  display: none;
}

.success-panel {
  display: none;
  min-height: 294px;
  align-content: center;
  border: 1px solid rgba(10, 122, 98, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0, rgba(10, 122, 98, 0.12), transparent 44%),
    var(--accent-soft);
  padding: 26px;
  text-align: center;
}

.lead-form.is-sent + .success-panel,
.callback-form.is-sent + .callback-success {
  display: grid;
}

.success-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
}

.success-icon::before {
  content: "✓";
  font-size: 24px;
  font-weight: 760;
  line-height: 1;
}

.success-panel h3 {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 26px;
}

.success-panel p {
  max-width: 320px;
  margin: 0 auto;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.callback-widget {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.callback-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #04735c 0%, #045943 100%);
  box-shadow:
    0 18px 46px rgba(4, 89, 67, 0.24),
    0 0 0 1px rgba(4, 89, 67, 0.08);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
  padding: 13px 18px;
  animation: callback-nudge 8s ease-in-out infinite;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.callback-toggle::before {
  position: absolute;
  inset: -40% auto -40% -46%;
  z-index: -1;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.18),
    transparent
  );
  content: "";
  transform: skewX(-18deg);
  animation: callback-shine 4.6s ease-in-out infinite;
}

.callback-toggle::after {
  position: absolute;
  inset: -7px;
  z-index: -2;
  border: 1px solid rgba(10, 122, 98, 0.25);
  border-radius: inherit;
  content: "";
  opacity: 0;
  animation: callback-ring 3.6s ease-out infinite;
}

.callback-toggle:hover,
.callback-widget.is-open .callback-toggle {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 22px 58px rgba(4, 89, 67, 0.3),
    0 0 0 1px rgba(4, 89, 67, 0.1);
  transform: translateY(-2px);
  animation-play-state: paused;
}

.callback-toggle:focus-visible {
  outline: 3px solid rgba(10, 122, 98, 0.2);
  outline-offset: 3px;
}

.callback-toggle-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.02 3.54 7.1 5.98c.22.5.1 1.08-.3 1.46l-.65.62a9.46 9.46 0 0 0 3.78 3.78l.62-.65c.38-.4.96-.52 1.46-.3l2.45 1.08c.58.26.9.9.75 1.52l-.36 1.48c-.16.64-.73 1.08-1.39 1.08C7.1 16.05 1.95 10.9 1.95 4.54c0-.66.44-1.23 1.08-1.39l1.48-.36c.62-.15 1.26.17 1.52.75Z' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.02 3.54 7.1 5.98c.22.5.1 1.08-.3 1.46l-.65.62a9.46 9.46 0 0 0 3.78 3.78l.62-.65c.38-.4.96-.52 1.46-.3l2.45 1.08c.58.26.9.9.75 1.52l-.36 1.48c-.16.64-.73 1.08-1.39 1.08C7.1 16.05 1.95 10.9 1.95 4.54c0-.66.44-1.23 1.08-1.39l1.48-.36c.62-.15 1.26.17 1.52.75Z' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.callback-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(20, 23, 21, 0.16);
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: 100% 100%;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  visibility: hidden;
}

.callback-widget.is-open .callback-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.callback-form {
  border: 0;
  background: transparent;
  padding: 0;
}

.callback-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.callback-form h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.callback-success.success-panel {
  min-height: 252px;
  border: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(10, 122, 98, 0.13), transparent 48%),
    var(--accent-soft);
  padding: 24px 16px;
}

@keyframes callback-shine {
  0%,
  54% {
    left: -48%;
  }

  72%,
  100% {
    left: 128%;
  }
}

@keyframes callback-ring {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  14% {
    opacity: 1;
  }

  48%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes callback-nudge {
  0%,
  74%,
  100% {
    transform: translateY(0) rotate(0);
  }

  78% {
    transform: translateY(-2px) rotate(-1deg);
  }

  82% {
    transform: translateY(0) rotate(1deg);
  }

  86% {
    transform: translateY(-1px) rotate(-0.7deg);
  }

  90% {
    transform: translateY(0) rotate(0);
  }
}

.faq-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-list details[open] {
  background: linear-gradient(90deg, rgba(10, 122, 98, 0.04), transparent 72%);
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 680;
  list-style: none;
  padding: 17px 0;
  transition: color 0.16s ease;
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  float: right;
  color: var(--faint);
  content: "+";
  font-weight: 740;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  padding: 0 0 18px;
}

.site-footer {
  border-top: 0;
  background:
    radial-gradient(circle at 18% 0, rgba(10, 122, 98, 0.22), transparent 34%),
    linear-gradient(135deg, #111716 0%, #141512 100%);
  color: white;
}

.footer-content {
  padding: 44px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 30px;
}

.site-footer .brand img {
  filter: brightness(0) invert(1);
}

.footer-brand {
  display: grid;
  max-width: 500px;
  gap: 16px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.5;
}

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 18px;
}

.site-footer .button.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.site-footer .button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 16px;
}

.footer-contacts div {
  display: grid;
  gap: 6px;
}

.footer-contacts a {
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    color 0.16s ease,
    opacity 0.16s ease;
}

.footer-contacts span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-contacts a:hover {
  color: #93f1cf;
}

.company-details {
  display: grid;
  grid-template-columns: minmax(210px, 0.52fr) minmax(0, 1.48fr);
  gap: 28px;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.company-heading {
  display: grid;
  align-content: start;
  gap: 6px;
}

.company-name {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 760;
}

.company-heading span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.35;
}

.company-details dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0;
}

.company-details div {
  min-width: 0;
}

.company-details .wide {
  grid-column: span 2;
}

.company-details dt {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.company-details dl div:last-child {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    min-height: 62px;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    position: fixed;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    justify-self: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(20, 23, 21, 0.08);
    backdrop-filter: blur(16px);
    padding: 8px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .header-actions {
    justify-self: end;
  }

  .header-contact {
    display: none;
  }

  .cover-card img {
    aspect-ratio: 16 / 6;
  }

  .compare-block,
  .access-card {
    grid-template-columns: 1fr;
  }

  .compare-block article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .company-details {
    grid-template-columns: 1fr;
  }

  .callback-widget {
    right: 18px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    justify-content: stretch;
    min-height: 60px;
    padding: 10px 16px;
  }

  .site-header .brand {
    justify-self: start;
  }

  .brand img {
    width: 142px;
    max-height: 26px;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-content: center;
    justify-self: end;
    gap: 4px;
    order: initial;
    border-color: rgba(201, 197, 186, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(20, 23, 21, 0.045);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 0;
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(10, 122, 98, 0.26);
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    top: 68px;
    right: 16px;
    left: 16px;
    gap: 2px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(20, 23, 21, 0.12);
    backdrop-filter: none;
    padding: 6px;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 680;
    padding: 12px;
  }

  .site-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }

  h1 {
    font-size: clamp(31px, 9vw, 36px);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(25px, 7.2vw, 31px);
    line-height: 1.12;
  }

  .article-hero {
    padding: 26px 0 20px;
  }

  .hero-layout {
    gap: 16px;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.55;
  }

  .cta-row,
  .button {
    width: 100%;
  }

  .cta-row {
    gap: 12px;
  }

  .cta-row p {
    max-width: none;
    font-size: 13px;
  }

  .cover-card img {
    max-height: 132px;
    aspect-ratio: 16 / 7.2;
  }

  .article-layout {
    padding-top: 18px;
  }

  .toc {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: none;
    margin: 0 -16px 22px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc span {
    display: none;
  }

  .toc a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1;
    padding: 8px 10px;
    text-decoration: none;
  }

  .toc a.is-active {
    border-color: rgba(10, 122, 98, 0.24);
    background: var(--accent-soft);
  }

  .article-section {
    padding: 34px 0;
  }

  .article-section > p,
  .step-list p,
  .numbered-list li {
    font-size: 16px;
    line-height: 1.64;
  }

  .intro p {
    font-size: 17px;
    line-height: 1.58;
  }

  .intro p:first-child {
    font-size: 20px;
    line-height: 1.35;
  }

  .table-block {
    overflow: visible;
    margin: 22px 0 24px;
    border-radius: 8px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  caption {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    line-height: 1.35;
  }

  th {
    border-bottom: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 13px 14px 3px;
    text-transform: uppercase;
  }

  td {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
    padding: 0 14px 13px;
  }

  tr {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(245, 243, 238, 0.42), transparent 60%);
  }

  tr:last-child {
    border-bottom: 0;
  }

  tr:last-child th,
  tr:last-child td {
    border-bottom: 0;
  }

  .pull-quote {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.42;
    padding: 14px 0 14px 15px;
  }

  .note-list,
  .warning-box {
    margin: 22px 0;
    padding: 16px;
  }

  .step-list li,
  .numbered-list li {
    padding: 18px 0 18px 40px;
  }

  .step-list li::before,
  .numbered-list li::before {
    top: 20px;
  }

  .numbered-list + p {
    margin-top: 22px;
  }

  .access-card {
    gap: 18px;
    margin: 30px 0 36px;
    padding: 20px;
  }

  .access-card h2 {
    font-size: 29px;
  }

  .lead-form,
  .callback-form {
    gap: 10px;
    padding: 14px;
  }

  .lead-form input,
  .callback-form input {
    min-height: 46px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 22px;
  }

  .footer-content {
    padding-bottom: 112px;
  }

  .footer-actions,
  .footer-contacts {
    width: 100%;
    justify-items: stretch;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-actions .button {
    width: 100%;
  }

  .company-details {
    padding: 18px;
  }

  .company-details dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .company-details .wide,
  .company-details dl div:last-child {
    grid-column: auto;
  }

  .callback-widget {
    right: 14px;
    bottom: 14px;
    left: auto;
    justify-items: end;
  }

  .callback-toggle {
    width: auto;
    min-height: 46px;
    padding: 12px 15px;
  }

  .callback-toggle span:last-child {
    font-size: 0;
  }

  .callback-toggle span:last-child::after {
    content: "Звонок";
    font-size: 14px;
  }

  .callback-panel {
    right: 0;
    left: auto;
    width: min(358px, calc(100vw - 28px));
    padding: 14px;
    transform-origin: 100% 100%;
  }

  .callback-form h2 {
    font-size: 22px;
  }
}

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