/* ==========================================================================
   Optic House KG — тема оформления
   Воспроизводит дизайн https://www.optichouse.us/ (Next.js/Tailwind) поверх
   существующей Bootstrap 5 вёрстки. Подключается ПОСЛЕ bootstrap.min.css.

   Ранее сайт тянул style.css / media.css / owl.carousel / line-awesome /
   animate.css / fancybox с optichouse.us — эти файлы удалены с того сервера
   (404), поэтому оформление собрано заново.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены дизайна (значения сняты с рабочего optichouse.us)
   -------------------------------------------------------------------------- */
:root {
  /* Палитра */
  --oh-blue:        #1d4ed8; /* blue-700  — кнопки, акценты        */
  --oh-blue-hover:  #1e40af; /* blue-800  — ховер, заголовок формы */
  --oh-blue-deep:   #1e3a8a; /* blue-900                            */
  --oh-blue-ring:   #dbeafe; /* blue-100  — фокус-кольцо            */
  --oh-red:         #dc2626; /* red-600   — верхняя строка          */
  --oh-red-hover:   #b91c1c; /* red-700                             */

  --oh-ink:         #030712; /* gray-950  — основной текст          */
  --oh-black:       #000000;
  --oh-body:        #374151; /* gray-700  — абзацы                  */
  --oh-muted:       #4b5563; /* gray-600  — надзаголовки            */
  --oh-faint:       #6b7280; /* gray-500                            */
  --oh-line:        #d1d5db; /* gray-300  — рамки полей, разделител */
  --oh-line-soft:   #e5e7eb; /* gray-200  — рамки карточек          */

  --oh-surface:     #fafafa; /* фон светлых секций                  */
  --oh-dark:        #1e2225; /* фон тёмных секций                   */
  --oh-footer:      #f3f1ef; /* фон подвала                         */
  --oh-white:       #ffffff;

  /* Радиусы */
  --oh-r-card:  14px;
  --oh-r-panel: 16px;
  --oh-r-input: 10px;
  --oh-r-btn:   8px;

  /* Тени */
  --oh-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
  --oh-shadow:    0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --oh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --oh-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);

  /* Шрифт — тот же стек, что отдаёт optichouse.us */
  --oh-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, "Noto Sans", sans-serif,
             "Apple Color Emoji", "Segoe UI Emoji";
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */
body {
  font-family: var(--oh-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--oh-ink);
  background-color: var(--oh-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--oh-font); color: var(--oh-ink); }

a { color: var(--oh-blue); text-decoration: none; }
a:hover { color: var(--oh-blue-hover); }

img { max-width: 100%; }

::selection { background: var(--oh-blue); color: #fff; }

/* Контейнер: 1280px как на эталоне */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl { padding-left: 1rem; padding-right: 1rem; }

@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl { max-width: 1280px; padding-left: 2rem; padding-right: 2rem; }
}

/* Вертикальный ритм секций (py-* из разметки перебивает это правило) */
section { padding-top: 64px; padding-bottom: 64px; }
section.py-2 { padding-top: 40px; padding-bottom: 40px; }

/* Утилиты Tailwind-стиля, которые есть в разметке, но отсутствуют в BS 5.0 */
.fixed  { position: fixed !important; }
.left-0 { left: 0 !important; }
.right-0{ right: 0 !important; }
.z-50   { z-index: 1050 !important; }

/* Перекраска базовых утилит Bootstrap под палитру эталона */
.bg-light { background-color: var(--oh-surface) !important; }
.bg-dark  { background-color: var(--oh-dark) !important; }
.text-muted { color: var(--oh-muted) !important; }
.shadow    { box-shadow: var(--oh-shadow-lg) !important; }
.shadow-sm { box-shadow: var(--oh-shadow-sm) !important; }
.rounded-3 { border-radius: var(--oh-r-card) !important; }

