* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

header {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 0;
    position: relative;
    z-index: 200;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* шапка */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
}



.main-nav a:hover {
    text-decoration: none;
    color: #cccccc;
}

.burger span {
    display: block;
    height: 2px;
    background-color: #ffffff;
    margin-bottom: 5px;
}



/* оверлей для блюра */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    z-index: 190;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* когда меню открыто — блокируем скролл */
body.menu-open {
    overflow: hidden;
}

main {
    padding: 40px 0 60px;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Текст в hero */
.hero-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Карточки послуг */
/* Карточки послуг */
.service-card {
    border: 1px solid #000000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* анімація тільки задає старт/фініш, без "forwards" */
    animation: fadeInUp 0.8s ease-out;

    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-out,
                box-shadow 0.2s ease-out;
}

.service-card:hover {
    transform: translateY(-4px) scale(1.03);   
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}


.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: nowrap;         
    min-height: 320px;
}

.hero-text-title {
    font-size: 36px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-text-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-cta {
    display: inline-block;
    border: 1px solid #000000;
    padding: 10px 18px;
    text-transform: uppercase;
    font-size: 13px;
}
.hero-image,
.hero-text {
    flex: 0 0 50%;              
}

.hero-image img {
    width: 100%;                
    height: auto;
    display: block;
}
/* About */

.about-text {
    max-width: 800px;
    font-size: 15px;
}

/* Why us */
.section-about {
    background-color: #000000;
    color: #ffffff;
    border-bottom: none; /* если не нужен серый разделитель */
}

.section-about .section-title {
    color: #ffffff;
}

.section-about .about-text {
    color: #ffffff;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-item {
    padding: 20px;
    text-align: center;
}

.why-item-title {
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Services */
.service-card img {
    width: 50%;          /* в 2 раза меньше */
    margin: 0 auto 10px; /* по центру в карточке */
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.section-services {
    background-color: #000000;
    color: #ffffff;
}

.section-services .section-title {
    color: #ffffff;
}

/* карточки остаются белыми */
.section-services .service-card {
    background-color: #ffffff;
    color: #000000;
}

.service-title {
    font-weight: 600;
    margin: 10px 0;
    text-align: center;
}

.service-desc {
    font-size: 14px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    border: 1px solid #000000;
    padding: 8px 14px;
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border-radius: 6px;        /* скругление */
}


.btn:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Contacts */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 40px;
   align-items: center;  
    margin-top: 20px;
}


.contact-info {
    font-size: 14px;
}

.contact-info-top {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.contact-box {
    flex: 1;
    border: 1px solid #000000; 
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-color: #000000; 
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
    border-radius: 8px;
}
.contact-box:hover {
    background-color: #ffffff;  
    color: #000000;
}
.contact-icon {
    width: 34px;
    height: 34px;
    border: 1px solid #000000;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;   
    border-radius: 6px;
}
.contact-icon img {
    max-width: 70%;
    max-height: 70%;
    
}

.contact-box-label {
    font-size: 14px;
}
.contact-note {
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 0;     
}





.contact-form {
    width: 100%;
    max-width: 650px;
    margin-left: 0;
    border: 1px solid #ffffff;
    padding: 20px 24px;
    background-color: #000000; 
    color: #ffffff;
    border-radius: 8px;
}
#contacts .contact-submit {
    border-color: #ffffff;
    color: #ffffff;
}

#contacts .contact-submit:hover {
    background-color: #ffffff;
    color: #000000;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #000000;
    padding: 8px;
    font-size: 14px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 6px;          
}


.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row-full {
    flex-direction: column;
}

.form-field {
    flex: 1;
}

.contact-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #000000;
    padding: 8px;
    font-size: 14px;
    background-color: #ffffff;
    color: #000000;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit {
    margin-top: 5px;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-info-top {
        flex-direction: column;
    }
}
#contacts .section-title {
    text-align: center;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb a {
    text-decoration: underline;
}

.service-page-title {
    font-size: 26px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-page-desc {
    max-width: 800px;
    margin-bottom: 25px;
    font-size: 15px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #000000;
    padding: 10px 15px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.privacy-section {
    margin-bottom: 25px;
}

.privacy-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.privacy-section p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Footer */

footer {
    background-color: #000000;
    color: #ffffff;
    border-top: none;
    padding: 35px 0;   
    font-size: 14px;   
}


.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* Responsive */

@media (max-width: 900px) {
    .why-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .why-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    /* HERO на телефоне */
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        min-height: auto;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hero-image,
    .hero-text {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-image img {
        max-width: 70%;
        margin: 0 auto;
    }

    .hero-text-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero-text-subtitle {
        font-size: 14px;
    }

    .hero-cta {
        width: 100%;
        max-width: 260px;
    }
}



.service-main-block {
    display: flex;
    align-items: flex-start;  /* выравнивание по верху */
    gap: 40px;
    margin-bottom: 30px;
}

.service-main-image img {
    max-width: 220px;
    display: block;
}

.service-main-text {
    flex: 1;
}

/* адаптив для узких экранов */
@media (max-width: 800px) {
    .service-main-block {
        flex-direction: column;
        align-items: center;
    }

    .service-main-text {
        width: 100%;
    }
}
/* Центруємо заголовки та текст на головній, крім hero та контактів */
.home-main .section:not(.hero-section):not(#contacts) .section-title {
    text-align: center;
}

.home-main .section:not(.hero-section):not(#contacts) p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* Десктопная версия меню */
@media (min-width: 901px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: #000000;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        z-index: 210;
    }

   .main-nav a {
        margin: 0 0 16px;
        font-size: 14px;
    }
        .main-nav.open {
        transform: translateX(0);
    }
     .menu-overlay {
     display: block;
    }
    .burger {
        display: none;
    }

    .menu-overlay {
        display: none;
    }
}
/* НАВИГАЦИЯ + БУРГЕР */

/* по умолчанию (мобилка): бургер виден, меню выезжающее справа */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 210;
}

.main-nav a {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s ease-out;
}

.main-nav a:hover {
    text-decoration: none;
    color: #cccccc;
}

/* меню в открытом состоянии */
.main-nav.open {
    transform: translateX(0);
}

/* бургер — виден по умолчанию (мобайл) */
.burger {
    display: block;
    width: 28px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    background-color: #ffffff;
    margin-bottom: 5px;
}

/* строка с политикой */
.privacy-row {
    margin-bottom: 4px;
}

/* кнопка */
.contact-submit {
    margin-top: 0; /* убираем лишний отступ */
}

/* выравнивание чекбокса и текста */
.privacy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
