/*
Theme Name: Med Theme
Description: Medical clinic multisite theme with Carbon Fields
Version: 1.0.0
Author: Med Theme Author
Text Domain: med-theme
*/
.certificates__init {
  
}
.certificates__item-image {
  box-shadow: none;
  background-color: #f9f9f9;
}
.pricing__btn--primary:hover,
.pricing__btn--outline:hover {
  font-weight: 600;
}

@media(min-width: 768px) {
  p.pricing__installment-label {
    font-size: 16px;
  }

  .header__max-btn--telegram {
    display: none;
  }
}

.pricing__card--premium .pricing__card-inner {
  height: 100%;
}

.cta-consult__field,
.cta-consult__agree-wrap,
.cta-consult__field-inner,
.lead-modal__field-inner {
  position: relative;
}

.cta-consult__agree {
  align-items: center;
}

/* ---- Form validation ---------------------------------------- */
.lead-modal__input.is-invalid,
.cta-consult__input.is-invalid {
  border-color: #d93025 !important;
  outline: none;
}

.lead-modal__field,
.lead-modal__agree-wrap {
  position: relative;
}

.lead-modal__error,
.cta-consult__error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 11px;
  color: #d93025;
  line-height: 1.3;
  display: none;
  top: 100%;
  left: 0;
}

.lead-modal__required {
  color: #d93025;
  margin-left: 2px;
}

/* ---- Agree wrap (чекбокс + ошибка под ним) ----------------- */
.lead-modal__agree-wrap,
.cta-consult__agree-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-modal__error--agree,
.cta-consult__error--agree {
  position: static;
}

.lead-modal__input {
  outline: none;
}

img {
  max-height: 100%;
  max-width: 100%;
}

/* ---- Cookie banner ------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-dark, #1A1A1A);
  color: #fff;
  padding: 16px 24px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  flex: 1;
  margin: 0;
}

.cookie-banner__link {
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
  margin-left: 4px;
}

.cookie-banner__link:hover {
  text-decoration: none;
}

.cookie-banner__btn {
  flex-shrink: 0;
  background: var(--color-brown-dark, #3E281B);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}

.cookie-banner__btn:hover {
  opacity: .85;
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* ---- Success modal ------------------------------------------ */
.success-modal {
  width: 100%;
  max-width: 420px;
  padding: 48px 40px 40px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  position: relative;
}

.success-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transform: rotate(45deg);
}

.success-modal__icon {
  color: var(--color-brown-dark, #3E281B);
  margin-bottom: 20px;
}

.success-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark, #1A1A1A);
}

.success-modal__text {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

/* ---- Thank you page (page-thankyou.php) --------------------- */
body.thankyou-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thankyou {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.thankyou__hero {
  flex: 1;
  background: linear-gradient(122.9deg, var(--color-brown-dark, #3E281B) 22.5%, var(--color-brown-mid, #5C3D2E) 100%);
  padding-top: calc(var(--headerHeight, 80px) + 48px);
  padding-bottom: 80px;
}

.thankyou__inner {
  max-width: 640px;
  text-align: center;
}

.thankyou__icon {
  display: inline-flex;
  margin: 0 auto 24px;
  color: var(--color-success, #36a957);
}

.thankyou__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white, #fff);
}

.thankyou__text {
  margin: 0 auto 32px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.thankyou__meta {
  list-style: none;
  margin: 0 auto 32px;
  padding: 20px 24px;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  text-align: left;
}

.thankyou__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}

.thankyou__meta-item + .thankyou__meta-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.thankyou__meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.thankyou__meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white, #fff);
  text-decoration: none;
}

a.thankyou__meta-value:hover {
  color: var(--color-beige, #E8D5C4);
}

.thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.thankyou__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.thankyou__btn--primary {
  background: var(--color-beige, #E8D5C4);
  color: var(--color-dark, #1A1A1A);
}

.thankyou__btn--primary:hover {
  color: var(--color-dark, #1A1A1A);
  background: var(--color-beige-hover, #D4C0AD);
}

.thankyou__btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white, #fff);
  background: transparent;
}

.thankyou__btn--outline:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white, #fff);
}

.thankyou__extra {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.thankyou__extra p:last-child {
  margin-bottom: 0;
}

.thankyou__extra a {
  color: var(--color-beige, #E8D5C4);
}

@media (max-width: 480px) {
  .thankyou__hero {
    padding-top: calc(var(--headerHeight, 80px) + 32px);
    padding-bottom: 56px;
  }

  .thankyou__btn {
    width: 100%;
    white-space: normal;
  }
}

/* ---- Page content (page.php) -------------------------------- */
.page-content__hero {
  padding-top: calc(var(--headerHeight, 80px) + 48px);
  padding-bottom: 40px;
  background: var(--color-brown-dark, #3E281B);
  color: #fff;
}

.page-content__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

.page-content__breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  opacity: .75;
}

.page-content__crumb-link {
  color: inherit;
  text-decoration: none;
}

.page-content__crumb-link:hover {
  text-decoration: underline;
}

.page-content__crumb-current {
  opacity: .6;
}

.page-content__crumb-sep {
  opacity: .5;
}

.page-content__body {
  padding: 48px 0 64px;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark, #1A1A1A);
}

.page-content__body h2 {
  margin: 2em 0 .6em;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-brown-dark, #3E281B);
}

.page-content__body h3 {
  margin: 1.6em 0 .5em;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
}

.page-content__body p {
  margin: 0 0 1em;
}

.page-content__body ul,
.page-content__body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.page-content__body li {
  margin-bottom: .4em;
}

.page-content__body a {
  color: var(--color-brown-dark, #3E281B);
  text-decoration: underline;
}

.page-content__body a:hover {
  opacity: .75;
}

.page-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 8px 0;
}

.page-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}

.page-content__body th,
.page-content__body td {
  padding: 10px 14px;
  border: 1px solid #e8e2de;
  text-align: left;
}

.page-content__body th {
  background: var(--color-brown-dark, #3E281B);
  color: #fff;
  font-weight: 600;
}

.page-content__body tr:nth-child(even) td {
  background: #faf7f5;
}

@media (max-width: 767px) {
  .page-content__hero {
    padding-top: calc(var(--headerHeight, 80px) + 32px);
    padding-bottom: 28px;
  }

  .page-content__body {
    padding: 32px 0 48px;
  }
}

/* ---- Pricing: акция, старая/новая цена, авто-рассрочка ---- */
.pricing__card--sale.pricing__card--basic {
  box-shadow: 0 0 0 0.125rem color-mix(in srgb, var(--color-success, #2e7d32) 45%, transparent);
}

.pricing__price-row--sale {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.pricing__sale-pill {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-success, #2e7d32);
  background: color-mix(in srgb, var(--color-success, #2e7d32) 14%, transparent);
  border: 0.0625rem solid color-mix(in srgb, var(--color-success, #2e7d32) 38%, transparent);
}

.pricing__price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  width: 100%;
}

.pricing__price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.pricing__value--old,
.pricing__currency--old {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 600;
  font-size: 1.5rem;
}

.pricing__value--sale {
  color: var(--color-success, #2e7d32);
}

.pricing__currency--sale {
  color: var(--color-success, #2e7d32);
  opacity: 0.88;
}

.pricing__installment--value-only {
  justify-content: center;
}

.pricing__installment--value-only .pricing__installment-value {
  width: 100%;
  text-align: center;
}