/* На внутренних страницах высоту закреплённой шапки задают обе строки меню. */
body:has(> .seo-breadcrumbs) {
  padding-top: 0;
}

body:has(> .seo-breadcrumbs) > .header {
  position: sticky;
}

@media (min-width: 980px) {
  body:has(> .seo-breadcrumbs):not(.menu-open) {
    overflow-x: clip;
  }
}

.seo-breadcrumbs {
  padding-block: 0.55rem;
  color: #424b58;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.seo-breadcrumbs ol,
.seo-guide-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.seo-breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 0.7rem;
  color: #727c87;
}

.seo-breadcrumbs ol {
  row-gap: 0.1rem;
}

.seo-breadcrumbs li {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.seo-breadcrumbs a {
  display: inline-block;
  padding-block: 0.25rem;
}

.seo-breadcrumbs a,
.seo-guide a {
  color: #0c47a0;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.seo-breadcrumbs a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid #0c47a0;
  outline-offset: 2px;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.site-footer .footer-content > * {
  min-width: 0;
}

.site-footer .brand-logo {
  width: fit-content;
  margin-bottom: 1rem;
}

.site-footer .brand-mission {
  color: #393939;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.site-footer .footer-telegram {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.site-footer .nav-heading {
  text-align: left;
  margin-bottom: 0.65rem;
}

.site-footer .nav-list li {
  margin-bottom: 0.2rem;
}

.site-footer .footer-nav-link,
.site-footer .footer-address a {
  font-size: 1rem;
  line-height: 1.45;
  padding-block: 0.3rem;
}

.site-footer .footer-address {
  display: grid;
  gap: 0.2rem;
  font-style: normal;
}

.site-footer .footer-telegram,
.site-footer .footer-address a {
  width: fit-content;
  max-width: 100%;
  color: #0c47a0;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@media (max-width: 960px) {
  .site-footer .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .site-footer .footer-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

.seo-guide {
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
}

.seo-guide h1,
.seo-guide h2 {
  color: #232934;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.16;
  margin: 0 0 1rem;
}

.seo-guide .seo-guide-subtitle {
  margin-top: 2rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.seo-guide-lead,
.seo-article > p {
  max-width: 75ch;
  font-size: 1.0625rem;
}

.seo-guide p,
.seo-guide li {
  color: #323a46;
  line-height: 1.6;
}

.seo-guide-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

.seo-guide-topic {
  padding: 1.25rem;
  background: #f4f7fb;
  border: 1px solid #dce5f1;
  border-radius: 1rem;
}

.seo-guide-topic h3,
.seo-article h3 {
  font-weight: 700;
  line-height: 1.3;
  font-size: 1.125rem;
  margin: 0 0 0.65rem;
}

.seo-guide-topic p {
  margin: 0;
}

.seo-guide-links {
  gap: 0.6rem 1.2rem;
}

.seo-article h2 {
  margin-top: 1.9rem;
  font-size: clamp(1.35rem, 2.25vw, 2rem);
}

.seo-article ul {
  padding-inline-start: 1.25rem;
  list-style: disc;
  margin-block: 0.8rem;
}

.seo-article li + li {
  margin-top: 0.45rem;
}

.seo-article time {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: #576171;
}

.faq-item-surface-container > .faq-title-text-wrapper {
  width: 100%;
  margin: 0;
}

button.faq-header-clickable-area {
  font: inherit;
  text-align: start;
  background: transparent;
  border: 0;
}

button.faq-header-clickable-area:focus-visible {
  outline: 2px solid #0c47a0;
  outline-offset: 2px;
}

.service-brief.container { padding-block: clamp(2rem, 5vw, 4.5rem); }
.service-brief > header, .service-brief > p, .service-brief > ol { max-width: 76ch; }
.service-brief h2 { margin-top: 2.2rem; font-size: clamp(1.3rem, 3vw, 2rem); }
.service-brief ol { padding-inline-start: 1.5rem; }
.service-brief li, .service-brief > p + p { margin-top: 0.6rem; }
.service-brief .service-brief-cta { display: inline-flex; margin-top: 1.25rem; color: white; text-decoration: none; }
.service-brief .seo-guide-links { margin-top: 1rem; }
#obsudit-magazin, #obsudit-lending { scroll-margin-top: 7rem; }
button.mobile-menu-link { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--color-background); font-family: inherit; text-align: left; cursor: pointer; }
a.portfolio-btn-primary, a.website-types-service-button { text-decoration: none; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #0c47a0; outline-offset: 2px; }

html { overflow-y: scroll; }

.faq-header-clickable-area { min-height: 44px; }
.faq-question-title-text { min-width: 0; overflow-wrap: anywhere; }
.faq-icon-toggle-wrapper { flex: 0 0 28px; width: 28px; height: 28px; }
.faq-icon-toggle-wrapper .faq-icon-svg-element { flex: none; width: 18px; height: 18px; }
#imageModal.active #modalImage { touch-action: none; }

@media (max-width: 1280px) {
  .pricing-section-header { flex-wrap: wrap; gap: 0.75rem 1.5rem; }
  .pricing-subtitle-text { max-width: 65ch; min-width: 0; white-space: normal; line-height: 1.4; }
}

@media (max-width: 768px) {
  form input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="search"]),
  form textarea, form select, form select.careers-filter-select,
  .careers-contact-form .careers-form-field :is(input, textarea) { font-size: max(16px, 1rem); }

  #main-content > :is([class^="gv-"], [class^="po-"], [class^="ef-"], [class^="mf-"], .sf-container) {
    max-width: 100%;
    left: auto;
    right: auto;
    margin-inline: 0;
    overflow-x: clip;
  }
  #main-content > .feedback-contact-section-container { width: 100%; margin-inline: 0; }
  .seo-map-section { overflow-x: clip; }
}

.seo-guide :is(h1, h2, h3), .ht-heading-1 h1, .ht-card-title, .terms-hero-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ht-card { min-width: 0; }

button.niche-item { background: transparent; border: 0; padding: 0; font-family: inherit; text-align: start; }
.niches-interactive .niche-static-label { display: none; }
.competitive-niches-section:not(.niches-interactive) :is(.niches-left, .niches-list, .niche-image-container) { display: none; }
.competitive-niches-section:not(.niches-interactive) .niche-content {
  display: block;
  position: static;
  margin-block: 1rem;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.competitive-niches-section:not(.niches-interactive) .niche-showcase { height: auto; overflow: visible; }
.presentation-summary { position: relative; max-width: 65ch; margin: 0 auto 1.5rem; text-align: center; line-height: 1.5; }

@media (max-width: 640px) {
  .ht-heading-1 h1, .terms-hero-title { font-size: clamp(1.5rem, 1.3rem + 1.5vw, 2rem); }
  .ht-cards-container > .ht-card { width: 100%; }
  .mf-main-inner .mf-main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.45rem;
    width: 100%;
    height: auto;
    margin: 0 0 1.25rem;
  }
  .mf-main-header :is(.mf-main-title-top, .mf-main-title-bottom, .mf-main-subtitle) {
    position: static;
    width: auto;
    height: auto;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .mf-main-header :is(.mf-main-title-top, .mf-main-title-bottom) {
    font-size: clamp(1.625rem, 5vw, 2rem);
    line-height: 1.15;
  }
  .mf-main-header .mf-main-subtitle {
    order: 1;
    flex-basis: 100%;
    margin-top: 0.6rem;
    font-size: 1rem;
    line-height: 1.4;
  }
}

.seo-section-nav {
  padding-block: 1rem;
}

.seo-section-nav .seo-guide-links a {
  display: inline-block;
  padding: .4rem .2rem;
  color: #0c47a0;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.seo-guide-topic[id],
.portfolio-project-card-container[id],
#primer-lendinga,
#stoimost-seo {
  scroll-margin-top: 6rem;
}

.pricing-period {
  font-size: .65em;
  white-space: nowrap;
}

.home-search-heading .hero-title-line1 {
  display: block !important;
  max-inline-size: 28ch;
  text-wrap: balance;
  line-height: 1.12 !important;
}

.home-search-heading .hero-title-line1 span {
  white-space: nowrap;
}


.preview-card.expanded .details-button {
  flex-shrink: 0;
  min-height: 26px;
  line-height: 1.15;
}


@media (max-width: 359px) {
  .home-search-heading .hero-title-line1 { font-size: clamp(1.5rem, 8vw, 1.85rem) !important; }
}

.home-case-preview, .case-measurements { scroll-margin-top: 6rem; }

.home-case-preview .commercial-queries-content { gap: .85rem; }
.home-case-preview .commercial-queries-title {
  width: auto;
  height: auto;
  letter-spacing: .055em;
  line-height: 1.25;
}
.home-case-preview .commercial-queries-heading {
  width: auto;
  height: auto;
  max-inline-size: 10ch;
  text-wrap: balance;
}
.home-case-preview .commercial-queries-heading span { color: #c5e1ff; white-space: nowrap; }
.home-case-preview .commercial-queries-benefit { height: auto; max-width: 100%; line-height: 1.45; }
.home-case-preview .preview-card-content-main {
  z-index: 2;
  left: clamp(1rem, 2vw, 1.9rem);
}
.home-case-source {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 40px;
  padding: .15rem .55rem;
  border-radius: .45rem;
  background: rgba(9, 24, 44, .85);
  color: white;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.home-case-source:hover { background: #163350; color: white; }
.home-case-source:focus-visible { outline: 3px solid white; outline-offset: 3px; }

.seo-portfolio-section:not(.has-case-controls) :is(.seo-portfolio-filters, .seo-portfolio-show-more-wrap, .seo-portfolio-zoom-btn) {
  display: none;
}
#seoPortfolioGrid .seo-portfolio-card-title { line-height: 1.1; }
.case-measurements p { margin: .75rem 0; max-width: 65ch; }
.case-measurements details { max-width: 36rem; margin: 1.25rem 0; }
.case-measurements summary {
  cursor: pointer;
  color: #0c47a0;
  font-weight: 650;
  padding: .65rem 0;
}
.case-measurements table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.case-measurements caption { text-align: start; padding: .7rem 0; }
.case-measurements :is(th, td) { padding: .4rem .6rem; border-bottom: 1px solid #c7d4e4; text-align: start; }
.case-measurements thead { background: #edf4fc; }
.case-measurements tbody th { font-weight: 500; }

.home-search-intro.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .85fr);
  gap: clamp(1rem, 4vw, 4.5rem);
  align-items: center;
}
.home-search-intro .home-search-heading { min-width: 0; max-width: 100%; }
.home-search-offer { max-width: 46ch; color: #273849; }
.home-search-offer p { margin: 0; font-size: clamp(1rem, 1.24vw, 1.2rem); line-height: 1.45; }
.home-search-offer a, .seo-development-links a {
  color: #0c4798;
  text-decoration: underline;
  text-underline-offset: .17em;
}
.home-search-offer a { display: inline-block; padding-block: .5rem; }
.home-search-intro .mobile-consultation-button { text-decoration: none; }

.seo-directions { padding-block: clamp(2rem, 4.5vw, 4.5rem); }
.seo-directions h2 {
  max-width: 30ch;
  margin: 0 0 1rem;
  color: #232934;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.14;
}
.seo-directions .seo-directions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 4px;
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  align-items: stretch;
  box-sizing: border-box;
}
.seo-direction {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid #cbd9e8;
  border-radius: 1.15rem;
  background: #f5f8fc;
}
.seo-direction h3 { margin: 0; font-size: clamp(1.18rem, 1.7vw, 1.55rem); line-height: 1.22; }
.seo-direction h3 a { color: #144b91; text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.seo-direction h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.seo-direction:focus-within { outline: 3px solid #1455a5; outline-offset: 0; }
.seo-direction:hover { border-color: #5485b9; }
.seo-direction p { margin: 0; line-height: 1.48; color: #293a4b; }
.seo-direction .seo-direction-rate { margin-top: auto; padding-top: .45rem; font-weight: 650; color: #142f50; }
.seo-development-links { margin: .85rem 0 0; font-size: 1rem; line-height: 1.5; color: #354656; }
#zakazat-seo, #napravleniya-seo { scroll-margin-top: 6rem; }
.hero-service-card .catalog-service-link { color: inherit; text-decoration: none; }
.catalog-service-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.catalog-service-link:hover .hero-button-icon, .catalog-service-link:focus-visible .hero-button-icon { background-color: #d9eafb; }

@media (max-width: 980px) {
  .seo-directions .seo-directions-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
  }
  .seo-direction { flex: 0 0 min(100%, max(78%, 18rem)); box-sizing: border-box; scroll-snap-align: start; }
  .seo-directions .services-slider-dots { justify-content: center; margin: .75rem auto; }
}
@media (max-width: 760px) {
  .home-search-intro.hero-content { grid-template-columns: minmax(0, 1fr); gap: .65rem; align-items: start; }
  .home-search-offer { max-width: 56ch; }
  .home-search-offer a { min-height: 2rem; }
}

.inquiry-service {
  display: grid;
  gap: .35rem;
  min-width: 0;
  width: 100%;
  text-align: left;
  font-size: .95rem;
}
.inquiry-service select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .65rem;
  border: 1px solid #828da0;
  border-radius: 8px;
  background-color: #fff;
  color: #223650;
  font: inherit;
  font-size: max(1rem, 16px);
}
.seo-feedback-overlay .seo-feedback-wrapper {
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
}

.subscription-form-input-button-container { flex-wrap: wrap; }
.subscription-form-input-button-container > label { flex-basis: 100%; color: #24394d; font-weight: 500; }
.office-directions-link { display: inline-block; margin-top: .65rem; color: #164a87; text-decoration: underline; }
.seobrain-stat-number { overflow-wrap: anywhere; }
.office-directions-link + .office-directions-link { margin-inline-start: .7rem; }

dialog.seo-feedback-overlay {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  color: inherit;
}
dialog.seo-feedback-overlay::backdrop { background: transparent; }
.seo-feedback-overlay .seo-feedback-wrapper {
  box-sizing: border-box;
  height: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  align-items: flex-start;
}
.seo-feedback-overlay .seo-feedback-inner-container,
.seo-feedback-overlay .seo-feedback-inputs-container,
.seo-feedback-overlay .seo-feedback-form-element {
  height: auto;
  width: 100%;
  min-width: 0;
}
.seo-feedback-overlay .seo-feedback-inner-container { gap: 1.2rem; }
.seo-feedback-overlay .seo-feedback-form-element { gap: 1.15rem; }
.seo-feedback-overlay .seo-feedback-inputs-container { gap: .55rem; }
.seo-feedback-overlay .seo-feedback-input-group,
.brief-form-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  align-items: stretch;
  gap: .15rem;
  width: 100%;
  min-width: 0;
  height: auto;
  background: transparent;
}
.seo-feedback-overlay .seo-feedback-input-box {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: .15rem .75rem;
  gap: .1rem;
  background: #fff;
}
.seo-feedback-overlay .seo-feedback-text-input {
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 36px;
  font-size: max(1rem, 16px);
}
.inquiry-field-caption {
  color: #344454;
  text-align: left;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 600;
}
.test-drive-section .contact-form { height: auto; }
.test-drive-section .brief-form-field input,
.test-drive-section .button-submit { min-height: 44px; }

.seo-article .seo-guide-topics-nav ul {
  list-style: none;
  padding-inline-start: 0;
}

.seo-article h2[id] {
  scroll-margin-top: 6rem;
}

.wiki-example {
  width: min(100%, 43rem);
  margin: 1rem 0;
  border-collapse: collapse;
  color: #323a46;
  line-height: 1.5;
}

.wiki-example th,
.wiki-example td {
  border: 1px solid #dce5f1;
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.wiki-example th {
  background: #f4f7fb;
}

.wiki-example caption {
  color: #576171;
  padding-block-end: 0.5rem;
  text-align: left;
}

.wiki-search {
  max-width: 43rem;
  margin-block: 1.5rem;
}
.wiki-search label {
  display: block;
  margin-block-end: .5rem;
  color: #273342;
  font-weight: 600;
}
.wiki-search input {
  width: 100%;
  padding: .65rem .8rem;
  color: #273342;
  background: #fff;
  border: 1px solid #becbdb;
  border-radius: .6rem;
  font: inherit;
}
.wiki-search input:focus-visible {
  outline: 2px solid #0c47a0;
  outline-offset: 2px;
}
#wiki-count:not(:empty) {
  margin: .5rem 0 0;
}
[data-wiki-group] [hidden],
[data-wiki-nav][hidden] {
  display: none;
}

@media (min-width: 980px) {
  .portfolio-section-wrapper .portfolio-main-frame {
    --portfolio-control-size: 48px;
    --portfolio-control-gap: clamp(10px, 1.1vw, 18px);
    --portfolio-card-gap: clamp(16px, 1.6vw, 28px);
    display: grid;
    grid-template-columns: var(--portfolio-control-size) minmax(0, 1fr) var(--portfolio-control-size);
    column-gap: var(--portfolio-control-gap);
  }

  .portfolio-section-wrapper .portfolio-header-container {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .portfolio-section-wrapper .portfolio-grid-wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .portfolio-section-wrapper.portfolio-slider-ready .portfolio-grid-wrapper {
    grid-column: 2;
    scrollbar-width: none;
  }

  #main-content .portfolio-section-wrapper.portfolio-slider-ready .portfolio-nav-arrows {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
    display: flex !important;
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
  }

  #main-content .portfolio-section-wrapper .portfolio-grid-container {
    margin: 0;
    padding: 0;
    gap: var(--portfolio-card-gap);
    overflow: visible;
  }

  #main-content .portfolio-section-wrapper .portfolio-card-item {
    flex: 0 0 calc((100% - 2 * var(--portfolio-card-gap)) / 3);
    min-width: 0;
  }

  .portfolio-section-wrapper .portfolio-card-project-info {
    gap: clamp(8px, 1vw, 18px);
  }

  .portfolio-section-wrapper .portfolio-card-services-list {
    min-width: 0;
  }

  .portfolio-section-wrapper :is(.portfolio-service-tag-outline, .portfolio-service-tag-filled) {
    max-width: 100%;
  }

  .portfolio-section-wrapper .portfolio-service-tag-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .portfolio-section-wrapper .portfolio-view-all-btn {
    display: none;
  }

  .portfolio-section-wrapper .portfolio-arrow-btn {
    width: var(--portfolio-control-size);
    height: var(--portfolio-control-size);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0c47a0;
    pointer-events: auto;
    cursor: pointer;
  }

  .portfolio-section-wrapper .portfolio-arrow-btn:disabled {
    background: #697b90;
    opacity: 1;
    cursor: default;
  }

  .portfolio-section-wrapper .portfolio-arrow-btn:focus-visible {
    outline: 3px solid #0c47a0;
    outline-offset: 3px;
  }
}

/* Each industry keeps the same label and hit area as its example changes. */
#main-content .niches-interactive .niches-items {
  align-items: stretch;
}

#main-content .niches-interactive .niche-item {
  display: block;
  width: 100%;
  min-height: 1.5em;
  font-size: clamp(1rem, 1.2vw, 1.375rem);
  line-height: 1.3;
  text-align: end;
  color: #595959;
  pointer-events: auto;
  transition: color 150ms ease;
}

#main-content .niches-interactive .niche-item.active {
  color: #0c47a0;
  text-decoration: underline;
  text-underline-offset: 0.17em;
}

@media (480px < width <= 1150px) {
  #main-content .niches-interactive .niche-item {
    text-align: start;
  }
}

/* The longest example sets the panel height, including before an image loads. */
#main-content .niches-interactive .niche-showcase {
  display: grid;
  height: auto;
  overflow: clip;
}

#main-content .niches-interactive .niche-content {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
}

#main-content .niches-interactive .niche-description {
  line-height: 1.35;
}

@media (1150px < width < 1616px) {
  #main-content .niches-interactive .niche-image-container {
    max-width: 100%;
  }

  #main-content .niches-interactive .niche-image-container img {
    max-width: calc(100% - 20px);
  }
}

