/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #444444;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 90%;
    max-width: 1360px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {
    background: #333333;
    width: 100%;
}


.nav {
    min-height: 102px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    color: #39A9DB;

    font-size: 44px;
    font-weight: 700;

    text-decoration: none;

    line-height: 1;

    flex-shrink: 0;
}


.logo:hover {
    opacity: 0.9;
}


/* =========================================================
   MAIN MENU
========================================================= */

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;

    flex: 1;

    white-space: nowrap;
}


.main-menu a {
    color: #ffffff;

    font-size: 18px;
    font-weight: 400;

    text-decoration: none;

    transition: color 0.3s ease;
}


.main-menu a:hover {
    color: #39A9DB;
}


/* =========================================================
   HEADER CONTACT
========================================================= */

/*
   Це весь правий блок:

   [ телефон ]       [ міста ]

   Він має власну ширину,
   тому міста не "прилипають"
   до телефону.
*/

.header-contact {

    width: 420px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-shrink: 0;

    gap: 25px;
}


/* =========================================================
   PHONE
========================================================= */

.phone-link {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #ffffff;

    text-decoration: none;

    font-size: 18px;

    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    flex-shrink: 0;

    transition: opacity 0.3s ease;
}


.phone-link:hover {
    opacity: 0.85;
}


.phone-link img {

    width: 32px;
    height: 32px;

    object-fit: contain;

    flex-shrink: 0;
}


/* =========================================================
   CITIES
========================================================= */

.cities {

    width: 170px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    flex-shrink: 0;
}


/*
   Кожен рядок займає всю ширину cities.
   Саме це забезпечує однакове
   центрування зліва і справа.
*/

.cities-row {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;
}


.cities-row span {

    color: #ffffff;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    background-image: url("img/mission.jpg");

    background-position: center center;

    background-size: cover;

    background-repeat: no-repeat;

    min-height: 455px;

    display: flex;

    align-items: center;
}


.overlay {

    width: 100%;

    background: rgba(0, 0, 0, 0.38);

    padding: 35px 0;
}


.hero-content {

    max-width: 980px;

    margin: 0 auto;

    padding: 0 20px;

    color: #ffffff;
}


.hero-content p {

    font-size: 18px;

    line-height: 1.6;

    font-weight: 400;

    margin-bottom: 28px;
}


/* =========================================================
   WHATSAPP BUTTON
========================================================= */

.btn.whatsapp-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 14px 28px;

    background: #43b51f;

    color: #ffffff;

    text-decoration: none;

    border-radius: 4px;

    font-size: 18px;

    font-weight: 400;

    line-height: 1;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.btn.whatsapp-btn:hover {

    background: #369a18;

    transform: translateY(-1px);
}


