:root {
  --navy: #0c2035;
  --navy-2: #071a2a;
  --red: #be1122;
  --red-dark: #9f0d1b;
  --cream: #f8f5f0;
  --soft: #f5f1ec;
  --white: #ffffff;
  --text: #142235;
  --muted: #5c6670;
  --line: #e4ded6;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

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

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}


/* HEADER */

.site-header {
  position: relative;
  z-index: 30;
  min-height: 76px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #eee8e0;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  fill: var(--navy);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.brand-text small {
  margin-top: 4px;
  color: #7e848a;
  font-size: 10px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 27px;
}

.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}

.main-nav a:hover::after {
  right: 0;
}

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

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

.header-phone .phone-icon {
  color: var(--red);
  font-size: 22px;
}

.header-phone span:last-child {
  display: flex;
  flex-direction: column;
}

.header-phone strong {
  font-size: 19px;
  line-height: 1;
}

.header-phone small {
  margin-top: 5px;
  font-size: 9px;
  color: #80858b;
}


/* BUTTONS */

.button {
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 16px 25px;
  background: var(--red);
  color: white;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  transition:
    background .15s ease,
    transform .15s ease;
}

.button:hover {
  background: var(--red-dark);
}

.button:active {
  transform: translateY(1px);
}

.button span {
  margin-left: 10px;
}

.button-small {
  padding: 13px 18px;
  white-space: nowrap;
  font-size: 12px;
}

.button-outline {
  width: 100%;
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red);
}

.button-outline:hover {
  color: #fff;
  background: var(--red);
}


/* HERO */

.hero {
  overflow: hidden;
  background:
    linear-gradient(90deg, #fcfaf7 0%, #fcfaf7 44%, #f2eee8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 555px;
  display: grid;
  grid-template-columns: 50% 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px 34px 18px;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .04em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 17px;
  height: 2px;
  margin-right: 8px;
  background: var(--red);
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 4.2vw, 66px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
}

.hero h1 span {
  color: var(--red);
}

.hero-lead {
  max-width: 550px;
  margin: 22px 0 0;
  color: #243242;
  font-size: 17px;
  line-height: 1.45;
}

.hero-buttons {
  margin-top: 27px;
  display: flex;
  align-items: center;
  gap: 27px;
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 11px;
}

.phone-round {
  color: var(--red);
  font-size: 27px;
}

.phone-cta span:last-child {
  display: flex;
  flex-direction: column;
}

.phone-cta strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.phone-cta small {
  margin-top: 5px;
  color: #777f87;
  font-size: 10px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 29px;
  padding-top: 18px;
  border-top: 1px solid #e5ded6;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding-right: 14px;
  font-size: 11px;
  color: #59636d;
}

.benefit + .benefit {
  padding-left: 15px;
  border-left: 1px solid #e2dbd2;
}

.benefit-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-weight: 900;
}

.image-slot {
  background-color: #efebe5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-main {
  position: relative;
  min-height: 100%;
  background-image:
    linear-gradient(90deg, #fcfaf7 0%, rgba(252,250,247,.15) 24%, rgba(252,250,247,0) 45%),
    url("/assets/img/hero-main.webp");
  background-position: 82% center;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 130px;
  background: linear-gradient(
    90deg,
    #fcfaf7 0%,
    rgba(252,250,247,.85) 25%,
    rgba(252,250,247,0) 100%
  );
}


/* GENERAL SECTIONS */

.section {
  padding: 54px 0;
}

.section-soft {
  background: var(--cream);
  border-top: 1px solid #eee8e0;
  border-bottom: 1px solid #eee8e0;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 43px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.section-head {
  margin-bottom: 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-head > p {
  margin: 0 0 3px;
  text-align: right;
  color: #6e767e;
  font-size: 12px;
}


/* SERVICES */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 39% 61%;
  background: #fff;
}

.service-card + .service-card {
  border-left: 1px solid var(--line);
}

.service-image {
  min-height: 340px;
}

.service-property {
  background-image: url("/assets/img/service-property.webp");
}

.service-alimony {
  background-image: url("/assets/img/service-alimony.webp");
}

.service-body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
}

.service-body h3,
.consultation-grid h3,
.price-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.15;
}

.service-intro {
  min-height: 54px;
  margin: 7px 0 13px;
  color: #59636d;
  font-size: 13px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 27px;
  color: #505b66;
  font-size: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
}

.service-button {
  width: 100%;
  margin-top: auto;
}


/* CONSULTATION */

.section-soft h2 {
  margin-bottom: 27px;
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 275px;
  gap: 40px;
  align-items: start;
}

.consultation-title {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.consultation-title h3 {
  padding-top: 4px;
  font-size: 19px;
}

.large-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}

.check-list.large li {
  margin: 9px 0;
  font-size: 12px;
}

.consultation-cta {
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.consultation-cta h3 {
  margin-bottom: 21px;
  font-size: 18px;
}

.consultation-cta .button {
  width: 100%;
}

.aside-phone {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
}

.aside-phone > span:first-child {
  color: var(--red);
  font-size: 23px;
}

.aside-phone > span:last-child {
  display: flex;
  flex-direction: column;
}

.aside-phone strong {
  font-size: 20px;
  line-height: 1;
}

.aside-phone small {
  margin-top: 5px;
  color: #747d85;
  font-size: 9px;
}


/* PRICES */

#prices h2 {
  margin-bottom: 28px;
}

.prices-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 260px;
  gap: 12px;
}

.price-card,
.price-features {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-card {
  padding: 25px;
}

.price-card h3 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.price-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 17px;
}

.price-row {
  min-height: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eee9e3;
  font-size: 12px;
}

.price-row span {
  padding: 10px 0;
  color: #525d68;
}

.price-row strong {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 13px;
}

.price-card .button {
  margin-top: 20px;
}

.price-features {
  padding: 27px 22px;
  background: var(--cream);
}

.price-features > div {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.price-features > div > span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.price-features p {
  margin: 2px 0 0;
  color: #525c66;
  font-size: 11px;
}

.price-features .privacy-feature {
  margin-top: 34px;
  padding-top: 23px;
  border-top: 1px solid #ded7ce;
}


/* FAQ */

.section-faq {
  padding-top: 43px;
  padding-bottom: 50px;
}

.section-faq h2 {
  margin-bottom: 19px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
}

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.faq-grid summary {
  position: relative;
  padding: 14px 45px 14px 17px;
  color: #394653;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 9px;
  color: var(--red);
  font-size: 23px;
  line-height: 1;
}

.faq-grid details[open] summary::after {
  content: "–";
}

.faq-grid details p {
  margin: 0;
  padding: 0 17px 16px;
  color: #65707a;
  font-size: 12px;
  line-height: 1.6;
}


/* FINAL CTA */

.final-cta {
  position: relative;
  min-height: 225px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--navy);
  background-image: url("/assets/img/cta-krasnoyarsk.webp");
  background-position: center;
}

.final-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(5,24,40,.98) 0%,
      rgba(5,24,40,.90) 40%,
      rgba(5,24,40,.47) 72%,
      rgba(5,24,40,.40) 100%
    );
}

.final-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.final-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  line-height: 1.05;
}

.final-content p {
  margin: 9px 0 19px;
  color: #e1e6ea;
  font-size: 14px;
}

