:root {
  --indigo: #17204f;
  --blue: #123f73;
  --teal: #0f766e;
  --teal-dark: #0d5e59;
  --light-blue: #eef7fb;
  --pale-blue: #f6fbfd;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d8e3ec;
  --shadow: 0 18px 45px rgba(18, 63, 115, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 132px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--teal);
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.text-nowrap {
  white-space: nowrap;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-line {
  display: none;
}

.top-line__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
}

.top-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.contact-chip:hover {
  color: var(--white);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--white);
  font-size: 11px;
  line-height: 1;
}

.contact-icon--text {
  width: 24px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.contact-chip--messenger {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.contact-chip--messenger .contact-chip__text {
  display: none;
}

.header-main {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(420px, 1.25fr);
  align-items: start;
  justify-content: space-between;
  gap: 14px 34px;
  min-height: 0;
  padding: 18px 0 12px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand__name {
  color: var(--indigo);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}

.brand__tagline {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

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

.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--blue);
  background: transparent;
  font-size: 0;
  line-height: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-actions a:hover {
  color: var(--muted);
  background: rgba(238, 247, 251, 0.92);
}

.header-actions a[data-tooltip]::after,
.footer-actions .footer-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 30;
  display: block;
  width: max-content;
  max-width: 150px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 63, 115, 0.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.18s ease 0.24s,
    transform 0.18s ease 0.24s,
    visibility 0s linear 0.24s;
}

.header-actions a[data-tooltip]::after {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

.header-actions a[data-tooltip]:hover::after,
.header-actions a[data-tooltip]:focus-visible::after,
.footer-actions .footer-button[data-tooltip]:hover::after,
.footer-actions .footer-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.18s ease 0.24s,
    transform 0.18s ease 0.24s,
    visibility 0s linear 0s;
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
  .header-actions a[data-tooltip]::after,
  .footer-actions .footer-button[data-tooltip]::after {
    display: none;
  }
}

.header-actions a::before,
.footer-actions .footer-button::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.header-actions a[href*="wa.me"],
.footer-actions .footer-button[href*="wa.me"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.52 3.49A11.85 11.85 0 0 0 12.07 0C5.49 0 .14 5.35.14 11.93c0 2.1.55 4.15 1.59 5.96L0 24l6.27-1.65a11.9 11.9 0 0 0 5.8 1.48h.01c6.58 0 11.93-5.35 11.93-11.93 0-3.19-1.24-6.18-3.49-8.41zM12.08 21.8h-.01a9.88 9.88 0 0 1-5.04-1.38l-.36-.21-3.72.98.99-3.63-.23-.37a9.84 9.84 0 0 1-1.51-5.26c0-5.45 4.43-9.88 9.89-9.88a9.82 9.82 0 0 1 6.99 2.9 9.82 9.82 0 0 1 2.9 6.98c0 5.45-4.44 9.88-9.9 9.88zm5.42-7.4c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.64.07-.3-.15-1.25-.46-2.38-1.47-.88-.78-1.47-1.75-1.64-2.04-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51l-.57-.01c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.07 2.88 1.22 3.08c.15.2 2.1 3.21 5.09 4.5.71.31 1.27.49 1.7.63.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2.01-1.42.25-.7.25-1.3.17-1.42-.07-.12-.27-.2-.57-.35z'/%3E%3C/svg%3E");
}

.header-actions a[href*="t.me"],
.footer-actions .footer-button[href*="t.me"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.32 2.12 1.74 10.06c-1.4.56-1.39 1.34-.26 1.68l5.28 1.65 2.02 6.18c.26.72.13 1 .9 1 .69 0 1-.32 1.38-.69l3.31-3.22 6.88 5.08c1.26.69 2.17.33 2.49-1.17l4.51-21.25c.46-1.85-.71-2.69-1.93-2.2zM7.59 13.01 19.86 5.28c.61-.37 1.17-.17.71.24L10.06 15l-.4 4.2-2.07-6.19z'/%3E%3C/svg%3E");
}

.header-actions a[href*="instagram.com"],
.footer-actions .footer-button[href*="instagram.com"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.25'/%3E%3C/svg%3E");
}

.header-actions a[href*="max.ru"],
.footer-actions .footer-button[href*="max.ru"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19.5V6.9C5 4.18 7.18 2 9.9 2h4.2C17.91 2 21 5.09 21 8.9s-3.09 6.9-6.9 6.9h-3.74l-4.16 4.16c-.46.46-1.2.13-1.2-.46zm5.02-7.23h4.08a3.37 3.37 0 1 0 0-6.74H10c-1.11 0-2 .9-2 2v7.35l1.44-1.44c.16-.16.37-.25.58-.25z'/%3E%3C/svg%3E");
}

.header-actions a[href*="dzen.ru"],
.footer-actions .footer-button[href*="dzen.ru"] {
  --social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 4c-.5 3.34-2.66 5.5-6 6 3.34.5 5.5 2.66 6 6 .5-3.34 2.66-5.5 6-6-3.34-.5-5.5-2.66-6-6z'/%3E%3C/svg%3E");
}

.main-nav {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(216, 227, 236, 0.78);
  font-size: 13px;
  line-height: 1.25;
}

.main-nav a {
  color: var(--blue);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a[aria-current="page"] {
  color: var(--teal);
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--blue);
}

.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 74px;
  min-height: 610px;
  padding: 58px 0 62px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  color: var(--indigo);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 45px;
  line-height: 1.14;
  font-weight: 650;
}

h2 {
  margin-bottom: 16px;
  color: var(--indigo);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  color: var(--indigo);
  font-size: 19px;
  line-height: 1.3;
}

.hero__subtitle {
  color: #334155;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.58;
  max-width: 720px;
  margin-bottom: 22px;
}

.hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -8px 0 22px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.hero__roles span + span::before {
  content: "•";
  margin-right: 18px;
  color: var(--teal);
}

.hero__text {
  max-width: 700px;
  color: #334155;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  max-width: 720px;
  margin: 50px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.hero__trust-list div {
  color: var(--blue);
  line-height: 1.35;
}

.hero__actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.hero__actions {
  gap: 18px;
}

.hero__actions .button {
  min-height: 46px;
  padding: 11px 18px;
}

.hero .button--primary {
  box-shadow: none;
}

.hero .button--ghost {
  border-color: rgba(23, 32, 79, 0.58);
  background: var(--white);
  color: var(--indigo);
  box-shadow: none;
}

.hero .button--ghost:hover {
  background: var(--pale-blue);
  color: var(--indigo);
  border-color: var(--indigo);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button--primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button--primary:hover {
  background: var(--blue);
  color: var(--white);
}

.button--accent {
  background: var(--teal);
  color: var(--white);
}

.button--accent:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.button--ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue);
}

.hero__media {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.photo-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.photo-stage::before {
  content: none;
}

.photo-frame {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.photo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: 50% 50%;
}

.photo-frame--full {
  height: auto;
}

.section {
  padding: 82px 0;
}

.section--compact-top {
  padding-top: 42px;
}

.section--soft {
  background: var(--pale-blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--contact {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: var(--white);
}

.section--contact h2,
.section--contact .eyebrow {
  color: var(--white);
}

.section--contact a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.directions-grid,
.trust-grid,
.preview-grid,
.reviews-grid,
.cases-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.direction-card,
.trust-item,
.preview-card,
.review-card,
.rating-card,
.case-card,
.blog-card,
.aside-panel,
.note-panel,
.placeholder-panel,
.warning-panel,
.contact-details,
.request-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.direction-card,
.trust-item,
.preview-card,
.review-card,
.rating-card,
.case-card,
.blog-card {
  padding: 26px;
}

.review-card,
.rating-card {
  min-height: 240px;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.direction-card {
  min-height: 204px;
}

.trust-grid--facts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
}

.trust-grid--facts .trust-item {
  grid-column: span 2;
  display: flex;
  height: 216px;
  flex-direction: column;
  justify-content: flex-start;
}

.trust-grid--facts .trust-item:nth-child(4) {
  grid-column: 2 / span 2;
}

.trust-grid--facts .trust-item:nth-child(5) {
  grid-column: 4 / span 2;
}

.rating-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(145deg, var(--white), var(--light-blue));
}

.rating-card__stars {
  color: var(--teal);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.rating-card strong {
  color: var(--indigo);
  font-size: 42px;
  line-height: 1;
}

.rating-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.task-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 108px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.task-item::before {
  content: none;
}

.section--region {
  padding: 54px 0;
  background: var(--white);
}

.region-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.region-panel p {
  max-width: 760px;
  color: var(--muted);
}

.region-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 10px;
}

.region-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  font-weight: 700;
}

.direction-card__number,
.preview-card__type,
.case-card span,
.blog-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direction-card p,
.trust-item p,
.preview-card p,
.case-card p,
.blog-card p,
.review-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-card {
  display: block;
}

.case-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--white), var(--pale-blue));
}