/* Текущий адрес и его раздел остаются различимы при наведении на соседние ссылки. */
.header a[aria-current="page"],
.mobile-menu a[aria-current="page"],
.header-current-location > span {
  color: #fff;
  -webkit-text-fill-color: currentColor;
  background: #104da7;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px #0b428f;
}

.header [data-current-section],
.mobile-menu [data-current-section] {
  color: #10458f;
  -webkit-text-fill-color: currentColor;
  background: #eaf2ff;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1.5px #3169b5;
}

.header-current-location {
  display: none;
  padding: 0 1rem 0.4rem;
  text-align: center;
}

.header-current-location > span {
  display: inline-block;
  max-width: 100%;
  padding: 0.27em 0.75em;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.header:not(:has(a[aria-current="page"])) .header-current-location,
body.secondary-nav-hidden .header:not(:has(.main-navigation a[aria-current="page"])) .header-current-location {
  display: block;
}

.header .secondary-nav-link[aria-current="page"] {
  display: inline-flex;
}

/* Обе строки шапки используют одинаковую ширину и поля контейнера. */
.header .primary-nav {
  max-width: none;
  padding-inline: 0;
}

.header .primary-nav-inner {
  max-width: 100%;
}

@media (width > 690px) {
  .header .container { max-width: 1290px; }
  .header .primary-nav-inner { padding-inline: 0; }
}

@media (min-width: 1616px) {
  .header .container { max-width: 1630px; }
}

.header .secondary-nav-links {
  gap: clamp(0.15rem, 0.55vw, 0.65rem);
  min-width: 0;
}
.header .secondary-nav .secondary-nav-inner {
  padding-inline: 0;
}
.header :is(.nav-link,.secondary-nav-link):focus-visible,
.mobile-menu :is(a,button):focus-visible {
  outline: 2px solid #104da7;
  outline-offset: 2px;
}

@media (max-width: 690px) {
  .header .header-current-location { display: block; }
  body:has(.main-navigation a[href="/"][aria-current="page"]) { padding-top: 0; }
  body:has(.main-navigation a[href="/"][aria-current="page"]) > .header { position: sticky; }
}

/* Обе колонки баннера занимают высоту своего текста, включая переносы при увеличении. */
.hero-image-container:has(> .seo-promotion-primary-content-wrapper) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.3rem, 4vw, 4rem);
  padding: clamp(1.25rem, 3vw, 3.25rem);
  min-height: clamp(17rem, 21vw, 23rem);
  height: auto;
  isolation: isolate;
}
.hero-image-container:has(> .seo-promotion-primary-content-wrapper) > .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image-container :is(.seo-promotion-primary-content-wrapper, .seo-promotion-secondary-content-wrapper) {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 24rem;
  min-width: 0;
  gap: clamp(0.75rem, 1.3vw, 1.35rem);
  align-self: center;
}
.hero-image-container .seo-promotion-secondary-content-wrapper {
  justify-self: end;
  max-width: 18rem;
}
.hero-image-container :is(.seo-promotion-category-label, .seo-promotion-main-heading, .seo-promotion-benefit-description, .seo-promotion-experience-heading, .seo-promotion-experience-description) {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
}
.hero-image-container :is(.seo-promotion-main-heading,.seo-promotion-experience-heading) { line-height: 1.12; }
.hero-image-container .seo-promotion-call-to-action-button { margin: 0; max-width: 100%; }
@media (max-width: 730px) {
  .hero-image-container:has(> .seo-promotion-primary-content-wrapper) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    align-content: space-between;
    min-height: 23rem;
  }
  .hero-image-container .seo-promotion-secondary-content-wrapper { justify-self: start; }
}

