@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Cormorant', serif;
    background-color: #ffffff;
}

body.no-scroll {
    overflow: hidden;
}

.hero-section {
    height: 100vh;
    background-image: url('background_and_logo/background.jpeg');
    background-size: cover;
    background-position: center;
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.site-header.header-on-light .hamburger-menu span {
    background-color: #333333;
}

.hero-text-box {
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 700px;
    transform: translateY(-170px);
}

.main-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 25px;
}

.sub-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 50px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-sizing: border-box;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-image {
    width: 160px;
}

.hamburger-menu { 
    cursor: pointer; 
    z-index: 3000; 
    position: relative; 
    width: 28px; 
    height: 21px; 
}

.hamburger-menu span { 
    display: block; 
    position: absolute; 
    width: 100%; 
    height: 3px; 
    background-color: #ffffff; border-radius: 3px; transition: all 0.7s ease-in-out; 
}

.site-header.scrolled .hamburger-menu span { 
    background-color: #333333; 
}

.hamburger-menu span:nth-child(1) { 
    top: 0; 
}

.hamburger-menu span:nth-child(2) { 
    top: 9px; 
}

.hamburger-menu span:nth-child(3) { 
    top: 18px; 
}

.hamburger-menu.open span:nth-child(1) { 
    transform: rotate(45deg); top: 9px; 
}

.hamburger-menu.open span:nth-child(2) { 
    opacity: 0; 
}

.hamburger-menu.open span:nth-child(3) { 
    transform: rotate(-45deg); top: 9px; 
}

.reasons-section { 
    padding: 60px 20px; 
    background-color: #f9f9f9; 
}

.section-title-main, .section-title-sub { 
    text-align: center; 
}

.section-title-main { 
    font-size: 40px; 
    font-weight: 700; 
    color: #333; 
    margin: 0; 
}

.section-title-sub { 
    font-size: 32px; 
    color: #555; 
    margin: 0 0 50px 0; 
}

.timeline-container { 
    position: relative; 
    max-width: 600px; 
    margin: 0 auto; 
}

.timeline-container::before { 
    content: ''; 
    position: absolute; 
    top: 20px; 
    bottom: 40px; 
    left: 22px; 
    width: 4px; 
    background-color: #007bff; 
    border-radius: 3px; 
}

.timeline-item { 
    display: flex; 
    align-items: flex-start; 
    position: relative; 
    margin-bottom: 40px; 
}

.timeline-item:last-child { 
    margin-bottom: 0; 
}

.timeline-icon { 
    width: 42px; 
    height: 42px; 
    background-color: #007bff; 
    border: 3px solid #f9f9f9; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center;
    align-items: center;
    color: #ffffff; 
    font-size: 24px; 
    font-weight: bold; 
    margin-right: 25px; 
    flex-shrink: 0; 
    z-index: 2; 
}

.timeline-content h4 { 
    font-size: 22px; 
    font-weight: 700; 
    color: #333; 
    margin-top: 0; 
    margin-bottom: 8px; 
}

.timeline-content p { 
    font-size: 16px; 
    color: #666; 
    line-height: 1.6; 
    margin: 0; 
}

.menu-overlay { 
    height: 0; 
    width: 100%; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    background-color: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(8px); 
    overflow-y: auto;
    transition: height 0.7s ease; 
}

.overlay-content { 
    text-align: left; 
    padding: 30px 40px; 
}

.menu-overlay a { 
    padding: 10px 0; 
    text-decoration: none; 
    font-size: 23px; 
    font-weight: 700; 
    color: #333; 
    display: block; 
    transition: 0.7s; 
}

.menu-overlay.open {
    width: 100%; 
}

.overlay-content { 
    min-width: 300px; 
    text-align: left; 
    padding: 80px 40px 40px 40px; 
}

@media (min-width: 992px) {
    .menu-overlay.open {
        width: 600px; 
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    }

    .menu-overlay {
        width: 600px;
    }
}

.menu-overlay a:hover, .menu-overlay a:focus { 
    color: #007bff; 
}

.menu-overlay a.active { 
    color: #28a745; 
}

.menu-overlay a.active:hover { 
    color: #28a745; 
}

.submenu-toggle {
    background: none;
    border: none;
    padding: 10px 0;
    font-family: 'Cormorant', serif;
    font-size: 23px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
}
.submenu-toggle:hover {
    color: #007bff;
}

.submenu-toggle::after {
    content: '›';
    font-size: 24px;
    margin-left: auto;
    transition: transform 0.7s ease;
}

.submenu-toggle.open::after {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-out; 
    padding-left: 20px;
}

.submenu.open {
    max-height: 1000px;
}

.submenu-item {
    display: flex;
    align-items: center;
    font-size: 20px !important;
    color: #555 !important;
    padding: 10px 0;
}

.submenu-item span {
    display: inline-block;
    transform: translateY(-5px);
}

.submenu-icon {
    width: 35px;     
    height: 35px;
    border-radius: 30%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #ccc;
}


.submenu .submenu-container {
    padding-left: 0;
}

.submenu .submenu-toggle {
    font-size: 20px;
}

