html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background-color: #ffffff; /* Білий фон для чистоти */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* М'яка тінь */
    border-bottom: 3px solid #6ED0FF; /* Блакитна лінія знизу */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo svg {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    border-radius: 20%; 
    overflow: hidden;
}

.logo h3 {
    font-size: 24px;
    font-weight: 700;
    color: #101111; /* Темно-синій з вашого лого */
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Навігація */
.top-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.headlinks {
    flex-grow: 1; 
    display: flex;
    justify-content: center; 
}

.header-right {
    display: flex;
    justify-content: flex-end;
    min-width: 200px; 
}
.top-links li a {
    text-decoration: none;
    color: #101111;
    font-size: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.top-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6ED0FF;
    transition: width 0.3s ease;
}

.top-links li a:hover {
    color: #6ED0FF;
}

.top-links li a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .top-links {
        gap: 15px;
    }
    
    .top-links li a {
        font-size: 14px;
    }
}


#main {
    min-height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), 
                      url('img/h4r.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: scroll; 
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.hero-content button {
    background-color: #6ED0FF;
    color: white;
    border: none;
    margin-top: 30px;
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-content button:hover {
    background-color: #4d8dab;
    transform: scale(1.05);
}


#services {
    padding: 30px 0;
    background-color: #f4f9ff; /* Дуже ніжний блакитний фон */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.title-section {
    text-align: center;
    color: #3E465B;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(62, 70, 91, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #eef2f6;
}

.service-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(110, 208, 255, 0.2);
    border-color: #6ED0FF;
}

.service-box h3 {
    color: #3E465B;
    font-size: 22px;
    margin-bottom: 15px;
}

.service-box p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 15px;
}

.s-icon {
    display: flex;
        font-size: 50px;
    justify-content: center; /* Центрування по горизонталі */
    align-items: center;    /* Центрування по вертикалі */
    margin-bottom: 25px;    /* Відступ до заголовка */
    height: 80px;           /* Фіксована висота контейнера для рівності */
}

.s-icon svg {
    width: 60px;            /* Обмежуємо ширину */
    height: 60px;           /* Обмежуємо висоту */
    transition: all 0.3s ease; /* Плавна анімація для ефектів */
}


.service-box:hover .s-icon svg {
    transform: scale(1.1); /* Легке збільшення іконки */
}

/* --- СЕКЦІЯ ЦІНИ --- */
#price {
    padding: 80px 0;
    background-color: #ffffff;
}

.price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(62, 70, 91, 0.08);
    border: 1px solid #eef2f6;
    margin-top: 20px;
}

.price-table th {
    background-color: #6ED0FF;
    color: white;
    padding: 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
}

.price-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f4f9ff;
    color: #3E465B;
    font-size: 16px;
    transition: 0.3s;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background-color: #f4f9ff;
    color: #101111;
}

.price-table td:last-child {
    font-weight: 700;
    text-align: right;
    color: #101111;
}

/* --- СЕКЦІЯ ПРО НАС + СЛАЙДЕР --- */
#aboutUS {
    padding: 80px 0;
    background-color: #f4f9ff; /* Світлий фон для контрасту */
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 320px;
}

.about-text p {
    color: #6c757d;
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 20px;
}

/* Слайдер на чистому CSS */
.slider-container {
    flex: 1;
    min-width: 320px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(62, 70, 91, 0.15);
}

.slider-container input {
    display: none; /* Ховаємо радіокнопки */
}

.slides {
    display: flex;
    width: 300%; /* Три слайди */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    width: 33.333%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Логіка руху слайдів */
#s1:checked ~ .slides { transform: translateX(0); }
#s2:checked ~ .slides { transform: translateX(-33.333%); }
#s3:checked ~ .slides { transform: translateX(-66.666%); }

/* Керування слайдером (точки) */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-controls label {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

#s1:checked ~ .slider-controls label[for="s1"],
#s2:checked ~ .slider-controls label[for="s2"],
#s3:checked ~ .slider-controls label[for="s3"] {
    background: #6ED0FF;
    width: 30px; /* Активна точка довша */
    border-radius: 10px;
}

/* --- СЕКЦІЯ КОНТАКТИ --- */
#contacts {
    padding: 80px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 5px 15px rgba(62, 70, 91, 0.03);
    transition: 0.3s;
}

.info-item:hover {
    border-color: #6ED0FF;
    transform: scale(1.02);
}

.info-item h4 {
    color: #6ED0FF;
    font-size: 18px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #3E465B;
    font-size: 16px;
    font-weight: 500;
}

.contact-map {
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Адаптивність */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
    }
    .slider-container {
        width: 100%;
        height: 300px;
    }
}

/* --- ПЛАВАЮЧА КНОПКА --- */
.floating-button {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #6ED0FF;
    color: white;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(110, 208, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 2000;
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #3E465B;
}

/* --- СТИЛІ ФОРМИ --- */
#callback {
    padding: 80px 0;
    background-color: #ffffff;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f4f9ff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(62, 70, 91, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #6ED0FF;
    box-shadow: 0 0 8px rgba(110, 208, 255, 0.2);
}

.input-group textarea {
    height: 120px;
    resize: none;
}

.submit-button {
    background-color: #3E465B;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-button:hover {
    background-color: #6ED0FF;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 208, 255, 0.3);
}

/* Відступ для якоря (щоб хедер не перекривав форму) */
#callback {
    scroll-margin-top: 100px;
}
/* --- ПОВНИЙ FOOTER CSS --- */
footer {
    background-color: #3E465B;
    color: #ffffff;
    padding: 80px 0 30px 0;
    margin-top: 60px;
    border-top: 4px solid #6ED0FF;
}

/* Гнучка сітка для всього контенту */
.footer-content {
    display: flex;
    justify-content: space-between; /* Розставляє блоки по краях */
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Блок з іконкою та описом */
.footer-brand {
    flex: 2; /* Займає більше місця */
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.footer-icon svg {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.footer-text h3 {
    color: #6ED0FF;
    font-size: 32px;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1;
}

.footer-text p {
    color: #cbd5e0;
    line-height: 1.6;
    max-width: 350px;
}

/* Блоки посилань та контактів */
.footer-links, .footer-contacts {
    flex: 1; /* Займають однакову меншу ширину */
}

.footer-links h4, .footer-contacts h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
}

.footer-links h4::after, .footer-contacts h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: #6ED0FF;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #6ED0FF;
    padding-left: 5px;
}

.footer-contacts p {
    color: #cbd5e0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 14px;
    color: #a0aec0;
}

/* Адаптація для телефонів (ось тут воно стане в один стовпчик) */
@media (max-width: 850px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links h4::after, .footer-contacts h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}