@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/onest-v11-cyrillic_cyrillic-ext_latin_latin-ext_math_symbols-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/onest-v11-cyrillic_cyrillic-ext_latin_latin-ext_math_symbols-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/onest-v11-cyrillic_cyrillic-ext_latin_latin-ext_math_symbols-700.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    background: linear-gradient(135deg, #f5f5dc, #fffdf5); 
    color: #333333;          
    line-height: 1.6;        
    font-family: "Onest", sans-serif;
    font-size: 22px;
}

h1 {
    font-size: 38px;
    font-weight: 700;
}

h2 {
    font-size: 30px;
    font-weight: 600;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

.container {
    margin: 0 auto;   
    padding: 0 30px;     
}

.header-container {
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 0px;
    
    display: flex;                
    justify-content: space-between; 
    align-items: center;        
}


.nav-list {
    display: flex;       
    gap: 30px;          
    list-style: none;    
}

.nav-link {
    font-weight: 500;
    text-decoration: none; 
    color: #333333;        
}

.nav-link:visited {
    color: #333333;      
}


.social-links {
    display: flex;
    align-items: center;
    gap: 16px; 
}


.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-links img {
    width: 40px;          
    height: 40px;         
    object-fit: contain;  
    display: block;
}

.background_color {
    background-color: #e3e8d8;  
    border-radius: 28px;        
    padding: 30px;             
    margin-top: 30px;  
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.background_color-subtitle {
    max-width: 320px;
    font-size: 14px;
    color: #666666;
    text-align: right;
}


.services-grid {
    display: flex;
    margin-top: 10px;  
    gap: 20px; 
}


.service-card {
    flex: 1;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-dark {
    background-color: #cbbda486;
    color: #333333;
}

.card-dark h3 {
    font-size: 28px;
}

.card-bottom {
    margin-top: 40px;
}

.card-bottom span {
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 12px 24px;    
    border-radius: 50px;   
    
    font-size: 20px;
    font-weight: 600;
    text-decoration: none; 
    
    width: fit-content;    
    transition: all 0.2s ease; 
    margin-top: 10px;  
    margin-bottom: 10px;   
}

.btn-light {
    background-color: #fbf7f0; 
    color: #333333;           
}

.btn-light:hover {
    background-color: #e6e6e6; 
    transform: translateY(-2px); 
}

.services-grid + .services-grid {
    margin-top: 20px; 
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;          
    margin-top: 24px;
}


.faq-item {
    background-color: #fbf7f0; 
    border-radius: 20px;       
    padding: 24px 30px;       
}

.faq-answer {
    font-size: 18px;
    font-weight: 400;      
    color: #444444;
    overflow: hidden;
}

.faq-answer p {
    margin-bottom: 10px;
}


.faq-answer ul {
    padding-left: 20px;    
    margin-bottom: 16px;
}

.faq-answer li {
    margin-bottom: 8px;    
    line-height: 1.5;
}


.faq-note {
    font-size: 16px;
    color: #555555;
    background-color: rgba(227, 232, 216, 0.45); 
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 14px;
}


.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}


.faq-icon {
    font-size: 36px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr; 
    opacity: 0;            
    transition: grid-template-rows 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr; 
    opacity: 1;             
    margin-top: 16px;       
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-question span {
    display: inline-block;
}


.hero-container {
    display: flex;
    gap: 20px;             
    align-items: stretch;  
}


.hero-card {
    flex: 1;               
    background-color: #fbf7f0; 
    border-radius: 20px;   
    padding: 30px;         
    overflow: hidden;     
}


.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px; 
}

.footer-col {
    flex: 1;
}

.links {
    list-style: none;
    padding: 0;
    margin: 0;
}


.links a,
.links a:visited {
    color: #333333;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #333333;
}

.card-image {
    padding: 0;
    display: flex;
    align-items: center;     
    justify-content: center;  
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.card-text {
    flex: 1.5; 
}

.card-text ul {
    padding-left: 18px;  
    margin-bottom: 20px; 
}

.card-text p {
    margin-bottom: 30px; 
}


.card-text ul {
    margin-bottom: 24px;
}


.card-text li {
    font-size: 20px;     
    line-height: 1.5;    
    margin-bottom: 10px; 
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .container {
        padding: 0 16px;
    }

    .background_color {
        padding: 20px 16px;
        margin-top: 16px;
        border-radius: 20px;
    }

    .header-container {
        flex-direction: column;
        gap: 16px;
        padding-top: 15px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
    }

    .hero-container {
        flex-direction: column;
    }

    .card-text {
        width: 100%;
    }

    .card-text li {
        font-size: 17px;
    }

    .card-image {
        width: 100%;
    }

    .card-image img {
        width: 100%;
        max-height: 380px;
        border-radius: 20px;
        object-fit: cover;
    }

    .services-grid {
        flex-direction: column;
        gap: 16px;
    }

    .service-card {
        width: 100%;
    }

    .card-dark h3 {
        font-size: 22px;
    }

    .faq-item {
        padding: 16px 20px;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-icon {
        font-size: 26px;
    }

    .faq-answer {
        font-size: 16px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
    }
}