.final-buttons {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.final-phone {
  min-width: 205px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 5px;
}

.final-phone > span:first-child {
  color: #ff3e50;
  font-size: 22px;
}

.final-phone > span:last-child {
  display: flex;
  flex-direction: column;
}

.final-phone strong {
  font-size: 17px;
}

.final-phone small {
  margin-top: 2px;
  color: #d1d8dd;
  font-size: 8px;
}

.final-meta {
  display: flex;
  gap: 24px;
  padding-bottom: 7px;
  color: #edf1f4;
  font-size: 10px;
}



/* HERO MESSENGERS */

.hero-messengers {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.hero-messengers-label {
  color: #747d85;
  font-size: 11px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  transition: opacity .15s ease;
}

.messenger-link:hover {
  opacity: .7;
}

.messenger-icon {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 23px;
  border-radius: 50%;
}

.messenger-icon svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

.telegram-icon {
  background: #229ed9;
}

.max-icon {
  color: #fff;
  background: linear-gradient(135deg, #665cff 0%, #00b7ff 100%);
  font-size: 11px;
  font-weight: 900;
}


/* FOOTER */

.footer {
  color: #fff;
  background: #0e1215;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 100px;
  padding-top: 52px;
  padding-bottom: 48px;
}

.footer-domain {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 31px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.04em;
}

.footer-brand-column strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.footer-brand-column p,
.footer-contact-column p {
  margin: 13px 0 0;
  color: #8d99a2;
  font-size: 12px;
  line-height: 1.6;
}

.footer-caption {
  margin-bottom: 19px;
  color: #82909b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.footer-big-phone {
  display: inline-block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .015em;
}

.footer-messengers {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 17px;
}

.footer-messenger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.footer-messenger:hover {
  opacity: .75;
}

.footer-messenger-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 50%;
}

.footer-messenger-icon svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

.telegram-bg {
  background: #229ed9;
}

.max-bg {
  color: #fff;
  background: linear-gradient(135deg, #665cff 0%, #00b7ff 100%);
  font-size: 10px;
  font-weight: 900;
}

.footer-doc-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-document-link {
  display: block;
  margin: 0 0 13px;
  padding: 0;
  color: #e3e7ea;
  background: none;
  border: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
}

.footer-document-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #65727c;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 9px;
}


/* DIALOG */


dialog {
  padding: 0;
}

dialog::backdrop {
  background: rgba(5, 17, 29, .72);
  backdrop-filter: blur(2px);
}

.lead-dialog,
.privacy-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.lead-dialog[open],
.privacy-dialog[open] {
  animation: dialogIn .18s ease-out;
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-shell {
  position: relative;
  padding: 35px;
  background: #fff;
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 13px;
  width: 37px;
  height: 37px;
  padding: 0;
  color: #6e747a;
  background: transparent;
  border: 0;
  font-size: 31px;
  font-weight: 300;
}

.dialog-kicker {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.dialog-shell h2 {
  max-width: 460px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  line-height: 1.04;
}

.dialog-lead {
  max-width: 500px;
  margin: 13px 0 25px;
  color: #65707a;
  font-size: 13px;
}

#leadForm {
  display: grid;
  gap: 14px;
}

#leadForm > label:not(.consent) {
  display: grid;
  gap: 6px;
}

#leadForm label > span:first-child {
  color: #354250;
  font-size: 11px;
  font-weight: 700;
}

#leadForm label b {
  color: var(--red);
}

#leadForm input[type="text"],
#leadForm input[type="tel"],
#leadForm select,
#leadForm textarea {
  width: 100%;
  outline: none;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d9d5cf;
  border-radius: 4px;
  font-size: 14px;
  transition: border .15s ease;
}

#leadForm textarea {
  resize: vertical;
  min-height: 112px;
}

#leadForm input:focus,
#leadForm select:focus,
#leadForm textarea:focus {
  border-color: var(--navy);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 3px;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.consent > span {
  color: #707981 !important;
  font-size: 10px !important;
  line-height: 1.5;
  font-weight: 400 !important;
}

.inline-link {
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: inherit;
  text-decoration: underline;
}

.dialog-submit {
  width: 100%;
  margin-top: 3px;
}

.dialog-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.form-status {
  min-height: 19px;
  margin: -3px 0 0;
  font-size: 11px;
}

.form-status.success {
  color: #16733c;
}

.form-status.error {
  color: var(--red);
}

.dialog-phone {
  margin-top: 17px;
  padding-top: 15px;
  text-align: center;
  color: #7a8289;
  border-top: 1px solid #eee9e3;
  font-size: 11px;
}