/* --------------------------------------------------------------------------
   3. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--oh-font);
  font-weight: 600;
  border-radius: var(--oh-r-btn);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn-primary,
.btn-primary:visited {
  background-color: var(--oh-blue);
  border-color: var(--oh-blue);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary {
  background-color: var(--oh-blue-hover) !important;
  border-color: var(--oh-blue-hover) !important;
  color: #fff !important;
}
.btn-primary:focus,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px var(--oh-blue-ring);
}

/* «Записаться» в шапке — на эталоне скруглённый прямоугольник, не пилюля */
.navbar .btn.rounded-pill { border-radius: var(--oh-r-btn) !important; }

/* Крупная кнопка отправки формы */
.btn-lg {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .45px;
  padding: 12px 24px;
  border-radius: var(--oh-r-input);
}
.contact-form .btn-primary.btn-lg {
  text-transform: uppercase;
  border-radius: var(--oh-r-input) !important;
  box-shadow: var(--oh-shadow-lg);
}

/* --------------------------------------------------------------------------
   4. Верхняя красная строка (бегущая)
   -------------------------------------------------------------------------- */
.top-header,
.top-header.bg-danger {
  background-color: var(--oh-red) !important;
  padding-top: .5rem;
  padding-bottom: .5rem;
  overflow: hidden;
}
.top-header,
.top-header p,
.top-header span,
.top-header a { font-size: 16px; line-height: 1.5; color: #fff; }
.top-header a { text-decoration: none; }
.top-header a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   5. Шапка / навигация
   -------------------------------------------------------------------------- */
header { position: relative; z-index: 1030; }

.navbar,
.navbar.bg-light {
  background-color: var(--oh-white) !important;
  box-shadow: var(--oh-shadow-sm);
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.navbar-brand { padding: 0; margin-right: 1rem; }
.navbar-brand img { height: 56px; width: auto; display: block; }

.navbar-nav { gap: .25rem; }

.navbar-light .navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--oh-black);
  padding: 8px 10px;
  border-radius: 6px;
  transition: color .2s ease, background-color .2s ease;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--oh-blue-hover);
  background-color: #f3f4f6;
}
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link { color: var(--oh-blue); }

.navbar-toggler {
  border-color: var(--oh-line);
  padding: .35rem .55rem;
  border-radius: var(--oh-r-btn);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--oh-blue-ring); }

@media (max-width: 991.98px) {
  .navbar-brand img { height: 44px; }
  .navbar-nav { gap: 0; padding-top: .5rem; align-items: stretch !important; }
  .navbar-light .navbar-nav .nav-link { padding: 10px 8px; }
  .navbar-nav .btn { display: block; margin: .5rem 8px 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   6. Главный слайдер (Bootstrap carousel)
   -------------------------------------------------------------------------- */
#carouselExampleIndicators { background-color: #0b1220; }

.carousel-indicators { margin-bottom: 1.25rem; }
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, .55);
  opacity: 1;
  transition: background-color .2s ease, transform .2s ease;
}
.carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   7. Заголовки секций (.section-heading)
   Разметка встречается в двух порядках:
     <h3>надзаголовок</h3><h2>заголовок</h2>   — h3 сверху
     <h2>заголовок</h2><h3>подзаголовок</h3>   — h3 снизу
   -------------------------------------------------------------------------- */
.section-heading { margin-bottom: 2rem; }

.section-heading h2 {
  font-size: 2.25rem;      /* 36px */
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--oh-ink);
  margin: 0 0 .5rem;
}

/* Заголовки в левой колонке (о нас, промо-блоки, страницы услуг) */
.section-heading:not(.text-center):not(.text-md-center) h2 {
  text-transform: none;
  font-weight: 800;
  line-height: 1.25;
}

/* h3 ПЕРЕД h2 — надзаголовок */
.section-heading h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--oh-muted);
  margin: 0 0 .5rem;
}

/* h3 ПОСЛЕ h2 — подзаголовок */
.section-heading h2 ~ h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--oh-body);
  margin: 0;
}