.submenu .submenu-item {
    font-size: 18px !important;
    padding-left: 15px;
}

.submenu .submenu .submenu-icon {
    width: 30px;
    height: 30px;
}

.service-description {
    max-height: 0;
    overflow: hidden;
    transition: all 0.7s ease-out;
    margin: 0;
    padding: 0;
}

.service-description.open {
    max-height: 200px;
    padding-top: 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom-color: #ddd;
}

.service-description p {
    font-size: 17px;
    text-align: justify;
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding-left: 30px;
    font-style: normal;
}

.service-description ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 85px;
    font-size: 14px;
    color: #444;
}

.service-description li {
    padding-bottom: 8px;
    line-height: 1.6;
}

.service-description li:last-child {
    padding-bottom: 0;
}

.submenu-item.open {
    color: #007bff !important;
}


.site-footer-contact { 
    background-color: #4c4c4c; 
    padding: 60px 20px; 
    text-align: center; 
}

.footer-title { 
    font-size: 32px; 
    font-weight: 700; 
    color: #20ab41; 
    margin-top: 0; 
    margin-bottom: 20px; 
}

.contact-info p { 
    font-size: 20px; 
    font-weight: 700; 
    color: #ffffff;
    margin: 5px 0; 
}

.working-hours { 
    margin: 40px auto; 
    color: #ffffff; 
}

.working-hours h3 { 
    margin-top: 0; 
    font-size: 22px; 
    margin-bottom: 10px; 
    font-weight: 700; 
}

.working-hours p { 
    margin: 5px 0; 
    font-size: 18px; 
}

.site-footer-contact > img { 
    margin: 50px auto 100px; 
    display: block; 
}

.footer-link a { 
    color: #ffffff; 
    text-decoration: underline; 
    margin: 0 10px; 
    font-size: 20px; 
}

.footer-copyright { 
    margin-top: 30px; 
    font-size: 14px; 
    color: #ffffff; 
}

.contact-page-main {
    padding: 150px 40px 80px 40px;
    background-color: #f9f9f9;
    min-height: 60vh;
    text-align: center;
}

.contact-page-main h1 {
    font-size: 48px;
    color: #20ab41;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-page-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    color: #555;
}

.contact-details-box {
    display: inline-block; 
    text-align: left;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-details-box h3 {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #20ab41;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.contact-details-box p {
    font-size: 18px;
    margin: 12px 0;
    color: #444;
}

.contact-details-box a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.contact-details-box a:hover {
    color: #20ab41;
}

.working-hours-title {
    margin-top: 30px;
}

/* --- Стилі для Impressum на сторінці контактів --- */

.impressum-details {
    max-width: 800px;
    margin: 80px auto 0 auto;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0; /* Легка лінія-розділювач */
    text-align: left;
    background-color: transparent; /* Прибираємо фон */
    box-shadow: none; /* Прибираємо тінь */
}

.impressum-details h2 {
    font-family: 'Lato', sans-serif; /* Простий шрифт для заголовка секції */
    font-size: 18px;
    font-weight: 700;
    color: #888; /* Сірий колір */
    text-transform: uppercase; /* Великі літери */
    letter-spacing: 1.5px; /* Відстань між літерами */
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none; /* Прибираємо лінію */
    text-align: center;
}

.impressum-details h3 {
    font-family: 'Cormorant', serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-top: 40px;
    margin-bottom: 15px;
}

.impressum-details p, .impressum-details li {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 2; /* Збільшений інтервал для читабельності */
    color: #444; /* М'який чорний колір */
}

.impressum-details p {
    margin-bottom: 20px;
}

.impressum-details ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

@media (min-width: 992px) {

    .sub-text {
        font-size: 26px; 
    }

    .main-text {
        font-size: 32px;
    }

    .timeline-content p {
        font-size: 22px;
    }

    .contact-page-subtitle {
        font-size: 22px;
    }

    .contact-details-box p {
        font-size: 20px;
    }

    .list-service-desription {
        font-size: 19px;
    }
}

/* --- НОВІ СТИЛІ ДЛЯ ЮРИДИЧНОЇ СТОРІНКИ --- */

.legal-page-main {
    padding: 120px 20px 80px 20px; /* Відступи зверху/знизу та по боках */
    background-color: #f4f7f6; /* Дуже світлий сіро-зелений фон */
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff; /* Біла "картка" для тексту */
    padding: 50px 60px; /* Внутрішні відступи */
    border-radius: 8px; /* Заокруглені кути */
    box-shadow: 0 5px 25px rgba(0,0,0,0.07); /* Легка тінь */
}

.legal-content h1 {
    font-size: 38px;
    color: #20ab41; /* Акцентний зелений колір */
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 26px;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee; /* Тонка лінія-розділювач */
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 20px;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content li {
    font-family: 'Lato', sans-serif; /* Більш читабельний шрифт для тексту */
    font-size: 16px;
    line-height: 1.9; /* Збільшена висота рядка для комфорту */
    color: #555;
}

.legal-content ul {
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: #20ab41;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #333;
}