/* --- Загальні стилі --- */
:root {
    --primary-green: #49beb7 !important;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f4f4;
    --text-dark: #333;
    --text-light: #ffffff;
    --text-secondary: #666;
    --container-width: 1140px;
    --border-radius: 8px;
}

/* montserrat-regular - latin */
/* Montserrat Regular (400) */
/* montserrat-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/montserrat-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/montserrat-v31-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/montserrat-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    /*line-height: 1.6; */
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--light-bg);
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00996b;
    transform: translateY(-2px);
}

/* --- Шапка (Header) --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--primary-green);
}

.header-phone {
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
}

.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Головний екран (Hero) --- */
.hero {
    background: url('./img/hero_bg_cut.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero::after { /* Затемнення для кращої читабельності */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Послуги (Services) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Переваги (Advantages) --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid var(--primary-green);
    border-radius: var(--border-radius);
}

.advantage-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Портфоліо (Portfolio) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 179, 126, 0.8);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

/* --- Контакти (Contact) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #555;
    background-color: #333;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.contact-form button {
    width: 100%;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.label p {
    text-align: center;
    margin: 0.5rem auto 0.5rem;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info a, p {
    color: var(--primary-green);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- Підвал (Footer) --- */
.footer {
    background-color: var(--text-dark);
    color: #aaa;
    text-align: center;
    padding: 20px 0;
}

/* --- Адаптивність (Media Queries) --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    .nav.active {
        display: flex;
    }
    .nav ul {
        flex-direction: column;
        width: 100%;
    }
    .nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    .header-phone {
        display: none;
    }
    .burger-menu {
        display: block;
    }
    .hero {
        height: 60vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

