/*!
Theme Name: Olimp
Theme URI: https://lappi.com.ua/
Author: Lappi Developer
Author URI: https://lappi.com.ua/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: olimp
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Olimp is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */




/* Заголовки */
.pageInner h1,
.pageInner h2,
.pageInner h3,
.pageInner h4,
.pageInner h5,
.pageInner h6 {
    font-weight: 600;
    margin: 1.2em 0 0.5em;
    line-height: 1.3;
    color: #222;
}

.pageInner h1 { font-size: 2.2rem; border-bottom: 2px solid #eee; padding-bottom: 0.3em; }
.pageInner h2 { font-size: 1.8rem; border-left: 4px solid #ddd; padding-left: 0.6em; }
.pageInner h3 { font-size: 1.5rem; }
.pageInner h4 { font-size: 1.3rem; font-style: italic; }
.pageInner h5 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pageInner h6 { font-size: 1rem; color: #666; }

.pageInner p {
    margin: 0 0 1em;
}

.pageInner ul,
.pageInner ol {
    margin: 1em 0 1em 2em;
    padding-left: 1.2em;
}

.pageInner ul {
    list-style-type: disc;
}

.pageInner ol {
    list-style-type: decimal;
}

.pageInner li {
    margin-bottom: 0.5em;
}

.pageInner ul ul,
.pageInner ol ol,
.pageInner ul ol,
.pageInner ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.pageInner ul li::marker {
    color: #555;
}

.pageInner ol li::marker {
    color: #888;
}

/* Додатково: посилання всередині */
.pageInner a {
    color: #007BFF;
    text-decoration: underline;
}

.pageInner a:hover {
    text-decoration: none;
    color: #0056b3;
}

.pagination ul {
    -ms-flex-pack: center;
    justify-content: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 16px;
}
.pagination li{
    display: inline-block;
}
.pagination li:first-child a,
.pagination li:last-child a{
    border-color: transparent!important;
    height: 40px;
    width: 40px;
}
.pagination li a  {
    color: #736d6a;
    font-size: var(--font-size);

    display: inline-block;
    border: 1px solid #e4e2e1!important;
    text-align: center;
    line-height: 40px;
}

.pagination li .current {
    display: block;
    background-color: #977767;
    color: #f5f3f1;
    border-radius: 50%;
}

.breadcrumbs-list a {
    color: #736d6a;
    line-height: 1;
    display: inline-block;
}
.breadcrumbs-list span > span {
    font-size: 14px;
    position: relative;
    line-height: 1;
    margin-right: 32px;
}
.breadcrumbs-list span > span:after {
    position: absolute;
    content: "";
    background-color: #977767;
    width: 1px;
    height: 100%;
    right: -16px;
    top: 0;
}
.breadcrumbs-list span > span:last-child:after {
    display: none;
}
.sticky-inner.spaced-bottom  .section-title{
    max-width: 770px;
}

.main-footer .bordered-list {
    flex-wrap: nowrap;
}

.main-footer .bordered-list > li {
    max-width: 39%;
}
article ol > li > ol > li:before,
article ol > li > ul > li:before{
    display: none;
}
.map-container {
    background-repeat: no-repeat;
    background-position: center;
}

footer .button.button-round .button-icon img {
	width: 21px;
    height: 21px;
    margin-top: 3px;
    display: block;
    margin-left: 5px;
}

.contact-line .button.button-round .button-icon {
	display: flex;
    align-items: center;
    justify-content: center;
}

.contact-line .button.button-round .button-icon img {
	width: 21px;
    height: 21px;
    display: block;
	filter: brightness(0) saturate(100%) invert(43%) sepia(9%) saturate(257%) hue-rotate(336deg) brightness(95%) contrast(88%);
}

.contact-line .button.button-round .button-icon:hover  img{
	filter: brightness(0) saturate(100%) invert(48%) sepia(6%) saturate(1372%) hue-rotate(337deg) brightness(99%) contrast(85%);	
}

.social-list-small img {
	filter: brightness(0) saturate(100%) invert(43%) sepia(9%) saturate(257%) hue-rotate(336deg) brightness(95%) contrast(88%);
	width: 24px;
    height: 25px;
}

.social-list-small .button-icon:hover img {
	filter: brightness(0) saturate(100%) invert(48%) sepia(6%) saturate(1372%) hue-rotate(337deg) brightness(99%) contrast(85%);
	width: 24px;
    height: 25px;
}

@media (max-width: 1550px) {

    .main-footer .bordered-list > li {
        padding-left: 42px;
        padding-right: 42px;
    }
}

@media (max-width: 1440px) {

    .main-footer .bordered-list > li {
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media (max-width: 1320px) {

    .main-footer .bordered-list {
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .main-footer .bordered-list > li {
        max-width: none;
    }

    .main-footer .bordered-list > li:nth-child(even) {
        width: 70%;
    }

    .main-footer .bordered-list > li:nth-child(odd) {
        width: 30%;
    }

    .main-footer .bordered-list > li:before {
        content: '';
        position: absolute;
        left: 25px; right: 25px;
        bottom: 0;
        height: 1px;
    }

    .main-footer .bordered-list > li:last-child:before,
    .main-footer .bordered-list > li:nth-last-child(2):before {
        display: none;
    }

    .bordered-list > li:after {
        bottom: 25px;
    }
}

@media (max-width: 993px) {

    .main-footer .bordered-list > li {
        padding-left: 0;
        padding-right: 0;
    }

    .main-footer .bordered-list > li:before {
        display: none;
    }

    .main-footer .bordered-list > li:nth-child(even),
    .main-footer .bordered-list > li:nth-child(odd) {
        width: 100%;
    }
}

.team-single-hero ,.team-single-hero img{
    width: 100%;
    max-width: 100%;
}
.theme-text.team-member-content li::marker{
    content: "";
}

/* SEO text scrollable block (ТЗ §1.15) */
.section-seo-text .seo-text-wrapper {
    background: #f7f5f0;
    border-radius: 8px;
    padding: 24px;
}

.section-seo-text .seo-text-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 16px;
    scrollbar-gutter: stable;
    line-height: 1.6;
}

.section-seo-text .seo-text-scroll::-webkit-scrollbar {
    width: 6px;
}

.section-seo-text .seo-text-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.section-seo-text .seo-text-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.section-seo-text .seo-text-scroll h2,
.section-seo-text .seo-text-scroll h3,
.section-seo-text .seo-text-scroll h4 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.section-seo-text .seo-text-scroll h2 { font-size: 22px; }
.section-seo-text .seo-text-scroll h3 { font-size: 18px; }
.section-seo-text .seo-text-scroll h4 { font-size: 16px; }

.section-seo-text .seo-text-scroll p {
    margin: 0 0 12px;
}

.section-seo-text .seo-text-scroll ul,
.section-seo-text .seo-text-scroll ol {
    margin: 0 0 12px 20px;
}

.section-seo-text .seo-text-section-title {
    margin-bottom: 16px;
}

/* Partners strip (ТЗ §1.10) */
.section-partners .partners-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-partners .partners-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-partners .partners-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    min-height: 64px;
    padding: 0;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.section-partners .partners-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

.section-partners .partners-item img {
    max-width: 100%;
    max-height: 56px;
    height: auto;
    object-fit: contain;
    display: block;
}

.section-partners .partners-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .section-partners .partners-list {
        gap: 20px;
    }
    .section-partners .partners-item {
        max-width: 120px;
        min-height: 48px;
    }
}

/* Map block (ТЗ §1.16) — без важкого iframe, з directions URL */
.section-map .map-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    gap: 40px;
    align-items: center;
    padding: 32px;
    background: #f7f5f0;
    border-radius: 12px;
}

.section-map .map-card-title {
    margin: 12px 0 16px;
}

.section-map .map-card-address {
    font-style: normal;
    margin-bottom: 24px;
    line-height: 1.6;
}

.section-map .map-card-address-line {
    display: block;
}

.section-map .map-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section-map .map-card-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #d8d2c4 0%, #b9b09e 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-map .map-card-preview-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
    .section-map .map-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
}

/* About compact on home (ТЗ §1.5) */
.section-about-compact .about-compact {
    max-width: 820px;
}

.section-about-compact .about-compact-text {
    margin-top: 16px;
    margin-bottom: 24px;
}

.section-about-compact .about-compact-cta {
    margin-top: 8px;
}

/* Advantages: title + optional description (ТЗ 1.4) */
.counter-list .advantage-title {
    display: block;
    font-weight: 600;
}

.counter-list .advantage-text {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}
#wpadminbar{
    top: inherit!important;
    bottom: 0!important;
}
.about-compact-cta{
    margin-top: 20px;
    display: block;
}