.section-heading > img { max-height: 56px; width: auto; }

@media (max-width: 767.98px) {
  .section-heading h2 { font-size: 1.75rem; }
  .section-heading h2 ~ h3 { font-size: 16px; line-height: 26px; }
}

/* Текстовые блоки */
.desc { color: var(--oh-body); }
.desc p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--oh-body);
  margin-bottom: 1rem;
}
.desc ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.desc li { font-size: 18px; line-height: 1.75; color: var(--oh-body); margin-bottom: .35rem; }

@media (max-width: 767.98px) {
  .desc p, .desc li { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   8. Ссылки-кнопки
   -------------------------------------------------------------------------- */
/* Синяя кнопка-ссылка (Contact Us / View Brands на эталоне) */
.custom-link-btn {
  display: inline-block;
  background-color: var(--oh-blue);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--oh-r-btn);
  text-decoration: none;
  transition: background-color .2s ease;
}
.custom-link-btn:hover,
.custom-link-btn:focus {
  background-color: var(--oh-blue-hover);
  color: #fff !important;
  text-decoration: none;
}

.btn-transparent.custom-link-btn { background-color: var(--oh-blue); }

/* Текстовая ссылка с подчёркиванием (EYE EXAM → на эталоне) */
.custom-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--oh-black);
  border-bottom: 2px solid var(--oh-black);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.custom-link:hover,
.custom-link:focus {
  color: var(--oh-blue-hover);
  border-color: var(--oh-blue-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. Полоса преимуществ (.serv_wrap / .speciality-box)
   -------------------------------------------------------------------------- */
.serv_wrap {
  background-color: var(--oh-surface) !important;
  padding-top: 48px;
  padding-bottom: 48px;
}

.speciality-box {
  height: 100%;
  background-color: var(--oh-white);
  border-radius: var(--oh-r-card);
  box-shadow: var(--oh-shadow-lg);
  padding: 24px 20px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.speciality-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--oh-shadow-xl);
}

.speciality-box .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin-bottom: .75rem;
}
.speciality-box .icon > img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.speciality-box .sp-content h5 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oh-ink);
  margin-bottom: .25rem;
}
.speciality-box .sp-content p {
  font-size: 16px;
  line-height: 26px;
  color: var(--oh-body);
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .speciality-box .sp-content h5 { font-size: 17px; line-height: 24px; }
  .speciality-box .icon { min-height: 56px; }
  .speciality-box .icon > img { height: 48px; }
}

/* --------------------------------------------------------------------------
   10. Секция записи на диагностику (.bg-appointment)
   -------------------------------------------------------------------------- */
.bg-appointment {
  position: relative;
  background-color: #111827;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 600px;
  display: flex;
  align-items: center;
}
/* Мягкая подложка: держит контраст текста и когда фоновое фото не загрузилось */
.bg-appointment::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #0b1220 0%, #16233d 45%, #1f2937 100%);
  opacity: .92;
  pointer-events: none;
}
.bg-appointment > * { position: relative; z-index: 1; }

/* Инлайновый градиент-оверлей в разметке рассчитан на фото; поверх ровной
   подложки он читается как тёмный прямоугольник — гасим его */
.diagnosis-text-overlay { background: none !important; }

@media (max-width: 991.98px) {
  .bg-appointment { background-attachment: scroll; min-height: 0; }
}

.bg-appointment > .container-fluid { width: 100%; }

.diagnosis-text-content h2 { color: #fff; }
.diagnosis-list { font-size: 17px; line-height: 1.7; }

/* Карточка формы */
.contact-form {
  border-radius: var(--oh-r-panel) !important;
  box-shadow: var(--oh-shadow-xl) !important;
}

.contact-form .section-heading { text-align: center; }

.diagnosis-form-title {
  font-size: 30px !important;
  line-height: 36px;
  font-weight: 700;
  text-transform: none !important;
  color: var(--oh-blue-hover) !important;
  margin-bottom: 1rem;
}
.diagnosis-form-subtitle {
  font-size: 16px;
  line-height: 24px;
  color: var(--oh-body) !important;
}
.diagnosis-form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--oh-body) !important;
  margin-bottom: .5rem;
}
.diagnosis-form-disclaimer { font-size: 13px; color: var(--oh-muted) !important; }

