/*
 * File: page.css
 * Description: Complete styles for the custom post type "Services" template (single-services.php)
 * Combined: page-services.css (layout) + page.css (components)
*/

/* ========================================
   LAYOUT (МАКЕТ СТРАНИЦЫ)
   ======================================== */

/* --- Main Layout Grid --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Content and sidebar */
    gap: 30px;
    padding: 40px 0;
    align-items: flex-start;
}

/* --- Main Content Area --- */
.page-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-module-container {
    padding: 20px 0;
    background-color: #f7f7f7;
    text-align: center;
}

.info-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.special-offer-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* --- Sidebar --- */
.sidebar-right {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.service-buttons-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-btn {
    display: block;
    padding: 12px 15px;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid #ddd;
}

.service-btn:hover {
    background-color: #e9e9e9;
}

.service-btn.active {
    background-color: #ff8300;
    color: #fff;
    border-color: #ff8300;
    font-weight: 700;
}


/* ========================================
   COMPONENTS (КОМПОНЕНТЫ)
   ======================================== */

/* --- 1. HERO BLOCK --- */
.avia-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.avia-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-breadcrumbs {
    font-size: 14px;
    margin-bottom: 20px;
}
.hero-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}
.hero-breadcrumbs a:hover {
    opacity: 1;
}
.hero-breadcrumbs span {
    opacity: 0.6;
}

.avia-hero h1 {
    margin: 0 0 20px 0;
    font-size: 42px;
}

.widget-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-decoration: none;
}
.widget-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.widget-btn.active {
    background-color: #ff8300;
    border-color: #ff8300;
}
.widget-btn .fas {
    margin-right: 8px;
}

.search-module {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.search-module .form-group {
    flex-grow: 1;
}
.search-module input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.search-module .find-btn {
    background-color: #ff8300;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-module .find-btn:hover {
    background-color: #e67600;
}

.hero-sublinks {
    margin-top: 15px;
    font-size: 13px;
    color: #eee;
}
.hero-sublinks a {
    color: #fff;
    text-decoration: underline;
}

/* --- SECTIONS BELOW HERO --- */
.page-content {
    padding: 30px 0 50px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- FIX: Reset global section padding --- */
.page-content > section {
    padding: 0;
}

/* --- 2. INFO BLOCKS --- */
.info-section {
    /* No padding/margin needed here */
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.info-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.info-icon {
    font-size: 32px;
    color: #17bcf4;
}
.info-text h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}
.info-text p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}
.info-text a {
    color: #ff8300;
    text-decoration: underline;
}

/* --- 3. SPECIAL OFFER BLOCK --- */
.special-offer-section {
    /* No padding/margin needed here */
}
.offer-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.offer-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}
.offer-content {
    flex-grow: 1;
}
.offer-content h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}
.offer-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
}
.offer-action {
    text-align: right;
    flex-shrink: 0;
    min-width: 150px;
}
.offer-price {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    white-space: nowrap;
}
.offer-btn {
    background-color: #ff8300;
    color: #fff;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
}

/* --- 4. CONTENT (SEO) BLOCK --- */
.page-content > .content-section {
    background-color: #fff; 
    padding: 30px; 
    border-radius: 8px;
    line-height: 1.7; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    text-align: left; 
}

/* --- 5. MOBILE BUTTONS SCROLLER --- */
.page-buttons-container {
    position: relative;
    margin: 20px 0;
    padding: 0 30px;
}
.page-buttons-scroller {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.page-buttons-scroller .widget-btn {
    margin: 0;
}
.page-buttons-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.page-buttons-arrow.left {
    left: 0;
}
.page-buttons-arrow.right {
    right: 0;
}
.page-buttons-arrow:disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* ========================================
   RESPONSIVE (АДАПТИВ)
   ======================================== */

@media (max-width: 1050px) {
    .page-buttons-scroller {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        direction: ltr;
    }
    .page-buttons-scroller::-webkit-scrollbar {
        display: none;
    }
    .page-buttons-arrow {
        display: block;
    }
}

@media (max-width: 1024px) {
    .search-module {
        flex-wrap: wrap; 
    }
    .search-module .form-group {
        flex-basis: calc(50% - 10px);
    }
    .search-module .find-btn {
        width: 100%; 
    }
}

@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-right {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .avia-hero h1 {
        font-size: 32px;
    }
    .search-module {
        flex-direction: column;
        align-items: stretch; 
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-cards-container {
        grid-template-columns: 1fr;
    }
    .offer-card {
        flex-direction: column;
        text-align: center;
    }
    .offer-action {
        text-align: center;
        margin-top: 15px;
    }
    .content-section {
        padding: 20px 15px;
    }
}