/*
Theme Name: Expert Pflegedienst
Theme URI: https://example.com/
Author: Ваше Имя
Description: Индивидуальная тема для патронажной службы Expert с поддержкой русского и немецкого языков.
Version: 1.0
Tags: light, green, clean, responsive, multilingual
Text Domain: expert-pflegedienst
*/

body {
    background: #f5f9f4;
    color: #222;
    background-color: #f9bd98; /* Changed background color */
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: #7bab6f;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1.1em;
}
a:hover {
    text-decoration: underline;
    color: #5a8850;
}

.site-header {
    background: #f5f9f4;
    border-bottom: 2px solid #7bab6f;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 249, 244, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(123, 171, 111, 0.1);
    padding: 15px 0;
}

.site-header.fixed .header-flex {
    height: 60px;
}

.site-header.fixed .logo {
    height: 100px;
}

.site-header.fixed .company-name {
    font-size: 1.6em;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    flex-wrap: nowrap;
    height: 80px;
    padding-left: 0 !important;
    gap: 0;
}

.logo,
.company-name,
.menu,
.menu a,
.menu-phone,
.language-switch {
    height: 100%;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.menu {
    display: flex;
    gap: 20px !important;
    font-size: 1.2em;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
    line-height: 1.6;
    align-items: center;
    margin-left: 0 !important;
    padding-left: 0 !important;
    flex: 0 1 auto;
}

.logo {
    height: 130px;
    margin-left: 80px;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: auto;
}

.company-name {
    font-size: 1.6em;
    font-weight: bold;
    color: #7bab6f;
    margin: 0 !important;
    margin-right: 32px !important;
    white-space: nowrap;
    text-align: center;
    min-width: 0;
    flex-shrink: 0;
    align-self: center;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #7bab6f;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 30px;
    text-align: center;
}

h1[data-translate="contacts_title"] {
    color: #4d6b46 !important;
}

.card {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(123, 171, 111, 0.22), 0 2px 12px 0 rgba(0,0,0,0.12);
    padding: 40px 30px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.7;
}

/* Увеличенный размер текста для главной страницы */
.card p {
    font-size: 1.25em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.card p:last-child {
    margin-bottom: 0;
}

.accent {
    color: #7bab6f;
    font-weight: bold;
    margin-top: 32px;
    font-size: 1.5em;
    text-align: center;
    padding: 20px;
    background: #fef8f5;
    border-radius: 12px;
    border: 2px solid #7bab6f;
}

.site-footer {
    background: #7bab6f;
    padding: 40px 0;
    text-align: center;
    color: #fff;
    position: relative;
    width: 100%;
    font-size: 1.1em;
}
.site-footer a {
    color: #f5f9f4;
    text-decoration: underline;
    margin: 0 8px;
    font-size: 1.1em;
}
.site-footer a:hover {
    color: #fff;
}

/* Футер всегда внизу, даже если мало контента */
html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
    padding-top: 0;
    transition: padding-top 0.3s ease;
}

body.header-fixed main {
    padding-top: 100px;
}

.site-footer {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 1.1em;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7bab6f;
}
.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}
.contact-form .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95em;
    line-height: 1.4;
    color: #2b2b2b;
}
.contact-form .consent-row input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}
.contact-form .form-hint {
    font-size: 0.9em;
    color: #4c4c4c;
    margin-top: -6px;
}
.contact-form .form-status {
    font-size: 0.95em;
    font-weight: 600;
    min-height: 1.2em;
}
.contact-form .form-status.success {
    color: #2e7d32;
}
.contact-form .form-status.error {
    color: #c62828;
}
.contact-form .form-status.info {
    color: #2f5d96;
}
.contact-form .hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.button,
.contact-form button[type="submit"] {
    background: #5a8850 !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 15px 35px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: bold;
}
.button:hover,
.contact-form button[type="submit"]:hover {
    background: #4a7040 !important;
}