/* --------------------------------------------------------------------------
   11. Поля ввода
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
  font-family: var(--oh-font);
  font-size: 16px;
  line-height: 24px;
  color: #111827;
  background-color: #fff;
  padding: 12px 20px;
  border: 1px solid var(--oh-line);
  border-radius: var(--oh-r-input);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--oh-blue);
  box-shadow: 0 0 0 3px var(--oh-blue-ring);
  outline: 0;
}
.form-control::placeholder { color: #9ca3af; opacity: 1; }

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--oh-body);
  margin-bottom: .5rem;
}

/* Плавающие подписи в модальном окне */
.form-floating > .form-control { padding: 1rem 1.25rem; height: calc(3.5rem + 2px); }
.form-floating > label { padding: 1rem 1.25rem; color: var(--oh-faint); }

/* --------------------------------------------------------------------------
   12. Блок «О нас»
   -------------------------------------------------------------------------- */
.abt-img-wrap { overflow: hidden; }
.abt-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* На десктопе фото тянется на всю высоту колонки, как на эталоне */
@media (min-width: 768px) {
  .abt-img-wrap { min-height: 620px; }
  .abt-img-wrap img { position: absolute; inset: 0; }
}
@media (max-width: 767.98px) {
  .abt-img-wrap img { max-height: 380px; }
}

/* --------------------------------------------------------------------------
   13. Секция с фоном-фотографией (.store-bg) и карточки .certi-wrap
   -------------------------------------------------------------------------- */
.store-bg {
  background-color: #1f2937;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 991.98px) {
  .store-bg { background-attachment: scroll; }
}

.certi-wrap {
  height: 100%;
  border-radius: var(--oh-r-card) !important;
  box-shadow: var(--oh-shadow-lg) !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.certi-wrap:hover { transform: translateY(-4px); box-shadow: var(--oh-shadow-xl) !important; }
.certi-wrap img { max-height: 64px; width: auto; object-fit: contain; }
.certi-wrap h5 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--oh-ink);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. Карточки услуг (.service-box-wrap)
   -------------------------------------------------------------------------- */
.service-box-wrap {
  height: 100%;
  background-color: var(--oh-white);
  border: 1px solid var(--oh-line-soft);
  border-radius: var(--oh-r-card);
  box-shadow: var(--oh-shadow-sm);
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-box-wrap:hover {
  box-shadow: var(--oh-shadow-lg);
  transform: translateY(-3px);
}
/* max-height, а не height: битые иконки (см. отчёт) схлопываются без пустой дыры */
.service-box-wrap > img { max-height: 48px; width: auto; object-fit: contain; }
.service-box-wrap h5 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--oh-black);
  margin-bottom: .75rem;
}
.service-box-wrap p {
  font-size: 16px;
  line-height: 24px;
  color: var(--oh-body);
  margin-bottom: 1rem;
}
.service-box-wrap .custom-link { margin-top: auto; }

/* Ряд карточек услуг: одинаковая высота */
.service-box-wrap { min-height: 100%; }

/* --------------------------------------------------------------------------
   15. Промо-блоки с видео (.pro-thumb-wrap / .vid-content)
   -------------------------------------------------------------------------- */
.pro-thumb-wrap {
  position: relative;
  border-radius: var(--oh-r-card);
  overflow: hidden;
  /* Резервируем высоту: без неё блок схлопывается в 0px и картинка
     с loading="lazy" никогда не попадает во вьюпорт и не грузится */
  min-height: 260px;
}
@media (min-width: 768px) {
  .pro-thumb-wrap { min-height: 420px; }
}
.pro-thumb-wrap > img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.pro-thumb-wrap > video {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 42%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--oh-shadow-xl);
  object-fit: cover;
}
.pro-thumb-wrap > video.ms-auto.end-0 { right: 6%; left: auto; }