.dialog-phone a {
  margin-left: 5px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.privacy-shell {
  padding-bottom: 38px;
}

.privacy-text {
  margin-top: 24px;
  color: #59646e;
  font-size: 13px;
  line-height: 1.65;
}

.privacy-warning {
  padding: 13px 15px;
  color: #6b4911;
  background: #fff8e7;
  border: 1px solid #ecd9aa;
}


/* RESPONSIVE */

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .consultation-cta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
  }

  .consultation-cta h3 {
    margin: 0;
  }

  .consultation-cta .button {
    width: auto;
  }

  .aside-phone {
    margin: 0;
  }

  .prices-layout {
    grid-template-columns: 1fr 1fr;
  }

  .price-features {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .price-features > div,
  .price-features .privacy-feature {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .final-meta {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 40px 0 31px;
  }

  .hero-main {
    min-height: 430px;
    background-image: url("/assets/img/hero-main.webp");
  }

  .hero-main::after {
    inset: 0 0 auto 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(
      180deg,
      #fcfaf7 0%,
      rgba(252,250,247,0) 100%
    );
  }

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

  .service-card + .service-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-top {
    flex-wrap: wrap;
    padding: 25px 0;
  }

  .footer-nav {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }

  .site-header {
    min-height: 66px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand-icon {
    width: 31px;
    height: 31px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text small {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .header-actions .button {
    padding: 11px 12px;
    font-size: 10px;
  }

  .hero-content {
    padding-top: 31px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .phone-cta {
    justify-content: center;
  }

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

  .benefit {
    padding: 11px 0;
  }

  .benefit + .benefit {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #e2dbd2;
  }

  .hero-main {
    min-height: 320px;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head > p {
    display: none;
  }

  .section h2 {
    font-size: 34px;
  }

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

  .service-image {
    min-height: 260px;
  }

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

  .consultation-cta {
    grid-column: auto;
    display: block;
  }

  .consultation-cta h3 {
    margin-bottom: 20px;
  }

  .consultation-cta .button {
    width: 100%;
  }

  .aside-phone {
    margin-top: 19px;
  }

  .prices-layout {
    grid-template-columns: 1fr;
  }

  .price-features {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }

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

  .final-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta {
    min-height: 310px;
  }

  .final-content h2 {
    font-size: 35px;
  }

  .final-buttons {
    width: 100%;
    flex-direction: column;
  }

  .final-buttons .button,
  .final-phone {
    width: 100%;
  }

  .footer-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .footer-bottom > div {
    flex-direction: column;
    gap: 7px;
  }

  .dialog-shell {
    padding: 28px 20px 24px;
  }

  .dialog-shell h2 {
    padding-right: 30px;
    font-size: 30px;
  }
}


@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  .footer-doc-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hero-messengers {
    flex-wrap: wrap;
  }

  .hero-messengers-label {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 40px;
  }

  .footer-doc-column {
    grid-column: auto;
  }

  .footer-domain {
    font-size: 27px;
  }

  .footer-big-phone {
    font-size: 31px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }
}

/* ===== FIX 2026-10-01: HERO + MESSENGERS ===== */

/* Hero image: показываем правую часть исходника, включая женщину */
.hero-main {
    background-size: cover !important;
    background-position: 100% center !important;
}

/* Мессенджеры в hero */
.hero-messengers {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 14px !important;
    min-height: 26px;
}

.hero-messengers-label {
    color: #747d85;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.messenger-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    height: 26px !important;
    color: #0c2035;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
}

.messenger-icon {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex: 0 0 24px !important;
    border-radius: 50% !important;
}

.messenger-icon svg {
    display: block !important;
    width: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
    max-height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.telegram-icon {
    background: #229ed9 !important;
}

.telegram-icon svg {
    fill: #fff !important;
}

.max-icon {
    background: linear-gradient(135deg,#695cff,#00b8ff) !important;
    color: #fff !important;
    font-family: Arial,sans-serif !important;
    font-size: 10px !important;
    line-height: 24px !important;
    font-weight: 900 !important;
}

/* Footer messenger SVG — страховка от той же проблемы */
.footer-messenger-icon {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    overflow: hidden !important;
}

.footer-messenger-icon svg {
    display: block !important;
    width: 12px !important;
    max-width: 12px !important;
    height: 12px !important;
    max-height: 12px !important;
}

/* Mobile */
@media (max-width: 720px) {
    .hero-main {
        background-position: 82% center !important;
    }

    .hero-messengers {
        flex-wrap: wrap !important;
    }
}



/* ===== FIX HERO / FINAL CTA 2026-10-01 ===== */

/* даём картинке чуть больше места */
.hero-grid {
  grid-template-columns: 48% 52% !important;
}

/* мягче и уже белый уход слева */
.hero-main {
  background-image:
    linear-gradient(
      90deg,
      #fcfaf7 0%,
      rgba(252,250,247,0.03) 10%,
      rgba(252,250,247,0) 24%
    ),
    url("/assets/img/hero-main.webp") !important;
  background-size: cover !important;
  background-position: 94% center !important;
}

/* уменьшаем дополнительный белый слой,
   который залезал на мужчину */
.hero-main::after {
  width: 58px !important;
  background: linear-gradient(
    90deg,
    #fcfaf7 0%,
    rgba(252,250,247,0.38) 42%,
    rgba(252,250,247,0) 100%
  ) !important;
}

/* нижний CTA — одна кнопка, без второго телефона */
.final-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.final-buttons .button {
  width: auto;
}

.final-phone {
  display: none !important;
}

/* на мобильном hero чуть иначе кадрируем */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-main {
    background-position: 82% center !important;
  }

  .hero-main::after {
    width: 100% !important;
    height: 70px !important;
  }
}

@media (max-width: 720px) {
  .final-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .final-buttons .button {
    width: 100%;
  }
}



/* ===== OFFICIAL MAX LOGO ===== */

.max-icon,
.max-bg {
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: visible !important;
}

.max-icon img {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
}

.footer-messenger-icon.max-bg img {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain !important;
}

/* ===== HERO COMPOSITION FINAL ===== */

/*
 * Не используем cover:
 * он чрезмерно увеличивал фотографию и обрезал композицию.
 */
.hero-main {
    position: relative !important;

    background-image: url("/assets/img/hero-main.webp") !important;

    /*
     * 106% ширины контейнера вместо ~120%, которые фактически
     * получались при cover.
     */
    background-size: 106% auto !important;

    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-color: #f8f5f0 !important;
}

/*
 * Очень узкий переход между текстовой зоной и фотографией.
 * Он больше не должен доходить до лица мужчины.
 */
.hero-main::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 105px !important;

    background: linear-gradient(
        90deg,
        #fcfaf7 0%,
        rgba(252,250,247,.88) 15%,
        rgba(252,250,247,.48) 48%,
        rgba(252,250,247,.12) 78%,
        rgba(252,250,247,0) 100%
    ) !important;

    pointer-events: none !important;
}

/* немного больше пространства фотографии */
.hero-grid {
    grid-template-columns: 48% 52% !important;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-main {
        background-size: cover !important;
        background-position: 72% center !important;
    }

    .hero-main::after {
        width: 100% !important;
        height: 70px !important;
        bottom: auto !important;

        background: linear-gradient(
            180deg,
            #fcfaf7 0%,
            rgba(252,250,247,.65) 40%,
            rgba(252,250,247,0) 100%
        ) !important;
    }
}


/* ==========================================================
   RESPONSIVE HERO — FINAL
   Изображение больше НЕ background. Оно резиновое <img>.
   ========================================================== */

.hero {
    overflow: hidden !important;
    background: #fcfaf7 !important;
}

/* Десктоп */
.hero-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.06fr) !important;

    align-items: stretch !important;

    /*
     * Высота тоже резиновая:
     * маленький desktop ~540,
     * обычный ~590,
     * большой ~650.
     */
    min-height: clamp(540px, 38vw, 650px) !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    padding-top: clamp(34px, 3vw, 52px) !important;
    padding-bottom: clamp(28px, 2.5vw, 42px) !important;
}

/* Правая половина */
.hero-main {
    position: relative !important;
    z-index: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    height: 100% !important;
    min-height: 100% !important;

    overflow: hidden !important;

    /* полностью убиваем старую background-логику */
    background: none !important;
    background-image: none !important;
}

/*
 * Ключевой момент:
 * картинка всегда занимает ВЕСЬ блок.
 */
.hero-main > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    object-fit: cover !important;

    /*
     * Немного вправо относительно геометрического центра,
     * чтобы пара оставалась в кадре.
     */
    object-position: 56% 50% !important;
}

/*
 * Переход между белой текстовой частью и фото.
 * Это overlay, а НЕ blur самой фотографии.
 */
.hero-main::after {
    content: "" !important;

    position: absolute !important;
    z-index: 2 !important;

    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: clamp(55px, 7vw, 110px) !important;
    height: auto !important;

    background: linear-gradient(
        90deg,
        #fcfaf7 0%,
        rgba(252,250,247,.72) 25%,
        rgba(252,250,247,.28) 58%,
        rgba(252,250,247,0) 100%
    ) !important;

    pointer-events: none !important;
}

/*
 * Широкие desktop-мониторы.
 * Чуть больше пространства картинке.
 */
@media (min-width: 1400px) {
    .hero-grid {
        grid-template-columns:
            minmax(0, .98fr)
            minmax(0, 1.08fr) !important;
    }

    .hero-main > img {
        object-position: 55% 50% !important;
    }
}

/*
 * Ноутбуки / небольшие desktop.
 */
@media (max-width: 1180px) and (min-width: 981px) {
    .hero-grid {
        grid-template-columns:
            minmax(0, 49%)
            minmax(0, 51%) !important;

        min-height: 540px !important;
    }

    .hero-main > img {
        object-position: 58% 50% !important;
    }
}

/*
 * Планшеты portrait и небольшие landscape:
 * уже НЕ пытаемся впихнуть две узкие колонки.
 * Фото переезжает вниз.
 */
@media (max-width: 980px) {
    .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    .hero-content {
        padding-top: 38px !important;
        padding-bottom: 30px !important;
    }

    .hero-main {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        /*
         * Резиновая пропорция изображения.
         */
        aspect-ratio: 16 / 9 !important;
    }

    .hero-main > img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: 55% 44% !important;
    }

    /* переход теперь сверху вниз */
    .hero-main::after {
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;

        width: 100% !important;
        height: 55px !important;

        background: linear-gradient(
            180deg,
            #fcfaf7 0%,
            rgba(252,250,247,.52) 35%,
            rgba(252,250,247,0) 100%
        ) !important;
    }
}

/*
 * Телефон
 */
@media (max-width: 600px) {
    .hero-content {
        padding-top: 30px !important;
        padding-bottom: 26px !important;
    }

    .hero h1 {
        font-size: clamp(38px, 11.5vw, 52px) !important;
        line-height: .98 !important;
    }

    .hero-lead {
        font-size: 15px !important;
    }

    .hero-main {
        /*
         * На телефоне чуть выше, чтобы люди не превращались
         * в маленькую полоску.
         */
        aspect-ratio: 4 / 3 !important;
    }

    .hero-main > img {
        object-position: 56% center !important;
    }
}

/*
 * Очень узкие телефоны
 */
@media (max-width: 390px) {
    .hero h1 {
        font-size: 38px !important;
    }

    .hero-main {
        aspect-ratio: 1.15 / 1 !important;
    }

    .hero-main > img {
        object-position: 55% center !important;
    }
}


/* =========================================================
   HERO FINAL — FULL BLEED DESKTOP + STACKED TABLET/MOBILE
   ========================================================= */

.hero {
    overflow: hidden !important;
    background: #fcfaf7 !important;
}

/* ---------- DESKTOP ---------- */

.hero-grid {
    display: grid !important;
    grid-template-columns: 48% 52% !important;
    align-items: stretch !important;
    min-height: clamp(540px, 35vw, 620px) !important;
}

.hero-content {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-top: 36px !important;
    padding-bottom: 34px !important;
}

/*
 * Фото начинается в своей колонке,
 * но справа выходит из container до края viewport.
 */
.hero-main {
    position: relative !important;
    z-index: 1 !important;

    height: 100% !important;
    min-height: 100% !important;

    width: calc(
        100% + max(
            24px,
            (100vw - var(--max)) / 2
        )
    ) !important;

    max-width: none !important;

    overflow: hidden !important;

    background: none !important;
    background-image: none !important;
}

/* полностью убираем старый белый fade */
.hero-main::after {
    display: none !important;
    content: none !important;
}

/* настоящее responsive image */
.hero-main > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    /*
     * Теперь контейнер достаточно широкий,
     * поэтому можно держать композицию почти по центру.
     */
    object-position: 50% 50% !important;
}


