/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Lato', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --white: #FFFFFF;
    --teal: #3B8C88;
    --mint: #B7E4C7;
    --light-gray: #D9D9D9;
    --text-dark: #333333;
}

/* Typography */
h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.4;
}

p {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header .container {
    max-width: 1600px;
    padding: 0 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h2 {
    color: var(--teal);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
}

.logo p {
    color: var(--teal);
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--teal);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--mint);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--teal);
    cursor: pointer;
}

/* Buttons */
.btn-appointment {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: sticky;
    top: 20px;
}

.btn-appointment:hover {
    background: var(--mint);
    color: var(--teal);
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--mint);
    color: var(--teal);
}

.btn-secondary {
    background: var(--mint);
    color: var(--teal);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    object-position: center 20%; /* 70% означает сдвиг на 70% вниз от центра */
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--mint);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.about-text {
    color: var(--white);
}

.about-text h2 {
    margin-bottom: 2rem;
    color: var(--white);
}

.about-text p {
    font-size: 18px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--white);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    font-size: 24px;
    color: var(--white);
}

.stat span {
    color: var(--white);
    font-weight: 500;
}

/* Education Section */
.education {
    padding: 80px 0;
    background: var(--white);
}

.education h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.education-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    background: var(--mint);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.card-icon i {
    font-size: 32px;
    color: var(--teal);
}

.education-card h3 {
    margin-bottom: 1rem;
    font-size: 20px;
}

.education-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 16px;
    text-align: left;
    padding: 0 40px; /* Добавляем отступы слева и справа */
    max-width: 280px; /* Ограничиваем ширину текста */
    margin-left: auto; /* Центрируем блок текста */
    margin-right: auto; /* Центрируем блок текста */
}

.education-image {
    width: 100%;
    max-width: 800px; /* Увеличено с 400px до 600px */
    height: 450px; /* Увеличено с 250px до 350px */
    object-fit: cover;
    object-position: left center;
    transform: scale(1);
    border-radius: 10px;
    margin: 80px auto 0;
    display: block;
    background: #f8f9fa;
}

/* Media Section */
.media {
    padding: 80px 0;
    background: var(--light-gray);
}

.media h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.media-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-card h3 {
    margin-bottom: 1rem;
    font-size: 20px;
}

.media-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 16px;
    flex-grow: 1;
}

.btn-media {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-media:hover {
    background: var(--mint);
    color: var(--teal);
}

.media-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.media-images img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 48px;
    color: var(--teal);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 20px;
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 16px;
}

.btn-service {
    background: var(--mint);
    color: var(--teal);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
}

.btn-service:hover {
    background: var(--teal);
    color: var(--white);
}

.service-image {
    width: 100%;
    max-width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}



/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--light-gray);
}

.reviews h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.review-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
}

.review-text {
    margin-bottom: 1.5rem;
}

.review-text p {
    font-style: italic;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar i {
    font-size: 40px;
    color: var(--teal);
}

.review-author span {
    font-weight: 600;
    color: var(--teal);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--teal);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: 3rem;
}

.contact-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 18px;
    color: var(--white);
    opacity: 0.9;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.btn-submit {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--mint);
    color: var(--teal);
}

.contact-messengers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
    font-size: 16px;
}

.messenger-link:hover {
    opacity: 0.8;
}

.messenger-link i {
    font-size: 24px;
}

/* Створюємо структуру flex-контейнера для всього сайту, щоб футер завжди був внизу */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Footer */
.footer {
    background: var(--light-gray);
    padding: 60px 0 20px;
    flex-shrink: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 20px;
}

