/* Final image sizing and correspondence fixes */
.stage-art img,
.stage-art .implants-image {
  mix-blend-mode: normal;
}

.stage-art .prosthesis-image {
  width: 92%;
  max-height: 170px;
  object-fit: contain;
}

.patient-photo {
  height: auto;
  aspect-ratio: 1 / 1;
  background-size: 300% auto;
}

.tooth {
  height: auto;
  aspect-ratio: 1 / .62;
  background-size: 200% auto;
  background-position-y: center;
}

.tooth.one { background-image: url('assets/smile-woman-pair.png'); }
.tooth.two { background-image: url('assets/smile-elder-pair.png'); }
.tooth.three { background-image: url('assets/smile-man-pair.png'); }
.tooth.before { background-position-x: 0; }
.tooth.after { background-position-x: 100%; }

/* Each panel now has its own cropped source: no horizontal offset can occur. */
.tooth.one.before { background-image: url('assets/smile-woman-before.png'); }
.tooth.one.after { background-image: url('assets/smile-woman-after.png'); }
.tooth.two.before { background-image: url('assets/smile-elder-before.png'); }
.tooth.two.after { background-image: url('assets/smile-elder-after.png'); }
.tooth.three.before { background-image: url('assets/smile-man-before.png'); }
.tooth.three.after { background-image: url('assets/smile-man-after.png'); }

.tooth.before,
.tooth.after {
  background-size: cover;
  background-position: center;
}

/* Restore the original "before" framing while keeping the corrected after frames. */
.tooth.one.before { background-image: url('assets/smile-woman-pair.png'); background-size: 200% auto; background-position: 0 center; }
.tooth.two.before { background-image: url('assets/smile-elder-pair.png'); background-size: 200% auto; background-position: 0 center; }
.tooth.three.before { background-image: url('assets/smile-man-pair.png'); background-size: 200% auto; background-position: 0 center; }

@media (max-width: 640px) {
  .patient-photo { aspect-ratio: 1 / 1; }
  .tooth { aspect-ratio: 1 / .67; }
}

