@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Spectral:wght@400;500;600&display=swap");

:root {
  --ink: #0b1f3a;
  --graphite: #243b53;
  --navy: #1f3554;
  --blue: #b08d57;
  --steel: #5b6778;
  --line: #e5ddd1;
  --paper: #f7f5f0;
  --white: #ffffff;
  --accent: #b08d57;
  --accent-dark: #8e6d3d;
  --mint: #f2ebde;
  --shadow: 0 24px 70px rgba(18, 61, 79, 0.14);
}

:root[data-theme="slate"] {
  --ink: #0f172a;
  --graphite: #1f2937;
  --navy: #0f2f4a;
  --blue: #0d9488;
  --steel: #64748b;
  --line: #dbe5ea;
  --paper: #f8fafc;
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --mint: #e8f7f4;
}

:root[data-theme="brass"] {
  --ink: #0b1f3a;
  --graphite: #243b53;
  --navy: #1f3554;
  --blue: #b08d57;
  --steel: #5b6778;
  --line: #e5ddd1;
  --paper: #f7f5f0;
  --accent: #b08d57;
  --accent-dark: #8e6d3d;
  --mint: #f2ebde;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.site-header:hover {
  border-color: rgba(59, 183, 167, 0.34);
  box-shadow: 0 12px 40px rgba(18, 61, 79, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(18, 61, 79, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--steel);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 650;
}

.main-nav > a,
.nav-dropdown > button {
  min-height: 42px;
  padding: 10px 12px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.main-nav > a:hover,
.nav-dropdown > button:hover {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.submenu-link {
  display: none;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: min(440px, 72vw);
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 4px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: menuDrop 180ms ease both;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: grid;
}

.dropdown-panel a {
  padding: 9px 11px;
  color: var(--graphite);
  font-size: 13px;
}

.dropdown-panel a:hover {
  background: var(--paper);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.button.primary:hover,
.nav-cta:hover {
  background: linear-gradient(135deg, #52d3c3, var(--accent-dark));
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 138, 124, 0.2);
}

.nav-cta {
  position: relative;
  gap: 8px;
  padding-inline: 18px 16px;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(15, 138, 124, 0.22);
  white-space: nowrap;
}

.nav-cta::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}

.nav-cta:hover::after {
  transform: translateX(3px);
}

.site-header .nav-cta {
  outline: 1px solid rgba(59, 183, 167, 0.18);
  outline-offset: 3px;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent-dark);
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-band {
  background: var(--paper);
}

.page-hero {
  padding: 86px 0 70px;
  color: var(--white);
  background: url("assets/hero-tax-shield.png") center / cover no-repeat;
  animation: heroPan 18s ease-in-out infinite alternate;
}

.image-bg {
  position: relative;
  color: var(--white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

.image-bg h1,
.image-bg h2,
.image-bg h3 {
  color: var(--white);
}

.image-bg article h2,
.image-bg article h3 {
  color: var(--ink);
}

.image-bg article p {
  color: var(--steel);
}

.image-bg .price-grid article.featured h3 {
  color: var(--white);
}

.image-bg .lead,
.image-bg .rich-text,
.image-bg .rich-text p {
  color: rgba(255, 255, 255, 0.78);
}

.bg-home {
  background-image: url("img/main.jpeg");
}

.bg-cases {
  background-image: url("img/cases.jpeg");
}

.bg-contact {
  background-image: url("img/contacts.jpeg");
}

.bg-audit {
  background-image: url("img/audit.jpeg");
}

.bg-vat {
  background-image: url("img/nds.jpeg");
}

.bg-disputes {
  background-image: url("img/disputes.jpeg");
}

.bg-court {
  background-image: url("img/court.jpeg");
}

.bg-architecture {
  background-image: url("img/architecture.jpeg");
}

.bg-about {
  background-image: url("img/about.jpeg");
}

.page-hero.bg-home,
.page-hero.bg-cases,
.page-hero.bg-contact,
.page-hero.bg-audit,
.page-hero.bg-vat,
.page-hero.bg-disputes,
.page-hero.bg-court,
.page-hero.bg-architecture,
.page-hero.bg-about,
.hero.bg-home,
.section-band.bg-cases,
.section-band.bg-contact,
.section-band.bg-about {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero .section-inner {
  padding: 0;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 64px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--white);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.content-main {
  max-width: 820px;
}

.content-main p,
.content-main li {
  color: var(--graphite);
  font-size: 18px;
}

.content-main ul {
  padding-left: 22px;
}

.content-main li + li {
  margin-top: 10px;
}

.sidebar-box {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(18, 61, 79, 0.08);
}

.sidebar-box nav {
  display: grid;
  gap: 10px;
}

.sidebar-box a {
  color: var(--blue);
  font-weight: 750;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-list article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.case-catalog {
  display: grid;
  gap: 20px;
}

.case-catalog article {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.metric-row span {
  display: block;
  padding: 16px;
  color: var(--navy);
  background: var(--mint);
  border-left: 4px solid var(--accent);
  font-weight: 800;
}

.section-inner,
.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-inner {
  padding: 88px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 0 56px;
  color: var(--white);
  background: url("assets/hero-tax-shield.png") center / cover no-repeat;
  animation: heroPan 18s ease-in-out infinite alternate;
}

.hero.bg-home {
  background-image: url("img/main.jpeg");
}

.hero-copy,
.hero-visual,
.visual-card,
.stats-grid article,
.service-grid article,
.price-grid article,
.blog-grid article,
.case-card,
.footer-col,
.footer-brand {
  min-width: 0;
}

.hero.section-band {
  width: 100%;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 660px;
  font-size: clamp(38px, 4.1vw, 56px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.3);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.22;
}

.lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.lead.small {
  color: var(--steel);
  font-size: 18px;
}

.hero-actions,
.trust-row,
.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 32px 0 36px;
}

.trust-row span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-copy .eyebrow {
  color: rgba(229, 255, 249, 0.98);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg, transparent, rgba(59, 183, 167, 0.22), transparent 34%);
  animation: rotateGlow 12s linear infinite;
}

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

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(16px, 1.8vw, 28px);
  height: 100%;
}

.visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--ink);
  background: linear-gradient(135deg, rgba(246, 250, 250, 0.94), rgba(225, 238, 238, 0.94), rgba(246, 250, 250, 0.94));
  background-size: 200% 200%;
  border-top: 6px solid var(--accent);
  box-shadow: 0 18px 42px rgba(5, 28, 38, 0.12);
  animation: cardFloat 7s ease-in-out infinite, bgPan 8s ease-in-out infinite;
  transition: box-shadow 260ms ease;
  will-change: transform, background-position;
}

.visual-card:hover {
  box-shadow: 0 26px 58px rgba(5, 28, 38, 0.2);
}

.visual-card.dark {
  color: var(--white);
  background: linear-gradient(135deg, rgba(18, 61, 79, 0.98), rgba(24, 85, 105, 0.98), rgba(18, 61, 79, 0.98));
  background-size: 200% 200%;
}

.visual-card:nth-child(2) {
  animation-delay: -1.7s, -2s;
}

.visual-card:nth-child(3) {
  animation-delay: -3.5s, -4s;
}

.visual-card:nth-child(4) {
  animation-delay: -5.2s, -6s;
}


.visual-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-card strong {
  max-width: 360px;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.visual-card:not(.large) strong {
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.16;
}

.visual-icon {
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 52px);
  height: clamp(42px, 4vw, 52px);
  margin-bottom: clamp(12px, 1.8vw, 22px);
  color: var(--accent);
  border: 1px solid rgba(59, 183, 167, 0.42);
  background: rgba(59, 183, 167, 0.08);
}

.visual-card.dark .visual-icon {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.visual-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.section-heading.wide {
  max-width: 920px;
}

.stats-grid,
.service-grid,
.price-grid,
.blog-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(5, 1fr);
}

.stats-grid article,
.service-grid article,
.price-grid article,
.blog-grid article,
.case-card,
.contact-form {
  border: 1px solid var(--line);
  background: var(--white);
}

.stats-grid article,
.service-grid article,
.price-grid article,
.blog-grid article,
.case-card,
.case-catalog article,
.compact-list article {
  position: relative;
  overflow: hidden;
}

.stats-grid article::before,
.service-grid article::before,
.price-grid article::before,
.blog-grid article::before,
.case-card::before,
.case-catalog article::before,
.compact-list article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(59, 183, 167, 0.12), transparent 38%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}


.stats-grid article:hover::before,
.service-grid article:hover::before,
.price-grid article:hover::before,
.blog-grid article:hover::before,
.case-card:hover::before,
.case-catalog article:hover::before,
.compact-list article:hover::before {
  opacity: 1;
}

.stats-grid article {
  min-height: 190px;
  padding: 22px;
  padding-top: 76px;
}

.stats-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stats-grid span,
.service-grid p,
.price-grid p,
.blog-grid span,
.rich-text {
  color: var(--steel);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.rich-text {
  font-size: 19px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid article,
.price-grid article,
.blog-grid article {
  min-height: 220px;
  padding: 26px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-grid article {
  display: flex;
  flex-direction: column;
}

.service-grid article h3 {
  margin-bottom: 12px;
}

.service-grid article p {
  margin-bottom: 0;
}

.service-grid article .text-link {
  margin-top: auto;
  padding-top: 14px;
}

.blog-grid article {
  display: block;
}

.blog-grid .auto-icon {
  display: inline-grid;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 12px;
}

.auto-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: var(--accent-dark);
  border: 1px solid rgba(59, 183, 167, 0.32);
  background: linear-gradient(135deg, rgba(59, 183, 167, 0.12), rgba(25, 123, 141, 0.08));
}

.stats-grid .auto-icon {
  position: absolute;
  top: 20px;
  left: 22px;
}

.auto-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-grid article:hover,
.blog-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 183, 167, 0.4);
  box-shadow: 0 18px 44px rgba(18, 61, 79, 0.1);
}

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

.case-head h2 {
  max-width: 860px;
}

.case-controls {
  display: flex;
  gap: 10px;
}

.icon-button {
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--navy);
  border: 0;
  font-size: 30px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.case-slider {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 16px;
  overflow: hidden;
}

.case-card {
  min-height: 270px;
  padding: 28px;
  opacity: 0.46;
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.case-card.active {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-4px);
}

.case-card span,
.blog-grid span {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-grid article.featured {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.price-grid article.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.price-grid strong {
  display: block;
  margin-top: 28px;
  color: var(--accent);
  font-size: 24px;
}

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

.contact-layout {
  display: grid;
  gap: clamp(30px, 4vw, 42px);
  align-items: start;
}

.messengers {
  margin-top: 28px;
}

.messengers a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .contact-form {
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
  }
  .contact-form label:nth-of-type(4) {
    grid-column: 1 / -1;
  }
  .contact-form .form-note {
    grid-column: 2 / -1;
    align-self: center;
    justify-self: end;
    text-align: right;
  }
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(59, 183, 167, 0.28);
  border-color: var(--accent);
}

.form-note {
  margin: 0;
  color: var(--steel);
  font-size: 13px;
}

.site-footer {
  padding: 58px clamp(18px, 4vw, 56px) 28px;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(18, 35, 47, 0.98), rgba(18, 61, 79, 0.96)),
    radial-gradient(circle at 82% 10%, rgba(59, 183, 167, 0.2), transparent 28%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.2fr)
    minmax(155px, 0.62fr)
    minmax(260px, 0.96fr)
    minmax(155px, 0.62fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  color: var(--white);
}

.footer-logo .brand-logo {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.footer-logo small {
  color: rgba(255, 255, 255, 0.62);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col strong {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-col[aria-label="Ключевые услуги"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 8px;
  align-content: start;
}

.footer-col[aria-label="Ключевые услуги"] strong {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.footer-col[aria-label="Ключевые услуги"] a {
  display: block;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 36px rgba(15, 138, 124, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 138, 124, 0.36);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px 22px;
  width: min(1180px, 100%);
  margin: 42px auto 0;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-bottom span {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.footer-bottom a {
  grid-column: 2;
  justify-self: end;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy.reveal,
.hero-visual.reveal {
  opacity: 1;
  transform: none;
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPan {
  from {
    background-position: center center;
  }
  to {
    background-position: 58% 48%;
  }
}

@keyframes rotateGlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes botPulse {
  0%,
  100% {
    box-shadow: 0 18px 46px rgba(15, 138, 124, 0.2);
  }
  50% {
    box-shadow: 0 18px 58px rgba(15, 138, 124, 0.38);
  }
}

@keyframes bgPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes botRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) translate(var(--px, 0px), var(--py, 0px));
  }
  50% {
    transform: translateY(-7px) translate(var(--px, 0px), var(--py, 0px));
  }
}

.site-footer strong,
.site-footer a {
  color: var(--white);
}

.service-rich {
  display: grid;
  gap: 18px;
}

.service-rich-intro {
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #ffffff, #f7fbfb);
  box-shadow: 0 10px 24px rgba(12, 42, 60, 0.05);
}

.service-rich-intro p {
  margin: 0;
  color: var(--graphite);
  line-height: 1.72;
}

.service-quickbar {
  position: sticky;
  top: 88px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.service-quickbar strong {
  color: var(--navy);
  font-size: 14px;
}

.service-quickbar a {
  padding: 7px 10px;
  color: var(--blue);
  border: 1px solid rgba(25, 123, 141, 0.2);
  background: #f6fbfb;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.service-quickbar a:hover {
  border-color: rgba(59, 183, 167, 0.45);
  background: #ecf9f6;
  transform: translateY(-1px);
}

.service-callout {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, #effaf7, #f8fcfc);
}

.service-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.service-callout p {
  margin: 0;
  color: var(--graphite);
  line-height: 1.7;
}

.theme-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.theme-switch strong {
  color: var(--navy);
  font-size: 14px;
}

.theme-btn {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--graphite);
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.theme-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 183, 167, 0.45);
}

.theme-btn.is-active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px rgba(15, 61, 79, 0.14);
}

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

.service-facts-grid article,
.service-panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(12, 42, 60, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-facts-grid article:hover,
.service-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 183, 167, 0.45);
  box-shadow: 0 18px 34px rgba(12, 42, 60, 0.1);
}

.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  border: 1px solid rgba(59, 183, 167, 0.45);
  background: rgba(59, 183, 167, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.service-facts-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.service-facts-grid p,
.service-panel p,
.service-panel li {
  color: var(--steel);
  line-height: 1.72;
}

.service-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(26px, 3.3vw, 36px);
}

.service-panel ul {
  margin: 0;
  padding-left: 22px;
}

.service-panel li + li {
  margin-top: 10px;
}

.service-panel-dark {
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, rgba(18, 61, 79, 0.98), rgba(24, 85, 105, 0.98));
  border-color: rgba(255, 255, 255, 0.14);
}

.service-panel-dark h2,
.service-panel-dark p,
.service-panel-dark li {
  color: rgba(255, 255, 255, 0.9);
}

.service-panel-dark .panel-icon {
  color: #d9fff8;
  border-color: rgba(217, 255, 248, 0.38);
  background: rgba(217, 255, 248, 0.14);
}

.recommend-strip {
  display: grid;
  gap: 18px;
}

.recommend-head {
  display: grid;
  gap: 10px;
  padding: 24px 26px;
  border: 1px solid rgba(176, 141, 87, 0.22);
  background:
    linear-gradient(135deg, rgba(176, 141, 87, 0.14), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 92% 18%, rgba(176, 141, 87, 0.18), transparent 26%);
  box-shadow: 0 16px 34px rgba(18, 61, 79, 0.06);
}

.recommend-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(176, 141, 87, 0.22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recommend-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
}

.recommend-head p {
  margin: 0;
  max-width: 760px;
  color: var(--graphite);
  line-height: 1.72;
}

.recommend-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.recommend-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(12, 42, 60, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.recommend-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(176, 141, 87, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.recommend-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 141, 87, 0.4);
  box-shadow: 0 20px 42px rgba(12, 42, 60, 0.12);
}

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

.recommend-card strong,
.recommend-card h3,
.recommend-card p,
.recommend-card span {
  position: relative;
  z-index: 1;
}

.recommend-card strong {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recommend-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.24;
}

.recommend-card p {
  margin: 0;
  color: var(--steel);
  line-height: 1.68;
}

.recommend-card span {
  align-self: end;
  color: var(--accent-dark);
  font-weight: 800;
}


@media (max-width: 1080px) {
  .stats-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-quickbar {
    position: static;
  }

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

  h1 {
    font-size: clamp(36px, 6vw, 54px);
  }

  .hero-visual {
    min-height: 620px;
  }

  .visual-card strong {
    font-size: clamp(24px, 4vw, 36px);
  }

  .visual-card:not(.large) strong {
    font-size: clamp(22px, 3.4vw, 32px);
  }

  .case-slider {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

}

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

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

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

  .nav-dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: start;
    gap: 6px;
  }

  .nav-dropdown > button:first-child {
    display: none;
  }

  .submenu-link {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    color: inherit;
  }

  .submenu-link:hover {
    color: var(--blue);
  }

  .nav-dropdown > button:first-child,
  .submenu-link {
    text-align: left;
  }

  .submenu-toggle {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    padding: 10px 8px;
    color: var(--graphite);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
  }

  .submenu-toggle[aria-expanded="true"] {
    color: var(--blue);
  }

  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown:focus-within .dropdown-panel,
  .dropdown-panel {
    display: none;
  }

  .nav-dropdown.open .dropdown-panel {
    display: grid;
  }

  .dropdown-panel {
    position: static;
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    box-shadow: none;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .split,
  .price-grid,
  .content-layout,
  .metric-row {
    grid-template-columns: 1fr;
  }

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

  .service-quickbar {
    gap: 8px;
    padding: 10px;
  }

  .service-quickbar a {
    font-size: 13px;
  }

  .recommend-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .theme-switch {
    padding: 10px;
  }

  .sidebar-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    top: 70px;
    max-height: calc(100dvh - 70px);
  }

  .section-inner {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    padding: 14px;
    background: rgba(6, 21, 30, 0.58);
    backdrop-filter: blur(3px);
  }

  h1 {
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.08;
  }

  .lead {
    font-size: 19px;
  }

  .hero-copy .eyebrow {
    font-size: 13px;
  }

  .trust-row span {
    font-size: 14px;
  }

  .stats-grid,
  .service-grid,
  .blog-grid,
  .case-slider {
    grid-template-columns: 1fr;
  }

  .stats-grid article,
  .service-grid article,
  .price-grid article,
  .blog-grid article,
  .case-card {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
    padding: 16px;
  }

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

  .visual-card,
  .visual-card.large,
  .visual-card:nth-child(2),
  .visual-card:nth-child(3),
  .visual-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    min-height: 180px;
  }

  .visual-card.large {
    min-height: 180px;
  }

  .visual-card strong,
  .visual-card:not(.large) strong {
    font-size: clamp(21px, 7vw, 26px);
    line-height: 1.12;
  }

  .case-head,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-col[aria-label="Ключевые услуги"] {
    grid-template-columns: 1fr;
  }

  .dropdown-panel {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-bottom span {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-bottom a {
    grid-column: 1;
    justify-self: start;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Redesign aligned to the standalone reference:
   editorial typography, pale surfaces, navy accents, thin borders. */
:root {
  --ink: #14213d;
  --graphite: #39414f;
  --navy: #1d4078;
  --blue: #1d4078;
  --steel: #717a8a;
  --line: #d9e0ea;
  --paper: #f6f7f9;
  --white: #ffffff;
  --accent: #1d4078;
  --accent-dark: #16335f;
  --mint: #eef2f8;
  --shadow: 0 18px 48px rgba(20, 33, 61, 0.08);
}

html {
  background: var(--paper);
}

body {
  color: var(--graphite);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    linear-gradient(180deg, #f6f7f9 0%, #eef2f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(29, 64, 120, 0.06), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(29, 64, 120, 0.05), transparent 26%);
  opacity: 0.9;
}

body > * {
  position: relative;
}

.site-header {
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgba(246, 247, 249, 0.9);
  border-bottom: 1px solid rgba(217, 224, 234, 0.92);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.site-header:hover {
  border-color: rgba(29, 64, 120, 0.22);
  box-shadow: none;
}

.brand {
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.brand strong,
.footer-brand strong {
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand small,
.footer-brand small {
  margin-top: 2px;
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  gap: 2px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
}

.main-nav > a,
.nav-dropdown > button,
.submenu-link {
  min-height: 40px;
  padding: 10px 12px;
}

.main-nav > a:hover,
.nav-dropdown > button:hover,
.submenu-link:hover {
  color: var(--accent);
}

.dropdown-panel {
  width: min(460px, 72vw);
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dropdown-panel a {
  padding: 10px 12px;
  font-size: 13px;
}

.dropdown-panel a:hover {
  background: var(--paper);
}

.nav-cta,
.button,
.footer-cta {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-cta,
.button.primary,
.footer-cta {
  color: var(--white);
  background: var(--accent);
  box-shadow: none;
}

.button.primary:hover,
.nav-cta:hover,
.footer-cta:hover {
  background: var(--accent-dark);
  box-shadow: none;
  transform: translateY(-1px);
}

.nav-cta::after {
  content: "";
}

.site-header .nav-cta {
  outline: none;
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(29, 64, 120, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover {
  border-color: rgba(29, 64, 120, 0.34);
  background: rgba(255, 255, 255, 0.96);
}

.text-link,
.sidebar-box a,
.footer-col a {
  color: var(--accent);
  font-weight: 600;
}

.text-link:hover,
.sidebar-box a:hover,
.footer-col a:hover {
  color: var(--accent-dark);
}

.section-band {
  background: transparent;
}

.section-inner,
.hero {
  width: min(1180px, calc(100% - 40px));
}

.section-inner {
  padding: 72px 0;
}

.hero.section-band {
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
}

.image-bg,
.hero,
.page-hero,
.hero.bg-home,
.bg-home,
.bg-cases,
.bg-contact,
.bg-audit,
.bg-vat,
.bg-disputes,
.bg-court,
.bg-architecture,
.bg-about {
  color: inherit;
  background-image: none;
  background-color: transparent;
  animation: none;
}

.image-bg::before,
.page-hero::before,
.hero::before {
  content: none;
}

.image-bg h1,
.image-bg h2,
.image-bg h3,
.image-bg article h2,
.image-bg article h3 {
  color: var(--ink);
}

.image-bg .lead,
.image-bg .rich-text,
.image-bg .rich-text p,
.image-bg article p {
  color: var(--graphite);
}

.page-hero {
  padding: 56px 0 18px;
}

.page-hero .section-inner {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--ink);
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  min-height: auto;
  padding: 58px 0 48px;
  border-bottom: 1px solid var(--ink);
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(46px, 5vw, 66px);
  text-shadow: none;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.2;
}

p,
li {
  font-size: 17px;
  line-height: 1.72;
}

.lead,
.lead.small,
.hero-copy p,
.rich-text,
.stats-grid span,
.service-grid p,
.price-grid p,
.blog-grid p,
.blog-grid span,
.case-card p,
.contact-form label,
.form-note,
.footer-brand p,
.footer-col span {
  color: var(--graphite);
  text-shadow: none;
}

.lead {
  max-width: 720px;
  font-size: 19px;
}

.lead.small {
  font-size: 17px;
}

.hero-actions {
  margin: 30px 0 30px;
}

.trust-row {
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  color: var(--steel);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-copy .eyebrow,
.hero-copy p {
  color: inherit;
}

.hero-visual {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
}

.visual-grid {
  gap: 16px;
}

.visual-card,
.stats-grid article,
.service-grid article,
.price-grid article,
.blog-grid article,
.case-card,
.case-catalog article,
.compact-list article,
.sidebar-box,
.contact-form,
.recommend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.visual-card {
  padding: 24px;
  border-top: 1px solid var(--line);
  animation: none;
}

.visual-card.dark {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.visual-card span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.visual-card.dark span,
.price-grid article.featured strong {
  color: #c5cedf;
}

.visual-card strong {
  color: inherit;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
}

.visual-card:not(.large) strong {
  font-size: clamp(20px, 1.8vw, 26px);
}

.visual-icon,
.auto-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent);
  border: 1px solid rgba(29, 64, 120, 0.14);
  border-radius: 6px;
  background: var(--mint);
}

.visual-card.dark .visual-icon {
  color: var(--white);
  border-color: rgba(197, 206, 223, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.stats-grid,
.service-grid,
.price-grid,
.blog-grid {
  gap: 20px;
}

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

.stats-grid article,
.service-grid article,
.price-grid article,
.blog-grid article,
.case-card,
.case-catalog article {
  overflow: hidden;
}

.stats-grid article::before,
.service-grid article::before,
.price-grid article::before,
.blog-grid article::before,
.case-card::before,
.case-catalog article::before,
.compact-list article::before {
  background: linear-gradient(180deg, rgba(238, 242, 248, 0.9), transparent 42%);
}

.stats-grid article {
  min-height: 180px;
  padding: 24px;
  padding-top: 74px;
}

.stats-grid strong {
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(30px, 3vw, 40px);
}

.split {
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

.service-grid article,
.price-grid article,
.blog-grid article {
  min-height: 236px;
  padding: 28px;
}

.service-grid article:hover,
.blog-grid article:hover,
.price-grid article:hover,
.case-card:hover,
.compact-list article:hover,
.case-catalog article:hover,
.recommend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 64, 120, 0.28);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.06);
}

.case-head {
  align-items: end;
  margin-bottom: 30px;
}

.icon-button {
  width: 46px;
  height: 46px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 28px;
}

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

.case-slider {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 20px;
}

.case-card {
  min-height: 240px;
  padding: 28px;
  opacity: 1;
}

.case-card.active {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.case-card span,
.blog-grid span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

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

.price-grid article.featured {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.price-grid article.featured p {
  color: #c5cedf;
}

.price-grid strong {
  margin-top: 24px;
  color: var(--accent);
  font-family: "Spectral", Georgia, serif;
  font-size: 28px;
}

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

.content-layout {
  gap: clamp(28px, 5vw, 56px);
}

.content-main {
  max-width: 780px;
}

.content-main p,
.content-main li {
  font-size: 18px;
  color: var(--graphite);
}

.sidebar-box {
  top: 92px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.metric-row span {
  padding: 18px;
  color: var(--ink);
  background: var(--mint);
  border-left: 3px solid var(--accent);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
}

.consultation {
  padding-bottom: 8px;
}

.contact-layout {
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.contact-form {
  padding: 32px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #d4d9e2;
  border-radius: 4px;
  background: #fbfcfe;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

.form-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: #9aa2b1;
}

.site-footer {
  margin-top: 36px;
  padding: 0 20px 24px;
  background: transparent;
}

.footer-top,
.footer-bottom {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr 0.7fr;
  gap: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 32px 0;
  color: var(--steel);
  font-size: 13px;
}

.footer-col,
.footer-brand {
  padding: 0;
  border: 0;
  background: none;
}

.footer-col strong {
  display: block;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span,
.footer-brand p {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .contact-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .blog-grid,
  .case-slider,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .main-nav {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .page-hero {
    padding-top: 34px;
  }

  h1,
  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero {
    padding-top: 40px;
  }

  .visual-grid,
  .stats-grid,
  .service-grid,
  .price-grid,
  .blog-grid,
  .case-slider,
  .metric-row,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 56px 0;
  }

  .contact-form,
  .footer-top,
  .footer-bottom {
    padding-left: 22px;
    padding-right: 22px;
  }
}

.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;
}

.home-ref {
  background: #f6f7f9;
}

.home-hero,
.home-expertise,
.home-services,
.home-cases,
.home-cta,
.home-footer-inner,
.home-metrics {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.home-hero {
  padding-top: 80px;
  padding-bottom: 68px;
}

.home-marker,
.home-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-marker {
  margin-bottom: 30px;
}

.home-section-head {
  margin-bottom: 22px;
}

.home-marker span,
.home-section-head span {
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.home-marker p,
.home-section-head p,
.home-logic-head,
.home-footer-grid strong,
.home-footer-bottom span:last-child {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-marker p,
.home-section-head p {
  color: var(--accent);
}

.home-hero-grid,
.home-two-col,
.home-cta-box {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  align-items: start;
}

.home-hero-copy h1,
.home-ref h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.home-hero-copy h1 {
  font-size: 62px;
  line-height: 1.08;
  text-wrap: balance;
}

.home-intro {
  max-width: 560px;
  margin: 0 0 36px;
  font-size: 19px;
  line-height: 1.62;
  color: var(--graphite);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--steel);
  font-size: 13.5px;
}

.home-points span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-points i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.home-logic-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  padding: 8px;
}

.home-logic-head {
  padding: 20px 22px 16px;
  color: var(--steel);
  border-bottom: 1px solid #eef0f4;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-logic-list article {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #f0f2f6;
}

.home-logic-list article:last-child {
  border-bottom: 0;
}

.home-logic-list span {
  width: 24px;
  flex: none;
  color: var(--accent);
  font-family: "Spectral", Georgia, serif;
  font-size: 18px;
}

.home-logic-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.home-logic-list small {
  color: var(--steel);
  font-size: 13.5px;
}

.home-metrics {
  padding-top: 46px;
  padding-bottom: 46px;
  background: #fff;
  border-top: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
}

.home-metrics .home-section-head {
  margin-bottom: 34px;
}

.home-metrics-row {
  display: flex;
  flex-wrap: wrap;
}

.home-metrics-row article {
  flex: 1;
  min-width: 180px;
  padding: 0 26px;
  border-left: 1px solid #e4e7ed;
}

.home-metrics-row strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

.home-metrics-row span {
  color: var(--steel);
  font-size: 13.5px;
  line-height: 1.5;
}

.home-expertise {
  padding-top: 88px;
  padding-bottom: 88px;
}

.home-two-col {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.home-ref h2 {
  max-width: 820px;
  font-size: 38px;
  line-height: 1.2;
}

.home-expertise p,
.home-cta p {
  margin: 0 0 18px;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.65;
}

.home-expertise p:last-child,
.home-cta p:last-child {
  margin-bottom: 0;
}

.home-image-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  background: #f6f7f9;
}

.home-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-services {
  padding-top: 84px;
  padding-bottom: 84px;
  background: #fff;
  border-top: 1px solid #e4e7ed;
}

.home-services h2,
.home-cases h2 {
  max-width: 820px;
  margin-bottom: 44px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  background: #e4e7ed;
}

.home-service-grid a {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 190px;
  padding: 32px 30px;
  background: #fff;
  text-decoration: none;
  transition: background 160ms ease;
}

.home-service-grid a:hover {
  background: #fbfcfe;
}

.home-service-grid h3,
.home-case-grid h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
}

.home-service-grid h3 {
  font-size: 21px;
}

.home-service-grid p,
.home-case-grid p {
  margin: 0;
  color: var(--steel);
  font-size: 14.5px;
  line-height: 1.55;
}

.home-service-grid span,
.home-services-link a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.home-service-grid span {
  margin-top: auto;
}

.home-services-link {
  margin-top: 32px;
}

.home-services-link a {
  text-decoration: none;
  border-bottom: 1px solid #c9d3e2;
  padding-bottom: 2px;
}

.home-services-link a:hover {
  border-color: var(--accent);
}

.home-cases {
  padding-top: 88px;
  padding-bottom: 88px;
}

.home-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-case-grid article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
}

.home-case-grid article.dark {
  background: #14213d;
  border-color: #14213d;
}

.home-case-grid span {
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-case-grid article.dark span {
  color: #8fa6cc;
}

.home-case-grid h3 {
  font-size: 24px;
  line-height: 1.2;
}

.home-case-grid article.dark h3 {
  color: #fff;
}

.home-case-grid article.dark p {
  color: #b9c4d6;
}

.home-cta {
  padding-top: 0;
  padding-bottom: 96px;
}

.home-cta-box {
  padding: 60px 56px;
  background: #eef2f8;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  gap: 48px;
  align-items: center;
}

.home-cta h2 {
  margin-bottom: 14px;
  font-size: 34px;
}

.home-cta p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
}

.home-cta-action {
  display: flex;
  justify-content: flex-end;
}

.home-footer {
  background: #0f1a30;
}

.home-footer-inner {
  padding-top: 64px;
  padding-bottom: 40px;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.home-footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid #6e8ac0;
  border-radius: 3px;
  color: #fff;
  font-family: "Spectral", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.home-footer-grid strong {
  display: block;
  margin-bottom: 18px;
  color: #6e7c99;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-footer-grid p,
.home-footer-grid a {
  color: #c5cedf;
}

.home-footer-grid > div > p {
  max-width: 300px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #9daac2;
}

.home-footer-grid nav,
.home-footer-grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.home-footer-grid nav a,
.home-footer-grid > div:last-child a {
  font-size: 14px;
  text-decoration: none;
}

.home-footer-grid nav a:hover,
.home-footer-grid > div:last-child a:hover {
  color: #fff;
}

.home-footer-grid > div:last-child p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #6e7c99;
}

.home-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
}

.home-footer-bottom span:first-child {
  color: #6e7c99;
  font-size: 12.5px;
}

.home-footer-bottom span:last-child {
  color: #4f5c75;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.services-ref {
  min-height: 100vh;
  background: #f6f7f9;
}

.services-ref-hero,
.services-ref-catalog {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.services-ref-hero {
  padding: 64px 0 48px;
}

.services-ref-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.services-ref-marker span {
  width: 28px;
  height: 1px;
  flex: none;
  background: #1d4078;
}

.services-ref-marker p {
  margin: 0;
  color: #1d4078;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-ref-hero h1 {
  max-width: 840px;
  margin: 0 0 24px;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.services-ref-lead {
  max-width: 680px;
  margin: 0;
  color: #39414f;
  font-size: 19px;
  line-height: 1.62;
}

.services-ref-catalog {
  padding: 0 0 88px;
}

.services-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #e4e7ed;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
}

.services-ref-grid > a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  padding: 30px 28px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.services-ref-grid > a:hover {
  background: #fbfcfe;
}

.services-ref-grid > a:active {
  transform: translateY(1px);
}

.services-ref-number {
  color: #9aa2b1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.services-ref-grid h2 {
  margin: 0;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.services-ref-grid p {
  flex: 1;
  margin: 0;
  color: #717a8a;
  font-size: 14px;
  line-height: 1.55;
}

.services-ref-link {
  color: #1d4078;
  font-size: 13.5px;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .home-hero-grid,
  .home-two-col,
  .home-cta-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-service-grid,
  .home-case-grid,
  .home-footer-grid,
  .services-ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .home-hero,
  .home-expertise,
  .home-services,
  .home-cases,
  .home-cta,
  .home-footer-inner,
  .home-metrics {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .home-hero-copy h1 {
    font-size: 42px;
  }

  .home-ref h2 {
    font-size: 30px;
  }

  .home-intro {
    font-size: 17px;
  }

  .home-service-grid,
  .home-case-grid,
  .home-footer-grid,
  .services-ref-grid {
    grid-template-columns: 1fr;
  }

  .services-ref-hero,
  .services-ref-catalog {
    width: calc(100% - 40px);
  }

  .services-ref-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .services-ref-hero h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .services-ref-lead {
    font-size: 17px;
  }

  .services-ref-catalog {
    padding-bottom: 64px;
  }

  .home-metrics-row article {
    min-width: 100%;
    padding: 18px 0 0;
    margin-top: 18px;
    border-left: 0;
    border-top: 1px solid #e4e7ed;
  }

  .home-metrics-row article:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .home-cta-box {
    padding: 32px 24px;
  }

  .home-cta-action {
    justify-content: flex-start;
  }
}

/* Shared navigation and footer, matched to the standalone reference. */
.site-header {
  min-height: 74px;
  padding: 0 max(32px, calc((100% - 1180px) / 2));
  gap: 28px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e4e7ed;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.site-header:hover {
  border-color: #e4e7ed;
  box-shadow: none;
}

.site-header > .brand {
  min-width: 252px;
  gap: 12px;
}

.site-header .brand-logo {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header .brand strong {
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
}

.site-header .brand small {
  margin-top: 5px;
  color: #717a8a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-header .main-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 2px;
  color: #39414f;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.site-header .main-nav > a,
.site-header .nav-dropdown > button {
  min-height: 38px;
  padding: 12px 10px;
  font-weight: 500;
}

.site-header .main-nav > a:hover,
.site-header .nav-dropdown > button:hover,
.site-header .main-nav > a:focus-visible,
.site-header .nav-dropdown > button:focus-visible {
  color: #1d4078;
}

.site-header .nav-dropdown > .submenu-toggle {
  display: none;
}

.site-header .nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 10px;
  display: none;
}

.site-header .nav-dropdown:hover::after,
.site-header .nav-dropdown:focus-within::after {
  display: block;
}

.site-header .dropdown-panel {
  top: calc(100% - 1px);
  width: min(430px, 72vw);
  gap: 1px;
  padding: 7px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(20, 33, 61, 0.1);
}

.site-header .dropdown-panel a {
  padding: 10px 12px;
  color: #39414f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  border-radius: 3px;
}

.site-header .dropdown-panel a:hover {
  color: #14213d;
  background: #f6f7f9;
}

.site-header .nav-cta {
  min-height: 40px;
  margin-left: 7px;
  padding: 11px 17px;
  color: #fff;
  background: #1d4078;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.site-header .nav-cta:hover {
  color: #fff;
  background: #16335f;
  transform: none;
}

.site-footer {
  margin: 0;
  padding: 0;
  color: #c5cedf;
  background: #0f1a30;
}

.site-footer .footer-top,
.site-footer .footer-bottom {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.68fr 0.92fr 0.92fr 0.82fr;
  gap: 32px;
  padding: 64px 0 48px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.site-footer .footer-brand,
.site-footer .footer-col {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
}

.site-footer .footer-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .footer-col[aria-label="Ключевые услуги"] {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 10px;
  align-content: start;
}

.site-footer .footer-col[aria-label="Ключевые услуги"] strong {
  grid-column: 1 / -1;
}

.site-footer .footer-logo {
  min-width: 0;
  margin-bottom: 20px;
  gap: 12px;
}

.site-footer .footer-logo .brand-logo {
  width: 36px;
  height: 36px;
  border: 0;
  box-shadow: none;
}

.site-footer .footer-logo strong {
  color: #fff;
  font-family: "Spectral", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.site-footer .footer-logo small {
  margin-top: 5px;
  color: #6e7c99;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer .footer-brand p {
  max-width: 310px;
  margin: 0 0 24px;
  color: #9daac2;
  font-size: 14px;
  line-height: 1.65;
}

.site-footer .footer-cta {
  min-height: 42px;
  padding: 11px 18px;
  color: #fff;
  background: #1d4078;
  border: 0;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.site-footer .footer-cta:hover {
  color: #fff;
  background: #294f89;
  transform: none;
}

.site-footer .footer-col strong {
  margin: 2px 0 20px;
  color: #6e7c99;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer .footer-col a,
.site-footer .footer-col span {
  margin: 0 0 10px;
  color: #c5cedf;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
}

.site-footer .footer-col[aria-label="Ключевые услуги"] a {
  width: 100%;
  margin: 0;
}

.site-footer .footer-col a:hover {
  color: #fff;
}

.site-footer .footer-col:last-child a {
  color: #fff;
  font-weight: 500;
}

.site-footer .footer-col:last-child span {
  margin-top: 12px;
  color: #6e7c99;
  font-size: 12.5px;
  line-height: 1.6;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  padding: 26px 0 32px;
  color: #6e7c99;
  font-size: 12px;
}

.site-footer .footer-bottom a {
  color: #6e7c99;
}

.site-footer .footer-bottom a:hover {
  color: #c5cedf;
}

@media (max-width: 1100px) {
  .site-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-header > .brand {
    min-width: 220px;
  }

  .site-header .main-nav > a,
  .site-header .nav-dropdown > button {
    padding-left: 7px;
    padding-right: 7px;
  }

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

  .site-footer .footer-col[aria-label="Ключевые услуги"] {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 70px;
    padding: 0 20px;
  }

  .site-header > .brand {
    min-width: 0;
  }

  .site-header .brand-logo {
    width: 34px;
    height: 34px;
  }

  .site-header .brand strong {
    font-size: 20px;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 10px;
    color: #14213d;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
  }

  .site-header .nav-toggle:focus-visible {
    outline: 2px solid #1d4078;
    outline-offset: 2px;
    border-color: #1d4078;
  }

  .site-header .main-nav {
    top: 70px;
    left: 12px;
    right: 12px;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    box-shadow: 0 18px 42px rgba(20, 33, 61, 0.12);
    white-space: normal;
  }

  .site-header .main-nav > a,
  .site-header .nav-dropdown,
  .site-header .nav-dropdown > .submenu-link {
    font-size: 14px;
    font-weight: 500;
  }

  .site-header .nav-dropdown > button:not(.submenu-toggle) {
    display: none;
  }

  .site-header .nav-dropdown > .submenu-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 11px 12px;
  }

  .site-header .nav-dropdown > .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #1d4078;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 19px;
    font-weight: 400;
  }

  .site-header .nav-dropdown::after {
    content: none;
  }

  .site-header .nav-dropdown.open > .submenu-toggle {
    transform: rotate(45deg);
  }

  .site-header .dropdown-panel {
    width: 100%;
    margin: 0;
    padding: 5px 8px 10px;
    border: 0;
    border-top: 1px solid #eef0f4;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header .nav-cta {
    min-height: 44px;
    margin: 8px 0 0;
  }

  .site-footer .footer-top,
  .site-footer .footer-bottom {
    width: calc(100% - 40px);
  }

  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .site-footer .footer-col[aria-label="Ключевые услуги"] {
    grid-column: auto;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-top: 22px;
    padding-bottom: 28px;
  }
}

/* Reference page templates. */
.ref-page {
  min-height: 100vh;
  background: #f6f7f9;
}

.ref-hero,
.ref-featured,
.ref-blog-grid,
.ref-pricing,
.ref-note,
.ref-principles,
.ref-contacts,
.ref-case-grid {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.ref-hero {
  padding: 64px 0 40px;
}

.ref-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ref-marker span {
  width: 28px;
  height: 1px;
  background: #1d4078;
}

.ref-marker p,
.ref-hero .ref-marker p {
  margin: 0;
  color: #1d4078;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ref-marker p a {
  color: inherit;
  text-decoration: none;
}

.ref-marker p b {
  margin: 0 8px;
  color: #9aa2b1;
  font-weight: 400;
}

.ref-marker p a:hover {
  color: #14213d;
}

.ref-hero h1 {
  max-width: 880px;
  margin: 0 0 24px;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.ref-hero > p {
  max-width: 720px;
  margin: 0;
  color: #39414f;
  font-size: 19px;
  line-height: 1.62;
}

.ref-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.ref-filters a,
.ref-filters span {
  padding: 8px 16px;
  color: #39414f;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.ref-filters .active {
  color: #fff;
  background: #1d4078;
  border-color: #1d4078;
}

.ref-featured {
  padding-bottom: 40px;
}

.ref-featured > a {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
}

.ref-cover,
.ref-card-cover,
.ref-team-grid article > div {
  background-color: #f6f7f9;
  background-image: repeating-linear-gradient(45deg, #edeff3 0, #edeff3 1px, transparent 1px, transparent 11px);
}

.ref-cover {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
}

.ref-cover img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.ref-cover span {
  padding: 6px 12px;
  color: #9aa2b1;
  background: #f6f7f9;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.ref-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.ref-featured-copy > span,
.ref-blog-grid span,
.ref-case-grid article > span {
  color: #1d4078;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ref-featured-copy h2 {
  margin: 18px 0 16px;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.ref-featured-copy p {
  margin: 0 0 22px;
  color: #717a8a;
  font-size: 16px;
  line-height: 1.6;
}

.ref-featured-copy small,
.ref-blog-grid small {
  color: #9aa2b1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
}

.ref-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 88px;
}

.ref-blog-grid > a {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
}

.ref-card-cover {
  height: 150px;
}

.ref-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-blog-grid > a > div:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
}

.ref-blog-grid h2 {
  margin: 0;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.ref-blog-grid small {
  margin-top: auto;
}

.ref-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 32px;
  align-items: start;
}

.ref-pricing article {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
}

.ref-pricing article.featured {
  border-color: #1d4078;
  border-top-width: 3px;
  box-shadow: 0 12px 40px rgba(29, 64, 120, 0.1);
}

.ref-pricing article > span {
  margin-bottom: 14px;
  color: #1d4078;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ref-pricing h2 {
  margin: 0 0 8px;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.ref-pricing p {
  margin: 0 0 24px;
  color: #717a8a;
  font-size: 14.5px;
  line-height: 1.55;
}

.ref-pricing strong {
  margin-bottom: 28px;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.ref-pricing ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ref-pricing li {
  position: relative;
  padding-left: 17px;
  color: #39414f;
  font-size: 14.5px;
  line-height: 1.5;
}

.ref-pricing li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d4078;
}

.ref-pricing a {
  margin-top: auto;
  padding: 14px;
  color: #14213d;
  border: 1px solid #d4d9e2;
  border-radius: 4px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.ref-pricing .featured a {
  color: #fff;
  background: #1d4078;
  border-color: #1d4078;
}

.ref-note {
  margin-bottom: 88px;
  padding: 28px 32px;
  color: #39414f;
  background: #eef2f8;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.ref-principles {
  padding: 0 0 72px;
}

.ref-principles > h2 {
  margin: 0 0 36px;
  padding-top: 40px;
  color: #1d4078;
  border-top: 1px solid #14213d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ref-principles > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.ref-principles article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 20px;
}

.ref-principles article > span {
  grid-row: 1 / 3;
  color: #1d4078;
  font-family: "Spectral", Georgia, serif;
  font-size: 26px;
}

.ref-principles h3 {
  margin: 0 0 10px;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.ref-principles p {
  margin: 0;
  color: #717a8a;
  font-size: 16px;
  line-height: 1.6;
}

.ref-team {
  background: #fff;
  border-top: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
}

.ref-team > div {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

.ref-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ref-team-grid article > div {
  display: flex;
  aspect-ratio: 3 / 4;
  align-items: flex-end;
  overflow: hidden;
  color: #9aa2b1;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.ref-team-grid article > div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-team-grid strong,
.ref-team-grid small {
  display: block;
}

.ref-team-grid strong {
  margin-top: 14px;
  color: #14213d;
  font-size: 15px;
}

.ref-team-grid small {
  margin-top: 3px;
  color: #717a8a;
  font-size: 13.5px;
}

.ref-team > div > p {
  margin: 32px 0 0;
  color: #9aa2b1;
  font-size: 14.5px;
}

.ref-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr);
  gap: 32px;
  padding-bottom: 88px;
  align-items: stretch;
}

.ref-contacts .contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 34px;
  background: #fff;
}

.ref-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  grid-column: 1 / -1;
}

.ref-contacts .contact-form label,
.ref-contacts .ref-form-row label {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.ref-contacts .ref-form-row label {
  grid-column: auto;
}

.ref-contacts .contact-form input,
.ref-contacts .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.ref-contacts .contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.ref-contacts .contact-form .button {
  grid-column: 1 / -1;
  justify-self: start;
  width: fit-content;
  min-width: 190px;
  margin-top: 2px;
}

.ref-contacts .contact-form .form-note {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 540px;
  margin: -2px 0 0;
  text-align: left;
}

.ref-contacts aside {
  display: grid;
  grid-template-rows: 1fr 1fr 0.78fr;
  gap: 18px;
  min-width: 0;
}

.ref-contacts aside article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
}

.ref-contacts aside span {
  display: block;
  margin-bottom: 16px;
  color: #717a8a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ref-contacts aside a {
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 22px;
}

.ref-contacts aside p {
  margin: 0;
  color: #39414f;
  font-size: 14.5px;
  line-height: 1.7;
}

.ref-contacts aside .dark {
  background: #14213d;
  border-color: #14213d;
}

.ref-contacts aside .dark p {
  color: #c5cedf;
}

.ref-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 88px;
}

.ref-case-grid article {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
}

.ref-case-grid article > strong {
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.ref-case-grid article > strong small {
  color: #717a8a;
  font-size: 18px;
}

.ref-case-grid article p {
  margin: 0;
  color: #717a8a;
  font-size: 14.5px;
  line-height: 1.55;
}

.ref-case-grid article a {
  margin-top: auto;
  color: #1d4078;
  font-size: 14px;
  font-weight: 600;
}

.ref-case-grid article.dark {
  background: #14213d;
  border-color: #14213d;
}

.ref-case-grid article.dark > span {
  color: #8fa6cc;
}

.ref-case-grid article.dark > strong,
.ref-case-grid article.dark a {
  color: #fff;
}

.ref-case-grid article.dark p {
  color: #b9c4d6;
}

@media (max-width: 900px) {
  .ref-featured > a,
  .ref-contacts {
    grid-template-columns: 1fr;
  }

  .ref-blog-grid,
  .ref-pricing,
  .ref-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ref-hero,
  .ref-featured,
  .ref-blog-grid,
  .ref-pricing,
  .ref-note,
  .ref-principles,
  .ref-contacts,
  .ref-case-grid,
  .ref-team > div {
    width: calc(100% - 40px);
  }

  .ref-hero {
    padding-top: 44px;
  }

  .ref-hero h1 {
    font-size: 36px;
  }

  .ref-hero > p {
    font-size: 17px;
  }

  .ref-blog-grid,
  .ref-pricing,
  .ref-case-grid,
  .ref-principles > div,
  .ref-team-grid,
  .ref-form-row {
    grid-template-columns: 1fr;
  }

  .ref-featured-copy {
    padding: 30px 24px;
  }

  .ref-cover {
    min-height: 210px;
  }

  .ref-pricing article {
    min-height: 0;
  }

  .ref-contacts .contact-form {
    padding: 26px 22px;
  }

  .ref-contacts aside {
    grid-template-rows: auto;
  }
}

/* Long service and article templates. */
.is-service-page .page-hero,
.is-article-page .page-hero {
  padding: 0;
}

.is-service-page .page-hero .section-inner,
.is-article-page .page-hero .section-inner {
  width: min(1180px, calc(100% - 64px));
  padding: 48px 0 40px;
  border-bottom: 0;
}

.is-service-page .page-hero .breadcrumbs,
.is-article-page .page-hero .breadcrumbs {
  margin-bottom: 36px;
  color: #9aa2b1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.is-service-page .page-hero .eyebrow,
.is-article-page .page-hero .eyebrow {
  margin-bottom: 24px;
  color: #1d4078;
}

.is-service-page .page-hero h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
}

.is-service-page .page-hero .lead {
  max-width: 680px;
  margin: 0;
  font-size: 19px;
  line-height: 1.62;
}

.is-service-page .service-rich {
  width: min(1180px, calc(100% - 64px));
  gap: 0;
  padding: 0 0 88px;
}

.is-service-page .service-rich-intro {
  max-width: 780px;
  margin-bottom: 44px;
  padding: 36px 0 0;
  border: 0;
  border-top: 1px solid #14213d;
  background: transparent;
  box-shadow: none;
}

.is-service-page .service-rich-intro p {
  color: #39414f;
  font-size: 17px;
  line-height: 1.65;
}

.is-service-page .service-panel {
  max-width: 780px;
  margin: 0;
  padding: 0 0 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.is-service-page .service-panel + .service-panel {
  padding-top: 38px;
  border-top: 1px solid #e4e7ed;
}

.is-service-page .service-panel:hover {
  transform: none;
  border-color: #e4e7ed;
  box-shadow: none;
}

.is-service-page .service-panel h2 {
  margin: 0 0 18px;
  color: #14213d;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

.is-service-page .service-panel p,
.is-service-page .service-panel li {
  color: #39414f;
  font-size: 16px;
  line-height: 1.65;
}

.is-service-page .service-panel ul {
  padding-left: 21px;
}

.is-service-page .service-panel li + li {
  margin-top: 12px;
}

.is-service-page .service-panel-dark {
  max-width: 780px;
  margin: 8px 0 44px;
  padding: 32px 30px;
  color: #fff;
  background: #14213d;
  border: 0;
  border-radius: 6px;
}

.is-service-page .service-panel-dark h2,
.is-service-page .service-panel-dark p,
.is-service-page .service-panel-dark li {
  color: #e4e9f2;
}

.is-service-page .panel-icon,
.is-article-page .panel-icon,
.is-service-page .theme-switch,
.is-article-page .theme-switch {
  display: none;
}

.is-service-page .service-quickbar {
  max-width: 780px;
  margin: 0 0 44px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
  background: #f6f7f9;
  backdrop-filter: none;
}

.is-service-page .service-quickbar strong {
  color: #14213d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.is-service-page .service-quickbar a {
  padding: 6px 9px;
  color: #1d4078;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.is-service-page .consultation,
.is-article-page .consultation {
  padding: 0;
  background: #f6f7f9;
}

.is-service-page .consultation .section-inner,
.is-article-page .consultation .section-inner {
  width: min(1180px, calc(100% - 64px));
  margin-bottom: 88px;
  padding: 48px;
  gap: 48px;
  background: #eef2f8;
  border: 1px solid #dce4f0;
  border-radius: 8px;
}

.is-service-page .consultation h2,
.is-article-page .consultation h2 {
  font-size: 32px;
  font-weight: 500;
}

.is-service-page .consultation .contact-form,
.is-article-page .consultation .contact-form {
  background: #fff;
}

.is-article-page .page-hero .section-inner {
  width: min(740px, calc(100% - 64px));
  padding-bottom: 32px;
  border-bottom: 1px solid #e4e7ed;
}

.is-article-page .page-hero h1 {
  max-width: 740px;
  margin: 16px 0 24px;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.14;
}

.is-article-page .page-hero .lead {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.is-article-page .service-rich {
  width: min(740px, calc(100% - 64px));
  gap: 0;
  padding: 36px 0 72px;
}

.is-article-page .service-rich-intro {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.is-article-page .service-rich-intro p,
.is-article-page .service-panel p,
.is-article-page .service-panel li {
  color: #39414f;
  font-size: 18px;
  line-height: 1.75;
}

.is-article-page .service-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.is-article-page .service-panel:hover {
  transform: none;
  box-shadow: none;
}

.is-article-page .service-panel h2 {
  margin: 34px 0 18px;
  color: #14213d;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
}

.is-article-page .service-panel ul {
  margin: 22px 0 30px;
  padding-left: 24px;
}

.is-article-page .service-panel li + li {
  margin-top: 8px;
}

.is-article-page .service-quickbar {
  position: static;
  margin: 0 0 32px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
  background: transparent;
  backdrop-filter: none;
}

.is-article-page .service-quickbar strong {
  color: #717a8a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.is-article-page .service-quickbar a {
  padding: 5px 7px;
  color: #1d4078;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.is-article-page blockquote {
  margin: 34px 0;
  padding: 6px 0 6px 28px;
  color: #14213d;
  border-left: 3px solid #1d4078;
  font-family: "Spectral", Georgia, serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.4;
}

.is-article-page .recommend-strip {
  width: min(1180px, calc(100% - 64px));
  padding: 64px 0 80px;
  border-top: 1px solid #e4e7ed;
}

.is-article-page .recommend-head {
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.is-article-page .recommend-kicker {
  padding: 0;
  color: #1d4078;
  background: transparent;
  border: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.is-article-page .recommend-head h2 {
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
}

.is-article-page .recommend-head p {
  max-width: 720px;
  color: #717a8a;
  font-size: 16px;
  line-height: 1.65;
}

.is-article-page .recommend-row {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: initial;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  overflow: visible;
  padding-bottom: 0;
}

.is-article-page .recommend-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: #e4e7ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.is-article-page .recommend-card::before {
  content: none;
}

.is-article-page .recommend-card-cover {
  display: block;
  width: 100%;
  height: 150px;
  align-self: stretch;
  background-color: #f6f7f9;
  background-image: repeating-linear-gradient(45deg, #edeff3 0, #edeff3 1px, transparent 1px, transparent 11px);
}

.is-article-page .recommend-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.is-article-page .recommend-card strong,
.is-article-page .recommend-card h3,
.is-article-page .recommend-card p,
.is-article-page .recommend-card span:not(.recommend-card-cover) {
  position: static;
  z-index: auto;
}

.is-article-page .recommend-card strong {
  padding: 24px 24px 0;
  color: #1d4078;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.is-article-page .recommend-card h3 {
  margin: 0;
  padding: 12px 24px 0;
  color: #14213d;
  font-family: "Spectral", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.is-article-page .recommend-card p {
  margin: 0;
  padding: 12px 24px 0;
  color: #717a8a;
  font-size: 14.5px;
  line-height: 1.55;
}

.is-article-page .recommend-card span:not(.recommend-card-cover) {
  margin-top: auto;
  padding: 18px 24px 24px;
  color: #9aa2b1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .is-article-page .recommend-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .is-service-page .page-hero .section-inner,
  .is-article-page .page-hero .section-inner,
  .is-service-page .service-rich,
  .is-article-page .service-rich,
  .is-service-page .consultation .section-inner,
  .is-article-page .consultation .section-inner,
  .is-article-page .recommend-strip {
    width: calc(100% - 40px);
  }

  .is-service-page .page-hero h1,
  .is-article-page .page-hero h1 {
    font-size: 36px;
  }

  .is-service-page .consultation .section-inner,
  .is-article-page .consultation .section-inner {
    padding: 28px 22px;
  }

  .is-article-page .recommend-row {
    grid-template-columns: 1fr;
  }
}