@media (max-width: 700px) {
    .container { padding: 0 8px; }
    .header-flex {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        position: relative;
        height: 110px;
    }
    .logo {
        height: 90px;
        margin-left: 50px;
        display: block;
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        z-index: 2;
    }
    .company-name {
        display: none !important;
    }
    .hamburger {
        position: absolute;
        right: 16px;
        top: 24px;
        z-index: 3;
    }
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-width: 0;
        min-height: 0;
        border-radius: 0;
        box-shadow: none;
        background: #f5f9f4;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        gap: 0;
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        border: none;
        transition: opacity 0.25s;
    }
    .menu.open {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
    }
    .menu .logo {
        margin-top: 32px;
        margin-bottom: 16px;
        height: 90px;
        position: static;
        left: 0;
        top: 0;
        transform: none;
        z-index: 2;
    }
    .menu a {
        width: 100%;
        text-align: center;
        padding: 18px 0;
        font-size: 1.18em;
        border-bottom: 1px solid #e8d8ca;
        background: none;
    }
    .menu-phone {
        margin-top: 32px;
        margin-bottom: 12px;
        width: 100%;
        justify-content: center;
        font-size: 1.08em;
    }
    
    .menu .language-switcher-inline {
        display: none !important;
    }
    .language-switcher-inline {
        margin-top: 32px;
        margin-bottom: 16px;
        width: 100%;
        justify-content: center;
        gap: 14px;
        order: -1;
    }
    .card { padding: 20px 15px; font-size: 1em; }
    
    h1 {
        font-size: 2.2em;
        margin-bottom: 20px;
    }
    
    .card p {
        font-size: 1.15em;
        line-height: 1.7;
        margin-bottom: 16px;
    }
    
    .accent {
        font-size: 1.3em;
        padding: 15px;
        margin-top: 24px;
    }
    
    .menu {
        font-size: 1.1em;
    }
    
    .uslugi-list li {
        font-size: 1.05em;
        gap: 10px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 1em;
    }
    
    .button {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .site-footer {
        padding: 30px 0;
        font-size: 1em;
    }
    
    .site-footer a {
        font-size: 1em;
    }
}

/* --- Новый стиль для главного блока --- */
.hero-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 36px;
}
.hero-img-leistungen-wrapper {
    width: 650px;
    max-width: 95vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}
.hero-img-leistungen {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(123, 171, 111, 0.22);
    background: #fff;
}
.hero-text-leistungen {
    padding: 24px 0 0 0;
    text-align: left;
    max-width: 700px;
}
.hero-text-leistungen h2 {
    font-size: 2.8em;
    margin-bottom: 28px;
    color: #7bab6f;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.hero-text-leistungen p {
    font-size: 1.5em;
    color: #222;
    margin: 0;
    line-height: 1.7;
    font-weight: 500;
}
@media (max-width: 900px) {
    .hero-block {
        flex-direction: column;
        gap: 18px;
    }
    .hero-img-leistungen-wrapper {
        width: 100%;
        max-width: 100vw;
    }
    .hero-text-leistungen {
        padding: 0;
        text-align: center;
    }
}

.uslugi-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 24px 0;
}
.uslugi-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
    font-size: 1.18em;
    line-height: 1.6;
}
.usluga-icon {
    font-size: 2.2em;
    margin-top: 2px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.2s;
}
.uslugi-list li:hover .usluga-icon {
    transform: scale(1.1);
}
.gift-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 36px;
    margin-bottom: 10px;
    position: relative;
}
.gift-icon {
    font-size: 3.5em;
    animation: gift-bounce 1.2s infinite alternate, gift-glow 2.5s infinite linear;
    filter: drop-shadow(0 2px 12px rgba(123, 171, 111, 0.4));
    margin-bottom: 12px;
    transition: transform 0.2s;
}
.gift-icon:hover {
    transform: scale(1.12) rotate(-8deg);
    filter: drop-shadow(0 4px 18px rgba(123, 171, 111, 0.7));
}
.gift-text {
    background: #fef8f5;
    color: #7bab6f;
    border: 2px dashed #7bab6f;
    border-radius: 16px;
    padding: 18px 32px;
    font-size: 1.25em;
    font-weight: bold;
    box-shadow: 0 2px 12px rgba(123, 171, 111, 0.15);
    text-align: center;
    max-width: 90vw;
    margin-top: -10px;
    z-index: 1;
    position: relative;
}
@keyframes gift-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-18px); }
}
@keyframes gift-glow {
    0%, 100% { filter: drop-shadow(0 2px 12px rgba(123, 171, 111, 0.4)); }
    50% { filter: drop-shadow(0 6px 24px rgba(123, 171, 111, 0.7)); }
}

.menu-phone {
    color: #7bab6f;
    font-weight: bold;
    font-size: 1.08em;
    margin-left: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f9f4;
    border-radius: 8px;
    padding: 4px 12px;
    transition: background 0.2s, color 0.2s;
    align-self: center;
    line-height: 1.6;
}
.menu-phone:hover {
    background: #7bab6f;
    color: #fff;
}
.phone-icon {
    font-size: 1.2em;
    margin-right: 4px;
}