.case-card__more {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal);
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
}

.review-card p {
  font-size: 18px;
}

.review-card span {
  display: block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.article-row:last-child {
  border-bottom: 1px solid var(--line);
}

.article-row span {
  color: var(--teal);
  font-weight: 700;
}

.article-row strong {
  color: var(--indigo);
  font-size: 18px;
}

.faq-index {
  display: grid;
  gap: 46px;
}

.faq-group {
  display: grid;
  gap: 18px;
}

.faq-group__heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.faq-group__heading h2 {
  margin: 0;
}

.faq-group__heading span {
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
}

.faq-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-card {
  display: grid;
  gap: 10px;
  min-height: 146px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  box-shadow: 0 10px 26px rgba(18, 63, 115, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-card:hover,
.faq-card:focus-visible {
  color: inherit;
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 14px 34px rgba(18, 63, 115, 0.1);
}

.faq-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 3px;
}

.faq-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.faq-card strong {
  color: var(--blue);
  font-size: 19px;
  line-height: 1.35;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--teal);
  font-weight: 700;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.faq-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.faq-answer {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 63, 115, 0.06);
}

.faq-answer p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.72;
}

.faq-answer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.faq-answer__list li::marker {
  color: var(--teal);
}

.faq-answer__info {
  padding: 20px 22px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--pale-blue);
}

