/* Кастомные секции, которых не было в Webflow Flossy шаблоне.
   Подключается в layout.tsx после трёх Webflow CSS — порядок важен. */

:root {
  --blue: #3083FF;
}

/* ========== ЛОГОТИП БРЕНДА ========== */
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

/* В шапке: ограничиваем по высоте, ширина авто (не обрезается) */
.brand-logo-header {
  height: 80px;
  max-height: 80px;
  width: auto;
  max-width: none;
}

/* Wrapper родителя — пусть растягивается под лого, без overflow */
.header-logo-wrapper {
  overflow: visible !important;
  width: auto !important;
  flex-shrink: 0;
}

/* В футере фон тёмно-синий → лого голубое читается, но добавляем чуть белой подложки */
.brand-logo-footer {
  height: 72px;
  max-height: 72px;
  width: auto;
  max-width: none;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .brand-logo-header {
    height: 52px;
    max-height: 52px;
  }
  .brand-logo-footer {
    height: 56px;
    max-height: 56px;
    padding: 8px 12px;
  }
}


/* ========== HERO: фото головного входу в оправі (CTA-боксы удалены из HTML) ========== */
/* Webflow задаёт grid 1fr 1fr 1fr (3 колонки для cta + image + cta) — переопределяем
   на 1 колонку, чтобы единственное фото центрировалось */
.hero-section-image-column {
  grid-template-columns: 1fr !important;
  grid-auto-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  width: 100% !important;
}

.hero-section-contents {
  row-gap: 2rem !important;
}

/* Оправа фото: зовнішня оболонка з білим тлом, тонким кантом і м'якою
   дифузною тінню (приём "double-bezel" — концентричне скруглення). */
.hero-image-frame {
  width: 100%;                     /* широка стрічка на всю ширину контенту */
  margin: 0 auto;
  padding: 0.5rem;                 /* біле "паспарту" навколо фото */
  background: #ffffff;
  border-radius: 2.5rem;           /* зовнішній радіус — як у секцій сайту */
  box-shadow:
    0 1px 2px rgba(16, 42, 86, 0.04),
    0 18px 40px -12px rgba(16, 42, 86, 0.18),   /* основна м'яка тінь */
    0 2px 6px rgba(16, 42, 86, 0.06);
  /* плавне підняття при наведенні */
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.hero-image-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(16, 42, 86, 0.05),
    0 28px 56px -14px rgba(16, 42, 86, 0.24),
    0 4px 10px rgba(16, 42, 86, 0.08);
}

.hero-section-image-column .hero-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2.2 / 1;           /* широка горизонтальна стрічка */
  object-fit: cover;
  object-position: center;
  border-radius: 2rem !important;  /* внутрішній радіус (перебиваємо webflow border-radius:0) */
}

@media (max-width: 768px) {
  .hero-image-frame {
    padding: 0.375rem;
    border-radius: 1.75rem;
  }
  .hero-section-image-column .hero-image {
    aspect-ratio: 3 / 2;             /* на мобільному менш витягнуто, вхід не стискається */
    object-position: 42% center;     /* зсув кадру лівіше — вхід по центру (таблиця "9-19" справа не перетягує) */
    border-radius: 1.5rem !important;
  }
}


/* ========== TRUST BAR ========== */
.trust-bar-section {
  background: #f9fafb;
  padding: 56px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trust-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: #3083FF;
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #595959;
  margin-top: 10px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .trust-bar-section {
    padding: 40px 0;
  }
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .trust-number {
    font-size: 32px;
  }
  .trust-label {
    font-size: 13px;
  }
}

/* ========== DOCTORS CAROUSEL ========== */
.doctors-slider .w-slide {
  padding: 0 12px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 55, 107, 0.12);
  border-color: #3083FF;
}

.doctor-card-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f9fafb;
}

.doctor-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-card-image {
  transform: scale(1.05);
}

.doctor-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.doctor-card-content .heading-5 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #14376B;
  line-height: 1.3;
}

.doctor-card-specialty {
  font-size: 14px;
  font-weight: 600;
  color: #3083FF;
  margin: 0;
}