/* Brand mark, consent links and expanded legal footer. */
.logo {
  display: inline-flex;
  align-items: center;
  width: 126px;
  height: 56px;
  border-radius: 0;
  background: transparent;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.privacy-consent {
  color: #5267e9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phone-field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-field .phone-label {
  display: block;
  margin: 0 0 8px;
  color: #0b1353;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.phone-field input[type=tel] {
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid #0b1353;
  border-radius: 12px;
  background: #fff;
  color: #0b1353;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.phone-field input[type=tel]::placeholder {
  color: #8e96aa;
  font-weight: 500;
}

.quiz-consent-text {
  margin: 12px 0 0;
  color: #59637f;
  font-size: 0.74rem;
  line-height: 1.35;
}

.form-message {
  margin: 9px 0 0;
  color: #bd2c47;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.form-message[hidden] {
  display: none;
}

input[aria-invalid='true'] {
  border-color: #bd2c47 !important;
}

footer.site-footer {
  padding: 54px 0 36px;
  background: #0e0b3d;
  color: #e8eaff;
  font-size: 0.95rem;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(245px, 0.8fr) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(2.4rem, 6vw, 6.2rem);
}

.footer-brand {
  max-width: 370px;
}

footer.site-footer .footer-grid--single {
  grid-template-columns: minmax(245px, 0.8fr) minmax(300px, 1fr);
}

.footer-grid--single .footer-brand {
  max-width: 680px;
}

.footer-logo {
  display: block;
  width: 150px;
  height: 84px;
  margin: -7px 0 6px;
  object-fit: contain;
}

.footer-social-title {
  margin: 0;
  font-weight: 800;
  text-align: center;
}

.footer-social-copy {
  max-width: 325px;
  margin: 3px auto 12px;
  font-size: 0.8125rem;
  line-height: 1.32;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.social-icons span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #253572;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.discount-note {
  margin: 0 0 20px;
  color: #222b58;
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-documents {
  display: grid;
  gap: 13px;
}

.footer-documents a {
  width: fit-content;
  max-width: 100%;
  color: #e8eaff;
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-documents a:hover,
.footer-main-phone:hover {
  color: #aab8ff;
}

.footer-legal {
  max-width: 460px;
  justify-self: end;
  color: #dfe2f5;
  font-size: 1rem;
  line-height: 1.42;
}

.footer-legal p {
  margin: 0 0 5px;
}

.footer-legal .footer-address {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.footer-legal .footer-offer {
  margin-top: 20px;
  color: #fff;
  font-size: 1rem;
}

.footer-legal .medical-disclaimer {
  max-width: 450px;
  margin: 20px 0 0;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

.footer-entity {
  margin: 25px 0 5px;
  font-size: 0.72rem;
  line-height: 1.32;
}

.footer-main-phone {
  color: #0b1554;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-address {
  margin: 5px 0 13px;
  color: #222b58;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.42;
}

.medical-disclaimer {
  max-width: 650px;
  margin: 0 0 16px;
  color: #0b1554;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.footer-info {
  min-width: 0;
}

.offer-notice {
  max-width: 760px;
  margin: 2px 0 17px;
  font-size: 0.78rem;
  line-height: 1.37;
}

.footer-contacts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-contacts div {
  display: grid;
  gap: 1px;
}

.footer-contacts dt,
.footer-contacts dd {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.32;
}

.footer-contacts dt {
  font-weight: 700;
}

.footer-contacts a,
.clinical-link a {
  color: #0b1554;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clinical-link {
  max-width: 750px;
  margin: 16px 0 14px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.footer-laws {
  display: grid;
  gap: 0;
}

.footer-laws p {
  margin: -1px 0 0;
  padding: 10px 18px;
  border: 1px solid #00adc5;
  color: #071452;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.footer-laws p:first-child {
  margin-top: 0;
}

/* Омский подвал: документы, информация для пациентов и реквизиты. */
footer.site-footer .footer-grid--omsk {
  grid-template-columns: minmax(230px, 0.9fr) minmax(310px, 1.35fr) minmax(220px, 0.8fr);
  gap: clamp(2rem, 4.8vw, 4.8rem);
}

footer.site-footer .footer-grid--omsk .footer-brand {
  max-width: none;
}

footer.site-footer .footer-grid--omsk .footer-logo {
  width: 156px;
  height: 86px;
  margin: -10px 0 10px;
}

footer.site-footer .footer-grid--omsk .discount-note {
  max-width: 340px;
  margin: 0 0 22px;
  color: #cbd2fb;
  font-size: 0.78rem;
  line-height: 1.45;
}

footer.site-footer .footer-info {
  min-width: 0;
  color: #dfe2f5;
}

footer.site-footer .footer-info .offer-notice {
  max-width: none;
  margin: 0 0 19px;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.45;
}

footer.site-footer .footer-info .medical-notice {
  margin: 0 0 14px;
  color: #eef0ff;
  font-size: 0.78rem;
  line-height: 1.45;
}

footer.site-footer .footer-contacts {
  gap: 11px;
}

footer.site-footer .footer-contacts dt,
footer.site-footer .footer-contacts dd,
footer.site-footer .clinical-link {
  color: #dfe2f5;
  font-size: 0.77rem;
  line-height: 1.4;
}

footer.site-footer .footer-contacts dt {
  color: #fff;
}

footer.site-footer .footer-contacts a,
footer.site-footer .clinical-link a,
footer.site-footer .footer-reference-links a {
  color: #c5d0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer.site-footer .clinical-link {
  max-width: none;
  margin: 18px 0;
}

footer.site-footer .footer-reference-links {
  display: grid;
  gap: 10px;
  margin: 0 0 17px;
}

footer.site-footer .footer-reference-links a {
  font-size: 0.82rem;
  line-height: 1.35;
}

footer.site-footer .footer-laws {
  gap: 7px;
}

footer.site-footer .footer-laws a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #5265b7;
  border-radius: 8px;
  color: #e8eaff;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

footer.site-footer .footer-laws a:hover {
  border-color: #aab8ff;
  background: #ffffff12;
  color: #fff;
}

footer.site-footer .footer-grid--omsk .footer-legal {
  max-width: 300px;
  justify-self: start;
}

@media (max-width: 1050px) {
  footer.site-footer .footer-grid--omsk {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  }

  footer.site-footer .footer-grid--omsk .footer-legal {
    grid-column: 1 / -1;
    max-width: none;
    padding-top: 20px;
    border-top: 1px solid #3b477e;
  }
}

.privacy-page {
  min-height: 100vh;
}

.privacy-page .privacy-content {
  padding: 54px 0 72px;
}

.privacy-card {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.3rem);
  border: 1px solid #e0e6f6;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px #6575a21a;
}

.privacy-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.privacy-updated {
  margin: 16px 0 28px;
  color: #707995;
  font-size: 0.86rem;
}

.privacy-card p,
.privacy-card li {
  color: #3c486c;
  font-size: 1rem;
  line-height: 1.62;
}

.privacy-card h2 {
  margin: 32px 0 12px;
  color: #0b1353;
  font-size: 1.34rem;
  letter-spacing: -0.03em;
}

.privacy-card ul {
  margin: 0;
  padding-left: 1.3rem;
}

.privacy-card a {
  color: #5368ed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.privacy-image-card {
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e0e4ee;
  border-radius: 22px;
  background: #f9f9f9;
  box-shadow: 0 18px 44px #6575a21a;
}

.privacy-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.thanks-content {
  display: grid;
  place-items: center;
  padding: 56px 0;
}

.thanks-card {
  max-width: 700px;
  padding: clamp(1.8rem, 5vw, 4rem);
  border: 1px solid #e0e6f6;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px #6575a21a;
  text-align: center;
}

.thanks-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.06em;
}

.thanks-card > p:not(.eyebrow) {
  max-width: 480px;
  margin: 18px auto 28px;
  color: #4d5877;
  font-size: 1.05rem;
  line-height: 1.55;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  right: max(18px, calc((100vw - 1280px) / 2));
  bottom: 18px;
  display: flex;
  width: min(620px, calc(100vw - 36px));
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid #dce3f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px #0f1b582e;
  color: #111c55;
}

/* The cookie banner is created with the HTML `hidden` attribute. */
.cookie-banner[hidden] {
  display: none !important;
}

/* The installment offer is not part of the current promotion. */
.checks > div:nth-child(4),
.result-body li:nth-child(3) {
  display: none !important;
}

.cookie-banner strong {
  display: block;
  font-size: 0.96rem;
}

.cookie-banner p {
  max-width: 400px;
  margin: 5px 0 0;
  color: #55617e;
  font-size: 0.78rem;
  line-height: 1.38;
}

.cookie-banner a {
  color: #5267e9;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.cookie-accept {
  background: #5267e9;
  color: #fff;
}

.cookie-decline {
  border: 1px solid #cfd8f1;
  background: #fff;
  color: #24326b;
}

/* Patient case studies are intentionally excluded from the advertising version. */
.stories {
  display: none;
}

footer.privacy-footer {
  padding: 25px 0;
  background: #0c1550;
  color: #dbe1ff;
}

footer.privacy-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

footer.privacy-footer a {
  color: #fff;
}

@media (max-width: 800px) {
  footer.site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-legal {
    justify-self: start;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-logo {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .logo {
    width: 103px;
    height: 44px;
  }

  footer.site-footer {
    padding: 38px 0 28px;
  }

  .footer-laws p {
    padding: 10px 11px;
    font-size: 0.73rem;
  }

  .privacy-page .privacy-content {
    padding: 34px 0 44px;
  }

  .privacy-card {
    border-radius: 17px;
  }

  .privacy-card p,
  .privacy-card li {
    font-size: 0.94rem;
  }

  footer.privacy-footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

/* Phone-first calls to action. */
.nav-right {
  gap: 18px;
}

.nav-callout {
  max-width: 175px;
  color: #65708d;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.nav-callout b {
  color: #5369f5;
  font-size: 1.15em;
}

.phone-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  align-items: center;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid #cfd7ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 11px 22px #6074ed20;
}

.phone-cta__copy {
  color: #36416b;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.3;
}

.phone-cta__number {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 10px;
  background: linear-gradient(105deg, #4c5fec, #788aff);
  box-shadow: 0 8px 16px #6074ed36;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.phone-cta__number:hover,
.phone-cta__number:focus-visible {
  transform: translateY(-1px);
  color: #fff;
}

.hero-cta {
  margin-top: 4px;
}

.solution-cta {
  width: 100%;
  justify-content: center;
  margin-top: 23px;
  padding: 17px 22px;
}

.solution-cta .phone-cta__copy {
  font-size: 1rem;
}

.footer-main-call {
  margin: 0 0 13px !important;
  color: #fff;
  font-weight: 700;
}

.footer-main-phone {
  color: #c5d0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .nav-right {
    gap: 9px;
  }

  .nav-right .phone {
    font-size: 0.69rem;
    white-space: nowrap;
  }

  .nav-callout {
    max-width: 108px;
    font-size: 0.56rem;
  }

  .phone-cta {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .phone-cta__copy {
    font-size: 0.86rem;
  }

  .phone-cta__number {
    justify-content: center;
    width: 100%;
  }

  .solution-cta {
    padding: 16px;
  }
}