.footer-column p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-column ul li a:hover {
    color: var(--teal);
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--teal);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--teal);
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
    color: var(--text-dark);
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    p {
        font-size: 16px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    /* Layout adjustments */
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 0 !important; /* Принудительно фиксированный padding */
    }
    
    /* Полностью отключаем все изменения header при скроллинге на мобильных */
    .header {
        background: var(--white) !important;
        backdrop-filter: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        transition: none !important;
    }
    
    .header.scrolled {
        background: var(--white) !important;
        backdrop-filter: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    /* Убираем все изменения размера header при скроллинге */
    .header.scrolled .header-content {
        padding: 1rem 0 !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
    
    /* Кнопка остается в своем месте */
    .btn-appointment {
        position: static !important;
        top: auto !important;
    }
    
    /* Полностью отключаем sticky поведение кнопки при скроллинге */
    .header.scrolled .btn-appointment {
        position: static !important;
        top: auto !important;
        right: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }
    
    /* Мобильное меню остается стабильным */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .hero {
        padding: 160px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-messengers {
        flex-direction: column;
        align-items: center;
    }
    
    /* Padding adjustments */
    .education,
    .media,
    .services,
    .reviews,
    .contact,
    .about {
        padding: 60px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    /* Typography for small screens */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    p {
        font-size: 14px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    /* Layout for small screens */
    .container {
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .education-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Padding adjustments for mobile */
    .education,
    .media,
    .services,
    .reviews,
    .contact,
    .about {
        padding: 40px 0;
    }
}

@media (max-width: 320px) {
    /* Ensure readability on very small screens */
    .btn-appointment {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .hero {
        padding: 180px 0 40px; /* Добавлен еще больший отступ для очень маленьких экранов */
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky appointment button (Disabled to prevent header layout shift) */
/*
.header.scrolled .btn-appointment {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(59, 140, 136, 0.3);
}
*/

.review-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    max-height: 200px;
}

.certificates-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 0 auto;
    max-width: 700px;
}

.certificate-image {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .certificates-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}


.service-page main {
    padding-top: 0;
}

.service-page .about {
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    box-sizing: border-box;
}

.service-page .about-content {
    text-align: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.service-page .about-text {
    color: var(--text-dark);
    text-align: center;
}

.service-page .about-text h1,
.service-page .about-text h2,
.service-page .about-text h3 {
    color: var(--teal);
}

.service-page .about-text p,
.service-page .about-text li {
    color: var(--text-dark);
}

.service-page .about-text ul {
    color: var(--text-dark);
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

/* Современный дизайн для страниц услуг */
.service-page .about {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    box-sizing: border-box;
}

.service-page .about-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.service-page .about-text {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-page .about-text h1 {
    color: var(--teal);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.service-page .about-text h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--accent));
    border-radius: 2px;
}

.service-page .about-text h3 {
    color: var(--teal);
    font-size: 1.4rem;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-page .about-text h3::before {
    content: '▶';
    color: var(--accent);
    font-size: 0.8rem;
}

.service-page .about-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.service-page .about-text ul {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 20px 0;
    border-left: 4px solid var(--teal);
}

.service-page .about-text li {
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 10px;
    position: relative;
    line-height: 1.6;
}

.service-page .about-text li::before {
    content: '✓';
    position: absolute;
    left: -15px;
    color: var(--teal);
    font-weight: bold;
}

/* Стилизация кнопки записи - бирюзовый цвет */
.service-page .btn-primary {
    background: var(--teal);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-page .btn-primary:hover {
    background: #2c7a7b;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .service-page .about {
        padding: 120px 15px 40px;
    }
    
    .service-page .about-text {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .service-page .about-text h1 {
        font-size: 2rem;
    }
    
    .service-page .about-text h3 {
        font-size: 1.2rem;
    }
    
    .service-page .about-text ul {
        padding: 20px 25px;
    }
}

@media (min-width: 1024px) {
    .service-page .about {
        padding: 140px 60px 60px;
        justify-content: center;
    }
    
    .service-page .about-content {
        max-width: 700px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    
    .service-page .about-text {
        padding: 60px 50px;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }
    
    .service-page .about-text h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .service-page .about {
        padding: 140px 80px 60px;
    }
    
    .service-page .about-content {
        max-width: 750px;
    }
}

/* Стили для страниц услуг с боковой панелью */
@media (min-width: 1024px) {
    .service-page .about {
        padding: 140px 20px 60px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;
    }
    
    .service-page .about-content {
        max-width: 600px;
        flex: 1;
        margin: 0;
    }
    
    .service-page .about-text {
        padding: 40px 30px;
        margin: 0;
        width: 100%;
        text-align: left;
    }
    
    /* Боковая панель с карточками услуг */
    .service-page .services-sidebar {
        width: 280px;
        flex-shrink: 0;
    }
    
    .service-page .services-sidebar h3 {
        color: var(--teal);
        margin-bottom: 20px;
        font-size: 1.3rem;
        text-align: center;
    }
    
    .service-page .sidebar-service-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .service-page .sidebar-service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .service-page .sidebar-service-card i {
        font-size: 24px;
        color: var(--teal);
        margin-bottom: 10px;
    }
    
    .service-page .sidebar-service-card h4 {
        color: var(--teal);
        font-size: 0.9rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .service-page .sidebar-service-card p {
        color: var(--text-dark);
        font-size: 0.8rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .service-page .sidebar-service-card .btn-service {
        background: var(--mint);
        color: var(--teal);
        padding: 8px 16px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .service-page .sidebar-service-card .btn-service:hover {
        background: var(--teal);
        color: var(--white);
    }
}

@media (min-width: 1200px) {
    .service-page .about {
        padding: 140px 60px 60px;
        gap: 60px;
    }
    
    .service-page .services-sidebar {
        width: 320px;
    }
    
    .service-page .about-content {
        max-width: 700px;
    }
}

/* Стили для сообщений формы */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Стили для кнопки отправки */
.btn-submit {
    background: var(--teal);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover:not(:disabled) {
    background: #2c7a7b;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-column {
    align-self: start;
}

.footer-column h3,
.footer-column h4 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 20px;
    margin-top: 0;
}
/* Mobile Button Styles */
.mobile-only-btn {
    display: none;
}
@media (max-width: 1024px) {
    .header-content > .btn-appointment {
        display: none !important;
    }
    .mobile-only-btn {
        display: block;
        width: 100%;
    }
    .mobile-only-btn .btn-appointment {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}