.faq-answer__info p {
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
}

.faq-answer__info ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--blue);
  font-size: 17px;
  line-height: 1.6;
}

.faq-answer__info li::marker {
  color: var(--teal);
}

.faq-answer__note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 15px !important;
}

.faq-related {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.faq-related h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.faq-related a {
  padding-top: 10px;
  border-top: 1px solid rgba(18, 63, 115, 0.12);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.4;
}

.faq-related a:hover,
.faq-related a:focus-visible {
  color: var(--teal);
}

.faq-service-links {
  grid-column: 2;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-service-links h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.faq-service-links a {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.4;
}

.faq-service-links a:hover,
.faq-service-links a:focus-visible {
  color: var(--teal);
}

.faq-contact-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 8px;
  background: var(--indigo);
  color: var(--white);
}

.faq-contact-panel h2 {
  color: var(--white);
}

.faq-contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

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

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

.contact-block {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.contact-block__text p {
  color: rgba(255, 255, 255, 0.82);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  color: var(--text);
}

.request-form--single {
  grid-template-columns: 1fr;
}

.request-form h2 {
  margin-bottom: 0;
}

.request-form label {
  display: grid;
  gap: 7px;
}

.request-form span {
  color: var(--blue);
  font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  background: var(--white);
}

.request-form textarea {
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.form-full {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.page-hero {
  padding: 76px 0;
  background: linear-gradient(135deg, var(--light-blue), var(--white));
  border-bottom: 1px solid var(--line);
}

.page-hero--qualification {
  padding-bottom: 36px;
}

.page-hero__narrow {
  max-width: 860px;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 48px;
  align-items: center;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.page-hero--bio {
  padding: 72px 0 78px;
}

.bio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 76px;
  align-items: center;
}

.bio-photo {
  margin: 0;
}

.bio-photo img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 50%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bio-photo__placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: var(--pale-blue);
  box-shadow: none;
}

.bio-photo__placeholder {
  display: grid;
  place-items: center;
  padding: 34px;
  color: var(--blue);
  background: linear-gradient(145deg, var(--pale-blue), var(--white));
  text-align: center;
}

.bio-photo__placeholder span {
  max-width: 230px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.bio-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.bio-lead {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.bio-lead p {
  margin-bottom: 0;
}

.bio-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  max-width: 820px;
  margin: 26px 0 0;
  padding-left: 20px;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.45;
}

.bio-facts li::marker {
  color: var(--teal);
}

.portrait-image,
.content-aside img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
  box-shadow: var(--shadow);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 48px;
  align-items: start;
}

.content-main h2:not(:first-child) {
  margin-top: 34px;
}

.content-main p {
  color: var(--muted);
  font-size: 17px;
}

.bio-story-section {
  padding-top: 66px;
}

.bio-story {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  color: #334155;
  font-size: 18px;
  line-height: 1.78;
}

.bio-story p {
  margin-bottom: 0;
}

.bio-story h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.bio-text-block {
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.bio-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: #334155;
}

.bio-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.content-aside {
  display: grid;
  gap: 20px;
}

.aside-panel,
.note-panel,
.placeholder-panel,
.warning-panel,
.contact-details {
  padding: 26px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.qualification-grid,
.registry-grid,
.documents-gallery {
  display: grid;
  gap: 20px;
}

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

.qualification-card,
.registry-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.qualification-card h3,
.registry-card h3 {
  margin-bottom: 14px;
}

.qualification-card p,
.registry-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.qualification-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--white), var(--pale-blue));
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.qualification-confirmation h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.qualification-confirmation p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.qualification-confirmation .button {
  flex: 0 0 auto;
}

.registry-grid {
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(220px, 0.75fr));
  align-items: stretch;
}

.registry-card--wide {
  min-height: 260px;
}

.registry-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}