.doctor-card-experience {
  font-size: 13px;
  color: #595959;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .doctor-card-content {
    padding: 16px;
  }
  .doctor-card-content .heading-5 {
    font-size: 16px;
  }
}

/* ========== BLOG CAROUSEL ========== */
.blog-slider .w-slide {
  padding: 0 12px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 55, 107, 0.12);
  border-color: #3083FF;
}

.blog-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f9fafb;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card-category {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3083FF;
}

.blog-card-content .heading-5 {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #14376B;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #595959;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-card-content {
    padding: 16px;
  }
}

/* ========== TESTIMONIALS-CLEAN — секция-заголовок и слайдер ==========
   Структура: .testimonials-clean-section > .container > заголовок + .w-slider
   Используем оригинальные .testimonial-box-version-one из Webflow CSS — стилизация уже есть.
   Слайдер ведёт себя как у докторов (whyus-slider): стрелочки + клавиатура,
   data-autoplay="false" — без авто-прокрутки. */

.testimonials-clean-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.testimonials-clean-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}

/* В оригинале divider в карточке прозрачный — ставим тонкую серую линию */
.testimonial-box-version-one .divider {
  height: 1px;
  width: 100%;
  background: #e5e7eb;
  margin: 8px 0;
}

@media (max-width: 768px) {
  .testimonials-clean-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .testimonials-clean-header {
    margin-bottom: 32px;
  }
}

/* ========== HEADER LAYOUT FIX ==========
   Лого "Дент-Сервіс" шире чем оригинальный Flossy SVG —
   из-за этого меню сдвигалось влево. Делаем три равных колонки:
   логотип (left) — навигация (center) — CTA (right). */
.header-section-contents {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.header-section-contents .header-logo-wrapper {
  justify-self: start;
}

.header-section-contents .header-navigations-wrapper {
  justify-self: center;
  flex-wrap: wrap;
  min-width: 0;
}

.header-section-contents .header-cta-wrapper {
  justify-self: end;
  width: auto !important;
  flex-shrink: 0;
}

.header-section-contents .header-cta-wrapper .primary-button {
  flex-shrink: 0;
}

/* CSS-hover для navigation-item — IX2-анімація не працює на пунктах
   без оригінальних data-w-id, тому робимо CSS slide-up: is-main
   піднімається вгору, is-hover з'являється знизу. */
.navigation-item-wrapper .navigation-icon,
.navigation-item-wrapper .header-navigation-item {
  transition: transform 0.25s ease;
}
.navigation-item-wrapper .navigation-icon.is-main,
.navigation-item-wrapper .header-navigation-item.is-main {
  transform: translateY(0);
}
.navigation-item-wrapper .navigation-icon.is-hover,
.navigation-item-wrapper .header-navigation-item.is-hover {
  transform: translateY(120%);
}
.navigation-item-wrapper:hover .navigation-icon.is-main,
.navigation-item-wrapper:hover .header-navigation-item.is-main {
  transform: translateY(-120%);
}
.navigation-item-wrapper:hover .navigation-icon.is-hover,
.navigation-item-wrapper:hover .header-navigation-item.is-hover {
  transform: translateY(0);
}
.navigation-item-wrapper:hover {
  color: var(--colors--primary--primary-500);
}

@media (max-width: 991px) {
  .header-section-contents {
    display: flex !important;
  }
}

/* CSS-fallback для opacity не нужен — JS WebflowInit делает forceVisible
   через 2с, в т.ч. сбрасывая transform-translate (иначе текст застревает
   "сдвинутым вниз" из-за стартового состояния Webflow-анимации). */

/* ========== /likari — DOCTORS PAGE GRID ========== */
.doctors-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

@media (max-width: 991px) {
  .doctors-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .doctors-page-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ========== /likari/[slug] — DOCTOR DETAIL PAGE (Flossy layout) ========== */
.doctor-detail-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.25rem;
  display: block;
}

.doctor-training-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.doctor-training-list li {
  position: relative;
  padding-left: 1.5rem;
  color: #2C2C2C;
  font-size: 15px;
  line-height: 1.6;
}

.doctor-training-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3083FF;
}

.doctor-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.doctor-highlights-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #2C2C2C;
  font-size: 15px;
  line-height: 1.6;
}

