/*
Theme Name: NaprawaOkien-24
Description: Авторська тема для сервісу ремонту вікон
Author: Vladyslav K.
Version: 1.0
*/


/* ==========================================
   CSS VARIABLES & BASE RESET
   ========================================== */
:root {
    --accent-color: #1061A6;
    --accent-hover: #0c4a80;
    --accent-light: rgba(16, 97, 166, 0.08);
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    background-image: url("assets/img/ag-square.png");
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* Grids — mobile-first, collapse to 1 col on small screens */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Section title */
.section-title {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

/* Badge */
.badge {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 5px 15px rgba(16, 97, 166, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   CALL BUTTON (animated)
   ========================================== */
.btn-call {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 97, 166, 0.3);
    animation: pulse-blue 2s infinite;
    white-space: nowrap;
}
.btn-call:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 97, 166, 0.4);
}
.btn-call::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes pulse-blue {
    0%   { box-shadow: 0 0 0 0 rgba(16, 97, 166, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 97, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 97, 166, 0); }
}
@keyframes shine {
    0%   { left: -60%; }
    20%  { left: 120%; }
    100% { left: 120%; }
}

/* Sidebar call button */
.btn-sidebar-call {
    background: #ffffff !important;
    color: var(--accent-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: pulse-white 2.5s infinite;
}
.btn-sidebar-call:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}
.btn-sidebar-call .phone-icon {
    display: inline-block;
    animation: phone-shake 1.5s infinite;
}

@keyframes pulse-white {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes phone-shake {
    0%   { transform: rotate(0); }
    10%  { transform: rotate(-15deg); }
    20%  { transform: rotate(15deg); }
    30%  { transform: rotate(-15deg); }
    40%  { transform: rotate(15deg); }
    50%  { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* Submit button */
.btn-submit {
    background-color: var(--accent-color);
    color: var(--white);
    width: 100%;
    margin-top: 10px;
    border: none;
    font-family: 'Montserrat', sans-serif;
}
.btn-submit:hover {
    background-color: var(--accent-hover);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Desktop nav */
.nav {
    display: none; /* hidden on mobile by default */
    align-items: center;
    gap: 18px;
}
.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav a:hover {
    color: var(--accent-color);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    z-index: 200;
}
.nav-dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: var(--text-main);
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}
.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 25px;
}

/* Hamburger toggle — mobile only */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile nav panel */
.nav-mobile {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 16px 20px 24px;
    gap: 4px;
    z-index: 999;
}
.nav-mobile.is-open {
    display: flex;
}
.nav-mobile a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: block;
    transition: color 0.2s;
}
.nav-mobile a:last-child {
    border-bottom: none;
}
.nav-mobile a:hover {
    color: var(--accent-color);
}
.nav-mobile .btn-call {
    margin-top: 16px;
    justify-content: center;
    font-size: 16px;
    padding: 14px 20px;
}

/* Header call button — hidden on mobile, visible on desktop */
.header-call-btn {
    display: none;
}

/* Show desktop nav at wider viewport */
@media (min-width: 992px) {
    .nav {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
    .header-call-btn {
        display: inline-flex;
    }
    .logo-img {
        height: 50px;
    }
    .logo {
        font-size: 22px;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 70px 0;
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    animation: heroFadeScale 15s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

@keyframes heroFadeScale {
    0%   { opacity: 0; transform: scale(1.1); }
    15%  { opacity: 1; }
    33%  { opacity: 1; }
    48%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 1;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex: 1;
}
.hero-content h1 {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--accent-color);
}
.hero-content p {
    font-size: clamp(15px, 2.5vw, 18px);
    color: var(--text-main);
    margin-bottom: 28px;
}

.hero-form-wrapper {
    width: 100%;
}

@media (min-width: 900px) {
    .hero {
        padding: 100px 0;
        min-height: 600px;
    }
    .hero-overlay {
        background: linear-gradient(to right, rgba(255,255,255,0.92) 40%, rgba(255,255,255,0.2) 100%);
    }
    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .hero-form-wrapper {
        flex-basis: 420px;
        flex-shrink: 0;
    }
}

/* ==========================================
   FORMS
   ========================================== */
.form-box {
    background-color: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f1f1;
}
.form-box h2, .form-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.input-group {
    margin-bottom: 18px;
}
.input-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fcfcfc;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 97, 166, 0.1);
}

/* intl-tel-input fix */
.iti { width: 100%; }
.iti__country-list { color: var(--text-main); text-align: left; }

@media (min-width: 640px) {
    .form-box {
        padding: 40px;
    }
}

/* ==========================================
   PAGE HEADER (inner pages)
   ========================================== */
.page-header {
    position: relative;
    padding: 60px 0;
    background: url('assets/img/page-header-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
}
.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(16, 97, 166, 0.9) 0%, rgba(10, 60, 105, 0.7) 100%);
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: clamp(24px, 5vw, 42px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.breadcrumbs {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
}
.breadcrumbs a {
    color: var(--white);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .page-header {
        padding: 80px 0;
    }
}

/* ==========================================
   SERVICES PAGE LAYOUT (sidebar + article)
   ========================================== */
.page-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
}

.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
    font-size: 17px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    margin-bottom: 8px;
}
.sidebar-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-light);
    font-size: 15px;
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--accent-color);
    color: var(--white);
    font-weight: 600;
}