.vid-content { padding: 2rem clamp(1rem, 5vw, 4rem); }
.vid-content .custom-link-btn { margin-top: 1.5rem !important; }

@media (max-width: 767.98px) {
  .vid-content { padding: 1.5rem 1rem; }
}

/* --------------------------------------------------------------------------
   16. Секция продукции и карточки товаров
   -------------------------------------------------------------------------- */
.products_wrap_section { background-color: var(--oh-white); }

.custom-tabs {
  border-bottom: 1px solid var(--oh-line-soft);
  justify-content: center;
  gap: .5rem;
}
.custom-tabs .nav-link {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--oh-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .75rem 1.25rem;
}
.custom-tabs .nav-link:hover { color: var(--oh-ink); }
.custom-tabs .nav-link.active {
  color: var(--oh-black);
  background: transparent;
  border-bottom-color: var(--oh-black);
}

.product-wrap-box {
  height: 100%;
  background-color: var(--oh-white);
  border: 1px solid var(--oh-line-soft);
  border-radius: var(--oh-r-card);
  padding: 1rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-wrap-box:hover { box-shadow: var(--oh-shadow-lg); transform: translateY(-3px); }

.product-wrap-box .item-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin-bottom: 0 !important;
}
.product-wrap-box .item-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-content h5 { font-size: 17px; font-weight: 600; margin-bottom: 0; }
.product-content h5 > a { color: var(--oh-ink); }

/* --------------------------------------------------------------------------
   17. Слайдер брендов (.logo-slider / .logo-item)
   -------------------------------------------------------------------------- */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 1rem;
  background-color: var(--oh-white);
  border: 1px solid var(--oh-line-soft);
  border-radius: 12px;
  transition: box-shadow .25s ease;
}
.logo-item:hover { box-shadow: var(--oh-shadow); }
.logo-item img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   18. Отзывы (разметка сейчас закомментирована, стили — на будущее)
   -------------------------------------------------------------------------- */
.testimoanial-bg { background-color: var(--oh-surface); }
.testimonial-item {
  border-radius: var(--oh-r-card) !important;
  box-shadow: var(--oh-shadow-lg) !important;
}
.profile-wrap { display: flex; justify-content: center; }
.profile-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 6px;
}
.t-desc p { font-size: 16px; line-height: 26px; color: var(--oh-body); }
.t-name { font-size: 17px; font-weight: 700; text-transform: uppercase; margin-bottom: .1rem; }
.t-designation { font-size: 14px; color: var(--oh-muted); font-weight: 400; }

/* --------------------------------------------------------------------------
   19. Подвал
   -------------------------------------------------------------------------- */
footer { background-color: var(--oh-footer); }

.main-ft { padding: 40px 0 24px; }
.main-ft img { max-height: 64px; width: auto; }

.f-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--oh-black);
  text-transform: none;
  margin-bottom: .75rem;
}