.doctor-highlights-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3083FF;
}

.doctor-highlights-list li strong {
  color: #14376B;
  font-weight: 600;
}

.doctor-quote-block {
  background: #F1F5FB;
  border-left: 3px solid #3083FF;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  width: 100%;
}

.doctor-quote-block p {
  font-style: italic;
  color: #14376B;
  font-size: 15px;
  line-height: 1.6;
}

/* ========== /kontakty — CONTACT PAGE ========== */
a.contactus-box {
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.contactus-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 55, 107, 0.1);
  border-color: #3083FF;
}

/* Центрированный блок «Запишіться на консультацію»: заголовок + график +
   карточки контактов по центру, не на всю ширину экрана. */
.contactus-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contactus-centered .work-hours-wrapper {
  width: 100%;
  max-width: 480px;
  margin-top: 1.5rem;
}

.contactus-cta-label {
  margin-top: 2rem;
  font-weight: 600;
}

/* Три карточки в ряд под центрированным блоком. */
.contactus-centered .contactus-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

/* В центрированном макете содержимое карточек тоже центрируем. */
.contactus-centered .contactus-box {
  align-items: center;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .contactus-centered .contactus-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Webflow-шаблон скрывает .contactus-wrapper на мобильных (max-width:767px),
   так как в оригинале телефон/email/адрес дублировались в другом блоке.
   У нас этого дубликата нет — возвращаем боксы. */
@media screen and (max-width: 767px) {
  .contactus-wrapper {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-row-gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
  }
}

.contact-map-section {
  margin-bottom: 5rem;
}

.contact-map-wrapper {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.contact-map-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .contact-map-section {
    margin-bottom: 3rem;
  }
  .contact-map-wrapper iframe {
    height: 360px;
  }
}

/* Webflow CSS забивает .select в чёрный цвет (правило для не-en). Перебиваем. */
.contact-form .select,
.doctor-contact-form .select,
select.select.w-select {
  background-color: #fff !important;
  color: #2C2C2C !important;
}

/* ========== /pro-nas — ABOUT PAGE ========== */
/* На /pro-nas в hero 4 опции (2x2) - текст длиннее чем фото в шаблоне.
   Растягиваем фото на всю высоту колонки и обрезаем по cover. */
.about-page-hero .aboutus-image-column {
  align-self: stretch;
}

.about-page-hero .aboutus-image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1.25rem;
}

.about-protocol-section,
.about-standards-section,
.about-history-section {
  padding: 4rem 1rem;
}

@media (max-width: 600px) {
  .about-protocol-section,
  .about-standards-section,
  .about-history-section {
    padding: 2.5rem 1rem;
  }
}

/* --- Цифровий протокол --- */
.protocol-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .protocol-steps-grid {
    grid-template-columns: 1fr;
  }
}

.protocol-step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.protocol-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 55, 107, 0.08);
  border-color: #3083FF;
}

.protocol-step-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #3083FF;
  line-height: 1;
  letter-spacing: -0.02em;
}

.protocol-step-card .heading-5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #14376B;
  margin: 0;
  line-height: 1.3;
}

.protocol-step-card p {
  color: #2C2C2C;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.protocol-step-benefit {
  background: #F1F5FB;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 14px;
  line-height: 1.6;
  color: #14376B;
  margin-top: auto;
}

.protocol-step-benefit strong {
  color: #3083FF;
  font-weight: 600;
}

/* --- Стандарти --- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 991px) {
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.standard-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: var(--colors--primary--primary-50, #EAF3FF);
  border: none;
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.standard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 55, 107, 0.08);
}

.standard-card .standard-card-pattern {
  z-index: 0;
  position: absolute;
  top: -3.4375rem;
  right: -2.125rem;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.standard-card > * {
  position: relative;
  z-index: 1;
}

.standard-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.standard-card .heading-5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #14376B;
  margin: 0;
  line-height: 1.3;
}

.standard-card p {
  color: #2C2C2C;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* --- Історія --- */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3083FF 0%, rgba(48, 131, 255, 0.2) 100%);
}

.history-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  position: relative;
  align-items: start;
}

.history-item::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3083FF;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #3083FF;
  z-index: 1;
}