.article h2 {
    font-size: clamp(20px, 3vw, 28px);
    margin: 30px 0 16px;
    color: var(--accent-color);
    line-height: 1.3;
}
.article h2:first-child {
    margin-top: 0;
}
.article h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--text-main);
}
.article p {
    margin-bottom: 18px;
    font-size: 16px;
}
.article ul, .article ol {
    margin-bottom: 18px;
    padding-left: 20px;
}
.article li {
    margin-bottom: 10px;
}
.article img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 26px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: auto;
}

@media (min-width: 900px) {
    .page-content {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 50px;
        padding: 60px 20px;
    }
    .sidebar {
        width: auto;
    }
}

@media (min-width: 1100px) {
    .page-content {
        grid-template-columns: 320px 1fr;
    }
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent-color);
}
.card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-body h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--accent-color);
}
.card-body p {
    color: var(--text-muted);
    margin-bottom: 22px;
    flex: 1;
    font-size: 15px;
}

/* ==========================================
   ABOUT PAGE (o-nas)
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.about-grid img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    height: auto;
}
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        margin-bottom: 80px;
    }
}

/* ==========================================
   PRICE TABLE
   ========================================== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.price-table th,
.price-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
    background: var(--white);
}
.price-table th {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}
.price-table tr:hover td {
    background-color: var(--bg-light);
}
.price-table td strong {
    color: var(--accent-color);
    font-size: 17px;
}

/* Mobile: stack each row as a card */
@media (max-width: 600px) {
    .price-table thead { display: none; }
    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td { display: block; width: 100%; }
    .price-table tr {
        background: var(--white);
        border: 1px solid #eee;
        border-radius: var(--radius);
        margin-bottom: 12px;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }
    .price-table td { border-bottom: none; padding: 14px 16px; }
    .price-table td:last-child {
        background-color: var(--accent-light);
        border-top: 1px solid #dde8f4;
        font-size: 16px;
    }
    .price-table tr:hover td { background-color: var(--white); }
    .price-table tr:hover td:last-child { background-color: var(--accent-light); }
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-item {
    background: var(--white);
    border: 1px solid #eee;
    margin-bottom: 12px;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.faq-question {
    padding: 18px 50px 18px 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.4;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--text-muted);
}
.faq-item[open] .faq-question::after {
    content: '−';
    color: var(--accent-color);
}
.faq-answer {
    padding: 0 18px 18px;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.7;
    border-top: 1px solid #f5f5f5;
    padding-top: 14px;
    margin-top: 2px;
}

/* ==========================================
   CUSTOM PHOTO SLIDER
   ========================================== */
.custom-slider-container {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 30px;
}
.custom-slide {
    position: absolute;
    width: 70vw;
    max-width: 500px;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
    opacity: 0;
    z-index: 1;
    border-radius: var(--radius);
}
.custom-slide img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    height: auto;
}
.custom-slide.active {
    opacity: 1;
    z-index: 10;
    transform: scale(1.05) translateX(0);
    box-shadow: 0 20px 40px rgba(16, 97, 166, 0.3);
    filter: blur(0);
}
.custom-slide.prev {
    opacity: 0.4;
    z-index: 5;
    transform: scale(0.85) translateX(-55%);
    filter: blur(2px);
}
.custom-slide.next {
    opacity: 0.4;
    z-index: 5;
    transform: scale(0.85) translateX(55%);
    filter: blur(2px);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover { background: var(--accent-hover); }
.slider-btn.prev-btn { left: 0; }
.slider-btn.next-btn { right: 0; }

@media (min-width: 640px) {
    .custom-slider-container { height: 380px; }
    .custom-slide { max-width: 560px; }
    .slider-btn.prev-btn { left: 10px; }
    .slider-btn.next-btn { right: 10px; }
}

@media (min-width: 992px) {
    .custom-slider-container { height: 480px; }
    .custom-slide { width: 600px; max-width: 75vw; }
    .custom-slide.prev { transform: scale(0.85) translateX(-65%); }
    .custom-slide.next { transform: scale(0.85) translateX(65%); }
    .slider-btn { width: 45px; height: 45px; font-size: 20px; }
    .slider-btn.prev-btn { left: 20px; }
    .slider-btn.next-btn { right: 20px; }
}

/* ==========================================
   VIDEO BENTO GRID
   ========================================== */
.video-bento-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.bento-text {
    flex: 1;
}
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 12px;
    width: 100%;
}
.bento-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.5s ease;
}
.bento-item:hover video {
    opacity: 1;
    transform: scale(1.05);
}
.main-video {
    grid-row: span 2;
}

