/* oc-restore.css — правки реставрации oceanclinic.es (подключён последним) */
/* иллюстрации вместо утраченных фото кейсов */
.oc-illu { margin: 0 0 1.5rem; }
.oc-illu img { display: block; width: 100%; height: auto; border: solid thin #f8f9fa; padding: .5rem; background: #fff; }
.oc-illu figcaption { margin-top: .35rem; font-size: .8rem; font-style: italic; color: #6c675f; text-align: right; }
.oc-case-text { margin: 1rem 0; text-align: left; }
.oc-case-text p { margin-bottom: .8rem; line-height: 1.55; }
#thumbs .img-thumbnail { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* правовые страницы */
.oc-legal { max-width: 900px; margin: 1.5rem auto 0; text-align: left; line-height: 1.6; }
.oc-legal h2, .oc-legal h3, .oc-legal h4 { margin: 1.6rem 0 .6rem; font-size: 1.25rem; color: #54524f; }
.oc-legal p, .oc-legal li { margin-bottom: .6rem; }
.oc-legal ul, .oc-legal ol { padding-left: 1.3rem; }
.oc-legal a, .oc-case-text a { color: #817143; text-decoration: underline; }
/* формы → письмо */
.oc-form-note { padding: .6rem .8rem; background: #edece8; border-left: 3px solid #ae9a63; color: #54524f; }
/* длинные слова/ссылки на телефоне */
@media (max-width: 767px) {
	p, li, td, .oc-legal { overflow-wrap: anywhere; }
	.oc-illu figcaption { text-align: left; }
}
/* шапка-герой со списком процедур: высота по содержимому (на 768–1199 список не помещался в 100vh) */
header.container-fluid.full-width { height: auto !important; min-height: 100vh; }
/* заголовки разделов в колонке 25% (col-md-3): на ≤1399 — над текстом, иначе длинное слово вылезает на текст */
@media (max-width: 1399px) {
	.full-width > .row > .col-md-3, .full-width > .row > .col-md-9 { flex: 0 0 100%; max-width: 100%; }
}
/* картинки с атрибутами width/height не сплющивать */
img.w-100, img.img-fluid, .oc-illu img { height: auto; }
/* фиксированная верхняя полоса меню (50px до 991px) не закрывает начало страниц без шапки */
@media (max-width: 991px) { body.oc-nohead { padding-top: 50px; } body.oc-nohead .fluid-width { margin-top: 0 !important; } }
/* нижняя полоса «Antes y después · Vídeos · иконки» — в конце страницы, а не поверх текста */
.pageBottom { position: static !important; }
/* лендинги: .row без отрицательных полей на телефоне */
@media (max-width: 575px) { .container > .row { margin-left: 0; margin-right: 0; } }
/* фасады видео / 3D-анимации (iframe по клику) */
.oc-facade { border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, #54524f, #2c2426); color: #fff; }
.oc-facade-t { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font: 600 1rem 'Nunito Sans', Helvetica, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.oc-play { position: absolute; left: 50%; top: 42%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #ae9a63; }
.oc-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.oc-facade:hover .oc-play, .oc-facade:focus .oc-play { background: #817143; }
/* контраст текста (WCAG AA): те же оттенки палитры, темнее */
body.oc-main { color: rgba(68, 61, 55, .85); }
.oc-main .fixed-top .nav-link, .oc-main .pageBottom .nav-link, .oc-main .footer01, .oc-main .footer02 { color: #767470; }
.oc-main .fixed-top .nav-link:hover, .oc-main .fixed-top .nav-link:focus, .oc-main .pageBottom .nav-link:hover, .oc-main .pageBottom .nav-link:focus { color: #2c2426; }
.oc-main p a, .oc-main td a { color: #6b5f3b; }
.oc-main p a:hover, .oc-main p a:focus, .oc-main td a:hover { color: #2c2426; }
/* тёмные плашки (белый текст): ссылки и подписи — светлые */
.oc-main .text-white p a, .oc-main .bg-creme p a, .oc-main .bg-light-blue p a { color: #fff; text-decoration: underline; }
.oc-main .bg-creme p[style], .oc-main .text-white p[style] { color: #fff !important; }
.oc-main .text-white .text-muted, .oc-main .bg-creme .text-muted { color: #ece6dc !important; }
.oc-main .bg-creme .card-footer a, .oc-main .text-white .card-footer a { color: #fff; }
.oc-illu figcaption { color: #615c55; }
.bg-creme.text-white { background-color: #7a6f5e; }
/* активный пункт меню */
.justify-content-center .nav-link.active { color: #2c2426; box-shadow: inset 0 -2px 0 #ae9a63; }
.list-group-item-trans.list-group-item-action.active { z-index: 2; color: #2c2426; background-color: #edece8; border-color: rgba(0, 0, 0, .125); font-weight: 600; }
a.active[aria-current="page"]:not(.nav-link):not(.list-group-item) { color: #2c2426; font-weight: 600; }
#thumbs a[aria-current="page"] .img-thumbnail { border-color: #ae9a63; box-shadow: 0 0 0 2px #ae9a63; }
/* шапка и разделы без 2-секундного проявления: содержимое видно сразу (LCP, скриншоты, prefers-reduced-motion) */
header, section { -webkit-animation: none !important; animation: none !important; }
/* заголовки аккордеонов, белый текст на светлых плашках — контраст */
.oc-main .btn-link { color: #6b5f3b; }
.oc-main .btn-link:hover, .oc-main .btn-link:focus { color: #2c2426; }
.bg-light-blue.text-white { background-color: #6f6d7c; }
header.text-white { background-color: #7a6f5e; }
/* шапка-список без фоновой картинки: высота по содержимому */
header.oc-autoh { min-height: 0 !important; padding-bottom: 2.5rem; }
/* статичная карта (OSM) */
.oc-map { display: block; }
.oc-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* лендинги: фон-фото на всю высоту на телефоне (fixed-фон в iOS не работает) */
@media (max-width: 767px) {
  html.oc-landing, html.oc-landing body { height: auto; min-height: 100%; }
  html.oc-landing body { background-attachment: scroll !important; background-size: cover !important; }
}