.history-year {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #3083FF;
  line-height: 1.2;
  text-align: right;
  padding-right: 1.5rem;
  padding-top: 0.25rem;
}

.history-content {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-content .heading-5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #14376B;
  margin: 0;
  line-height: 1.3;
}

.history-content p {
  color: #2C2C2C;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 600px) {
  .history-timeline::before {
    left: 12px;
  }
  .history-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 40px;
  }
  .history-item::before {
    left: 4px;
    top: 1.75rem;
  }
  .history-year {
    text-align: left;
    padding-right: 0;
    font-size: 22px;
  }
  .history-content {
    padding-left: 0;
  }
}

/* ========== /faq — FAQ PAGE ========== */
.faq-page-section {
  padding: 0 1rem 5rem;
}

.faq-group {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 4rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #e5e7eb;
  text-align: center;
}

.faq-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #3083FF 0%, #5B9DFF 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.faq-group-header h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  color: #14376B;
}

/* Аккордеоны — на всю ширину контейнера */
.faq-page-section .accordions {
  width: 100%;
}

.faq-page-section .accordion {
  width: 100%;
}

.faq-page-section .faq-dropdown {
  width: 100%;
  cursor: pointer;
}

/* Переключение иконок + / − при відкритому стані аккордеона */
.accordion.w--open .icon.open {
  display: none !important;
}

.accordion.w--open .icon.close {
  display: flex !important;
}

/* Webflow .heading-5 капіталізує кожне слово — у FAQ-питаннях це робить
   "Що Таке Цифровий Протокол" замість нормального "Що таке цифровий протокол".
   Скасовуємо. */
.faq-page-section .faq-dropdown .heading-5,
.faq-section .faq-dropdown .heading-5 {
  text-transform: none;
}

@media (max-width: 600px) {
  .faq-group {
    margin-bottom: 3rem;
  }
  .faq-group-header {
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    flex-direction: column;
  }
  .faq-group-badge {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 0.75rem;
  }
  .faq-group-header h2 {
    font-size: 22px;
  }
  .faq-page-section {
    padding: 0 1rem 3rem;
  }
}

/* ============================================
   POSLUGY CATALOG (/poslugy) — карточки з фото
   ============================================ */

.services-catalog-section {
  padding: 5rem 0 6rem;
  background: var(--white);
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(48, 131, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.service-catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(48, 131, 255, 0.18);
  border-color: rgba(48, 131, 255, 0.3);
}

.service-catalog-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-catalog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Парадонтологія: підняти кадрування вище, щоб модель ясен з зубами не обрізалась */
.service-catalog-card[href="/poslugy/parodontolohiia"] .service-catalog-image {
  object-position: 50% 80%;
}

.service-catalog-card:hover .service-catalog-image {
  transform: scale(1.08);
}

.service-catalog-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 41, 84, 0) 30%, rgba(15, 41, 84, 0.55) 100%);
}

.service-catalog-body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.service-catalog-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--black);
  margin: 0;
  line-height: 1.25;
}

.service-catalog-description {
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.service-catalog-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  transition: gap 0.3s ease;
}

.service-catalog-card:hover .service-catalog-cta {
  gap: 0.875rem;
}

@media (max-width: 1100px) {
  .services-catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .services-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .services-catalog-section {
    padding: 3rem 0 4rem;
  }
  .services-catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SERVICE DETAIL (/poslugy/[slug])
   ============================================ */

/* Hero */
.service-hero-section {
  padding: 3.5rem 0 4rem;
  background: var(--white);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-hero-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(48, 131, 255, 0.12), rgba(48, 131, 255, 0.04));
  border-radius: 1rem;
  color: var(--blue);
}

.service-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.service-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.55;
}

.service-benefits-list .service-benefit-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: #3083FF !important;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.service-benefits-list .service-benefit-check svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.service-hero-content .primary-button {
  align-self: flex-start;
  width: auto;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Hover-анімація аналогічна Webflow ix2 на головній: тёмний шар
   .primary-button-hover-bg виїжджає знизу при наведенні. */
.service-hero-content .primary-button .primary-button-hover-bg {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 104%, 0) !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-hero-content .primary-button:hover .primary-button-hover-bg {
  transform: translate3d(0, 0, 0) !important;
}

