@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #005A9C;    /* Професійний синій */
    --secondary-color: #00A8E8; /* Яскравий акцентний синій */
    --dark-grey: #333333;
    --medium-grey: #757575;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* --- Глобальні стилі --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-grey);
    background-color: var(--white-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

.row {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.s-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px; /* Фіксована висота */
    display: flex;
    align-items: center;
}

.s-header .row {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* Приховуємо елементи мобільного меню на великих екранах */
.header-nav__close,
.header-menu-toggle,
.header-nav__content > .navigation,
.header-nav__content > p {
    display: none;
}

/* Налаштовуємо вигляд основного меню */
.header-nav {
    display: block !important;
}

.header-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-nav__list li {
    margin-left: 20px;
}

.header-nav__list a {
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 24px 5px; /* Вертикальні відступи для вирівнювання по висоті хедера */
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}



/* --- Головна секція (Home) --- */
.s-home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-color) url(booklphoto.avif) no-repeat center center;
    background-size: cover;
    color: var(--white-color);
    position: relative;
}

.s-home .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 90, 156, 0.7); /* Напівпрозорий синій */
}

.home-content {
    position: relative;
    z-index: 1;
}

.home-content h1 {
    font-size: 3.5rem;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.home-content span {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* --- Секція "Про нас" (About) --- */
.s-about {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stats__col {
    flex-basis: 22%;
    margin-bottom: 20px;
}

.stats__count {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stats__col h3 {
    font-size: 1.2rem;
    color: var(--dark-grey);
}

/* --- Секція Послуги (Services) --- */
.s-services {
    padding: 80px 0;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    flex-basis: 48%; /* Два стовпці */
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.service-icon {
    font-size: 36px;
    color: var(--secondary-color);
    margin-right: 25px;
}

.service-text h3 {
    margin-top: 0;
}


/* --- Секція Переваги/Відгуки (Clients) --- */
.s-clients {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.testimonials__slide {
    flex-basis: 45%;
    background: var(--white-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.testimonials__slide h3 {
    color: var(--secondary-color);
}

/* --- Підвал (Footer) --- */
footer {
    background-color: var(--dark-grey);
    color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
}

.go-top a {
    color: var(--white-color);
    font-size: 24px;
}

/* --- Адаптивність (Responsive) --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .home-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .header-nav__list { display: none; } /* Спрощено, для реального сайту потрібен JS для мобільного меню */
    
    .stats__col {
        flex-basis: 45%;
    }

    .service-item {
        flex-basis: 100%; /* Один стовпець */
    }

    .testimonials__slide {
        flex-basis: 100%;
    }
}