.btn.whatsapp-btn img {

    width: 36px;

    height: 36px;

    display: block;

    object-fit: contain;

    flex-shrink: 0;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products {

    padding: 50px 0 60px;

    background: #ffffff;

    text-align: center;
}


/* =========================================================
   CARDS
========================================================= */

.cards {

    display: flex;

    justify-content: center;

    align-items: flex-start;

    gap: 40px;
}


.card {

    width: 373px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


/* =========================================================
   CARD TITLE
========================================================= */

.card h2 {

    color: #299BC8;

    font-size: 28px;

    font-weight: 700;

    line-height: 1.25;

    margin-bottom: 20px;

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.card > a:first-of-type {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 230px;

    text-decoration: none;
}


.card img {

    display: block;

    width: 100%;

    max-width: 280px;

    height: 220px;

    object-fit: contain;
}


/* =========================================================
   CARD DESCRIPTION
========================================================= */

.card p {

    width: 100%;

    min-height: 70px;

    margin: 0 0;

    color: #444444;

    font-size: 18px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   CARD BUTTON
========================================================= */

.card-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 160px;

    min-height: 46px;

    padding: 10px 20px;

    background: #42B8E7;

    color: #ffffff;

    text-decoration: none;

    border-radius: 4px;

    font-size: 16px;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.card-button:hover {

    background: #1B98C8;

    transform: translateY(-1px);
}
/* =========================================================
   AIR CONDITIONING — BUTTONS
========================================================= */

.card-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 15px;

    margin-top: 25px;
}


.card-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 140px;

    min-height: 46px;

    padding: 10px 18px;

    background: #42B8E7;

    color: #ffffff;

    text-decoration: none;

    border-radius: 4px;

    font-size: 16px;

    font-weight: 400;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.card-button:hover {

    background: #1B98C8;

    transform: translateY(-1px);
}

/* =========================================================
   FOOTER
========================================================= */

footer {

    margin-top: 20px;

    padding: 45px 20px;

    background: #ffffff;

    border-top: 1px solid #dddddd;
}


.footer-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 14px;
}


.footer-content h3 {

    color: #222222;

    font-size: 16px;

    font-weight: 600;

    margin: 0;
}


.footer-content a {

    color: #222222;

    text-decoration: none;

    transition: color 0.3s ease;
}


.footer-content a:hover {

    color: #299BC8;
}


/* =========================================================
   FOOTER PHONE
========================================================= */

.footer-phone {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-size: 24px;

    font-weight: 600;
}


.footer-phone img {

    width: 34px;

    height: 34px;

    object-fit: contain;
}


.footer-content p {

    font-size: 15px;

    text-align: center;
}


/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {

    position: fixed;

    right: 20px;

    bottom: 20px;

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 50%;

    background: #42B8E7;

    color: #ffffff;

    font-size: 22px;

    cursor: pointer;

    display: none;

    z-index: 9999;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


#backToTop:hover {

    background: #1B98C8;

    transform: translateY(-2px);
}
/* =========================================================
   IMAGE GALLERY — SUBPAGES
========================================================= */

.image-gallery {

    width: 82%;

    max-width: 850px;

    margin: 0 auto 50px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 30px;
}


.image-gallery img {

    display: block;

    width: 100%;

    max-width: 850px;

    height: auto;

    margin: 0 auto;

    object-fit: contain;
}


/* =========================================================
   SUBPAGE TITLE
========================================================= */

.products > h1 {

    width: 90%;

    max-width: 1000px;

    margin: 40px auto;
	
	padding: 0;

    text-align: center;

    color: #333333;

    font-size: 32px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   IMAGE GALLERY — TABLET
========================================================= */

@media (max-width: 850px) {

    .image-gallery {

        width: 88%;

        max-width: 700px;

        gap: 25px;
    }


    .image-gallery img {

        width: 100%;

        max-width: 700px;
    }


    .products > h1 {

        width: 90%;

        font-size: 28px;
    }

}


/* =========================================================
   IMAGE GALLERY — PHONE
========================================================= */

@media (max-width: 600px) {

    .image-gallery {

        width: 92%;

        margin: 20px auto 40px;

        gap: 20px;
    }


    .image-gallery img {

        width: 100%;

        max-width: 100%;

        height: auto;
    }


    .products > h1 {

        width: 92%;

        margin: 25px auto 15px;

        font-size: 23px;

        line-height: 1.3;
    }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .container {
        width: 92%;
    }


    .nav {

        flex-wrap: wrap;

        padding: 18px 0;

        row-gap: 18px;
    }


    .logo {

        font-size: 40px;
    }


    .main-menu {

        order: 3;

        width: 100%;

        flex: none;

        gap: 30px;
    }


    .header-contact {

        width: 420px;

        margin-left: auto;
    }


    .hero-content {

        max-width: 900px;
    }


    .hero-content p {

        font-size: 17px;
    }


    .cards {

        flex-wrap: wrap;

        gap: 35px;
    }


    .card {

        width: 320px;
    }


    .card h2 {

        font-size: 26px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .nav {

        justify-content: center;

        flex-direction: column;
    }


    .logo {

        width: 100%;

        text-align: center;
    }


    .header-contact {

        width: 420px;

        margin: 0 auto;
    }


    .main-menu {

        order: 0;

        width: auto;

        flex-wrap: wrap;

        justify-content: center;
    }


    .hero {

        min-height: 420px;
    }


    .hero-content {

        width: 94%;
    }


    .cards {

        flex-direction: column;

        align-items: center;
    }


    .card {

        width: 100%;

        max-width: 360px;
    }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 600px) {

    .container {

        width: 92%;
    }


    /* HEADER */

    .nav {

        min-height: auto;

        padding: 20px 0;

        gap: 18px;
    }


    .logo {

        font-size: 36px;
    }


    .main-menu {

        flex-direction: column;

        gap: 12px;
    }


    .main-menu a {

        font-size: 17px;
    }


    /*
       На телефоні телефон і міста
       стають один під одним.
    */

    .header-contact {

        width: 100%;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 12px;

        margin: 0;
    }


    .phone-link {

        font-size: 17px;
    }


    .phone-link img {

        width: 28px;

        height: 28px;
    }


    .cities {

        width: 190px;

        gap: 3px;
    }


    .cities-row {

        gap: 10px;
    }


    .cities-row span {

        font-size: 12px;
    }


    /* HERO */

    .hero {

        min-height: auto;

        background-position: center top;
    }


    .overlay {

        padding: 35px 0;
    }


    .hero-content {

        width: 100%;

        padding: 0 10px;
    }


    .hero-content p {

        font-size: 14px;

        line-height: 1.55;

        margin-bottom: 22px;
    }


    .btn.whatsapp-btn {

    width: 100%;

    max-width: 330px;

    margin: 0 auto;

    padding: 12px 18px;

    gap: 7px;

    font-size: 15px;

    text-align: center;
}


.btn.whatsapp-btn img {

    width: 30px;

    height: 30px;
}


    /* PRODUCTS */

    .products {

        padding: 35px 0 45px;
    }


    .cards {

        flex-direction: column;

        align-items: center;

        gap: 50px;
    }


    .card {

        width: 100%;

        max-width: 320px;
    }


    .card h2 {

        font-size: 23px;

        min-height: auto;

        margin-bottom: 12px;
    }


    .card > a:first-of-type {

        height: 220px;
    }


    .card img {

        width: 100%;

        max-width: 280px;

        height: 210px;
    }


    .card p {

        font-size: 17px;

        line-height: 1.5;

        min-height: auto;

        margin: 15px 0 20px;
    }


    .card-button {

        width: 160px;

        min-height: 44px;

        font-size: 15px;
    }


    /* FOOTER */

    footer {

        padding: 35px 20px;
    }


    .footer-phone {

        font-size: 18px;
    }


    .footer-phone img {

        width: 28px;

        height: 28px;
    }


    .footer-content p {

        font-size: 15px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .logo {

        font-size: 32px;
    }


    .main-menu a {

        font-size: 16px;
    }


    .phone-link {

        font-size: 16px;
    }


    .cities {

        width: 180px;
    }


    .cities-row {

        gap: 8px;
    }


    .cities-row span {

        font-size: 11px;
    }


    .hero-content p {

        font-size: 13px;
    }

}