/* ---------- НЕБОЛЬШИЕ DESKTOP / НОУТБУК ---------- */

@media (max-width: 1180px) and (min-width: 981px) {

    .hero-grid {
        grid-template-columns: 49% 51% !important;
        min-height: 535px !important;
    }

    .hero-main > img {
        object-position: 52% 50% !important;
    }
}


/* ---------- TABLET ---------- */

@media (max-width: 980px) {

    .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    .hero-content {
        padding-top: 38px !important;
        padding-bottom: 30px !important;
    }

    /*
     * Фото становится самостоятельным широким блоком
     * на всю ширину viewport.
     */
    .hero-main {
        width: 100vw !important;
        height: auto !important;
        min-height: 0 !important;

        margin-left: calc(50% - 50vw) !important;

        aspect-ratio: 16 / 9 !important;
    }

    .hero-main > img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: 50% 48% !important;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .hero-content {
        padding-top: 28px !important;
        padding-bottom: 25px !important;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 48px) !important;
        line-height: .98 !important;
    }

    .hero-lead {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    /*
     * На телефоне делаем картинку выше,
     * чтобы люди не превратились в узкую полоску.
     */
    .hero-main {
        aspect-ratio: 4 / 3 !important;
    }

    .hero-main > img {
        object-position: 50% 50% !important;
    }
}


/* ---------- ОЧЕНЬ УЗКИЕ ТЕЛЕФОНЫ ---------- */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 37px !important;
    }

    .hero-main {
        aspect-ratio: 1.15 / 1 !important;
    }
}


/* =========================================================
   HERO RESET — NORMAL TWO-COLUMN COMPOSITION
   ========================================================= */

.hero {
    overflow: hidden !important;
    background: #fcfaf7 !important;
}

.hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 49%) minmax(0, 51%) !important;
    gap: 0 !important;
    align-items: center !important;

    min-height: 565px !important;
}

/* Левая часть */
.hero-content {
    display: block !important;

    padding-top: 38px !important;
    padding-right: 42px !important;
    padding-bottom: 34px !important;
}

/* Правая часть: больше никаких full bleed */
.hero-main {
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;

    aspect-ratio: 5 / 4 !important;

    overflow: hidden !important;

    background: none !important;
    background-image: none !important;
}

/* Никаких градиентов и blur */
.hero-main::before,
.hero-main::after {
    display: none !important;
    content: none !important;
}

/*
 * Фото режется совсем умеренно:
 * в основном убираем пустое пространство слева.
 */
.hero-main > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;

    object-fit: cover !important;
    object-position: 62% center !important;
}


/* ---------- НОУТБУК ---------- */

@media (max-width: 1180px) and (min-width: 901px) {

    .hero-grid {
        grid-template-columns: 50% 50% !important;
        min-height: 530px !important;
    }

    .hero-content {
        padding-right: 30px !important;
    }

    .hero-main {
        aspect-ratio: 1.18 / 1 !important;
    }

    .hero-main > img {
        object-position: 62% center !important;
    }
}


/* ---------- ПЛАНШЕТ ---------- */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    .hero-content {
        padding: 38px 0 30px !important;
    }

    .hero-main {
        width: 100% !important;
        margin: 0 !important;

        aspect-ratio: 16 / 9 !important;
    }

    .hero-main > img {
        object-position: 58% center !important;
    }
}


/* ---------- МОБИЛЬНЫЙ ---------- */

@media (max-width: 600px) {

    .hero-content {
        padding: 28px 0 25px !important;
    }

    .hero-main {
        aspect-ratio: 4 / 3 !important;
    }

    .hero-main > img {
        object-position: 59% center !important;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 48px) !important;
    }
}


/* ==========================================================
   HERO 2:1 — RESPONSIVE FULL HERO
   Новый hero-main.webp = 2000x1000
   ========================================================== */

.hero {
    position: relative !important;
    overflow: hidden !important;
    background: #fcfaf7 !important;
}

/*
 * На desktop контейнер hero растягиваем на весь viewport.
 * Текст при этом остаётся выровнен по общей сетке сайта.
 */
.hero .hero-grid {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: none !important;
    min-height: clamp(560px, 36vw, 650px) !important;

    margin: 0 !important;
}

/* Картинка занимает ВЕСЬ hero */
.hero-main {
    position: absolute !important;
    z-index: 0 !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;

    margin: 0 !important;

    overflow: hidden !important;

    background: none !important;
    aspect-ratio: auto !important;
}

/* Сам новый 2000x1000 исходник */
.hero-main > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;

    object-fit: cover !important;

    /*
     * Основные персонажи находятся справа,
     * поэтому немного сохраняем приоритет правой части.
     */
    object-position: 53% center !important;
}


/*
 * Мягко объединяем пустую левую часть фотографии
 * с фоном страницы. Это НЕ blur людей.
 */
.hero-main::after {
    display: block !important;
    content: "" !important;

    position: absolute !important;
    z-index: 1 !important;

    inset: 0 !important;

    width: 64% !important;
    height: 100% !important;

    pointer-events: none !important;

    background: linear-gradient(
        90deg,
        #fcfaf7 0%,
        rgba(252,250,247,.98) 22%,
        rgba(252,250,247,.88) 38%,
        rgba(252,250,247,.55) 51%,
        rgba(252,250,247,.18) 61%,
        rgba(252,250,247,0) 100%
    ) !important;
}


/* Убираем все старые псевдоэффекты */
.hero-main::before {
    display: none !important;
    content: none !important;
}


/* ==========================================================
   ТЕКСТ HERO
   ========================================================== */

.hero-content {
    position: relative !important;
    z-index: 3 !important;

    display: block !important;

    width: min(47%, 610px) !important;

    /*
     * Выравниваем по той же левой границе,
     * что header и остальные секции.
     */
    margin-left: max(
        24px,
        calc((100vw - var(--max)) / 2)
    ) !important;

    padding:
        clamp(42px, 4vw, 66px)
        30px
        35px
        0 !important;
}


/* ==========================================================
   DESKTOP 1200–1400
   ========================================================== */

@media (max-width: 1400px) and (min-width: 981px) {

    .hero .hero-grid {
        min-height: 560px !important;
    }

    .hero-content {
        width: 48% !important;
    }

    .hero-main > img {
        object-position: 55% center !important;
    }

    .hero-main::after {
        width: 62% !important;
    }
}


/* ==========================================================
   TABLET
   Текст отдельно, фотография ниже.
   ========================================================== */

@media (max-width: 980px) {

    .hero .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;

        min-height: 0 !important;
    }

    .hero-content {
        position: relative !important;

        width: min(calc(100% - 40px), 720px) !important;

        margin: 0 auto !important;
        padding: 38px 0 30px !important;
    }

    .hero-main {
        position: relative !important;
        inset: auto !important;

        grid-row: 2 !important;

        width: 100% !important;
        height: auto !important;

        /*
         * Новый исходник 2:1 — показываем его
         * почти в родной геометрии.
         */
        aspect-ratio: 2 / 1 !important;
    }

    .hero-main > img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center !important;
    }

    /*
     * На планшете переход уже сверху вниз.
     */
    .hero-main::after {
        display: block !important;

        width: 100% !important;
        height: 55px !important;

        inset: 0 0 auto 0 !important;

        background: linear-gradient(
            180deg,
            #fcfaf7 0%,
            rgba(252,250,247,.55) 42%,
            rgba(252,250,247,0) 100%
        ) !important;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .hero-content {
        width: calc(100% - 30px) !important;
        padding: 28px 0 24px !important;
    }

    .hero h1 {
        font-size: clamp(38px, 11.5vw, 49px) !important;
        line-height: .98 !important;
    }

    .hero-lead {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    /*
     * На телефоне фотографию делаем выше,
     * чтобы люди были достаточно крупными.
     */
    .hero-main {
        aspect-ratio: 4 / 3 !important;
    }

    .hero-main > img {
        object-fit: cover !important;
        object-position: 70% center !important;
    }
}


/* Совсем узкий экран */
@media (max-width: 390px) {

    .hero h1 {
        font-size: 37px !important;
    }

    .hero-main {
        aspect-ratio: 1.18 / 1 !important;
    }

    .hero-main > img {
        object-position: 72% center !important;
    }
}


/* =========================================================
   HERO — CONTAINED RESPONSIVE BACKGROUND
   ========================================================= */

.hero {
    background: #fcfaf7 !important;
    overflow: hidden !important;
}

/*
 * Hero снова живёт в той же сетке, что весь сайт.
 * Никаких выходов картинки к краям viewport.
 */
.hero .hero-grid {
    position: relative !important;

    display: block !important;

    width: min(calc(100% - 48px), var(--max)) !important;
    max-width: var(--max) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    min-height: clamp(545px, 35vw, 610px) !important;

    overflow: hidden !important;
}

/* Фото занимает весь hero-КОНТЕЙНЕР, а не весь экран */
.hero-main {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    overflow: hidden !important;

    background: none !important;
    aspect-ratio: auto !important;
}

.hero-main > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    /*
     * У новой картинки люди справа,
     * поэтому держим фокус чуть правее центра.
     */
    object-position: 52% center !important;
}

