:root {
    --primary-color: #3C96FF;
    --secondary-color: #FF9D01;
    --background-color: #FFFFFF;
    --text-color: #000000;
    --heading-white: #FFFFFF;
    --heading-black: #000000;
    --link-color: var(--primary-color);
    --font-main: 'PT Sans Caption', sans-serif;
    --font-alt: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

/* Header & Navigation */
.site-header {
    background-color: var(--heading-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-top {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
}

.header-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--heading-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header-contact:hover {
    opacity: 0.85;
}

.header-contact svg {
    flex-shrink: 0;
}

.header-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.4);
}

.navbar {
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar img {
    height: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--heading-black);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 100;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--heading-black);
    transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    background-color: var(--primary-color);
    color: var(--heading-white);
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-family: var(--font-alt);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--secondary-color);
    font-weight: bold;
    color: var(--heading-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Features */
.features {
    padding: 3rem 0;
}

.title-section {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.specialist-card {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.specialist-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.specialist-card h3 {
    font-family: var(--font-alt);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.specialist-card p {
    font-family: var(--font-main);
    color: var(--text-color);
}

/* Services Section */
.services-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

/* Table (desktop only) */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: var(--secondary-color);
    color: var(--heading-white);
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 0.9rem;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

tbody tr {
    transition: background-color 0.3s ease, color 0.3s ease;
}

tbody tr:hover {
    background-color: var(--primary-color);
    color: var(--heading-white);
}

/* Mobile Cards (hidden on desktop) */
.services-cards {
    display: none;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.service-card:active {
    box-shadow: 0 2px 20px rgba(60, 150, 255, 0.15);
}

.service-card-name {
    font-family: var(--font-alt);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.service-tag--age {
    background-color: #e3f2fd;
    color: #1565c0;
}

.service-tag--type {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.service-tag--duration {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.service-card-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

.service-card-details dt {
    font-weight: 600;
    color: #333;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-card-details dd {
    margin-left: 0;
    line-height: 1.4;
}

.service-card-price {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.service-price-item {
    display: flex;
    flex-direction: column;
}

.service-price-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-price-value {
    font-family: var(--font-alt);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.service-price-value--empty {
    color: #ccc;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Contacts */
.contacts {
    padding: 3rem 0;
    text-align: center;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.phones a {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
}

.address {
    display: block;
    margin: 1rem 0;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    border: 0;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--heading-white);
    text-align: center;
    padding: 1rem 0;
}

/* === Responsive === */

@media (max-width: 768px) {
    .header-top {
        padding: 0.4rem 0;
    }

    .header-contacts {
        justify-content: center;
    }

    .header-divider {
        display: none;
    }

    .header-contact--address {
        display: none;
    }

    .header-contact {
        font-size: 0.8rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background-color: var(--secondary-color);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 50;
    }

    .nav-links.show {
        display: flex;
        animation: slideIn 0.3s ease forwards;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--heading-white);
    }

    .nav-links a::after {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .navbar img {
        height: 55px;
    }

    .table-container {
        display: none;
    }

    .services-cards {
        display: block;
    }

    .specialists-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header-contacts {
        gap: 1rem;
    }

    .header-contact {
        font-size: 0.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