.registry-facts div {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--pale-blue);
}

.registry-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.registry-facts dd {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}

.registry-card__label {
  margin-bottom: 8px;
  color: var(--blue) !important;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: 2px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 22px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 6px var(--white);
}

.timeline__item p {
  margin: 0;
  padding: 2px 0 0;
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
}

.timeline--bio {
  max-width: 920px;
}

.timeline__content {
  display: grid;
  gap: 6px;
}

.timeline__year {
  color: var(--teal);
  font-size: 17px;
  font-weight: 700;
}

.timeline--bio .timeline__item p {
  color: var(--text);
  font-weight: 500;
}

.principles-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.75;
}

.documents-note {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.documents-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#documents {
  scroll-margin-top: 150px;
}

.document-card {
  display: grid;
  overflow: hidden;
  min-height: 300px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.document-card:hover,
.document-card:focus-visible {
  color: inherit;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 16px 34px rgba(18, 63, 115, 0.12);
  transform: translateY(-2px);
}

.document-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 3px;
}

.document-card__preview {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 210px;
  place-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(238, 247, 251, 0.92), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(0deg, rgba(18, 63, 115, 0.05) 0 1px, transparent 1px 12px);
}

.document-card__preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 4px;
}

.document-card__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.document-card__preview span {
  position: relative;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-card__title {
  display: block;
  padding: 16px 18px 18px;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.35;
}

body.is-modal-open {
  overflow: hidden;
}

.document-modal[hidden] {
  display: none;
}

.document-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.document-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 79, 0.62);
}

.document-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(23, 32, 79, 0.28);
}

.document-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.document-modal__close:hover,
.document-modal__close:focus-visible {
  color: var(--white);
  background: var(--teal);
}

.document-modal__dialog h3 {
  max-width: 680px;
  margin-bottom: 20px;
  padding-right: 42px;
}

.document-modal__preview {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.document-modal__preview img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

.document-modal__placeholder {
  display: grid;
  max-width: 420px;
  gap: 12px;
  text-align: center;
}

.document-modal__placeholder strong {
  color: var(--indigo);
  font-size: 22px;
}

.document-modal__placeholder span {
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 16px;
}

.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

a.service-item:hover,
a.service-item:focus-visible {
  padding-right: 22px;
  padding-left: 22px;
  color: inherit;
  border-color: rgba(15, 118, 110, 0.34);
  border-radius: 8px;
  background: var(--pale-blue);
}

a.service-item:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 3px;
}