/*
 * Светлая подложка слева под текст.
 * Заканчивается ДО мужчины.
 */
.hero-main::after {
    display: block !important;
    content: "" !important;

    position: absolute !important;
    inset: 0 auto 0 0 !important;

    width: 56% !important;
    height: 100% !important;

    pointer-events: none !important;

    background: linear-gradient(
        90deg,
        #fcfaf7 0%,
        rgba(252,250,247,.98) 28%,
        rgba(252,250,247,.90) 48%,
        rgba(252,250,247,.62) 65%,
        rgba(252,250,247,.18) 86%,
        rgba(252,250,247,0) 100%
    ) !important;
}

.hero-main::before {
    display: none !important;
    content: none !important;
}


/* Текст */
.hero-content {
    position: relative !important;
    z-index: 3 !important;

    display: block !important;

    width: 48% !important;
    max-width: 590px !important;

    margin: 0 !important;

    padding:
        clamp(38px, 3.5vw, 54px)
        30px
        32px
        0 !important;
}


/* ---------- NOTEBOOK ---------- */

@media (max-width: 1180px) and (min-width: 901px) {

    .hero .hero-grid {
        min-height: 540px !important;
    }

    .hero-content {
        width: 50% !important;
    }

    .hero-main > img {
        object-position: 54% center !important;
    }
}


/* ---------- TABLET ---------- */

@media (max-width: 900px) {

    .hero .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;

        width: min(calc(100% - 30px), var(--max)) !important;
        min-height: 0 !important;

        overflow: visible !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: none !important;

        padding: 34px 0 28px !important;
    }

    .hero-main {
        position: relative !important;
        inset: auto !important;

        width: 100% !important;
        height: auto !important;

        aspect-ratio: 2 / 1 !important;
    }

    .hero-main > img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: 60% center !important;
    }

    .hero-main::after {
        display: none !important;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 600px) {

    .hero .hero-grid {
        width: calc(100% - 30px) !important;
    }

    .hero-content {
        padding: 28px 0 24px !important;
    }

    .hero-main {
        aspect-ratio: 4 / 3 !important;
    }

    .hero-main > img {
        object-position: 68% center !important;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 48px) !important;
    }
}


/* ===== CONSULTATION CTA FIX ===== */

/* Карточка справа ровно по центру высоты всего блока */
.consultation-cta {
    align-self: center !important;
}

/* Кнопка: текст слева, стрелка строго справа */
.consultation-cta .button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;

    white-space: nowrap !important;
    text-align: left !important;
}

/* Не даём глобальному button span ломать положение стрелки */
.consultation-cta .button > span {
    display: block !important;
    flex: 0 0 auto !important;

    margin-left: 16px !important;

    line-height: 1 !important;
}

/* На desktop вся правая карточка визуально центрируется */
@media (min-width: 1121px) {
    .consultation-grid {
        align-items: stretch !important;
    }

    .consultation-column {
        align-self: start !important;
    }

    .consultation-cta {
        align-self: center !important;
    }
}


/* ===== CONSULTATION BLOCK — TRUE CENTERING ===== */

@media (min-width: 1121px) {

    .consultation-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 270px !important;
        gap: 42px !important;

        /* центрируем все три колонки относительно общей высоты строки */
        align-items: center !important;
    }

    .consultation-column {
        align-self: center !important;
    }

    .consultation-cta {
        width: 270px !important;
        max-width: 270px !important;

        justify-self: center !important;
        align-self: center !important;

        margin: 0 !important;
    }
}

/* кнопка внутри карточки */
.consultation-cta .button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.consultation-cta .button > span {
    margin-left: 18px !important;
    flex: 0 0 auto !important;
}


/* ==========================================================
   CONSULTATION — CTA CENTERED IN WHOLE BEIGE SECTION
   ========================================================== */

@media (min-width: 1121px) {

    /* Вся бежевая секция — единая система координат */
    #consultation > .container {
        position: relative !important;
    }

    /*
     * Под текстовые колонки оставляем место справа
     * под CTA-карточку.
     */
    #consultation .consultation-grid {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        gap: 48px !important;

        padding-right: 320px !important;

        align-items: start !important;
    }

    #consultation .consultation-column {
        align-self: start !important;
    }

    /*
     * Карточка больше НЕ участвует в высоте grid.
     * Центрируем её относительно ВСЕЙ бежевой секции:
     * eyebrow + заголовок + списки.
     */
    #consultation .consultation-cta {
        position: absolute !important;

        top: 50% !important;
        right: 0 !important;

        width: 270px !important;
        max-width: 270px !important;

        margin: 0 !important;

        transform: translateY(-50%) !important;

        align-self: auto !important;
        justify-self: auto !important;
    }

    #consultation .consultation-cta .button {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        width: 100% !important;

        white-space: nowrap !important;
    }

    #consultation .consultation-cta .button > span {
        flex: 0 0 auto !important;
        margin-left: 18px !important;
        line-height: 1 !important;
    }
}


/* Tablet/mobile — возвращаем карточку в обычный поток */
@media (max-width: 1120px) {

    #consultation .consultation-grid {
        padding-right: 0 !important;
    }

    #consultation .consultation-cta {
        position: static !important;

        width: auto !important;
        max-width: none !important;

        transform: none !important;

        margin: 0 !important;
    }
}


/* ===== LEGAL LINKS + COOKIE SETTINGS ===== */

.footer-document-link {
    display: block;
    margin: 0 0 13px;
    padding: 0;

    color: #e3e7ea;
    background: none;
    border: 0;

    text-align: left;
    text-decoration: none;

    font: inherit;
    font-size: 12px;
    line-height: 1.35;

    cursor: pointer;
}

.footer-document-link:hover {
    color: #fff;
    text-decoration: underline;
}


/* ===== REAL LEAD API ===== */

