
:root {
    --bg: #ffffff;
    --white: #FFFFFF;
    --yellow: #f7cac9;
    --red: #eca1a6;
    --bordo: #034f84;
    --purple: #8860D0;
    --text-dark: #2D2D2D;
    --text-light: #4A5568;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.page-wrapper {
    transition: filter 0.3s ease;
}
.page-wrapper.blur {
    filter: blur(4px);
    pointer-events: none;
}

h1, h2, h3 {
    color: var(--bordo);
    font-weight: 600;
}

h1 {
    text-align: center;
    padding: 20px 0;
    margin: 0;
    font-size: 2.5rem;
    color: var(--bordo);
}

h2 {
    font-size: 2rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--yellow);
    display: inline-block;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--yellow), transparent);
    margin: 30px 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.burger-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
    z-index: 1001;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--bordo);
    border-radius: 0px;
    transition: all 0.2s;
}

header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
header h1 {
    text-align: left;
    padding: 20px 0;
    margin: 0;
    padding-right: 50px;
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 5vh 5vw;
    box-sizing: border-box;
    overflow: visible;           
}
.mobile-menu.active {
    right: 0;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--yellow);
    padding-bottom: 2vh;
    margin-bottom: 2vh;
}
.menu-header h2 {
    margin: 0;
    padding: 0;
    border-bottom: none;
    font-size: clamp(1rem, 5vh, 1.8rem);
}
.close-menu {
    background: none;
    border: none;
    font-size: clamp(1.2rem, 6vh, 2rem);
    cursor: pointer;
    color: var(--red);
    transition: color 0.2s;
    line-height: 1;
}
.close-menu:hover {
    color: var(--bordo);
}
.mobile-menu nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu nav ul li {
    margin-bottom: 2vh;
}
.mobile-menu nav ul li a {
    display: block;
    padding: 1.2vh 2vw;
    color: var(--bordo);
    text-decoration: none;
    font-size: clamp(0.8rem, 4vh, 1.3rem);
    font-weight: 500;
    border-radius: 12px;
    transition: background-color 0.2s;
    text-align: center;
}
.mobile-menu nav ul li a:hover {
    background-color: var(--yellow);
}


@media (max-height: 500px) {
    .mobile-menu {
        padding: 2vh 4vw;
    }
    .menu-header {
        padding-bottom: 1vh;
        margin-bottom: 1vh;
    }
    .mobile-menu nav ul li {
        margin-bottom: 1vh;
    }
    .mobile-menu nav ul li a {
        padding: 0.8vh 1.5vw;
        font-size: clamp(0.7rem, 3.5vh, 1rem);
    }
    .menu-header h2 {
        font-size: clamp(0.9rem, 4vh, 1.3rem);
    }
}


.top-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: var(--white);
    border-radius: 30px;
    padding: 0px;
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(86, 128, 233, 0.1);
    border: 1px solid var(--yellow);
}

/* Левая часть — фотография, 1/5 ширины */
.specialist-photo {
    width: 20%;
    flex-shrink: 0;
    
}
.specialist-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px 0 0 30px;

}

/* Правая часть — текст */
.top-text {
    flex: 1;
}
.top-text h1 {
    text-align: left;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 2.2rem;
    color: var(--bordo);
}
.top-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}


.Napravlenia {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}
.Napravlenia section {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(86, 128, 233, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(132, 206, 235, 0.2);
}
.Napravlenia section:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(86, 128, 233, 0.15);
    border-color: var(--yellow);
}
.catph {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.Napravlenia h3 {
    margin: 16px 20px 8px;
    font-size: 1.25rem;
    color: var(--bordo);
}
.small-text {
    margin: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    flex-grow: 1;
}
.detail-button {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 10px 20px;
    background-color: var(--yellow);
    color: var(--bordo);
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s;
    align-self: flex-start;
    text-decoration: none;
}
.detail-button:hover {
    background-color: var(--bordo);
    color: var(--white);
    transform: scale(1.05);
}


.modal-toggle {
    display: none;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-top: 5px solid var(--yellow);
}
.modal-content h3 {
    color: var(--bordo);
    font-size: 1.8rem;
    margin-top: 0;
}
.modal-content p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--red);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--bordo);
}
.close-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--red);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: 10px;
}
.close-button:hover {
    background-color: var(--bordo);
}
#modal1:checked ~ #modal-window1,
#modal2:checked ~ #modal-window2,
#modal3:checked ~ #modal-window3,
#modal4:checked ~ #modal-window4,
#modal5:checked ~ #modal-window5,
#modal6:checked ~ #modal-window6 {
    display: flex;
}

