/* ===== Загальні стилі ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F39C12;
    --accent-color: #E67E22;
    --success-color: #27AE60;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #34495E;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    background: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Заголовок та навігація ===== */
header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.phone-link {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.phone-link:hover {
    background: #3A7BC8;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== Hero секція ===== */
.hero {
    height: 550px;
    background: url('https://images.unsplash.com/photo-1529510186714-f9a0f1d2e7d0?w=1600&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.85), rgba(44, 62, 80, 0.75));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Кнопки ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: #3A7BC8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Особливості ===== */
.features {
    padding: 80px 20px;
    background: var(--light-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: var(--primary-color);
    color: white;
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--secondary-color);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--accent-color);
}

.feature-card:nth-child(4) .feature-icon {
    background: var(--success-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== Про нас ===== */
.about {
    padding: 80px 20px;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== CTA секція ===== */
.cta {
    padding: 80px 20px;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== Заголовок сторінки ===== */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===== Тарифи ===== */
.tariffs-section {
    padding: 70px 20px;
    background: var(--light-color);
}

.tariff-tables {
    display: grid;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tariff-table-wrapper h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.tariff-table-wrapper h2 i {
    color: var(--primary-color);
}

.tariff-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.tariff-table thead {
    background: var(--primary-color);
    color: white;
}

.tariff-table th {
    padding: 1.3rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}

.tariff-table td {
    padding: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1rem;
}

.tariff-table tbody tr:last-child td {
    border-bottom: none;
}

.tariff-table tbody tr:hover {
    background: #F8F9FA;
}

.tariff-table .highlight {
    background: #E3F2FD;
    font-weight: 600;
}

.tariff-table th:last-child,
.tariff-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.tariff-note {
    background: white;
    border-left: 4px solid var(--secondary-color);
    padding: 1.8rem;
    border-radius: 8px;
    margin-top: 2.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.tariff-note i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

.tariff-note p {
    margin: 0;
    color: #666;
    line-height: 1.8;
}

/* Contacts Section */
.contacts-section {
    padding: 70px 20px;
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.contact-card:nth-child(2) .contact-icon {
    background: var(--secondary-color);
}

.contact-card:nth-child(3) .contact-icon {
    background: var(--accent-color);
}

.contact-card:nth-child(4) .contact-icon {
    background: var(--success-color);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

.contact-card p {
    color: #666;
    font-size: 1.05rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-card a:hover {
    color: #3A7BC8;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    display: block;
}

/* Gallery Section */
.gallery-section {
    padding: 70px 20px;
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3.5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

.footer-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    width: fit-content;
    margin-top: 0.5rem;
}

.footer-hours i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.footer-hours span {
    font-weight: 500;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.3rem;
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.9rem;
}

.footer-section ul li:last-child {
    margin-bottom: 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section a i.fa-chevron-right {
    font-size: 0.7rem;
    color: var(--secondary-color);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-contacts i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-contacts a,
.footer-contacts span {
    color: rgba(255, 255, 255, 0.75);
}

.footer-contacts a:hover {
    color: white;
    padding-left: 0;
}

.footer-bottom {
    text-align: center;
    padding: 1.8rem 0;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu, .nav-contact {
        display: none;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features h2, .about-text h2, .cta h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo h3 {
        font-size: 1.5rem;
    }

    .footer-hours {
        width: 100%;
        justify-content: center;
    }

    .tariff-table {
        font-size: 0.9rem;
    }

    .tariff-table th,
    .tariff-table td {
        padding: 1rem;
    }

    .tariff-note {
        flex-direction: column;
        text-align: center;
    }
}
