/* Local review pass, 22 July 2026. Scope: only the elements approved by the owner. */

/* Hero location line: same typography as the site, without the bright link-like blue. */
#top .hero-content > .eyebrow {
  color: #53657c !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
}

/* Process: restrained blue arrows and one monochrome icon treatment. */
@media (min-width: 700px) {
  body main #process.section .container > .roadmap > li:nth-child(n) {
    position: relative !important;
  }

  html body main #process.section .container > ol.roadmap > li:nth-child(n)::after,
  html body main #process.section .container > ol.roadmap > li:nth-child(n):not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 36px !important;
    left: 82px !important;
    right: 78px !important;
    width: auto !important;
    height: 10px !important;
    background: #d3e2f1 !important;
    clip-path: polygon(0 40%, calc(100% - 8px) 40%, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, calc(100% - 8px) 60%, 0 60%) !important;
    transform: none !important;
    pointer-events: none !important;
  }

  html body main #process.section .container > ol.roadmap > li:nth-child(n)::before {
    content: none !important;
  }
}

body main #process.section .container > .roadmap > li:nth-child(n) > i,
body main #process.section .container > .roadmap > li:nth-child(2n) > i {
  border-color: #dbe7f3 !important;
  background: #eef5fb !important;
}

body main #process.section .container > .roadmap > li:nth-child(n) > i img {
  filter: grayscale(1) sepia(.2) hue-rotate(165deg) saturate(2.2) contrast(1.02) !important;
}

/* Case identifiers must remain intact on one line. */
#cases .case-meta {
  gap: 10px !important;
}

#cases .case-number {
  min-width: 0;
  color: #15568f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  white-space: nowrap;
}

#cases .case-status {
  flex: 0 0 auto;
}

/* Yandex embeds: predictable intrinsic size while the external widget loads. */
#reviews .reviews-widget,
#reviews .map-widget {
  display: block;
  width: 100% !important;
  min-width: 0;
  height: 500px !important;
  border: 0;
  background: #f5f8fc;
}

/* Compact final consultation block. */
@media (min-width: 1024px) {
  #contacts.section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  #contacts .final-grid {
    grid-template-columns: minmax(0, .82fr) minmax(620px, 1.38fr) !important;
    align-items: start !important;
    gap: 48px !important;
  }

  #contacts .final-grid > div {
    padding-top: 8px;
  }

  #contacts .final-grid h2 {
    max-width: 610px;
    font-size: clamp(44px, 4.2vw, 62px) !important;
    line-height: .98 !important;
  }

  #contacts .final-grid > div > p {
    max-width: 610px;
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
}

@media (min-width: 700px) {
  #contacts .final-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 14px !important;
    padding: 24px !important;
  }

  #contacts .final-form > label:nth-of-type(1),
  #contacts .final-form > label:nth-of-type(3) {
    grid-column: 1;
  }

  #contacts .final-form > label:nth-of-type(2),
  #contacts .final-form > button {
    grid-column: 2;
  }

  #contacts .final-form > label:nth-of-type(1),
  #contacts .final-form > label:nth-of-type(2) {
    grid-row: 1;
  }

  #contacts .final-form > label:nth-of-type(3),
  #contacts .final-form > button {
    grid-row: 2;
  }

  #contacts .final-form > button {
    align-self: end !important;
  }

  #contacts .final-form > p {
    grid-column: 1 / -1;
  }

  #contacts .final-form input,
  #contacts .final-form select,
  #contacts .final-form > button {
    min-height: 52px !important;
    height: 52px !important;
  }

  #contacts .final-form .form-disclaimer,
  #contacts .final-form .soft-note {
    margin: 0 !important;
    padding: 13px 15px !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  #contacts .final-form .consent-text {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  #contacts.section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  #contacts .final-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #contacts .final-grid h2 {
    max-width: 700px;
    font-size: 44px !important;
    line-height: 1 !important;
  }

  #contacts .final-grid > div > p {
    max-width: 700px;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
}

/* Footer logo and columns share one top line. */
.site-footer .footer-main {
  align-items: start;
}

.site-footer .footer-brand {
  align-self: start;
}

.site-footer .footer-logo {
  width: 174px !important;
  height: 64px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin: 0 0 24px !important;
  overflow: hidden !important;
}

.site-footer .footer-logo img {
  width: 190px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left top !important;
  transform: translate(-8px, -19px) !important;
}

/* Result cards: readable full-width text on tablet and compact rows on phones. */
@media (min-width: 641px) and (max-width: 900px) {
  #result .result-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  #result .result-plan-item {
    display: flex !important;
    min-height: 250px !important;
    padding: 24px 22px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    text-align: center !important;
  }

  #result .result-plan-icon {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px !important;
    border-radius: 17px !important;
  }

  #result .result-plan-icon img {
    width: 48px !important;
    height: 48px !important;
  }

  #result .result-plan-item > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  #result .result-plan-item h3 {
    margin: 0 0 10px !important;
    font-size: 20px !important;
    text-align: center !important;
  }

  #result .result-plan-item p {
    font-size: 15px !important;
    line-height: 1.48 !important;
    text-align: center !important;
  }
}