.gallery-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 30px 0;
}
.card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(86, 128, 233, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(132, 206, 235, 0.2);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(86, 128, 233, 0.15);
    border-color: var(--yellow);
}
.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.card h3 {
    margin: 16px 20px 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bordo);
}
.card .small-text {
    margin: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    flex-grow: 1;
}
.card .small-text strong {
    color: var(--red);
    font-weight: 600;
}


.contacts-map {
    margin: 30px 0;
    background: var(--white);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(86, 128, 233, 0.1);
    border: 1px solid rgba(132, 206, 235, 0.3);
}
#map {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 2px solid var(--yellow);
}
.contact-items {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background-color: var(--bg);
    border-radius: 60px;
    text-decoration: none;
    color: var(--bordo);
    font-weight: 500;
    font-size: 1.1rem;
    border: 1px solid var(--yellow);
    transition: all 0.2s;
    min-width: 200px;
    justify-content: center;
}
.contact-item img {
    width: 28px;
    height: 28px;
    filter: brightness(0) saturate(100%) invert(37%) sepia(63%) saturate(2420%) hue-rotate(208deg) brightness(97%) contrast(91%);
    transition: filter 0.2s;
}
.contact-item:hover {
    background-color: var(--yellow);
    color: var(--bordo);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(132, 206, 235, 0.4);
    border-color: var(--bordo);
}
.contact-item:hover img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(63%) saturate(2420%) hue-rotate(208deg) brightness(97%) contrast(91%);
}


@media (max-width: 900px) {
    .Napravlenia {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }
    .specialist-photo {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    .specialist-photo img {
        width: 100%;
        height: auto;
        border-radius: 30px;
    }
    .top-text h1 {
        text-align: center;
    }
}
@media (max-width: 700px) {
    .gallery-2 {
        grid-template-columns: 1fr;
    }
    .card img {
        height: 200px;
    }
}
@media (max-width: 600px) {
    .Napravlenia {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2rem;
    }
    .top-block {
        padding: 20px;
    }
    .contacts-map {
        padding: 15px;
    }
    #map {
        height: 250px;
    }
    .contact-items {
        flex-direction: column;
        gap: 15px;
    }
    .contact-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 85%;
        padding: 4vh 4vw;
    }
}


.slider-container {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(86, 128, 233, 0.08);
    border: 1px solid rgba(132, 206, 235, 0.2);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 2rem;
}

.review-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-avatar {
    width: 80px;
    height: 80px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--bordo);
    margin: 0 auto 1rem;
}

.stars {
    color: #f4b942;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.review-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 1rem 0;
}

.review-name {
    font-weight: 600;
    color: var(--bordo);
    margin-top: 0.5rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--bordo);
    transition: all 0.2s;
    z-index: 2;
}

.slider-btn:hover {
    background: var(--bordo);
    color: var(--white);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #d9c6b8;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--bordo);
    width: 26px;
    border-radius: 12px;
}


.modal-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.modal-book-btn {
    display: inline-block;
    padding: 10px 25px;          
    background-color: #1f5e48;  
    color: white;
    border: none;
    border-radius: 30px;        
    cursor: pointer;
    font-size: 1rem;             
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: 10px;          
}

.modal-book-btn:hover {
    background-color: var(--bordo);
}

.contacts-map {
    overflow: hidden;
    border-radius: 30px;
}

#map {
    border-radius: 20px;
    overflow: hidden;
}

.contact-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.contact-item {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    white-space: nowrap;
}


@media (max-width: 400px) {
    .contact-item {
        white-space: normal;
        word-break: keep-all;
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    .contact-item img {
        width: 20px;
        height: 20px;
    }
    .contact-items {
        gap: 10px;
    }
}


.contacts-map {
    overflow-x: hidden;
}


.logo-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 20px);
    flex-shrink: 0;
}

.logo-img {
    height: auto;
    width: auto;
    max-height: 200px;    
    min-height: 50px;    
    display: block;
}


@media (max-width: 600px) {
    .logo-img {
        max-height: 100px;
        min-height: 80px;
    }
}


@media (max-width: 400px) {
    .logo-img {
        max-height: 70px;
        min-height: 60px;
    }
}


@media (max-width: 300px) {
    .logo-img {
        min-height: 70px;
        max-height: 60px;
    }
}



header {
    margin-bottom: 0;
}
header h1 {
    padding: 10px 0 0 0; 
    margin: 0;
}
.logo-wrapper {
    margin-bottom: 5px;  
}
hr:first-of-type {
    margin-top: 0;
}


footer {
    background-color: var(--bordo);
    color: white;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright {
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-nav a,
.footer-contacts a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.2s;
}

.footer-nav a:hover,
.footer-contacts a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav a,
    .footer-contacts a {
        margin: 0 8px;
    }
    .footer-nav {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .footer-nav a {
        margin: 0;
    }
}