@media (min-width: 640px) {
    .bento-grid {
        grid-template-rows: 220px 220px;
    }
}

@media (min-width: 992px) {
    .video-bento-inner {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
    .bento-grid {
        flex: 1.2;
        height: 515px;
        grid-template-rows: 200px 300px;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer h4 {
    font-size: 17px;
    margin-bottom: 18px;
    color: var(--accent-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    font-weight: 700;
}
.footer p,
.footer a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer a {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}
.footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}
.footer i,
.footer .icon-accent {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 14px;
    flex-shrink: 0;
}
.footer-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}
.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #777;
}

/* Active footer links (phone/email) */
.footer-link-active {
    color: #fff !important;
    font-weight: 600 !important;
}
.footer-link-active:hover {
    color: var(--accent-color) !important;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    .footer {
        padding: 60px 0 20px;
    }
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(16, 97, 166, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 16px;
}
.modal-content.site-style {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    border-radius: 20px;
    border: 1px solid rgba(16, 97, 166, 0.2);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(16, 97, 166, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-grid {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}
.modal-image-side {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.modal-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16, 97, 166, 0.3);
}
.modal-info-side {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}
.modal-label {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}
.modal-heading {
    font-size: clamp(28px, 5vw, 44px);
    color: #333;
    margin-bottom: 12px;
    line-height: 1.1;
}
.modal-heading .highlight { color: var(--accent-color); }
.modal-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}
.modal-list {
    list-style: none;
    margin-bottom: 24px;
}
.modal-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}
.modal-list i { color: #2ecc71; font-size: 17px; }
.modal-btn {
    width: 100%;
    justify-content: center;
    gap: 12px;
    padding: 16px !important;
    font-size: 15px !important;
}
.modal-subtext {
    margin-top: 16px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: #f0f4f8;
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: var(--accent-color); color: white; }

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
    .modal-grid {
        flex-direction: row;
        min-height: 420px;
    }
    .modal-image-side {
        height: auto;
        flex: 1;
    }
    .modal-info-side {
        flex: 1.2;
        padding: 40px 40px;
    }
}

/* ==========================================
   UTILITY CLASSES (replacing all inline styles)
   ========================================== */

/* Text alignment */
.text-center { text-align: center; }

/* Section backgrounds */
.section-light { background-color: var(--bg-light); }
.section-accent { background-color: var(--accent-color); color: var(--white); }
.section-overflow-hidden { overflow: hidden; }

/* Container narrow variants */
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ==========================================
   STEPS SECTION (index.html - how it works)
   ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
}
@media (min-width: 560px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}

.step-box {
    background: var(--white);
    padding: 36px 20px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}
.step-box h3 {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 17px;
}
.step-box p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ==========================================
   SECTION INTRO (centered heading + text block)
   ========================================== */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}
.section-intro h2 {
    font-size: clamp(24px, 4vw, 42px);
    margin-bottom: 20px;
    color: var(--accent-color);
    line-height: 1.15;
}

/* ==========================================
   PHILOSOPHY SECTION (index.html - repair not replace)
   ========================================== */
.philosophy-grid {
    margin-top: 60px;
    align-items: start;
}
.philosophy-lead {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.philosophy-sub {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}
.checklist {
    list-style: none;
    margin-bottom: 10px;
}
.checklist li {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
}

/* ==========================================
   BENTO / VIDEO SECTION
   ========================================== */
.bento-list {
    list-style: none;
    margin: 25px 0;
}
.bento-list li {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

/* ==========================================
   REVIEWS SECTION
   ========================================== */
.review-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.review-stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}
.review-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}
.review-author {
    font-size: 17px;
    font-weight: 700;
}
.section-title--white { color: var(--white); }

/* ==========================================
   FAQ SECTION FOOTER
   ========================================== */
.faq-footer {
    text-align: center;
    margin-top: 40px;
}
.faq-footer p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ==========================================
   CENNIK PAGE
   ========================================== */
.cennik-intro {
    text-align: center;
    margin-bottom: 50px;
}
.cennik-intro h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: clamp(20px, 3vw, 28px);
}
.cennik-intro p {
    font-size: 17px;
    color: var(--text-muted);
}