/* Trust reasons use the same plaque language as the process cards, without numbers. */
@media (min-width: 700px) {
  #trust .trust-grid article,
  #trust .trust-grid article:nth-child(1),
  #trust .trust-grid article:nth-child(3) {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    grid-template-rows: 58px auto 1fr !important;
    gap: 0 14px !important;
    min-height: 220px !important;
    padding: 24px !important;
    border: 1px solid #d8e4f1 !important;
    border-top: 3px solid #cbdced !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(18, 52, 90, .055) !important;
  }

  #trust .trust-grid article::before {
    content: none !important;
  }

  #trust .trust-grid article::after {
    content: none !important;
  }

  #trust .trust-grid article:nth-child(n) > .trust-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    place-self: start !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 15px !important;
  }

  #trust .trust-grid article:nth-child(n) > .trust-icon img {
    width: 44px !important;
    height: 44px !important;
  }

  #trust .trust-grid article:nth-child(n) > h3 {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: auto !important;
    margin: 20px 0 8px !important;
    font-size: 20px !important;
    line-height: 1.24 !important;
    text-align: left !important;
  }

  #trust .trust-grid article:nth-child(n) > p {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    align-self: start !important;
    justify-self: stretch !important;
    width: auto !important;
    font-size: 15px !important;
    line-height: 1.48 !important;
    text-align: left !important;
  }
}

@media (max-width: 699px) {
  #top .hero-content > .eyebrow {
    font-size: 14px !important;
  }

  body main #process.section .container > .roadmap > li:nth-child(n) {
    grid-template-columns: 38px 40px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    padding: 17px 0 !important;
  }

  body main #process.section .container > .roadmap > li:nth-child(n) > span {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  body main #process.section .container > .roadmap > li:nth-child(n) > i {
    width: 40px !important;
    height: 40px !important;
  }

  body main #process.section .container > .roadmap > li:nth-child(n) > i img {
    width: 38px !important;
    height: 38px !important;
  }

  #cases .case-meta {
    align-items: center !important;
  }

  #cases .case-number {
    font-size: 12px;
  }

  #reviews .reviews-widget,
  #reviews .map-widget {
    height: 480px !important;
  }

  #contacts.section {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  #contacts .final-grid {
    gap: 20px !important;
  }

  #contacts .final-grid h2 {
    font-size: 34px !important;
    line-height: 1 !important;
  }

  #contacts .final-grid > div > p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  #contacts .final-form {
    gap: 10px !important;
    padding: 18px !important;
  }

  #contacts .final-form input,
  #contacts .final-form select,
  #contacts .final-form > button {
    min-height: 50px !important;
    height: 50px !important;
  }

  #contacts .final-form .form-disclaimer,
  #contacts .final-form .soft-note {
    margin: 0 !important;
    padding: 12px 13px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  #contacts .final-form .consent-text {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }

  .site-footer .footer-logo {
    width: 154px !important;
    height: 58px !important;
  }

  .site-footer .footer-logo img {
    width: 168px !important;
    transform: translate(-25px, -17px) !important;
  }
}

/* Final logo alignment: crop transparent PNG margins, not the visible mark. */
@media (max-width: 1500px) {
  .site-header .header-nav {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .site-header .brand-logo {
    width: 142px !important;
    min-width: 142px !important;
    height: 60px !important;
    overflow: hidden !important;
  }

  .site-header .brand-logo img {
    width: 154px !important;
    min-width: 154px !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    transform: translate(-6px, -12px) !important;
  }
}

@media (min-width: 641px) and (max-width: 1199px) {
  .site-header .brand-logo {
    width: 126px !important;
    min-width: 126px !important;
    height: 56px !important;
    overflow: hidden !important;
  }

  .site-header .brand-logo img {
    width: 138px !important;
    min-width: 138px !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    transform: translate(-6px, -11px) !important;
  }
}

@media (max-width: 640px) {
  .site-header .brand {
    min-width: 132px !important;
  }

  .site-header .brand-logo {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 58px !important;
    max-height: 58px !important;
    overflow: hidden !important;
  }

  .site-header .brand-logo img {
    width: 146px !important;
    min-width: 146px !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    transform: translate(-7px, -13px) !important;
  }
}

@media (max-width: 390px) {
  .site-header .brand {
    min-width: 128px !important;
  }

  .site-header .brand-logo {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    height: 56px !important;
  }

  .site-header .brand-logo img {
    width: 142px !important;
    min-width: 142px !important;
    transform: translate(-7px, -12px) !important;
  }
}

@media (min-width: 700px) {
  .site-footer .footer-logo img {
    transform: translate(-22px, -19px) !important;
  }
}