.family-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.family-form-status {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.family-form-status--loading {
    color: #6e7881;
}

.family-form-status--success {
    color: #1f7048;
}

.family-form-status--error {
    color: #be1122;
}


/* ==========================================================
   MOBILE FIXED CONTACT BAR
   ========================================================== */

.mobile-contact-bar {
    display: none;
}


@media (max-width: 900px) {

    body {
        padding-bottom:
            calc(72px + env(safe-area-inset-bottom));
    }

    .mobile-contact-bar {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 99990;

        display: grid;
        grid-template-columns:
            1fr
            1fr
            1fr;

        min-height: 64px;

        padding-bottom:
            env(safe-area-inset-bottom);

        background: rgba(255,255,255,.98);

        border-top:
            1px solid rgba(12,32,53,.14);

        box-shadow:
            0 -8px 28px rgba(6,20,32,.10);

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }


    .mobile-contact-action {
        appearance: none;

        min-width: 0;
        min-height: 64px;

        margin: 0;
        padding: 8px 5px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        color: #0c2035;
        background: transparent;

        border: 0;
        border-right:
            1px solid rgba(12,32,53,.10);

        text-decoration: none;

        font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Arial,
            sans-serif;

        cursor: pointer;

        -webkit-tap-highlight-color:
            transparent;
    }


    .mobile-contact-action:last-child {
        border-right: 0;
    }


    .mobile-contact-action > svg {
        display: block;

        width: 23px;
        height: 23px;

        flex: 0 0 auto;
    }


    .mobile-contact-action > span {
        display: block;

        font-size: 10px;
        line-height: 1;

        font-weight: 750;
    }


    .mobile-contact-action--write {
        color: #be1122;
    }


    .mobile-contact-action--phone {
        color: #0c2035;
    }


    /*
     * Третья зона = два мессенджера.
     */
    .mobile-contact-action--messengers {
        flex-direction: row;

        gap: 12px;

        padding-left: 10px;
        padding-right: 10px;

        cursor: default;
    }


    .mobile-messenger {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 38px;
        height: 38px;

        flex: 0 0 38px;

        border-radius: 50%;

        text-decoration: none;

        -webkit-tap-highlight-color:
            transparent;
    }


    .mobile-messenger--telegram {
        color: #fff;
        background: #229ED9;
    }


    .mobile-messenger--telegram svg {
        width: 22px;
        height: 22px;
    }


    .mobile-messenger--max {
        background: #f5f6f7;
        border: 1px solid rgba(12,32,53,.08);
    }


    .mobile-messenger--max img {
        display: block;

        width: 27px;
        height: 27px;

        object-fit: contain;
    }


    .mobile-contact-action:active,
    .mobile-messenger:active {
        transform: scale(.97);
    }


    /*
     * Cookie-плашка не должна уходить ПОД mobile bar.
     */
    .site-cookie-bar {
        bottom:
            calc(64px + env(safe-area-inset-bottom)) !important;
    }
}


@media (max-width: 380px) {

    .mobile-contact-action > span {
        font-size: 9px;
    }

    .mobile-contact-action--messengers {
        gap: 7px;
    }

    .mobile-messenger {
        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }
}


/* ==========================================================
   MOBILE CONTACT BAR — TUNED
   ========================================================== */

@media (max-width: 900px) {

    .mobile-contact-bar {
        grid-template-columns: 1.25fr 1fr 1fr;
        min-height: 68px;
    }

    .mobile-contact-action {
        min-height: 68px;
        padding: 6px 6px;
        gap: 5px;
    }

    .mobile-contact-action > svg {
        width: 22px;
        height: 22px;
    }

    .mobile-contact-action > span {
        font-size: 10px;
        line-height: 1.05;
        text-align: center;
        white-space: normal;
    }

    .mobile-contact-action--write > span {
        max-width: 92px;
    }

    .mobile-contact-action--phone > span {
        max-width: 72px;
    }

    .mobile-contact-action--messengers {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mobile-messenger {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .mobile-messenger--telegram svg {
        width: 20px;
        height: 20px;
    }

    .mobile-messenger--max img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 380px) {

    .mobile-contact-bar {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .mobile-contact-action > span {
        font-size: 9px;
    }

    .mobile-contact-action--write > span {
        max-width: 84px;
    }

    .mobile-messenger {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .mobile-messenger--max img {
        width: 22px;
        height: 22px;
    }
}


/* ==========================================================
   MOBILE CONTACT BAR — TUNED
   ========================================================== */

@media (max-width: 900px) {

    .mobile-contact-bar {
        grid-template-columns: 1.25fr 1fr 1fr;
        min-height: 68px;
    }

    .mobile-contact-action {
        min-height: 68px;
        padding: 6px 6px;
        gap: 5px;
    }

    .mobile-contact-action > svg {
        width: 22px;
        height: 22px;
    }

    .mobile-contact-action > span {
        font-size: 10px;
        line-height: 1.05;
        text-align: center;
        white-space: normal;
    }

    .mobile-contact-action--write > span {
        max-width: 92px;
    }

    .mobile-contact-action--phone > span {
        max-width: 72px;
    }

    .mobile-contact-action--messengers {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mobile-messenger {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .mobile-messenger--telegram svg {
        width: 20px;
        height: 20px;
    }

    .mobile-messenger--max img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 380px) {

    .mobile-contact-bar {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .mobile-contact-action > span {
        font-size: 9px;
    }

    .mobile-contact-action--write > span {
        max-width: 84px;
    }

    .mobile-messenger {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .mobile-messenger--max img {
        width: 22px;
        height: 22px;
    }
}


/* ==========================================================
   MOBILE CONTACT BAR — TUNED
   ========================================================== */

@media (max-width: 900px) {

    .mobile-contact-bar {
        grid-template-columns: 1.25fr 1fr 1fr;
        min-height: 68px;
    }

    .mobile-contact-action {
        min-height: 68px;
        padding: 6px 6px;
        gap: 5px;
    }

    .mobile-contact-action > svg {
        width: 22px;
        height: 22px;
    }

    .mobile-contact-action > span {
        font-size: 10px;
        line-height: 1.05;
        text-align: center;
        white-space: normal;
    }

    .mobile-contact-action--write > span {
        max-width: 92px;
    }

    .mobile-contact-action--phone > span {
        max-width: 72px;
    }

    .mobile-contact-action--messengers {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mobile-messenger {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .mobile-messenger--telegram svg {
        width: 20px;
        height: 20px;
    }

    .mobile-messenger--max img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 380px) {

    .mobile-contact-bar {
        grid-template-columns: 1.3fr 1fr 1fr;
    }

    .mobile-contact-action > span {
        font-size: 9px;
    }

    .mobile-contact-action--write > span {
        max-width: 84px;
    }

    .mobile-messenger {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .mobile-messenger--max img {
        width: 22px;
        height: 22px;
    }
}


/* ==========================================================
   MOBILE CONTACT BAR — FAMILY VERSION
   ========================================================== */

.mobile-contact-shell,
.mobile-write-modal {
    display: none;
}

@media (max-width: 900px) {

    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    body.mobile-write-modal-open {
        overflow: hidden;
    }

    .mobile-contact-shell {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99990;
        background: #ffffff;
        border-top: 1px solid rgba(12,32,53,.12);
        box-shadow: 0 -10px 28px rgba(0,0,0,.08);
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .mobile-contact-bar {
        display: grid;
        grid-template-columns: 1fr 1.25fr 1fr;
        gap: 10px;
    }

    .mobile-contact-btn {
        appearance: none;
        min-width: 0;
        min-height: 56px;
        border-radius: 16px;
        padding: 10px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        text-decoration: none;
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
        font-size: 13px;
        line-height: 1.1;
        font-weight: 800;
        text-align: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-contact-btn svg {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .mobile-contact-btn--ghost {
        color: #0c2035;
        background: #ffffff;
        border: 2px solid rgba(12,32,53,.24);
    }

    .mobile-contact-btn--primary {
        color: #ffffff;
        background: #be1122;
        border: 2px solid #be1122;
    }

    .mobile-contact-btn:active {
        transform: scale(.985);
    }

    .mobile-write-modal {
        position: fixed;
        inset: 0;
        z-index: 99995;
        background: rgba(10,18,28,.46);
        padding: 22px 16px;
        align-items: center;
        justify-content: center;
    }

    .mobile-write-modal.is-open {
        display: flex;
    }

    .mobile-write-modal__dialog {
        position: relative;
        width: min(100%, 620px);
        background: #ffffff;
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(0,0,0,.22);
        padding: 22px 18px 18px;
    }

    .mobile-write-modal__close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #111111;
        font-size: 42px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-write-modal__eyebrow {
        margin: 6px 42px 10px 0;
        color: #be1122;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .mobile-write-modal__title {
        margin: 0 42px 12px 0;
        color: #111111;
        font-size: 26px;
        line-height: 1.06;
        font-weight: 900;
    }

    .mobile-write-modal__text {
        margin: 0 0 18px;
        color: #6f7580;
        font-size: 15px;
        line-height: 1.5;
    }

    .mobile-write-modal__actions {
        display: grid;
        gap: 14px;
    }

    .mobile-write-modal__link {
        min-height: 72px;
        padding: 0 18px;
        border-radius: 18px;
        border: 2px solid rgba(12,32,53,.14);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-decoration: none;
        color: #111111;
        background: #ffffff;
        font-size: 20px;
        line-height: 1.2;
        font-weight: 900;
    }

    .mobile-write-modal__arrow {
        font-size: 26px;
        line-height: 1;
        color: #222222;
    }

    .site-cookie-bar {
        bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 420px) {

    .mobile-contact-bar {
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 8px;
    }

    .mobile-contact-btn {
        min-height: 54px;
        padding: 8px 6px;
        gap: 7px;
        font-size: 11px;
    }

    .mobile-contact-btn svg {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .mobile-write-modal__dialog {
        border-radius: 22px;
        padding: 20px 16px 16px;
    }

    .mobile-write-modal__title {
        font-size: 24px;
    }

    .mobile-write-modal__text {
        font-size: 14px;
    }

    .mobile-write-modal__link {
        min-height: 66px;
        font-size: 18px;
    }
}


/* ==========================================================
   MOBILE CONTACT BAR — COMPACT FINAL
   ========================================================== */

@media (max-width: 900px) {

    body {
        padding-bottom:
            calc(74px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-contact-shell {
        padding:
            8px 10px
            calc(8px + env(safe-area-inset-bottom))
            !important;

        background: #fff !important;

        box-shadow:
            0 -4px 14px rgba(0,0,0,.07) !important;
    }

    .mobile-contact-bar {
        grid-template-columns:
            1fr
            1.16fr
            1fr !important;

        gap: 7px !important;

        min-height: 0 !important;
    }

    .mobile-contact-btn {
        min-height: 54px !important;
        height: 54px !important;

        padding: 7px 8px !important;

        gap: 7px !important;

        border-radius: 11px !important;

        font-size: 11.5px !important;
        line-height: 1.08 !important;
        font-weight: 800 !important;

        white-space: normal !important;
    }

    .mobile-contact-btn svg {
        width: 20px !important;
        height: 20px !important;

        flex: 0 0 20px !important;
    }

    .mobile-contact-btn--ghost {
        border:
            1px solid rgba(12,32,53,.28) !important;

        color: #0c2035 !important;
        background: #fff !important;
    }

    .mobile-contact-btn--primary {
        border:
            1px solid #be1122 !important;

        color: #fff !important;
        background: #be1122 !important;
    }

    .mobile-contact-btn--primary span {
        max-width: 88px;
    }

    .site-cookie-bar {
        bottom:
            calc(70px + env(safe-area-inset-bottom))
            !important;
    }
}


@media (max-width: 390px) {

    .mobile-contact-shell {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .mobile-contact-bar {
        gap: 5px !important;
    }

    .mobile-contact-btn {
        padding-left: 5px !important;
        padding-right: 5px !important;

        font-size: 10.5px !important;
    }

    .mobile-contact-btn svg {
        width: 19px !important;
        height: 19px !important;
        flex-basis: 19px !important;
    }
}


/* ==========================================================
   MOBILE BAR + LEAD DIALOG — COMPACT FINAL
   ========================================================== */

@media (max-width: 900px) {

    body {
        padding-bottom:
            calc(60px + env(safe-area-inset-bottom)) !important;
    }

    /* ---------- нижняя панель ---------- */

    .mobile-contact-shell {
        padding:
            6px 8px
            calc(6px + env(safe-area-inset-bottom))
            !important;

        box-shadow:
            0 -3px 12px rgba(0,0,0,.06) !important;
    }

    .mobile-contact-bar {
        grid-template-columns:
            .95fr
            1.12fr
            .93fr !important;

        gap: 6px !important;
    }

    .mobile-contact-btn {
        min-height: 46px !important;
        height: 46px !important;

        padding: 5px 7px !important;

        gap: 6px !important;

        border-radius: 8px !important;

        font-size: 10.5px !important;
        line-height: 1.05 !important;
        font-weight: 800 !important;
    }

    .mobile-contact-btn svg {
        width: 18px !important;
        height: 18px !important;

        flex: 0 0 18px !important;
    }

    .mobile-contact-btn--primary span {
        max-width: 78px !important;
    }

    .mobile-contact-btn--ghost {
        border-width: 1px !important;
    }


    /* ---------- сама форма ---------- */

    dialog.lead-dialog-mobile {
        width: calc(100% - 20px) !important;
        max-width: 440px !important;

        max-height: calc(100dvh - 20px) !important;

        margin: auto !important;

        padding: 18px 16px 15px !important;

        border-radius: 16px !important;

        overflow-y: auto !important;
        overscroll-behavior: contain !important;

        box-sizing: border-box !important;
    }

    dialog.lead-dialog-mobile::backdrop {
        background: rgba(8,18,28,.48) !important;
    }


    /*
     * Убираем лишние вертикальные интервалы
     */
    .lead-dialog-mobile h2,
    .lead-dialog-mobile h3 {
        margin-top: 0 !important;
        margin-bottom: 7px !important;

        font-size: 24px !important;
        line-height: 1.05 !important;
    }

    .lead-dialog-mobile p {
        margin-top: 0 !important;
        margin-bottom: 10px !important;

        font-size: 12px !important;
        line-height: 1.35 !important;
    }


    .lead-dialog-mobile form {
        display: grid !important;
        gap: 8px !important;
    }


    .lead-dialog-mobile label {
        margin: 0 !important;

        font-size: 11px !important;
        line-height: 1.2 !important;
    }


    .lead-dialog-mobile input[type="text"],
    .lead-dialog-mobile input[type="tel"],
    .lead-dialog-mobile input[type="email"],
    .lead-dialog-mobile select,
    .lead-dialog-mobile textarea {
        width: 100% !important;

        min-height: 42px !important;

        padding: 9px 11px !important;

        border-radius: 7px !important;

        font-size: 14px !important;
        line-height: 1.2 !important;

        box-sizing: border-box !important;
    }


    .lead-dialog-mobile textarea {
        min-height: 62px !important;
        max-height: 72px !important;

        resize: none !important;
    }


    /*
     * checkbox + текст согласия
     */
    .lead-dialog-mobile input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;

        min-height: 0 !important;

        flex: 0 0 16px !important;
    }


    .lead-dialog-mobile button[type="submit"] {
        min-height: 44px !important;

        margin-top: 2px !important;

        padding: 10px 14px !important;

        border-radius: 7px !important;

        font-size: 12px !important;
        line-height: 1.1 !important;
    }


    /*
     * Крестик формы — компактнее
     */
    .lead-dialog-mobile button[aria-label="Закрыть"],
    .lead-dialog-mobile .modal-close,
    .lead-dialog-mobile .dialog-close {
        width: 34px !important;
        height: 34px !important;

        top: 8px !important;
        right: 8px !important;

        font-size: 26px !important;
    }


    .family-form-status {
        margin-top: 2px !important;

        font-size: 10px !important;
        line-height: 1.25 !important;
    }


    .site-cookie-bar {
        bottom:
            calc(58px + env(safe-area-inset-bottom))
            !important;
    }
}


/* Низкие экраны вроде 667–720 px */
@media (max-width: 900px) and (max-height: 740px) {

    dialog.lead-dialog-mobile {
        width: calc(100% - 16px) !important;
        max-height: calc(100dvh - 12px) !important;

        padding: 13px 14px 12px !important;
    }

    .lead-dialog-mobile h2,
    .lead-dialog-mobile h3 {
        font-size: 21px !important;
        margin-bottom: 5px !important;
    }

    .lead-dialog-mobile p {
        margin-bottom: 7px !important;
        font-size: 11px !important;
    }

    .lead-dialog-mobile form {
        gap: 6px !important;
    }

    .lead-dialog-mobile input[type="text"],
    .lead-dialog-mobile input[type="tel"],
    .lead-dialog-mobile input[type="email"],
    .lead-dialog-mobile select {
        min-height: 38px !important;
        padding: 7px 10px !important;
    }

    .lead-dialog-mobile textarea {
        min-height: 50px !important;
        max-height: 56px !important;
    }

    .lead-dialog-mobile button[type="submit"] {
        min-height: 40px !important;
        padding: 8px 12px !important;
    }
}


/* MOBILE BAR — more vertical breathing room */
@media (max-width: 900px) {
    .mobile-contact-shell {
        padding-top: 10px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }
}


/* MOBILE BAR — visible vertical breathing room */
@media (max-width: 900px) {

    .mobile-contact-shell {
        padding:
            14px 10px
            calc(14px + env(safe-area-inset-bottom))
            !important;
    }

    .mobile-contact-bar {
        margin: 0 !important;
    }

    body {
        padding-bottom:
            calc(78px + env(safe-area-inset-bottom))
            !important;
    }

    .site-cookie-bar {
        bottom:
            calc(76px + env(safe-area-inset-bottom))
            !important;
    }
}


/* ==========================================================
   MOBILE BAR — FORCE REAL VERTICAL SPACE
   ========================================================== */

@media (max-width: 900px) {

    .mobile-contact-shell {
        height: calc(74px + env(safe-area-inset-bottom)) !important;
        min-height: calc(74px + env(safe-area-inset-bottom)) !important;
        max-height: none !important;

        padding:
            0 10px
            env(safe-area-inset-bottom)
            !important;

        box-sizing: border-box !important;

        display: flex !important;
        align-items: center !important;

        background: #fff !important;
    }

    .mobile-contact-bar {
        width: 100% !important;

        height: 46px !important;
        min-height: 46px !important;

        margin: 0 !important;
        padding: 0 !important;

        align-self: center !important;
    }

    .mobile-contact-btn {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;

        box-sizing: border-box !important;
    }

    body {
        padding-bottom:
            calc(74px + env(safe-area-inset-bottom))
            !important;
    }

    .site-cookie-bar {
        bottom:
            calc(74px + env(safe-area-inset-bottom))
            !important;
    }
}


/* MOBILE BAR — balanced vertical spacing */
@media (max-width: 900px) {

    .mobile-contact-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding:
            9px 10px
            calc(9px + env(safe-area-inset-bottom))
            !important;

        display: block !important;
        box-sizing: border-box !important;

        bottom: 0 !important;
    }

    .mobile-contact-bar {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-contact-btn {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;

        margin: 0 !important;
    }

    body {
        padding-bottom:
            calc(64px + env(safe-area-inset-bottom))
            !important;
    }

    .site-cookie-bar {
        bottom:
            calc(64px + env(safe-area-inset-bottom))
            !important;
    }
}


/* ==========================================================
   MOBILE CONTACT BAR — REAL SPACING FIX
   old .mobile-contact-bar was itself position:fixed
   ========================================================== */

@media (max-width: 900px) {

    .mobile-contact-shell {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 99990 !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        box-sizing: border-box !important;

        padding:
            8px 8px
            calc(8px + env(safe-area-inset-bottom))
            !important;

        background: #fff !important;

        border-top:
            1px solid rgba(12,32,53,.10) !important;

        box-shadow:
            0 -4px 14px rgba(0,0,0,.06) !important;
    }

    /* КРИТИЧЕСКИ ВАЖНО:
       сбрасываем fixed от самой внутренней панели */
    .mobile-contact-shell .mobile-contact-bar {
        position: static !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        z-index: auto !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        display: grid !important;
        grid-template-columns:
            .95fr 1.12fr .93fr !important;

        gap: 6px !important;
    }

    .mobile-contact-shell .mobile-contact-btn {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;

        margin: 0 !important;

        border-radius: 8px !important;

        box-sizing: border-box !important;
    }

    body {
        padding-bottom:
            calc(62px + env(safe-area-inset-bottom))
            !important;
    }

    .site-cookie-bar {
        bottom:
            calc(62px + env(safe-area-inset-bottom))
            !important;
    }
}


/* ==========================================================
   SEO CLUSTER NAVIGATION
   ========================================================== */

.seo-cluster-nav {
    padding: 34px 0;
    background: #f7f4ef;
    border-top: 1px solid rgba(12,32,53,.08);
}

.seo-cluster-nav > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}

.seo-cluster-nav__main {
    display: inline-block;
    margin-bottom: 12px;

    color: #0c2035;
    text-decoration: none;

    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.seo-cluster-nav__main:hover {
    color: #be1122;
}

.seo-cluster-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.seo-cluster-nav__links a {
    color: #59636d;
    text-decoration: none;

    font-size: 13px;
    line-height: 1.4;
}

.seo-cluster-nav__links a:hover {
    color: #be1122;
    text-decoration: underline;
}

@media (max-width: 700px) {

    .seo-cluster-nav {
        padding: 26px 0;
    }

    .seo-cluster-nav > .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .seo-cluster-nav__main {
        font-size: 18px;
    }
}


/* ==========================================================
   EXPERT TRUST BLOCK — MAIN SITE
   ========================================================== */

.expert-trust-block {
    padding:38px 0;
    background:#f7f4ef;
    border-top:1px solid rgba(12,32,53,.08);
}

.expert-trust-block__label {
    margin-bottom:10px;
    color:#be1122;
    font-size:11px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.expert-trust-block__content {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:40px;
}

.expert-trust-block h2 {
    margin:0 0 8px;
    color:#0c2035;
    font-family:Georgia,serif;
    font-size:30px;
    line-height:1.05;
}

.expert-trust-block p {
    max-width:720px;
    margin:0;
    color:#5b6570;
    font-size:15px;
    line-height:1.55;
}

.expert-trust-block__link {
    flex:0 0 auto;
    color:#be1122;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
}

@media(max-width:700px) {
    .expert-trust-block {
        padding:28px 0;
    }

    .expert-trust-block__content {
        display:block;
    }

    .expert-trust-block h2 {
        font-size:25px;
    }

    .expert-trust-block__link {
        display:inline-block;
        margin-top:16px;
    }
}

/* ORLOVA TRUST PHOTO */

.expert-trust-block__content {
    align-items:center !important;
}

.expert-trust-block__photo {
    display:block;
    width:68px;
    height:68px;
    flex:0 0 68px;
    object-fit:cover;
    object-position:center top;
    border-radius:50%;
}

@media(max-width:700px) {
    .expert-trust-block__photo {
        width:56px;
        height:56px;
        flex-basis:56px;
    }
}



/* ORLOVA EXPERT COMMENT START */

.orlova-comment {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto 54px;
}

.orlova-comment__inner {
    position: relative;

    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: start;

    padding: 26px 30px;

    background:
        linear-gradient(
            135deg,
            #f8f3eb 0%,
            #ffffff 72%
        );

    border-top: 2px solid #be1122;
    border-bottom: 1px solid #ded8cf;
}

.orlova-comment__photo {
    display: block;

    width: 92px;
    height: 112px;

    object-fit: cover;
    object-position: center top;

    border-radius: 7px;
}

.orlova-comment__eyebrow {
    margin: 1px 0 10px;

    color: #be1122;

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;

    letter-spacing: .07em;
}

.orlova-comment__quote {
    position: relative;

    max-width: 860px;

    margin: 0 0 17px;
    padding: 0;

    border: 0;

    color: #263746;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
    line-height: 1.55;
    font-style: normal;
}

.orlova-comment__person {
    display: flex;
    flex-wrap: wrap;

    align-items: baseline;

    gap: 5px 12px;

    margin-bottom: 8px;
}

.orlova-comment__person strong {
    color: #0c2035;

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}

.orlova-comment__person span {
    color: #707983;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 1.35;
}

.orlova-comment__link {
    color: #be1122;

    text-decoration: none;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
}

.orlova-comment__link:hover {
    text-decoration: underline;
}


@media (max-width: 700px) {

    .orlova-comment {
        width: min(calc(100% - 32px), 1180px);

        margin-bottom: 38px;
    }

    .orlova-comment__inner {
        grid-template-columns: 62px minmax(0,1fr);

        gap: 14px;

        padding: 19px 17px;
    }

    .orlova-comment__photo {
        width: 62px;
        height: 76px;
    }

    .orlova-comment__eyebrow {
        font-size: 9px;
        letter-spacing: .055em;
    }

    .orlova-comment__quote {
        grid-column: 1 / -1;

        font-size: 16px;
        line-height: 1.52;
    }

    .orlova-comment__person {
        grid-column: 1 / -1;
    }

    .orlova-comment__link {
        grid-column: 1 / -1;
    }
}

/* ORLOVA EXPERT COMMENT END */