.service-hero-content .primary-button .primary-button-main-contents {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-hero-content .primary-button:hover .primary-button-main-contents {
  transform: translate3d(0, -104%, 0) !important;
}

.service-hero-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 41, 84, 0.12);
}

.service-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-hero-image-wrap {
    aspect-ratio: 3 / 2;
    max-width: 580px;
    margin: 0 auto;
  }
}

/* Problems */
.service-problems-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f7faff 0%, var(--white) 100%);
}

.service-problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem auto 0;
  max-width: 1080px;
}

.service-problem-card {
  background: var(--white);
  border: 1px solid rgba(48, 131, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 41, 84, 0.08);
}

.service-problem-card .faq-group-badge {
  width: 48px;
  height: 48px;
  font-size: 18px;
  border-radius: 0.75rem;
}

@media (max-width: 768px) {
  .service-problems-grid {
    grid-template-columns: 1fr;
  }
}

/* Stages — vertical timeline */
.service-stages-section {
  padding: 5rem 0;
  background: var(--white);
}

.service-stages-list {
  margin: 3rem auto 0;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-stage-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 41, 84, 0.06);
}

.service-stage-row .faq-group-badge {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.service-stage-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .service-stage-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem;
  }
}

/* Standards */
.service-standards-section {
  padding: 5rem 0;
  background: #f7faff;
}

.service-standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 3rem auto 0;
  max-width: 1080px;
}

.service-standard-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 1rem;
}

.service-standard-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-standard-item p {
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .service-standards-grid {
    grid-template-columns: 1fr;
  }
}

/* Doctors */
.service-doctors-section {
  padding: 5rem 0;
  background: var(--white);
}

.service-doctors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 3rem auto 0;
  max-width: 1080px;
  justify-content: center;
}

.service-doctor-card {
  display: flex;
  flex-direction: column;
  flex: 0 1 280px;
  min-width: 240px;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(48, 131, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 41, 84, 0.12);
}

.service-doctor-image-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f4f6;
}

.service-doctor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-doctor-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* FAQ — використовуємо Webflow-аккордеон у стилі сторінки /faq.
   Вся стилізація аккордеонів — від .faq-page-section з родного Flossy CSS.
   Тут тільки додаємо власний фон секції і центруємо контент. */
.service-faq-section.faq-page-section {
  padding: 5rem 0 6rem;
  background: #f7faff;
}

.service-faq-section .faq-group {
  max-width: 880px;
  margin: 3rem auto 0;
}

/* Section header centering for service detail */
.services-catalog-section .full-width-section-header-wrapper,
.service-problems-section .full-width-section-header-wrapper,
.service-stages-section .full-width-section-header-wrapper,
.service-standards-section .full-width-section-header-wrapper,
.service-doctors-section .full-width-section-header-wrapper,
.service-faq-section .full-width-section-header-wrapper {
  text-align: center;
}

.services-catalog-section .full-width-section-header-contents,
.service-problems-section .full-width-section-header-contents,
.service-stages-section .full-width-section-header-contents,
.service-standards-section .full-width-section-header-contents,
.service-doctors-section .full-width-section-header-contents,
.service-faq-section .full-width-section-header-contents {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  align-items: center !important;
  text-align: center;
}

/* ============================================
   404 — NOT FOUND PAGE (Flossy template)
   ============================================ */

._404-body-wrapper h3 {
  text-transform: none;
}

/* ============================================
   BLOG — list, post detail, filters
   ============================================ */

.blog-section h2,
.blog-section h3,
.blog-section h4 {
  text-transform: none;
}

.post-box .heading-4,
.post-box .heading-5 {
  text-transform: none;
}

/* Banner H1 on /blog and /blog/[slug] */
.page-banner-section h1 {
  text-transform: none;
}

/* Уменьшаем большой margin-bottom баннера, унаследованный от шаблона (8.125rem) */
.page-banner-section {
  margin-bottom: 3rem;
}

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Flossy primary-button-style slide: identical structure to .primary-button
   (main-contents + hover-bg as separate divs with translate3d transitions) */