.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #7bab6f;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 700px) {
    .hamburger {
        display: flex;
        z-index: 1101;
    }
    .menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 90%;
        max-width: 350px;
        max-height: 80vh;
        background: #f5f9f4;
        box-shadow: 0 8px 24px #0002;
        padding: 30px 20px;
        gap: 0;
        z-index: 1200;
        align-items: center;
        transition: transform 0.3s, opacity 0.3s;
        opacity: 0;
        pointer-events: none;
        border-radius: 15px;
        border: 2px solid #7bab6f;
    }
    .menu.open {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }
    .menu a {
        font-size: 1.2em;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e8d8ca;
    }
    .menu-phone {
        justify-content: center;
        width: 100%;
        margin: 12px 0 0 0;
        font-size: 1em;
    }

    .header-flex {
        position: relative;
    }
    .company-name {
        font-size: 1.2em;
        margin: 0 10px;
        justify-content: center;
    }
}

/* Параметры гамбургер меню для экранов 500px - 700px */
@media (min-width: 588px) and (max-width: 700px) {
    /* HAMBURGER_BUTTON_RIGHT - позиция гамбургер кнопки справа в пикселях */
    /* HAMBURGER_BUTTON_TOP - позиция гамбургер кнопки сверху в пикселях */
    /* HAMBURGER_BUTTON_WIDTH - ширина гамбургер кнопки в пикселях */
    /* HAMBURGER_BUTTON_HEIGHT - высота гамбургер кнопки в пикселях */
    /* HAMBURGER_SPAN_WIDTH - ширина линий гамбургера в пикселях */
    /* HAMBURGER_SPAN_HEIGHT - высота линий гамбургера в пикселях */
    
    .hamburger {
        right: 16px !important; /* HAMBURGER_BUTTON_RIGHT - измените это значение */
        top: 24px !important; /* HAMBURGER_BUTTON_TOP - измените это значение */
        width: 40px !important; /* HAMBURGER_BUTTON_WIDTH - измените это значение */
        height: 40px !important; /* HAMBURGER_BUTTON_HEIGHT - измените это значение */
    }
    
    .hamburger span {
        width: 28px !important; /* HAMBURGER_SPAN_WIDTH - измените это значение */
        height: 4px !important; /* HAMBURGER_SPAN_HEIGHT - измените это значение */
    }
    
    /* MENU_TOP_POSITION - позиция меню сверху в пикселях */
    /* MENU_WIDTH_PERCENT - ширина меню в процентах */
    /* MENU_MAX_WIDTH - максимальная ширина меню в пикселях */
    /* MENU_MAX_HEIGHT - максимальная высота меню в процентах от высоты экрана */
    /* MENU_PADDING_TOP_BOTTOM - внутренний отступ меню сверху/снизу в пикселях */
    /* MENU_PADDING_LEFT_RIGHT - внутренний отступ меню слева/справа в пикселях */
    /* MENU_BORDER_RADIUS - скругление углов меню в пикселях */
    
    .menu {
        top: 80px !important; /* MENU_TOP_POSITION - измените это значение */
        width: 90% !important; /* MENU_WIDTH_PERCENT - измените это значение */
        max-width: 350px !important; /* MENU_MAX_WIDTH - измените это значение */
        max-height: 80vh !important; /* MENU_MAX_HEIGHT - измените это значение */
        padding-top: 30px !important; /* MENU_PADDING_TOP_BOTTOM - измените это значение */
        padding-bottom: 30px !important; /* MENU_PADDING_TOP_BOTTOM */
        padding-left: 20px !important; /* MENU_PADDING_LEFT_RIGHT - измените это значение */
        padding-right: 20px !important; /* MENU_PADDING_LEFT_RIGHT */
        border-radius: 15px !important; /* MENU_BORDER_RADIUS - измените это значение */
    }
    
    /* MENU_LINK_FONT_SIZE - размер шрифта ссылок меню */
    /* MENU_LINK_PADDING - внутренний отступ ссылок меню сверху/снизу в пикселях */
    
    .menu a {
        font-size: 1.2em !important; /* MENU_LINK_FONT_SIZE - измените это значение */
        padding-top: 12px !important; /* MENU_LINK_PADDING - измените это значение */
        padding-bottom: 12px !important; /* MENU_LINK_PADDING */
    }
    
    /* MENU_PHONE_FONT_SIZE - размер шрифта телефона в меню */
    /* MENU_PHONE_MARGIN_TOP - отступ телефона сверху в пикселях */
    
    .menu-phone {
        font-size: 1em !important; /* MENU_PHONE_FONT_SIZE - измените это значение */
        margin-top: 12px !important; /* MENU_PHONE_MARGIN_TOP - измените это значение */
    }

    .mobile-phone{
        margin-left: 50px !important;
    }
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1199;
    pointer-events: auto;
}

body.menu-open .menu {
    z-index: 10001 !important;
}