.footer-list {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.footer-list li { margin-bottom: .5rem; color: var(--oh-black); }
.footer-list li:last-child { margin-bottom: 0; }
.footer-list a { color: var(--oh-black); text-decoration: none; }
.footer-list a:hover { color: var(--oh-black); text-decoration: underline; }
.footer-list svg { color: var(--oh-muted); }

.social-links { list-style: none; padding-left: 0; margin-bottom: 0; }
.social-links li a { display: inline-flex; align-items: center; opacity: .9; transition: opacity .2s ease; }
.social-links li a:hover { opacity: 1; }

.copyright-wrap {
  border-top: 1px solid var(--oh-line);
  margin-top: 2rem;
}
.copyright-wrap p {
  font-size: 14px;
  line-height: 20px;
  color: var(--oh-body);
}

.nivida { text-align: right; }
.nivida img { max-height: 28px; width: auto; }

/* --------------------------------------------------------------------------
   20. Кнопка «Наверх»
   -------------------------------------------------------------------------- */
.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--oh-blue);
  color: #fff !important;
  box-shadow: var(--oh-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
}
.scroll-to-top:hover { background-color: var(--oh-blue-hover); color: #fff !important; }
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Над мобильной панелью «Позвонить / WhatsApp» */
@media (max-width: 767.98px) {
  .scroll-to-top { bottom: 84px; right: 16px; }
}

/* --------------------------------------------------------------------------
   21. Нижняя мобильная панель действий
   -------------------------------------------------------------------------- */
.d-md-none.fixed.bottom-0 {
  background-color: #fff;
  border-top: 1px solid var(--oh-line-soft);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .08) !important;
}
.d-md-none.fixed.bottom-0 .btn { border-radius: var(--oh-r-btn) !important; font-weight: 600; }

/* --------------------------------------------------------------------------
   22. Модальное окно
   -------------------------------------------------------------------------- */
.modal-content { border: 0; border-radius: var(--oh-r-panel); box-shadow: var(--oh-shadow-xl); }
.modal-header { border-bottom: 1px solid var(--oh-line-soft); padding: 1.25rem 1.5rem; }
.modal-title { font-size: 22px; font-weight: 700; }

/* --------------------------------------------------------------------------
   23. Страницы услуг (.service-details)
   -------------------------------------------------------------------------- */
.service-details { padding: 70px 0; }
.service-desc p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--oh-body);
  margin-bottom: 1rem;
}
.service-desc ul { padding-left: 1.25rem; }
.service-desc li { font-size: 18px; line-height: 1.8; color: var(--oh-body); margin-bottom: .35rem; }

@media (max-width: 991.98px) {
  .service-details .w-75 { width: 100% !important; padding: 2rem 1rem 0; }
}

/* --------------------------------------------------------------------------
   24. Анимация появления (замена wow.js + animate.css)
   -------------------------------------------------------------------------- */
.wow { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .oh-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .oh-reveal.oh-revealed { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   25. Карусель (замена owl.carousel)
   -------------------------------------------------------------------------- */
.owl-carousel { position: relative; }

/* До инициализации JS показываем элементы в ряд, чтобы не было «простыни» */
.owl-carousel:not(.oh-ready) {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow: hidden;
}
.owl-carousel:not(.oh-ready) > * { flex: 0 0 25%; min-width: 0; }

.oh-carousel { position: relative; padding: 0 0 8px; }
.oh-viewport { overflow: hidden; width: 100%; }

.oh-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.oh-track.oh-nodrag { transition: none; }

.oh-item {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

/* Стрелки */
.oh-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oh-line);
  border-radius: 50%;
  background-color: #fff;
  color: var(--oh-ink);
  box-shadow: var(--oh-shadow-sm);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.oh-arrow:hover { background-color: var(--oh-blue); border-color: var(--oh-blue); color: #fff; }
.oh-arrow[disabled] { opacity: .35; cursor: default; }
.oh-arrow[disabled]:hover { background-color: #fff; color: var(--oh-ink); border-color: var(--oh-line); }
.oh-arrow svg { width: 16px; height: 16px; }
.oh-prev { left: -6px; }
.oh-next { right: -6px; }

@media (min-width: 1200px) {
  .oh-prev { left: -20px; }
  .oh-next { right: -20px; }
}

/* Точки */
.oh-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.oh-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--oh-line);
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}
.oh-dot.is-active { background-color: var(--oh-blue); width: 22px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   26. Мелочи
   -------------------------------------------------------------------------- */
/* Битые изображения не должны ломать сетку */
img[alt=""] { max-width: 100%; }

/* Карта */
#map iframe { display: block; border: 0; }

/* Сообщения формы */
.alert { border-radius: var(--oh-r-input); font-size: 15px; }