.blog-filter-chip {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: #1B68F0;
  cursor: pointer;
  font-family: inherit;
  min-width: 7.5rem;
  height: 2.5rem;
}

.blog-filter-chip-main,
.blog-filter-chip-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.blog-filter-chip-main {
  background-color: #1B68F0;
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.blog-filter-chip-hover {
  background-color: #0c0c0c;
  transform: translate3d(0, 104%, 0);
  z-index: 1;
}

.blog-filter-chip-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

.blog-filter-chip:hover .blog-filter-chip-main,
.blog-filter-chip.is-active .blog-filter-chip-main {
  transform: translate3d(0, -104%, 0);
}

.blog-filter-chip:hover .blog-filter-chip-hover,
.blog-filter-chip.is-active .blog-filter-chip-hover {
  transform: translate3d(0, 0, 0);
}

.blog-card-excerpt-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a5a5a;
  margin: 0.5rem 0 0;
}

.blog-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #5a5a5a;
  font-size: 1.05rem;
}

.post-thumbnail-wrapper {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

.post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-thumbnail-wrapper:hover .post-thumbnail {
  transform: scale(1.04);
}

/* Post detail page */
.single-post-section h1,
.single-post-section h2,
.single-post-section h3 {
  text-transform: none;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-contents.w-richtext {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a2a2a;
}

.post-contents.w-richtext h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  text-transform: none;
  color: #0c0c0c;
}

.post-contents.w-richtext h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  text-transform: none;
  color: #0c0c0c;
}

.post-contents.w-richtext p {
  margin: 1rem 0;
}

.post-contents.w-richtext ul,
.post-contents.w-richtext ol {
  margin: 1rem 0 1rem 1.5rem;
  padding-left: 1rem;
}

.post-contents.w-richtext li {
  margin: 0.4rem 0;
  line-height: 1.6;
}

.post-contents.w-richtext blockquote {
  border-left: 4px solid #1B68F0;
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #3a3a3a;
  background: #f7f9ff;
  border-radius: 4px;
}

.post-contents.w-richtext a {
  color: #1B68F0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-contents.w-richtext a:hover {
  color: #0d4cc7;
}

.post-contents.w-richtext strong {
  font-weight: 700;
  color: #0c0c0c;
}

.post-contents.w-richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Blog FAQ block on post page */
.blog-faq-block {
  margin: 3rem 0;
  padding: 2rem;
  background: #f6f6f6;
  border-radius: 16px;
}

.blog-faq-block h2 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  text-transform: none;
}

.blog-faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.blog-faq-item:last-child {
  border-bottom: none;
}

.blog-faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: #0c0c0c;
}

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

.blog-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.5rem;
  color: #1B68F0;
  transition: transform 0.2s ease;
}

.blog-faq-item[open] summary::after {
  content: "−";
}

.blog-faq-item p {
  margin: 0.75rem 0 0;
  color: #3a3a3a;
  line-height: 1.6;
}

/* Author bio */
.blog-author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  margin: 3rem 0 2rem;
}

.blog-author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.blog-author-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0c0c0c;
}

.blog-author-position {
  font-size: 0.95rem;
  color: #5a5a5a;
  margin-top: 0.15rem;
}

.blog-author-experience {
  font-size: 0.85rem;
  color: #999;
  margin-top: 0.15rem;
}

/* Blog CTA block on post */
.blog-cta-block {
  margin: 3rem 0 2rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #1B68F0 0%, #0d4cc7 100%);
  color: #fff;
  border-radius: 16px;
  text-align: center;
}

.blog-cta-block h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #fff;
  text-transform: none;
}

.blog-cta-block p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

@media (max-width: 768px) {
  ._3columns-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .blog-author-bio {
    flex-direction: column;
    text-align: center;
  }
  .post-contents.w-richtext h2 {
    font-size: 1.5rem;
  }
  .post-contents.w-richtext h3 {
    font-size: 1.2rem;
  }
}

/* Глобальний hover для .primary-button (без залежності від Webflow IX2).
   main-contents їде вгору, hover-bg (чорний фон) виїжджає знизу. */
.primary-button .primary-button-main-contents,
.primary-button .primary-button-hover-bg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-button:hover .primary-button-main-contents {
  transform: translate3d(0, -104%, 0) !important;
}