.cennik-cta-grid {
    margin-top: 60px;
}
.cennik-cta-box--accent {
    background: var(--accent-color);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
}
.cennik-cta-box--accent h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 20px;
}
.cennik-cta-box--accent p {
    margin-bottom: 0;
    opacity: 0.9;
}
.cennik-cta-box--light {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    background: var(--bg-light);
}
.cennik-cta-box--light h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 20px;
}
.cennik-cta-box--light p {
    margin-bottom: 20px;
    color: var(--text-muted);
}
.cennik-phone-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}
.cennik-phone-link:hover {
    color: var(--accent-hover);
}

/* ==========================================
   KONTAKT PAGE
   ========================================== */
.kontakt-info h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: clamp(20px, 3vw, 28px);
}
.kontakt-info > p {
    margin-bottom: 40px;
    font-size: 17px;
    color: var(--text-muted);
}
.kontakt-row {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.kontakt-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.kontakt-icon i {
    font-size: 25px;
    color: var(--accent-color);
}
.kontakt-row-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.kontakt-phone-link {
    font-size: clamp(22px, 4vw, 28px);
    color: var(--accent-color);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
}
.kontakt-phone-link:hover { color: var(--accent-hover); }
.kontakt-districts {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   O-NAS PAGE
   ========================================== */
.about-heading {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: clamp(22px, 4vw, 32px);
    line-height: 1.3;
}
.about-text {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}
.stats-grid {
    margin-bottom: 80px;
    text-align: center;
}
.stat-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
}
.stat-number {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1;
}
.stat-box h3 {
    font-size: 17px;
    margin-bottom: 8px;
}
.stat-box p {
    color: var(--text-muted);
    font-size: 14px;
}
.about-mission {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-mission h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: clamp(20px, 3vw, 28px);
}
.about-mission p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ==========================================
   USLUGI PAGE
   ========================================== */
.service-tip {
    background: var(--bg-light);
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 20px;
}
.service-tip p {
    font-size: 14px;
    margin-top: 10px;
    color: #666;
    margin-bottom: 0;
}

/* ==========================================
   MODAL image background (JS-set via data attr)
   ========================================== */
/* background-image stays inline since it's dynamic */

/* price-note — small subtitle inside table cell */
.price-note {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 4px;
    font-weight: 400;
}

/* sidebar-widget accent variant */
.sidebar-widget--accent {
    background-color: var(--accent-color);
    color: white;
}
.sidebar-widget--accent h3 {
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.sidebar-widget--accent p {
    margin-bottom: 15px;
    opacity: 0.9;
}

/* service-pane: first one visible by default (JS takes over after load) */
.service-pane:first-child { display: block; }

/* form-box p margin */
.form-box > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

/* ==========================================
   REVIEWS SECTION EXTRAS
   ========================================== */
.reviews-source {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: -28px;
    margin-bottom: 36px;
}
.reviews-source i {
    color: #fff;
    margin: 0 4px;
}

/* 5 real reviews + 1 CTA card — 3 cols desktop, 2 tablet, 1 mobile */
.section-accent .grid-3 {
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .section-accent .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .section-accent .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* CTA card inside reviews */
.review-card--cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    border: 2px dashed rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}
.review-google-icon {
    font-size: 40px;
    color: #fff;
    opacity: 0.9;
}
.review-cta-text {
    font-size: 15px;
    opacity: 0.85;
    margin: 0;
    font-style: normal;
}
.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--accent-color) !important;
}

/* === КАРУСЕЛЬ ПАРТНЕРІВ (CSS Only) === */
.partners-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Дуже легкий сірий фон, щоб виділити блок */
    overflow: hidden;
}

.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Маска: робить краї каруселі напівпрозорими, щоб логотипи "випливали" з пустоти */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.partner-logo {
    width: 180px; /* Ширина одного логотипу */
    margin: 0 30px; /* Відстань між логотипами */
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%); /* Чорно-білі логотипи для солідності */
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* При наведенні на конкретний логотип - він стає кольоровим і трохи більшим */
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Адаптив для телефонів */
@media (max-width: 768px) {
    .partner-logo {
        width: 120px;
        margin: 0 15px;
    }
    .partners-track {
        /* На мобільному можна зробити трохи швидше */
        animation: scrollPartners 15s linear infinite;
    }
}

/* FLOATING CALL BUTTON */

/* Стилі для плаваючої кнопки */
.mobile-floating-call {
    display: none; /* Ховаємо на комп'ютерах */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #1061A6; /* Зелений колір (можна змінити на #1061A6 під бренд) */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.mobile-floating-call:active {
    transform: scale(0.9); /* Ефект натискання */
}

/* Показуємо тільки на мобільних пристроях (до 768px) */
@media (max-width: 768px) {
    .mobile-floating-call {
        display: block;
    }
}

/* Додаємо легку анімацію пульсації, щоб привернути увагу */
@keyframes pulse-call {
    0% { box-shadow: 0 0 0 0 rgba(16, 97, 166, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 97, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 97, 166, 0); }
}

.mobile-floating-call {
    animation: pulse-call 2s infinite;
}