/* Контакты: современный аккуратный блок */
.contact-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}
.contact-img-wrap {
    flex: 1 1 50%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: -12px;
}
.contact-nurse-img {
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(123, 171, 111, 0.22);
    background: #fff;
    object-fit: cover;
    display: block;
}
.contact-form-wrap {
    flex: 1 1 50%;
    min-width: 340px;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 18px;
 
}
@media (max-width: 900px) {
    .contact-flex { flex-direction: column; align-items: center; gap: 24px; }
    .contact-img-wrap { max-width: 100%; width: 100%; margin-bottom: 18px; }
    .contact-nurse-img { max-width: 100%; }
    .contact-form-wrap { max-width: 100%; width: 100%; min-width: 0; }
}

.language-switcher-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px !important;
    margin-right: 0;
}
.lang-btn {
    background: #f5f9f4;
    color: #7bab6f;
    border: 2px solid #7bab6f;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.lang-btn.active, .lang-btn[data-active="true"] {
    background: #7bab6f;
    color: #fff;
    border-color: #7bab6f;
}
.lang-btn:hover {
    background: #fef8f5;
    color: #5a8850;
    border-color: #5a8850;
}
@media (max-width: 700px) {
    .language-switcher-inline {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    .lang-btn {
        font-size: 1em;
        padding: 8px 18px;
    }
}

@media (max-width: 700px) {
    .site-header.fixed .menu {
        display: none;
    }
    .site-header.fixed .menu.open {
        display: flex !important;
        opacity: 1;
        pointer-events: auto;
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    body.menu-open::before {
        display: none !important;
    }
}

.mobile-header-row {
    display: none;
}
@media (max-width: 700px) {
    .mobile-header-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: calc(100% - 60px);
        overflow: visible;
        gap: 8px;
        padding-right: 60px;
    }
    .mobile-header-row .logo {
        order: 1;
        height: 75px !important;
        width: auto;
        min-width: 60px;
        max-width: 85px;
        margin-left: 8px !important;
        object-fit: contain;
        flex-shrink: 0;
    }
    .mobile-header-row .mobile-phone {
        order: 2;
        flex: 1 1 auto;
        margin-left: 0px;
        display: flex !important;
        visibility: visible !important;
        flex-direction: row;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
        font-size: 0.85em;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 40%;
        min-width: 0;
    }
    .mobile-header-row .language-switcher-inline {
        order: 3;
        margin-left: 8px;
        gap: 4px;
        flex-shrink: 1;
        padding: 0;
        max-width: 30%;
    }
    .mobile-header-row .language-switcher-inline .lang-btn {
        font-size: 0.75em;
        padding: 4px 8px;
        border-radius: 3px;
        min-width: 0;
    }
}

/* Стили для больших телефонов */
@media (min-width: 481px) and (max-width: 700px) {
    .mobile-header-row .logo {
        height: 90px !important;
        min-width: 70px;
        max-width: 100px;
    }
    .mobile-header-row .mobile-phone {
        font-size: 1em !important;
        max-width: 45%;
    }
    .mobile-header-row .language-switcher-inline {
        gap: 5px;
    }
    .mobile-header-row .language-switcher-inline .lang-btn {
        font-size: 0.8em;
        padding: 5px 10px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-header-row {
        max-width: calc(100% - 50px);
        padding-right: 50px;
    }
    .mobile-header-row .logo {
        height: 70px !important;
        max-width: 80px;
        margin-left: 6px !important;
    }
    .mobile-header-row .mobile-phone {
        font-size: 0.8em;
        gap: 3px;
        flex-shrink: 1;
    }
    .mobile-header-row .mobile-phone span.phone-icon {
        font-size: 0.9em;
    }
    .mobile-header-row .language-switcher-inline {
        margin-left: 6px;
        gap: 3px;
        max-width: 28%;
    }
    .mobile-header-row .language-switcher-inline .lang-btn {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}

@media (max-width: 360px) {
    .mobile-header-row {
        max-width: calc(100% - 45px);
        padding-right: 45px;
    }
    .mobile-header-row .logo {
        height: 65px !important;
        max-width: 75px;
        margin-left: 4px !important;
    }
    .mobile-header-row .mobile-phone {
        font-size: 0.75em;
        flex-shrink: 1;
    }
    .mobile-header-row .language-switcher-inline {
        margin-left: 4px;
        gap: 2px;
        max-width: 25%;
    }
    .mobile-header-row .language-switcher-inline .lang-btn {
        font-size: 0.65em;
        padding: 3px 5px;
    }
}

.desktop-logo {
    height: 90px;
    margin-left: 0 !important;
    margin-right: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: auto;
}

.desktop-logo .logo {
    height: 90px;
    width: auto;
}

@media (max-width: 700px) {
    .desktop-logo {
        display: none !important;
    }
    .container { padding: 0 8px; }
}

/* Оптимизация меню для экранов 700px - 1400px */
@media (min-width: 701px) and (max-width: 1400px) {
    .logo {
        height: 90px !important;
        margin-left: 1px !important;
        margin-top: 10px !important;
    }
    
    .desktop-logo {
        margin-left: 20px !important;
    }
    
    .desktop-logo .logo {
        height: 80px !important;
    }
    
    .company-name {
        font-size: 1.2em !important;
        margin-right: 16px !important;
    }
    
    .menu {
        gap: 12px !important;
        font-size: 1.2em !important;
    }
    
    .menu a {
        font-size: 1.2em !important;
        white-space: nowrap;
    }
    
    .menu-phone {
        font-size: 0.9em !important;
        margin-left: 8px !important;
        padding: 4px 8px !important;
    }
    
    .menu-phone .phone-icon {
        font-size: 1em !important;
    }
    
    .language-switcher-inline {
        margin-left: 8px !important;
        gap: 4px !important;
    }
    
    .lang-btn {
        font-size: 0.85em !important;
        padding: 5px 10px !important;
    }
    
    .header-flex {
        gap: 8px !important;
    }
}

/* Дополнительная оптимизация для экранов 700px - 1000px */
@media (min-width: 701px) and (max-width: 1000px) {
    /* Параметры логотипа для экранов 700-1000px - измените значения по необходимости */
    /* LOGO_HEIGHT_700_1000 - высота логотипа в пикселях */
    
    .logo,
    .desktop-logo .logo,
    .desktop-logo img.logo,
    img.logo {
        margin-left: -10px !important;
        margin-top: 10px !important;
        height: 90px !important; /* LOGO_HEIGHT_700_1000 - измените это значение */
        width: auto !important;
    }
    
    .desktop-logo {
        height: auto !important;
        margin-left: 15px !important;
    }
    
    .company-name {
        font-size: 1.1em !important;
        margin-right: 12px !important;
    }
}

/* Параметры логотипа для экранов 1000px - 1400px */
@media (min-width: 1001px) and (max-width: 1400px) {
    /* LOGO_HEIGHT_1000_1400 - высота логотипа в пикселях */
    /* LOGO_MARGIN_TOP_1000_1400 - отступ сверху логотипа в пикселях */
    /* LOGO_MARGIN_LEFT_1000_1400 - отступ слева логотипа в пикселях */
    
    .logo,
    .desktop-logo .logo,
    .desktop-logo img.logo,
    img.logo {
        height: 90px !important; /* LOGO_HEIGHT_1000_1400 - измените это значение */
        width: auto !important;
        margin-top: 10px !important; /* LOGO_MARGIN_TOP_1000_1400 - измените это значение */
        margin-left: -10px !important; /* LOGO_MARGIN_LEFT_1000_1400 - измените это значение */
    }
    
    .desktop-logo {
        height: auto !important;
        margin-left: 20px !important; /* LOGO_MARGIN_LEFT_1000_1400 */
        margin-top: 0px !important; /* LOGO_MARGIN_TOP_1000_1400 */
    }
    
    .menu a {
        font-size: 1.1em !important;
    }
    
    .menu-phone {
        font-size: 0.85em !important;
        margin-left: 6px !important;
        padding: 3px 6px !important;
    }
    
    .language-switcher-inline {
        margin-left: 6px !important;
        gap: 3px !important;
    }
    
    .lang-btn {
        font-size: 0.8em !important;
        padding: 4px 8px !important;
    }
}

/* Максимальная оптимизация для экранов 700px - 900px - все пункты меню должны помещаться */
@media (min-width: 701px) and (max-width: 900px) {
    /* Уменьшаем логотип и название компании с адаптивными размерами */
    .dektop-logo {
        margin-left: clamp(2px, 0.8vw, 12px) !important; /* Уменьшаем отступ слева */
        margin-right: clamp(2px, 0.5vw, 8px) !important; /* Уменьшаем отступ справа */
        flex-shrink: 1 !important;
    }
    
    .company-name {
        margin-right: clamp(25px, 4vw, 50px) !important; /* ЗНАЧИТЕЛЬНО увеличенный отступ справа для большего расстояния от меню */
        margin-left: clamp(-5px, -0.5vw, 0px) !important; /* Сдвигаем левее */
        white-space: normal !important;
        line-height: 1.2 !important;
        flex-shrink: 1 !important;
        max-width: clamp(100px, 15vw, 150px) !important; /* Уменьшаем ширину еще сильнее, чтобы не перекрывало правое меню */
        word-wrap: break-word !important; /* Перенос длинных слов */
        overflow-wrap: break-word !important; /* Перенос текста */
    }
    
    /* Адаптивное меню - размеры масштабируются с шириной экрана */
    .menu {
        gap: clamp(4px, 1.5vw, 16px) !important; /* Отступы увеличиваются при растягивании */
        font-size: clamp(0.90em, 2vw, 1.25em) !important; /* Размер шрифта увеличивается от 700px до 900px */
        flex-wrap: nowrap !important; /* Убираем перенос, чтобы использовать всё пространство */
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 1 auto !important; /* Меню растягивается и заполняет пространство */
        margin-left: clamp(20px, 3vw, 40px) !important; /* ЗНАЧИТЕЛЬНО увеличенный отступ слева от company-name */
    }
    
    .menu a {
        font-size: clamp(0.85em, 1.8vw, 1.2em) !important; /* Размер увеличивается заметнее */
        padding: clamp(4px, 0.8vw, 12px) clamp(5px, 1.2vw, 16px) !important; /* Адаптивные отступы */
        white-space: nowrap !important;
        flex: 0 1 auto !important; /* Ссылки адаптируются, но не сжимаются слишком сильно */
    }
    
    /* Адаптивный телефон */
    .menu-phone {
        font-size: clamp(0.75em, 1.5vw, 1em) !important; /* Адаптивный размер с большим коэффициентом */
        padding: clamp(4px, 0.8vw, 10px) clamp(5px, 1vw, 14px) !important;
        margin-left: clamp(5px, 1.2vw, 16px) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important; /* Телефон не сжимается */
    }
    
    .menu-phone .phone-icon {
        font-size: clamp(0.8em, 1.5vw, 1.1em) !important;
    }
    
    /* Адаптивные языковые переключатели */
    .language-switcher-inline {
        margin-left: clamp(5px, 1.2vw, 16px) !important;
        gap: clamp(4px, 0.8vw, 12px) !important;
        margin-right: clamp(10px, 1.5vw, 20px) !important; /* Отступ справа от последнего языка */
        flex-shrink: 0 !important; /* Языки не сжимаются */
    }
    
    .lang-btn {
        font-size: clamp(0.75em, 1.3vw, 0.95em) !important; /* Адаптивный размер */
        padding: clamp(4px, 0.7vw, 8px) clamp(6px, 1.2vw, 16px) !important; /* Адаптивные отступы */
        min-width: auto !important;
    }
    
    /* Адаптивные отступы в header */
    .header-flex {
        gap: clamp(4px, 1.2vw, 16px) !important; /* Отступы увеличиваются заметнее */
        padding-left: clamp(5px, 1.2vw, 20px) !important;
        padding-right: clamp(5px, 1.2vw, 20px) !important;
        justify-content: space-between !important; /* Распределяем пространство равномерно */
    }
    
    /* Логотип тоже адаптируется */
    .logo,
    .desktop-logo .logo,
    .desktop-logo img.logo,
    img.logo {
        height: clamp(70px, 12vw, 100px) !important; /* Адаптивный размер от 70px до 100px с большим коэффициентом */
    }
    
    .company-name {
        font-size: clamp(0.75em, 1.6vw, 1em) !important; /* Уменьшенный размер шрифта */
        max-width: clamp(100px, 15vw, 150px) !important; /* Уменьшенная ширина */
    }
}

/* Специальная оптимизация для экранов 900px - 1125px - баланс размера и видимости всех элементов */
@media (min-width: 901px) and (max-width: 1125px) {
    /* Адаптивный логотип */
    .desktop-logo {
        margin-left: clamp(5px, 1vw, 12px) !important;
        margin-right: clamp(2px, 0.5vw, 5px) !important;
        flex-shrink: 1 !important;
    }
    
    .logo,
    .desktop-logo .logo,
    .desktop-logo img.logo,
    img.logo {
        height: clamp(65px, 8vw, 85px) !important; /* От 65px до 85px */
        width: auto !important;
        margin-top: 10px !important;
    }
    
    /* Адаптивное название компании */
    .company-name {
        font-size: clamp(0.85em, 1.4vw, 1.2em) !important; /* От 0.85em до 1.2em */
        margin-right: clamp(6px, 1.2vw, 14px) !important;
        margin-left: 0px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        max-width: clamp(110px, 14vw, 170px) !important; /* От 110px до 170px */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        flex-shrink: 1 !important;
    }
    
    /* Адаптивное меню */
    .menu {
        gap: clamp(5px, 1.2vw, 14px) !important; /* От 5px до 14px */
        font-size: clamp(0.9em, 1.4vw, 1.2em) !important; /* От 0.9em до 1.2em */
        flex-wrap: nowrap !important;
        margin-left: clamp(3px, 0.7vw, 8px) !important;
        flex: 1 1 auto !important;
    }
    
    .menu a {
        font-size: clamp(0.85em, 1.4vw, 1.15em) !important; /* От 0.85em до 1.15em */
        padding: clamp(4px, 0.8vw, 8px) clamp(6px, 1.2vw, 12px) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Адаптивный телефон */
    .menu-phone {
        font-size: clamp(0.7em, 1.2vw, 0.9em) !important; /* От 0.7em до 0.9em */
        padding: clamp(3px, 0.6vw, 6px) clamp(5px, 1vw, 10px) !important;
        margin-left: clamp(4px, 0.8vw, 8px) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .menu-phone .phone-icon {
        font-size: clamp(0.8em, 1.2vw, 1em) !important; /* От 0.8em до 1em */
    }
    
    /* Адаптивные языковые кнопки - гарантируем видимость */
    .language-switcher-inline {
        margin-left: clamp(4px, 0.8vw, 8px) !important;
        gap: clamp(2px, 0.5vw, 5px) !important;
        margin-right: clamp(5px, 1vw, 10px) !important;
        flex-shrink: 0 !important; /* Языки не сжимаются */
    }
    
    .lang-btn {
        font-size: clamp(0.7em, 1.2vw, 0.9em) !important; /* От 0.7em до 0.9em */
        padding: clamp(3px, 0.6vw, 6px) clamp(6px, 1.1vw, 10px) !important;
        white-space: nowrap !important;
        min-width: auto !important;
    }
    
    /* Адаптивные отступы в header */
    .header-flex {
        gap: clamp(3px, 0.8vw, 10px) !important; /* От 3px до 10px */
        padding-left: clamp(5px, 1vw, 12px) !important;
        padding-right: clamp(5px, 1vw, 12px) !important;
        justify-content: space-between !important;
    }
}

/* --- Разделитель с сердечком --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 36px 0 36px 0;
    width: 100%;
    gap: 16px;
}
.divider-line {
    flex: 1 1 40%;
    height: 2px;
    background: #7bab6f;
    opacity: 0.25;
    border-radius: 2px;
    min-width: 30px;
}
.divider-heart {
    font-size: 2em;
    color: #7bab6f;
    margin: 0 12px;
    line-height: 1;
    user-select: none;
}
@media (max-width: 700px) {
    .section-divider {
        margin: 22px 0 22px 0;
        gap: 8px;
    }
    .divider-heart {
        font-size: 1.3em;
        margin: 0 6px;
    }
    .divider-line {
        min-width: 12px;
    }
}

/* --- Hero block Main (index.html) --- */
.hero-block-main {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    margin-bottom: 36px;
    text-align: left;
    background: none;
    gap: 0;
}
.hero-block-main .hero-img-wrapper {
    flex: 1 1 50%;
    max-width: 50vw;
    min-width: 240px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    height: 500px;
    margin-left: 30px;
    border-radius: 24px;
}
.hero-block-main .hero-img {
    width: 135%;
    height: 135%;
    object-fit: cover;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    max-height: none;
    border-radius: 0;
}
.hero-block-main .hero-text-new {
    flex: 1 1 50%;
    max-width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 40px 40px 32px;
    color: #7bab6f;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background: none;
    padding-left: 56px;
}
.hero-block-main .hero-text-new h2 {
    font-size: 2.8em;
    margin-bottom: 28px;
    color: #7bab6f;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.hero-block-main .hero-text-new p {
    font-size: 1.5em;
    color: #222;
    margin: 0;
    line-height: 1.7;
    font-weight: 500;
}
@media (max-width: 900px) {
    .hero-block-main {
        flex-direction: column;
        min-height: 0;
    }
    .hero-block-main .hero-img-wrapper, .hero-block-main .hero-text-new {
        max-width: 100vw;
    }
    .hero-block-main .hero-img-wrapper {
        height: 220px;
        margin-left: 0;
    }
    .hero-block-main .hero-text-new {
        padding: 24px 12px;
    }
    .hero-block-main .hero-text-new h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    .hero-block-main .hero-text-new p {
        font-size: 1em;
    }
}

/* --- Современный футер с тремя колонками --- */
.site-footer-modern {
    background: #7bab6f;
    color: #fff;
    padding: 48px 0 32px 0;
    font-size: 1.1em;
    margin-top: 0;
    padding-left: 20px;
}
.footer-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.footer-col {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 340px;
    padding: 0 12px;
}
.footer-col h3 {
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-top: 0;
    text-transform: uppercase;
    color: #fff;
}
.footer-col hr {
    border: none;
    border-top: 2px solid #fff;
    opacity: 0.6;
    margin: 0 0 18px 0;
}
.footer-col p, .footer-col b {
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 400;
    line-height: 1.7;
    word-break: break-word;
}
.footer-col b {
    font-weight: 700;
}
.footer-col a {
    color: #fff;
    text-decoration: underline;
    word-break: break-all;
}
.footer-col a:hover {
    color: #f5f9f4;
}

/* Стили для телефона в footer */
.footer-col p:first-child {
    margin-left: 15px;
}
@media (max-width: 900px) {
    .site-footer-modern {
        padding-left: 15px;
    }
    .footer-columns {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .footer-col {
        max-width: 100%;
        min-width: 0;
        padding: 0 0 24px 0;
    }
    .footer-col p:first-child {
        margin-left: 10px;
    }
}

/* --- Pflegeberatung Hero Section --- */
.pflegeberatung-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 48px 16px 0 16px;
    min-height: 340px;
    margin-bottom: 0;
    border-bottom: 2px solid #e0dede;
    gap: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
    border-radius: 24px;
    box-shadow: 0 2px 12px #0001;
    overflow: hidden;
}
.pflegeberatung-img-wrapper {
    flex: 1 1 50%;
    min-width: 320px;
    max-width: 50vw;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #fff;
    padding: 0;
    overflow: hidden;
}
.pflegeberatung-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(123, 171, 111, 0.22);
    object-fit: cover;
    margin: 0 !important;
    margin-right: auto !important;
    display: block;
}
.pflegeberatung-info {
    flex: 1 1 50%;
    max-width: 600px;
    background: #f8f5f3;
    padding: 48px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.pflegeberatung-icon {
    font-size: 2.2em;
    color: #7bab6f;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(123, 171, 111, 0.15);
}
.pflegeberatung-title {
    font-size: 2em;
    color: #7bab6f;
    margin: 0 0 12px 0;
    font-weight: 700;
}
.pflegeberatung-lead {
    font-size: 1.15em;
    margin-bottom: 12px;
    color: #222;
}
.pflegeberatung-btn {
    margin-top: 18px;
    background: #5a8850 !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
    display: inline-block;
}
.pflegeberatung-btn span, .pflegeberatung-btn b, .pflegeberatung-btn strong {
    color: #fff !important;
}
.pflegeberatung-btn:hover {
    background: #4a7040 !important;
}

/* --- Pflegeberatung Content Section --- */
.pflegeberatung-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 16px 0 16px;
    background: #fff;
    border-radius: 24px;
}
.pflegeberatung-section-title {
    color: #7bab6f;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 18px;
    font-weight: 700;
}
.pflegeberatung-text {
    font-size: 1.1em;
    color: #222;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: left;
    padding-left: 24px;
}
.pflegeberatung-text b {
    color: #7bab6f;
    font-weight: 700;
    font-size: 1.1em;
}
@media (max-width: 900px) {
    .pflegeberatung-hero {
        flex-direction: column;
        min-height: 0;
    }
    .pflegeberatung-img-wrapper {
        max-width: 100vw;
        width: 100%;
        height: 320px;
        justify-content: center;
        min-width: 0;
    }
    .pflegeberatung-img {
        max-width: 100vw;
        width: 100%;
        height: 100%;
        border-radius: 0 0 24px 24px;
        object-fit: cover;
    }
    .pflegeberatung-info {
        max-width: 100vw;
        width: 100%;
        padding: 32px 12px 24px 12px;
        align-items: center;
        text-align: center;
    }
    .pflegeberatung-title {
        font-size: 1.3em;
    }
    .pflegeberatung-section-title {
        font-size: 1.1em;
    }
    .pflegeberatung-content {
        padding: 32px 4px 0 4px;
    }
    .pflegeberatung-text {
        text-align: left;
        padding-left: 8px;
    }
}

.pflegeberatung-hinweis {
    background: #fef8f5;
    border: 2px solid #7bab6f;
    border-radius: 14px;
    padding: 22px 28px;
    margin: 28px 0 24px 0;
    text-align: left;
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 12px rgba(123, 171, 111, 0.12);
}

.pflegeberatung-hinweis p {
    font-size: 1.25em;
    line-height: 1.7;
    margin: 0;
}

.pflegeberatung-hinweis b {
    color: #7bab6f;
    font-weight: 700;
}

/* --- Custom palette from Jobs page --- */
.pflegeberatung-hero, .pflegeberatung-content {
    background: #f7f3f1 !important;
    border-bottom: 4px solid #ede6e3;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.04);
}
.pflegeberatung-content {
    border-radius: 32px;
    border: 1.5px solid #e0d6d2;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
}
.pflegeberatung-title,
.pflegeberatung-section-title,
.pflegeberatung-lead {
    color: #5a8850 !important;
}
.pflegeberatung-btn {
    background: #5a8850 !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
    display: inline-block;
}
.pflegeberatung-btn:hover {
    background: #4a7040 !important;
}
.section-divider .divider-heart svg path {
    fill: #5a8850 !important;
    stroke: #5a8850 !important;
} 