.primary-button:hover .primary-button-hover-bg {
  transform: translate3d(0, 0%, 0) !important;
}

/* Те саме для secondary-button */
.secondary-button .secondary-button-main-contents,
.secondary-button .secondary-button-hover-bg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.secondary-button:hover .secondary-button-main-contents {
  transform: translate3d(0, -104%, 0) !important;
}

.secondary-button:hover .secondary-button-hover-bg {
  transform: translate3d(0, 0%, 0) !important;
}

/* Сховати стрілки прокрутки в каруселі блогу на головній */
.blog-section .blog-slider .left-arrow,
.blog-section .blog-slider .right-arrow {
  display: none !important;
}

/* ========== МОБИЛЬНОЕ МЕНЮ (burger) ========== */
.mobile-menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  margin-right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2C2C2C;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100000;
  background: #ffffff;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 100%);
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-top: 1px solid #E5E7EB;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.3s;
}

.mobile-menu[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-link {
  display: block;
  padding: 16px 8px;
  color: #2C2C2C;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
  transition: color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--blue);
}

.mobile-menu-phone {
  display: block;
  margin-top: 24px;
  padding: 14px 24px;
  text-align: center;
  background: var(--blue);
  color: #ffffff !important;
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

/* body.mobile-menu-open: для dropdown-меню overflow lock не потрібен */

@media screen and (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
  /* Прячем CTA "Записатись" из header на мобиле — есть телефон в меню */
  .header-section .header-cta-wrapper {
    display: none;
  }
  /* Sticky header на мобиле — чтобы бургер всегда под рукой */
  .header-section {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 50;
    transition: transform 0.3s ease;
    will-change: transform;
  }
  /* Скрытие при скролле вниз — хедер уезжает вверх */
  .header-section.header-hidden {
    transform: translateY(-100%);
  }
}

/* ========== ОТКЛЮЧЕНИЕ ДЁРГАЮЩИХСЯ WEBFLOW-АНИМАЦИЙ ========== */
/* Секции "Послуги" і "Про нас" на головній — анімації on-scroll занадто
   нервні. Робимо елементи видимими одразу, без translate/opacity-ефектів.
   Кнопки/hover усередині — Webflow IX2 на них продовжує працювати. */
.services-section .services-box,
.services-section .service-description,
.services-section .services-image,
.aboutus-section .aboutus-contents-wrapper,
.aboutus-section .aboutus-grid,
.aboutus-section .aboutus-option-wrapper,
.aboutus-section h2,
.aboutus-section .paragraph-no-margin {
  opacity: 1 !important;
  transform: none !important;
}

/* ========== ССЫЛКА НА ДОГОВІР ОФЕРТИ В ФУТЕРІ ========== */
.footer-copywrite-stack {
  flex-direction: column;
}

.footer-offer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--colors--gray--gray-50, rgba(255, 255, 255, 0.55));
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-offer-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-offer-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-offer-link:hover svg {
  opacity: 1;
}

/* ========== ФІКС КОЛЬОРУ ТЕЛЕФОНІВ У ФУТЕРІ НА iOS ========== */
/* iOS Safari автоматично розпізнає номери телефонів і фарбує їх своїм
   системним кольором (чорний/синій), ігноруючи .text-white. Примусово
   фарбуємо весь текст у футері в білий, включно з авто-згенерованими
   tel-посиланнями. */
.footer .footer-option-wrapper .caption,
.footer .footer-option-wrapper .caption a,
.footer a[href^="tel:"] {
  color: var(--colors--gray--gray-50, #f5f5f5) !important;
  text-decoration: none !important;
}

/* ========== ДОГОВІР ОФЕРТИ: PDF-перегляд на мобільних ========== */
/* iOS Safari у <iframe> показує лише першу сторінку багатосторінкового PDF
   і не дає його гортати. Тому на телефонах ховаємо вбудований перегляд —
   кнопка «Відкрити документ повністю» відкриває PDF у нативному переглядачі,
   де всі сторінки гортаються нормально. На десктопі inline-перегляд лишається. */
@media (max-width: 767px) {
  .offer-pdf-frame {
    display: none !important;
  }
}
