:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e3e7ef;
  --blue: #5278c0;
  --blue-soft: #edf3ff;
  --red: #e2585c;
  --red-dark: #c83e43;
  --shadow: 0 16px 44px rgba(23, 32, 51, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

.header-container,
.first-container,
.section-shell,
.cta-band,
.page-hero,
.content-card,
.post-grid,
.footer-grid,
.footer-bottom,
.footer-cta {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 244, 246, .96);
  border-bottom: 1px solid rgba(227, 231, 239, .9);
  backdrop-filter: blur(14px);
}

.header-top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-top__inner,
.header-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-top__inner {
  min-height: 42px;
}

.header-bottom__inner {
  min-height: 78px;
}

.top-nav,
.top-contacts,
.header-actions,
.primary-nav ul,
.search-tags {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-nav a,
.contact-link,
.contact-city,
.primary-nav a,
.search-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.contact-link,
.contact-city {
  color: var(--blue);
}

.contact-mail::before,
.contact-phone::before,
.contact-city::before {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.contact-mail::before { content: "@"; }
.contact-phone::before { content: "☎"; }
.contact-city::before { content: "⌖"; }

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}

.brand span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #7a97cf);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow);
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  gap: 4px;
  list-style: none;
}

.primary-nav a,
.search-toggle,
.catalog-toggle {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.search-toggle::before {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.search-toggle::before { content: "⌕"; }

.catalog-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.catalog-toggle svg {
  flex: 0 0 auto;
}

.primary-nav a:hover,
.search-toggle:hover,
.catalog-toggle:hover,
.top-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.messenger-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.open-modal,
.btn-red,
.quick-form button,
.quick-form .wpcf7-submit {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(226, 88, 92, .24);
}

.open-modal:hover,
.btn-red:hover {
  background: var(--red-dark);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.site-search-panel {
  display: none;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.search-open .site-search-panel {
  display: block;
}

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

.site-search-panel input,
.site-search-panel button {
  min-height: 48px;
  border-radius: 12px;
  font: inherit;
}

.site-search-panel input {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
}

.site-search-panel button {
  padding: 0 18px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.search-tags {
  flex-wrap: wrap;
  margin-top: 10px;
}

.search-tags a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: none;
  background: rgba(13, 20, 34, .42);
}

.catalog-open .catalog-overlay {
  display: block;
}

.services-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(430px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 20px 0 60px rgba(23, 32, 51, .22);
  transform: translateX(-105%);
  transition: transform .22s ease;
}

.catalog-open .services-drawer {
  transform: translateX(0);
}

.services-drawer__top {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.services-drawer__top strong {
  font-size: 20px;
}

.catalog-back,
.catalog-close {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.catalog-back {
  gap: 6px;
  justify-self: start;
}

.catalog-back span:first-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 25px;
  line-height: 1;
}

.catalog-close {
  width: 44px;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 28px;
  line-height: 1;
}

.services-drawer__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.catalog-tab {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.catalog-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.services-drawer__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.catalog-panel {
  display: none;
}

.catalog-panel.is-active {
  display: grid;
  gap: 6px;
}

.catalog-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.catalog-panel a::after {
  content: "›";
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.catalog-panel a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.catalog-panel .catalog-all {
  margin-bottom: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.first-screen {
  padding: 30px 0 38px;
}

.first-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 24px;
  align-items: stretch;
}

.first-card,
.first-banner,
.advantages-grid > div,
.sigma-service-item,
.product-grid a,
.process-row > div,
.about-card,
.content-card,
.post-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.first-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.first-card h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.first-card p {
  max-width: 650px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.first-banner {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 151, 207, .28), transparent 34%),
    linear-gradient(145deg, #ffffff, #edf3ff);
}

.document-stack {
  position: absolute;
  inset: 34px 34px 110px;
}

.document-stack div {
  position: absolute;
  width: 72%;
  height: 86%;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dbe6fb;
  box-shadow: 0 18px 40px rgba(82, 120, 192, .20);
}

.document-stack div:nth-child(1) {
  right: 0;
  top: 0;
  transform: rotate(6deg);
}

.document-stack div:nth-child(2) {
  right: 38px;
  top: 28px;
  transform: rotate(-5deg);
}

.document-stack div:nth-child(3) {
  right: 76px;
  top: 56px;
}

.document-stack div::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 26px;
  height: 12px;
  border-radius: 99px;
  background: var(--blue);
  box-shadow: 0 34px 0 #dbe6fb, 0 68px 0 #dbe6fb, 0 102px 0 #dbe6fb;
}

.banner-badges {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.banner-badges div {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 12px 26px rgba(23, 32, 51, .08);
}

.blue-border { border: 2px solid var(--blue); }
.red-border { border: 2px solid var(--red); }

.section-shell {
  padding: 48px 0;
}

.title-block,
.services-head {
  margin-bottom: 24px;
}

.title-block span,
.services-head span,
.about-sigma span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.title-block h2,
.services-head h2,
.about-sigma h2,
.cta-band h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.advantages-grid > div {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.advantages-grid strong {
  color: var(--blue);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.advantages-grid span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.red-section {
  margin: 28px 0;
  padding: 54px 0;
  background: linear-gradient(135deg, #cf464b, #e2585c);
  color: #fff;
}

.red-section .section-shell {
  padding: 0;
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 24px;
  align-items: end;
}

.services-head span {
  color: #ffdfe0;
}

.services-note p {
  margin: 0 0 12px;
  color: #ffe3e4;
}

.services-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

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

.sigma-service-item {
  min-height: 118px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sigma-service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(23, 32, 51, .16);
}

.sigma-service-item span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.sigma-service-item strong {
  line-height: 1.22;
}

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

.product-grid a {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.product-grid a:hover {
  color: var(--blue);
}

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

.process-row > div {
  padding: 24px;
}

.process-row strong {
  color: var(--red);
  font-size: 30px;
}

.process-row h3 {
  margin: 10px 0 8px;
  font-size: 24px;
}

.process-row p,
.about-sigma p,
.content-card p,
.content-card li,
.post-card p {
  color: var(--muted);
}

.about-sigma {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: center;
}

.about-card {
  padding: 24px;
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 26px;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 54px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 24px;
  background: linear-gradient(135deg, #385d9f, var(--blue));
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band span {
  color: #dfe9ff;
  font-weight: 900;
}

.cta-band p {
  color: #e8efff;
}

.quick-form,
.quick-form form,
.quick-form .wpcf7-form {
  display: grid;
  gap: 10px;
}

.quick-form input,
.quick-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
}

.quick-form input::placeholder,
.quick-form textarea::placeholder {
  color: #dbe5f8;
}

.quick-form textarea {
  min-height: 96px;
  resize: vertical;
}

.quick-form .wpcf7-spinner { display: none; }
.quick-form .wpcf7-response-output { margin: 0; border-radius: 12px; color: #fff; }

.page-hero {
  padding: 46px 0 24px;
}

.page-hero .eyebrow {
  color: var(--red);
}

.content-card {
  max-width: 900px;
  padding: clamp(22px, 4vw, 38px);
  font-size: 18px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 50px;
}

.post-card {
  padding: 20px;
}

.post-card h2 {
  margin: 8px 0;
  font-size: 22px;
}

.post-card a {
  text-decoration: none;
}

.service-hero,
.service-layout {
  max-width: 100%;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px 0 26px;
}

.service-hero__content,
.service-hero__card,
.service-box,
.service-toc,
.service-section,
.service-form-card,
.related-services a {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-hero__content {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 48px);
}

.service-hero__content::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(82, 120, 192, .12);
  pointer-events: none;
}

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

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumbs strong {
  color: var(--text);
}

.service-hero .eyebrow,
.service-form-card .eyebrow {
  color: var(--red);
}

.service-hero h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
}

.service-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-outline {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.service-hero__card {
  padding: 24px;
}

.service-hero__card h2,
.service-box h2,
.service-toc h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.service-hero__card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.service-hero__card dl div {
  padding: 14px;
  border-radius: 18px;
  background: var(--blue-soft);
}

.service-hero__card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.service-hero__card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 42px;
}

.service-sidebar {
  position: sticky;
  top: 142px;
  display: grid;
  gap: 16px;
}

.service-box,
.service-toc {
  padding: 20px;
}

.service-box p {
  margin: 0 0 14px;
  color: var(--muted);
}

.service-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-docs span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.service-toc {
  display: grid;
  gap: 8px;
}

.service-toc a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.service-toc a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.service-content {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.service-section {
  min-width: 0;
  max-width: 100%;
  scroll-margin-top: 150px;
  padding: clamp(22px, 4vw, 34px);
  overflow-wrap: anywhere;
}

.service-section h2,
.service-form-card h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
}

.service-section h3 {
  margin: 22px 0 10px;
  font-size: 24px;
}

.service-section p,
.service-section li {
  color: var(--muted);
  font-size: 18px;
}

.service-section ul,
.service-section ol {
  padding-left: 22px;
}

.service-section blockquote {
  margin: 22px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--red);
  border-radius: 18px;
  background: #fff5f5;
}

.notice-card {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
}

.notice-card strong {
  color: var(--blue);
  font-size: 18px;
}

.notice-card span {
  color: var(--muted);
}

.document-grid,
.benefit-grid,
.review-grid,
.related-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.document-grid div,
.benefit-grid div,
.steps-list div,
.review-grid blockquote {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.document-grid span,
.benefit-grid span,
.steps-list span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 950;
}

.document-grid p {
  margin: 12px 0 0;
  font-weight: 800;
}

.steps-list {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
}

.steps-list p {
  margin: 0;
  font-weight: 800;
}

.price-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.price-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.price-table th,
.price-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.price-table th {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.benefit-grid div {
  min-height: 210px;
}

.benefit-grid h3 {
  margin-top: 18px;
}

.service-form-card {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(135deg, #385d9f, var(--blue));
  color: #fff;
}

.service-form-card p {
  color: #e8efff;
}

.review-grid blockquote {
  margin: 0;
}

.review-grid cite {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

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

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

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-size: 24px;
}

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

.related-services a {
  min-height: 130px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.related-services a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(23, 32, 51, .16);
}

.related-services span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.related-services strong {
  font-size: 20px;
  line-height: 1.25;
}

.price-hero,
.price-layout {
  width: min(1200px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
}

.price-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .36fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px 0 26px;
}

.price-hero > div,
.price-summary,
.price-nav,
.price-section,
.price-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.price-hero > div {
  padding: clamp(24px, 5vw, 48px);
}

.price-hero .eyebrow {
  color: var(--red);
}

.price-hero h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.price-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.price-summary {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
}

.price-summary strong {
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.price-summary span {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 900;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(240px, .28fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 44px;
}

.price-nav {
  position: sticky;
  top: 142px;
  display: grid;
  gap: 8px;
  padding: 20px;
}

.price-nav h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.price-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.price-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.price-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.price-section {
  min-width: 0;
  scroll-margin-top: 150px;
  padding: clamp(22px, 4vw, 34px);
}

.price-cards {
  display: grid;
  gap: 18px;
}

.price-card {
  min-width: 0;
  padding: 20px;
  box-shadow: none;
}

.price-card__head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.price-card__head > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.price-card p,
.factor-grid p,
.price-process p,
.price-section > p {
  color: var(--muted);
}

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

.factor-grid div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.factor-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff5f5;
  color: var(--red);
  font-weight: 950;
}

.factor-grid p {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 850;
}

.price-process {
  margin-top: 0;
}

.site-footer {
  margin-top: 56px;
  padding: 0 0 24px;
  background: #202633;
  color: #dce4f2;
}

.footer-cta {
  position: relative;
  top: -34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.footer-cta span {
  color: var(--red);
  font-weight: 900;
}

.footer-cta h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) repeat(4, minmax(0, .8fr));
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid p {
  color: #aeb9cb;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: #dce4f2;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #9aa7ba;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(8, 13, 24, .62);
}

.modal.is-open { display: grid; }

.modal-panel {
  position: relative;
  width: min(900px, 100%);
}

.modal-panel .cta-band {
  width: 100%;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .header-bottom__inner {
    display: grid;
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 122px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .menu-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: block;
  }

  .primary-nav a,
  .search-toggle,
  .catalog-toggle {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
  }

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

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

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

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .header-container,
  .first-container,
  .section-shell,
  .cta-band,
  .page-hero,
  .content-card,
  .post-grid,
  .footer-grid,
  .footer-bottom,
  .footer-cta {
    width: min(100% - 24px, 1200px);
  }

  .header-top__inner {
    min-height: auto;
    padding: 8px 0;
  }

  .top-nav {
    display: none;
  }

  .top-contacts {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .contact-mail {
    display: none;
  }

  .header-bottom__inner {
    min-height: 70px;
    gap: 10px;
  }

  .brand span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 15px;
  }

  .messenger-link {
    display: none;
  }

  .open-modal {
    min-height: 44px;
    padding: 10px 13px;
  }

  .primary-nav {
    top: 112px;
  }

  .services-drawer {
    width: 100vw;
  }

  .site-search-panel form,
  .first-container,
  .services-head,
  .about-sigma,
  .cta-band,
  .service-hero,
  .service-layout,
  .service-form-card,
  .price-hero,
  .price-layout {
    grid-template-columns: 1fr;
  }

  .service-hero,
  .service-layout,
  .price-hero,
  .price-layout {
    width: min(100% - 24px, 1200px);
  }

  .service-sidebar,
  .price-nav {
    position: static;
  }

  .service-hero {
    padding-top: 22px;
  }

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

  .service-hero p,
  .service-section p,
  .service-section li {
    font-size: 16px;
  }

  .first-card,
  .first-banner {
    min-height: auto;
  }

  .first-card h1 {
    font-size: 34px;
  }

  .first-card p {
    font-size: 17px;
  }

  .first-banner {
    min-height: 330px;
  }

  .banner-badges {
    grid-template-columns: 1fr;
  }

  .advantages-grid,
  .sigma-services-grid,
  .product-grid,
  .process-row,
  .post-grid,
  .document-grid,
  .benefit-grid,
  .review-grid,
  .related-services,
  .factor-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-actions .open-modal {
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .header-actions .open-modal::before {
    content: "↗";
    font-size: 18px;
  }

  .first-card {
    padding: 24px;
  }

  .first-card h1 {
    font-size: 30px;
  }

  .btn-red {
    width: 100%;
  }

  .service-hero,
  .service-layout,
  .price-hero,
  .price-layout {
    width: min(100% - 20px, 1200px);
  }

  .service-hero__content,
  .service-hero__card,
  .service-section,
  .service-form-card,
  .price-hero > div,
  .price-summary,
  .price-section,
  .price-card {
    border-radius: 18px;
  }

  .service-hero__actions .btn-outline,
  .service-hero__actions .btn-red {
    width: 100%;
  }

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

  .price-card__head {
    grid-template-columns: 1fr;
  }
}