.service-item--priority {
  position: relative;
}

.service-item--priority::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: -14px;
  width: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.service-item > span {
  color: var(--teal);
  font-weight: 700;
  font-size: 20px;
}

.service-item p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.service-item__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-size: 14px;
}

.service-note {
  margin-top: 34px;
  padding: 22px 26px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--pale-blue);
}

.service-note p {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 700;
}

.page-hero--service {
  padding-bottom: 58px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

.service-detail-main {
  display: grid;
  gap: 30px;
}

.service-detail-block {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.service-detail-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-detail-block p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.detail-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-detail-aside {
  position: sticky;
  top: 160px;
}

.service-contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 63, 115, 0.08);
}

.service-contact-card .request-form {
  padding: 0;
  box-shadow: none;
}

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

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.case-study {
  display: grid;
  gap: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 63, 115, 0.06);
}

.case-study__section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.case-study__section:first-child {
  padding-top: 0;
}

.case-study__section h2,
.case-study__summary h2 {
  margin-bottom: 14px;
}

.case-study__section p,
.case-study__summary p {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.72;
}

.case-study__section p:last-child,
.case-study__summary p:last-child {
  margin-bottom: 0;
}

.case-study__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.case-study__list li::marker {
  color: var(--teal);
}

.case-study__summary {
  margin-top: 28px;
  padding: 24px;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--pale-blue);
}

.case-study__summary h2,
.case-study__summary p {
  color: var(--blue);
}

.case-aside {
  position: sticky;
  top: 150px;
  display: grid;
  gap: 14px;
}

.case-aside__card,
.case-aside__links {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.case-aside__card span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-aside__card strong {
  color: var(--blue);
}

.case-aside__links {
  display: grid;
  gap: 10px;
}

.case-aside__links a {
  color: var(--blue);
  font-weight: 700;
}

.case-aside__links a:hover {
  color: var(--teal);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.price-layout,
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.price-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.price-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row span {
  padding: 18px 20px;
}

.price-row span:first-child {
  color: var(--blue);
  font-weight: 700;
  background: var(--pale-blue);
}

.price-row--head span {
  color: var(--white);
  background: var(--indigo);
  font-weight: 700;
}

.price-table--services .price-row {
  grid-template-columns: 1.05fr 0.95fr 1.35fr;
}

.price-note {
  max-width: 860px;
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  background: var(--pale-blue);
  color: var(--blue);
  font-weight: 700;
}

.cost-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.cost-calculator__form {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 63, 115, 0.08);
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calculator-panel[hidden],
.calculator-field[hidden] {
  display: none;
}

.calculator-field {
  display: grid;
  gap: 8px;
}

.calculator-field--full,
.calculator-source-note,
.calculator-checks,
.calculator-fieldset,
.consultation-panel {
  grid-column: 1 / -1;
}

.calculator-field span,
.calculator-checks span,
.calculator-fieldset legend,
.calculator-option-list span {
  color: var(--blue);
  font-weight: 700;
}

.calculator-field input,
.calculator-field select,
.calculator-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  background: var(--white);
}

.calculator-field textarea {
  resize: vertical;
}

.calculator-field input:focus,
.calculator-field select:focus,
.calculator-field textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.calculator-source-note,
.calculator-description {
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--pale-blue);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.55;
}

.calculator-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.calculator-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.calculator-checks input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.calculator-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.calculator-fieldset legend {
  margin-bottom: 12px;
}

.calculator-option-list {
  display: grid;
  gap: 10px;
}

.calculator-option-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.calculator-option-list input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.consultation-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.consultation-panel h3,
.consultation-panel p,
.consultation-panel .button,
.consultation-panel .form-status {
  grid-column: 1 / -1;
}

.consultation-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.calculator-output {
  position: sticky;
  top: 160px;
  padding: 28px;
  border-radius: 8px;
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 18px 45px rgba(18, 63, 115, 0.16);
}

.calculator-output__label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-output strong {
  display: block;
  color: var(--white);
  font-size: 30px;
  line-height: 1.16;
}

.calculator-output p {
  color: rgba(255, 255, 255, 0.78);
}

