/* Общие стили */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: rgb(132, 177, 174);
    color: white;
    box-sizing: border-box;
    overflow-x: hidden;
    /* Запрещаем горизонтальную прокрутку */
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.main-content-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
    /* Запрещаем горизонтальную прокрутку */
}

/* Стили для шапки */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    background-color: rgb(108, 139, 107);
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
}

.block1 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.block1 .img1 {
    max-height: 80px;
    max-width: 100%;
    margin-right: 15px;
    border-radius: 5px;
}

.textBlock1 p {
    margin: 0;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    word-wrap: break-word;
}

.textBlock1 p:first-child {
    font-size: 1.3em;
}

.textBlock1 p:last-child {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Стили для десктопного меню */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    transition: color 0.3s;
    white-space: nowrap;
}

.desktop-menu a:hover {
    color: #e0e0e0;
}

.nav-item {
    position: relative;
}

#servicesToggle,
#patientsToggle {
    display: none;
}

.nav-item label {
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
    display: block;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-item label:hover {
    color: #e0e0e0;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 0;
}

.patients-submenu {
    min-width: 300px;
    max-width: 90vw;
    padding: 20px;
    right: 0;
    left: auto;
}

.contacts-info h4 {
    margin: 0 0 15px 0;
    color: rgb(108, 139, 107);
    font-size: 1.2em;
}

.contacts-info p {
    margin: 8px 0;
    color: #333;
    font-weight: normal;
    word-wrap: break-word;
}

.contacts-info a {
    color: rgb(108, 139, 107);
    text-decoration: none;
    font-weight: normal;
}

.contacts-info a:hover {
    text-decoration: underline;
}

.location-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

.submenu a {
    color: rgb(108, 139, 107);
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: normal;
    word-wrap: break-word;
}

.submenu a:hover {
    background-color: rgba(108, 139, 107, 0.1);
}

#servicesToggle:checked~.submenu,
#patientsToggle:checked~.submenu {
    display: block;
}

/* Стили для burger menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgb(108, 139, 107);
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1em;
    transition: background-color 0.3s;
    word-wrap: break-word;
}

.mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-services-header,
.mobile-patients-header {
    color: white;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    word-wrap: break-word;
}

.mobile-services-header:hover,
.mobile-patients-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-submenu,
.mobile-patients-submenu {
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 0;
    border-radius: 5px;
    overflow: hidden;
}

.mobile-submenu.active,
.mobile-patients-submenu.active {
    display: block;
}

.mobile-submenu a {
    padding: 12px 15px;
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-submenu a:last-child {
    border-bottom: none;
}

.mobile-patients-submenu {
    padding: 15px;
}

.mobile-contacts-info h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.1em;
}

.mobile-contacts-info p {
    margin: 5px 0;
    font-size: 0.9em;
    opacity: 0.9;
    word-wrap: break-word;
}

.mobile-contacts-info a {
    color: white;
    text-decoration: none;
}

.mobile-contacts-info a:hover {
    text-decoration: underline;
}

.mobile-location-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    margin-top: 10px;
    height: auto;
}

/* Анимация бургера */
.burger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Основной контент */
.main-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 400px;
    padding: 40px 20px;
    flex: 1;
}

.block2 {
    flex: 3;
    max-width: 75%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-right: 40px;
}

.block2 .img2 {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s;
}

.block2 .img2:hover {
    transform: scale(1.02);
}

.block3 {
    flex: 1;
    max-width: 25%;
    padding: 30px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.2em;
    color: white;
    box-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3);
    background-color: rgba(108, 139, 107, 0.8);
    line-height: 1.6;
    word-wrap: break-word;
}

.block3 p {
    margin-bottom: 20px;
    line-height: 1.4;
}

.block3 p:last-child {
    margin-bottom: 0;
}

/* Футер */
footer {
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    background-color: rgb(108, 139, 107);
    width: 100%;
    text-align: center;
    max-width: 100%;
}

footer p {
    margin: 0;
    color: white;
    opacity: 0.8;
    font-size: 0.9em;
    word-wrap: break-word;
}

/* Адаптивность */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .main-content {
        flex-direction: column;
        padding: 20px;
    }

    .block2 {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .block3 {
        max-width: 100%;
        padding: 20px;
        font-size: 1.1em;
    }

    .textBlock1 p:first-child {
        font-size: 1.1em;
    }

    .textBlock1 p:last-child {
        font-size: 0.8em;
    }

    .header {
        padding: 10px 15px;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 10px;
    }

    .block1 .img1 {
        max-height: 60px;
        margin-right: 10px;
    }

    .main-content {
        padding: 15px 10px;
    }

    .block3 {
        padding: 15px;
        font-size: 1em;
    }

    .mobile-nav {
        width: 85%;
        padding: 70px 15px 15px;
    }
}

/* Запрет горизонтальной прокрутки на всех устройствах */
@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }

    .main-content-container {
        overflow-x: hidden;
    }
}
/* Стили для страницы "В разработке" */
.development-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 60px 20px;
    background-color: rgb(132, 177, 174);
}

.development-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 50px 40px;
    background: rgba(108, 139, 107, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.development-icon {
    margin-bottom: 30px;
}

.development-icon svg {
    color: white;
    opacity: 0.8;
}

.development-content h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.development-content p {
    color: white;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.development-info {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid white;
}

.development-info p {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.development-info ul {
    text-align: left;
    color: white;
    padding-left: 20px;
    margin: 0;
}

.development-info li {
    margin-bottom: 10px;
    line-height: 1.5;
    opacity: 0.9;
}

.development-info a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.3s;
}

.development-info a:hover {
    opacity: 0.8;
}

.back-button {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: rgb(108, 139, 107);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Анимация для иконки */
.development-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Адаптивность для страницы разработки */
@media (max-width: 768px) {
    .development-page {
        padding: 40px 15px;
    }

    .development-content {
        padding: 40px 25px;
        margin: 20px;
    }

    .development-content h1 {
        font-size: 2em;
    }

    .development-content p {
        font-size: 1.1em;
    }

    .development-info {
        padding: 20px;
        margin: 25px 0;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .development-page {
        padding: 30px 10px;
    }

    .development-content {
        padding: 30px 20px;
    }

    .development-content h1 {
        font-size: 1.8em;
    }

    .development-content p {
        font-size: 1em;
    }

    .development-info {
        padding: 15px;
    }

    .development-info ul {
        padding-left: 15px;
    }
}