/* Документ в превью целиком помещается в рамку вплоть до собственного разрешения. */
.seo-case-main-card .seo-case-portfolio-image,
.test-drive-section .portfolio-container { background: #fff; }
.seo-case-main-card .seo-case-portfolio-image img,
.test-drive-section .portfolio-container .portfolio-image,
.seo-portfolio-card-image-wrap > img {
  object-fit: scale-down;
  object-position: center;
  background-color: #fff;
}
.seo-case-main-card .seo-case-portfolio-image:hover img,
.test-drive-section .portfolio-container .portfolio-image:hover { transform: none; }

/* Номер и точка имеют одну ось. Каждый отрезок соединяет центры соседних карточек. */
.business-improvement-section .business-improvement-frame {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  width: 100%;
  min-width: 0;
  height: auto;
}
.business-improvement-section .business-improvement-frame > .divider-line,
.business-improvement-section .steps-container-grid::before { display: none; }
.business-improvement-section .process-header-wrapper {
  position: static;
  width: 100%;
  height: auto;
}
.business-improvement-section :is(.main-title-h1, .header-text-container, .description-text-large) {
  width: 100%;
  height: auto;
}
.business-improvement-section .description-text-large { max-width: 48rem; }
.business-improvement-section .steps-container-grid {
  --step-gap: clamp(1.25rem, 3vw, 3.5rem);
  --step-circle: clamp(3.5rem, 4vw, 4.75rem);
  --step-dot: 0.875rem;
  position: relative;
  inset: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: var(--step-gap);
  row-gap: clamp(0.875rem, 1.6vw, 1.5rem);
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0.5rem;
}
.business-improvement-section .step-card-item {
  grid-row: 1 / span 3;
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: inherit;
  min-width: 0;
  width: auto;
  height: auto;
  align-items: start;
}
.business-improvement-section .step-heading-wrapper {
  width: 100%;
  height: auto;
  gap: clamp(0.55rem, 1vw, 1rem);
  align-self: start;
}
.business-improvement-section .number-badge-circle {
  flex: 0 0 var(--step-circle);
  min-width: 0;
  width: var(--step-circle);
  height: var(--step-circle);
  border-radius: 50%;
  padding: 0;
}
.business-improvement-section :is(.step-title-h5, .badge-number-text, .step-description-text) {
  min-width: 0;
  width: auto;
  height: auto;
}
.business-improvement-section .step-content-wrapper { display: contents; }
.business-improvement-section .ellipse-indicator-container {
  position: relative;
  align-self: center;
  display: block;
  width: 100%;
  height: var(--step-dot);
  min-height: 0;
  margin: 0;
  padding: 0;
}
.business-improvement-section .step-card-item:not(:last-child) .ellipse-indicator-container::before {
  content: "";
  position: absolute;
  left: calc(var(--step-circle) / 2);
  top: 50%;
  width: calc(100% + var(--step-gap));
  height: 2px;
  background: #b8c1ce;
  transform: translateY(-50%);
}
.business-improvement-section .ellipse-dot {
  position: absolute;
  left: calc(var(--step-circle) / 2);
  top: 50%;
  width: var(--step-dot);
  height: var(--step-dot);
  margin: 0;
  transform: translate(-50%, -50%);
}
@media (max-width: 960px) {
  .business-improvement-section .steps-container-grid {
    grid-auto-columns: min(78vw, 17.5rem);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  .business-improvement-section .step-card-item { scroll-snap-align: start; }
}


.seo-case-main-card .case-heading-identity {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  min-width: 0;
  flex: 1;
}
.seo-case-main-card .case-heading-identity .seo-case-logo {
  position: static;
  flex: 0 0 auto;
  width: clamp(1.8rem, 2.6vw, 2.65rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 1;
}
.seo-case-main-card .case-heading-identity .seo-case-title-block {
  min-width: 0;
  width: auto;
  margin: 0;
}
.seo-case-main-card .case-heading-identity .seo-case-case-title {
  height: auto;
  overflow: visible;
}
.test-drive-section .portfolio-image[src$="test-drive-1.webp"] {
  object-fit: none;
  object-position: center top;
}
@media (max-width: 730px) {
  .seo-case-main-card .seo-case-portfolio-image img,
  .test-drive-section .portfolio-container .portfolio-image {
    object-fit: none;
    object-position: left top;
  }
  .hero-image-container:has(> .seo-promotion-primary-content-wrapper)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(6 17 35 / 48%), rgb(6 17 35 / 6%));
    z-index: 1;
  }
}
.seo-portfolio-card-image-wrap:hover > img { transform: none; }