.calculator-breakdown {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.calculator-breakdown li {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.calculator-breakdown span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.calculator-breakdown strong {
  color: var(--white);
  font-size: 15px;
}

.calculator-disclaimer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  line-height: 1.55;
}

.calculator-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

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

.calculator-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.calculator-block__text p {
  color: var(--muted);
}

.calculator-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.calculator-preview label {
  display: grid;
  gap: 7px;
}

.calculator-preview span {
  color: var(--blue);
  font-weight: 700;
}

.calculator-preview select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  background: var(--white);
}

.calculator-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: var(--light-blue);
}

.calculator-result strong {
  color: var(--indigo);
  font-size: 20px;
}

.calculator-preview > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.note-panel p,
.placeholder-panel p,
.warning-panel p {
  color: var(--muted);
}

.warning-panel {
  border-color: rgba(15, 118, 110, 0.32);
  background: var(--light-blue);
}

.warning-panel p {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.reviews-grid--page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.center-actions {
  justify-content: center;
}

.reviews-actions {
  margin-top: 30px;
  margin-bottom: 30px;
}

.reviews-actions .button {
  width: auto;
}

.contact-details dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-details div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-details dt {
  color: var(--teal);
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  color: var(--text);
}

.contact-details dd p:last-child {
  margin-bottom: 0;
}

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

.office-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale-blue);
}

.office-card strong {
  color: var(--indigo);
}

.contact-map {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.contact-map__note {
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

.contact-map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px 18px 0;
}

.contact-map__links a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.service-link-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 63, 115, 0.06);
}

.service-link-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-link-card strong {
  color: var(--indigo);
  font-size: 19px;
  line-height: 1.25;
}

.service-link-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  background: var(--indigo);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.75fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-grid p,
.footer-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
}

