* {
    padding: 0;
    margin: 0;
}


html {
    scroll-behavior: smooth;
}

body {
    background-color: #F7F9FC;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 666;
    width: 100%;
    background-color: #EDF2FA;
    border-bottom: #1A2747 1px solid;
    box-shadow: 0 0px 8px rgba(26, 39, 71, 0.5); 
}

.logo a {
    text-decoration: none;
    font-size: 48px;
    font-weight: 600;
    color: #1A2747;
}

.headerCont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    height: 80px;
    margin: 0 auto;
}

.navBar {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    
    
    font-size: 16px;
    font-weight: 600;
}

.navBar a {
    position: relative;
    text-decoration: none;
    color: #1E1E1E;
    transition: color 0.3s ease;
}

.navBar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px; /* чуть ниже текста */
    width: 0;
    height: 3px;
    background-color: #1A2747; /* зелёная линия — можешь поменять */
    transition: width 0.3s ease;
}

.navBar a:hover::after {
  width: 100%;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 25px;
}

.burger span {
  display: none;
  height: 3px;
  width: 100%;
  background: #1A2747;
  border-radius: 2px;
  transition: 0.3s;
}

.burlinks {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #EDF2FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;
    /* box-shadow: 0 2px 8px rgba(26, 39, 71, 0.5); */
    box-shadow: 0 8px 20px rgba(26, 39, 71, 0.2); 


    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 664;
}

.burlinks.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.burger span {
    transition: all 0.4s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.burLink a {
    text-decoration: none;
    color: #1E1E1E;
    font-size: 20px;
}

.burlinks.active {
  display: flex;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

footer {
    background-color: #EDF2FA;
}

.footerCont {
    width: 1200px;
    margin: 0 auto;
    padding: 120px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footerTitle {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #1A2747;
    text-transform: uppercase;
}

.footerSub {
    font-size: 20px;
    font-weight: 600;
    color: #1E1E1E;
    text-transform: uppercase;

    margin-top: 10px;
}

@media ( max-width: 1200px ) {

    /* Header */

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 666;
        width: 100%;
        background-color: #EDF2FA;
        border-bottom: #1A2747 1px solid;
        box-shadow: 0 2px 8px rgba(26, 39, 71, 0.5); 
    }

    .headerCont {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 704px;
        height: 80px;
        margin: 0 auto;
    }

    .navBar {
        display: flex;
        justify-content: space-between;
        gap: 40px;
        
        
        font-size: 16px;
        font-weight: 600;
    }

    .navBar a {
        position: relative;
        text-decoration: none;
        color: #1E1E1E;
        transition: color 0.3s ease;
    }

    .navBar a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px; /* чуть ниже текста */
        width: 0;
        height: 3px;
        background-color: #1A2747; /* зелёная линия — можешь поменять */
        transition: width 0.3s ease;
    }

    .navBar a:hover::after {
        width: 100%;
    }
    .footerCont {
            width: 704px;
            padding: 60px 0 60px;
    }
}

@media ( max-width: 768px ) {

    /* Header */

    header {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 666;
        width: 100%;
        margin: 0 auto;
        background-color: #EDF2FA;
        border-bottom: #1A2747 1px solid;
        box-shadow: 0 2px 8px rgba(26, 39, 71, 0.5); 
    }

    .headerCont {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 328px;
        height: 80px;
        margin: 0 auto;
    }

    .navBar {
        display: none;
        justify-content: space-between;
        gap: 40px;
        
        
        font-size: 16px;
        font-weight: 600;
    }

    .navBar a {
        position: relative;
        text-decoration: none;
        color: #1E1E1E;
        transition: color 0.3s ease;
    }

    .navBar a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px; /* чуть ниже текста */
        width: 0;
        height: 3px;
        background-color: #1A2747; /* зелёная линия — можешь поменять */
        transition: width 0.3s ease;
    }

    .navBar a:hover::after {
        width: 100%;
        }

    .burger {
        display: flex;
    }

    .navBar {
        position: absolute;
        top: 80px;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 20px;
        gap: 15px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .navBar.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .footerCont {
        width: 328px;
        padding: 60px 0 60px;
    }

    .footerTitle {
        font-family: 'Poppins', sans-serif;
        font-size: 20px;
        font-weight: 900;
        color: #1A2747;
        text-transform: uppercase;
    }

    .footerSub {
        font-size: 14px;
        font-weight: 500;
        color: #1E1E1E;
        text-transform: uppercase;

        /* margin-top: 10px; */
    }

    .burger span {
        display: block;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        width: 25px;
    }

    .burger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #1A2747;
        border-radius: 2px;
        transition: 0.3s;
    }

}

.gallery {
    max-width: 1200px;
    margin: 120px auto 0;
    column-count: 3;             /* Колонки для эффекта "мозаики" */
    column-gap: 20px;            /* Расстояние между фото */
    padding: 40px 0;
}

/* --- Фото --- */
.gallery img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 20px;
    display: block;
    break-inside: avoid;         /* Чтобы не ломались при переносе */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Ховер эффект --- */
.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* --- Адаптив --- */
@media (max-width: 1200px) {
    .gallery {
        max-width: 1000px;       /* Чуть меньше контейнер */
        column-count: 3;         /* Оставляем 3 колонки */
        column-gap: 18px;
        padding: 30px 10px;
    }

    .gallery img {
        border-radius: 12px;
        margin-bottom: 18px;
    }

    h1 {
        font-size: 32px;
        text-align: center;
    }
}

/* 📱 Планшеты (до 768px) */
@media (max-width: 768px) {
    .gallery {
        max-width: 700px;
        column-count: 2;         /* Две колонки */
        column-gap: 14px;
        padding: 25px 10px;
    }

    .logo a {
        text-decoration: none;
        font-size: 30px;
        font-weight: 600;
        color: #1A2747;
    }

    .gallery img {
        border-radius: 10px;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 26px;
    }
}@media (max-width: 1200px) {
    .gallery {
        max-width: 704px;       /* Чуть меньше контейнер */
        column-count: 3;         /* Оставляем 3 колонки */
        column-gap: 18px;
        padding: 30px 10px;
    }

    .logo a {
        text-decoration: none;
        font-size: 36px;
        font-weight: 600;
        color: #1A2747;
    }

    .gallery img {
        border-radius: 12px;
        margin-bottom: 18px;
    }

    h1 {
        font-size: 32px;
        text-align: center;
    }
}

/* 📱 Планшеты (до 768px) */
@media (max-width: 768px) {
    .gallery {
        max-width: 328px;
        column-count: 2;         /* Две колонки */
        column-gap: 14px;
        padding: 25px 10px;
    }

    .gallery img {
        border-radius: 10px;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 26px;
    }
}