.footer-identity {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-identity strong {
  color: var(--white);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

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

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

.footer-contacts p {
  margin-bottom: 0;
}

.footer-offices span {
  display: block;
}

.footer-offices p {
  display: grid;
  gap: 4px;
}

.footer-actions {
  display: flex;
  align-content: start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-actions .footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 31px;
  height: 31px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-actions .footer-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-actions .footer-title {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.footer-title {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.86);
}

.footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .header-main {
    position: relative;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .header-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 11px 0;
  }

  .hero__grid,
  .page-hero__grid,
  .contact-block,
  .content-grid,
  .service-detail-grid,
  .cost-calculator,
  .price-layout,
  .contacts-layout,
  .region-panel,
  .faq-detail,
  .case-detail,
  .faq-contact-panel,
  .calculator-block {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
  }

  .hero__media {
    justify-content: flex-start;
  }

  .photo-stage {
    max-width: 360px;
  }

  .page-hero__grid {
    gap: 28px;
  }

  .bio-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .bio-photo {
    order: -1;
    max-width: 340px;
  }

  .portrait-image,
  .content-aside img {
    width: 330px;
    max-width: 100%;
  }

  .directions-grid,
  .trust-grid,
  .preview-grid,
  .reviews-grid,
  .tasks-grid,
  .qualification-grid,
  .services-directory,
  .cases-grid,
  .blog-grid,
  .reviews-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-card--featured {
    grid-column: auto;
  }

  .case-aside {
    position: static;
  }

  .registry-card,
  .registry-card--wide {
    min-height: auto;
  }

  .qualification-confirmation {
    align-items: flex-start;
    flex-direction: column;
  }

  .calculator-output {
    position: static;
  }

  .faq-related {
    position: static;
  }

  .faq-service-links {
    grid-column: auto;
  }

  .service-detail-aside {
    position: static;
  }

  .documents-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid--facts .trust-item,
  .trust-grid--facts .trust-item:nth-child(4),
  .trust-grid--facts .trust-item:nth-child(5) {
    grid-column: auto;
    height: auto;
    min-height: 214px;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 162px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .brand__tagline {
    max-width: 250px;
  }

  .brand__name {
    font-size: 19px;
  }

  .brand__tagline {
    font-size: 12px;
  }

  .header-main {
    padding: 14px 0 12px;
    gap: 10px 14px;
  }

  .header-panel {
    gap: 10px;
  }

  .header-contacts {
    width: 100%;
    justify-content: flex-start;
    gap: 5px 14px;
  }

  .header-contacts a {
    font-size: 13px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions a {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .hero__grid,
  .section,
  .page-hero {
    padding: 50px 0;
  }

  .page-hero--qualification {
    padding-bottom: 24px;
  }

  .page-hero--bio {
    padding: 50px 0;
  }

  .hero__grid {
    gap: 32px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__roles {
    display: grid;
    gap: 6px;
    font-size: 16px;
  }

  .hero__roles span + span::before {
    content: none;
  }

  .hero__text,
  .page-hero p {
    font-size: 16px;
  }

  .bio-story-section {
    padding-top: 44px;
  }

  .bio-story {
    gap: 16px;
    font-size: 16px;
    line-height: 1.68;
  }

  .bio-story h2 {
    font-size: 23px;
  }

  .bio-list--columns {
    grid-template-columns: 1fr;
  }

  .bio-facts {
    grid-template-columns: 1fr;
    font-size: 15px;
  }

  .principles-panel {
    padding: 26px 0;
  }

  .principles-panel p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero__actions,
  .center-actions,
  .cta-panel,
  .split-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .photo-stage {
    min-height: 0;
  }

  .photo-stage::before {
    content: none;
  }

  .photo-frame--full {
    height: auto;
  }

  .photo-frame img {
    object-position: 50% 50%;
  }

  .hero__trust-list {
    grid-template-columns: 1fr;
    font-size: 13px;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
  }

  .hero__actions .button {
    width: auto;
  }

  .reviews-actions {
    align-items: stretch;
  }

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

  .directions-grid,
  .trust-grid,
  .preview-grid,
  .reviews-grid,
  .tasks-grid,
  .qualification-grid,
  .registry-grid,
  .documents-gallery,
  .services-directory,
  .faq-card-grid,
  .cases-grid,
  .blog-grid,
  .reviews-grid--page {
    grid-template-columns: 1fr;
  }

  .region-tags {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-grid--facts .trust-item {
    height: auto;
    min-height: 0;
  }

  .qualification-card,
  .registry-card {
    min-height: auto;
    padding: 22px;
  }

  .section--compact-top {
    padding-top: 28px;
  }

  .qualification-confirmation {
    margin-top: 24px;
    padding: 22px;
  }

  .qualification-confirmation h2 {
    font-size: 24px;
  }

  .registry-facts {
    grid-template-columns: 1fr;
  }

  .timeline__item p {
    font-size: 16px;
  }

  .document-card {
    min-height: 250px;
  }

  .document-card__preview {
    min-height: 170px;
  }

  .document-modal {
    padding: 14px;
  }

  .document-modal__dialog {
    max-height: calc(100vh - 28px);
    padding: 22px;
  }

  .document-modal__preview {
    min-height: 360px;
    padding: 20px;
  }

  .article-row,
  .service-item,
  .price-row,
  .price-table--services .price-row,
  .calculator-panel,
  .calculator-checks,
  .calculator-option-list,
  .faq-actions,
  .consultation-panel,
  .calculator-preview {
    grid-template-columns: 1fr;
  }

  .faq-group__heading {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .faq-card,
  .faq-answer,
  .case-study,
  .faq-related,
  .faq-service-links,
  .faq-contact-panel {
    padding: 22px;
  }

  .faq-answer p {
    font-size: 16px;
  }

  .faq-answer__list,
  .case-study__list {
    font-size: 16px;
  }

  .case-study__section p,
  .case-study__summary p {
    font-size: 16px;
  }

  .article-row {
    gap: 6px;
  }

  .service-item {
    gap: 10px;
  }

  .service-item--priority::before {
    display: none;
  }

  a.service-item:hover,
  a.service-item:focus-visible {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }

  .service-note {
    padding: 18px 20px;
  }

  .service-actions {
    grid-template-columns: 1fr;
  }

  .cost-calculator__form,
  .calculator-output {
    padding: 22px;
  }

  .calculator-output strong {
    font-size: 24px;
  }

  .request-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
