/* Сброс и базовые стили */
*,
*::before,
*::after {
    box-sizing: border-box;
}
/* ========== СБРОС И БАЗА ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.main-nav {
    display: flex
;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ========== ШАПКА ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    color: #fff;
    padding: 10px 0;
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* ========== НАВИГАЦИЯ (ДЕСКТОП) ========== */
.main-nav {
    display: flex; /* Показываем меню на десктопе */
}
.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;

}
.main-nav a:hover {
    color: #1d7a85;
}

/* ========== БУРГЕР-МЕНЮ ========== */
.burger {
    display: none; /* Прячем бургер на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
}
.burger span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 792px) {
    /* Прячем горизонтальную навигацию */
    .main-nav {
        position: fixed;
        padding: 80px 20px;
        display: none; /* показываем в бургер-меню */
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .burger {
        display: flex; /* Показываем бургер */
    }
}

/* ========== ОВЕРЛЕЙ ========== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 900;
}
.overlay.active {
    display: block;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: #259da8;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover,
a:focus {
    color: #1d7a85;
    text-decoration: underline;
    outline: none;
}

button {
    cursor: pointer;
    background-color: #259da8;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75em 1.75em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    user-select: none;
}
button:hover,
button:focus {
    background-color: #1d7a85;
    outline: none;
}
button:focus-visible {
    outline: 3px solid #176970;
    outline-offset: 2px;
}

 h1, h2, h3, h4 {
     margin-top: 0;
     font-weight: 700;
     color: #ffffff;
     line-height: 1.2;
 }

/* Контейнер */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

nav {
    display: block;
    unicode-bidi: isolate;
}

/* Главный экран */
header.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-image:
            linear-gradient(to bottom, rgba(9, 47, 51, 0.8), rgba(8, 29, 31, 0.7)),
            url('../images/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Для лучших эффектов на мобильных */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}

header.hero .content {
    max-width: 700px;
    z-index: 2;
}

header.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 15px;
    text-shadow: 0 3px 8px rgba(0,0,0,0.8);
}

header.hero p.lead {
    font-size: 1.3rem;
    margin: 10px 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

header.hero img {
    width: 120px;
    height: 120px;
    margin: 0 auto ;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
    display: block;
}

header.hero button,.hero > div > a.catalog_but {
    text-decoration: none;
    font-size: 1.25rem;
    padding: 1em 2.5em;
    border-radius: 6px;
    display: inline-block;
}

header.hero button{
    background-color: #1d7a85;
}

.hero > div > a.catalog_but{
    outline: 1px solid #1d7a85;
    transition: outline-color 0.3s ease; /* анимация появления */
}
.hero > div > a.catalog_but:hover{

    outline: 1px solid #acf5ff;
}

.hero > div > a{
    color: inherit !important;
}


header.hero button:hover {
    background-color: #269caa;
}

/* Бургер-меню */
.burger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 3001;
}
.burger span {
    height: 4px;
    background-color: #222;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.burger:focus-visible {
    outline: 3px solid #176970;
    outline-offset: 3px;
}

/* Оверлей */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    transition: opacity 0.3s ease;
}
.overlay.active {
    display: block;
    opacity: 1;
}

img{
    border-radius: 15px;
}

/* Партнер */
section.partner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
    background-color: #f8f8f8;
    flex-wrap: wrap;
    justify-content: center;
}
section.partner .image {
    flex: 1 1 400px;
    max-width: 600px;
}

section.partner .text {

    flex: 1 1 300px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
section.partner h2 {
    font-size: 2.3rem;
    color: #0b3d44;
    margin-bottom: 12px;
}
section.partner p.lead {
    font-weight: 700;
    margin-bottom: 14px;
    color: #333;
}
section.partner .color-bar {
    width: 80px;
    height: 4px;
    background-color: #259da8;

    border-radius: 2px;
    margin: 0 auto;
}
section.partner p.desc {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}
section.partner div.text button {
    font-size: 1.1rem;
    padding: 0.75em 2.25em;
    border-radius: 5px;
    background-color: #1d7a85;
    color: #ffffff;
}
section.partner div.text button:hover {
    background-color: #279fae;
}

section.partner div.image img {
    width: 100%;
    height: 500px;
    object-fit: cover;  /* заполняет контейнер, обрезая лишнее */

}
/* Каталог */
section.catalog-preview {

    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}
section.catalog-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0b3d44;
}

article img {
    width: 150px;
    align-content: center;
    margin: auto;
}
section.catalog-preview .items {
    align-content: center;

    display: grid;

    grid-template-columns: repeat(3, 1fr); /* 3 колонки равной ширины */
    gap: 20px; /* отступы между элементами */

    margin-bottom: 40px;
    max-width: 100%;
    justify-items: center;
}
section.catalog-preview .item img{
    margin-bottom: 10px;
}
section.catalog-preview .item {
    text-align: center;
    /*background-color: #f0f8fa;*/
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgb(0 0 0 / 0.1);
    flex: 1 1 260px;
    max-width: 360px;

    transition: transform 0.3s ease;
    cursor: default;
}
section.catalog-preview .item:hover,
section.catalog-preview .item:focus {
    transform: translateY(-5px);
    outline: none;
}
section.catalog-preview .item svg {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    fill: #259da8;
}
section.catalog-preview .item h3 {
    margin: 0 0 12px;
    font-weight: 700;
    color: #259da8;
    font-size: 1.3rem;
}
section.catalog-preview .item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
}
section.catalog-preview button {
    font-size: 1.2rem;
    padding: 1em 3em;
    border-radius: 6px;
    background-color: #1d7a85 ;
    color: #ffffff;
}
section.catalog-preview button:hover {
    background-color: #269caa;
}

/* Почему выбирают нас */
section.why-choose {
    background-color: #f8f8f8;
    padding: 60px 20px;
}
section.why-choose h2 {
    font-size: 2.5rem;
    margin-bottom: 45px;
    color: #0b3d44;
    text-align: center;
}

section.why-choose .items div.desc_why-choose {
    margin-left: 15px;

}
section.why-choose .items {
    justify-items: center;  /* центрирует сетку */
}

section.why-choose .item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.1);
    flex: 1 1 340px;
    width: 90%;
    padding: 30px 25px;
    text-align: center;
    cursor: default;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}



section.why-choose .item:hover,
section.why-choose .item:focus {
    transform: translateY(-5px);
    outline: none;
}
section.why-choose .item svg {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
    fill: #259da8;
}
section.why-choose .item h3 {
    margin: 0 0 15px;
    color: #259da8;
    font-size: 1.4rem;
}
section.why-choose .item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

/* Большие изображения с описанием */
section.big-images {
    padding: 60px 20px;
}

article.card{
    display: flex;
}


section.big-images .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    flex-direction: column;

}
section.big-images .card {
    position: relative;
    flex: 1 1 320px;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: white;
    cursor: default;
    transition: transform 0.3s ease;
}



section.big-images .card:hover,
section.big-images .card:focus {
    transform: translateY(-8px);
    outline: none;
}
section.big-images .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
    vertical-align: middle;
}
section.big-images .card:hover img,
section.big-images .card:focus img {
    filter: brightness(0.85);
}
section.big-images .card .info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}
section.big-images .card .info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 3px 7px rgba(0,0,0,0.6);
}
section.big-images .card .info p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Обратная связь */
section.contact-form h2,
section.contact-form p{
    color: #353535;


}
section.contact-form {
    background-color: #dadada;
    color: white;
    padding: 60px 20px;
    text-align: center;
}
section.contact-form h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}
section.contact-form p.lead {
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.5;
}
form.contact-form__form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
form.contact-form__form input,
form.contact-form__form textarea {
    font-size: 1rem;
    padding: 14px 18px;
    border-radius: 6px;
    border: none;
    resize: vertical;
    font-family: 'Roboto', sans-serif;
}
form.contact-form__form input:focus,
form.contact-form__form textarea:focus {
    outline: 3px solid #176970;
    outline-offset: 2px;
    background: #e0f2f5;
    color: #222;
}
form.contact-form__form textarea {
    min-height: 110px;
    line-height: 1.5;
}
form.contact-form__form button {
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1em 2.5em;
    border-radius: 6px;
    background-color: #1d7a85;
}
form.contact-form__form button:hover {
    background-color: #269caa;
}


.container_bacground_main{

    /*background: linear-gradient(to bottom, #0a1617, #1a7483)*/
}

/* Модалка */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 15px;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: white;
    color: #222;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 30px 30px 40px;
    position: relative;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
.modal-content h3 {

    text-align: center;
    color: black;
    margin-top: 0;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover,
.modal-close:focus {
    color: #259da8;
    outline: none;
}
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.modal-content input,
.modal-content textarea {
    font-size: 1rem;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
    font-family: 'Roboto', sans-serif;
}
.modal-content input:focus,
.modal-content textarea:focus {
    outline: 3px solid #176970;
    outline-offset: 2px;
    border-color: #176970;
}
.modal-content textarea {
    min-height: 110px;
    line-height: 1.4;
}

.modal-content button.modal-close{
    font-weight: 700;
    font-size: 15px;
    padding: 6px 10px;
}

.modal-content button {
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1em 2.5em;
    border-radius: 6px;
    background-color: #259da8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-content button:hover,
.modal-content button:focus {
    background-color: #1d7a85;
    box-shadow: 0 6px 12px rgba(29, 122, 133, 0.6);
    outline: none;
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* Отображаем модалку */
.modal.show {
    display: block;
    opacity: 1;
}

/* Контент модального окна */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 480px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFadeIn 0.3s ease forwards;
}

/* Анимация появления */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка закрытия модалки */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover,
.modal-close:focus {
    color: #259da8;
    outline: none;
}

/* Картинка с градиентом */
.main-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.main-photo img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.3s ease;
}

.main-photo::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to top, rgba(37,157,168,0.8), transparent);
    pointer-events: none;
}

/* При наведении легкое увеличение */
.main-photo:hover img {
    transform: scale(1.05);
}






@media (max-width: 948px) {
    section.catalog-preview div.items{
        grid-template-columns: repeat(2, 1fr);
    }

    section.catalog-preview .item{
        max-width: 500px;
    }

}


@media (max-width: 792px) {
    section.catalog-preview div.items{
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }
    section.catalog-preview .item{
        max-width: 600px;
    }
    .modal-content {
        margin: 10% 1rem;
        max-width: 95%;
        padding: 1rem;
    }

    .burger{
        display: flex;
    }

    section.partner{
        display: flex;
        justify-content: center;
    }

    section div.text {
        text-align: center;
    }

    section.partner  div.color-bar{
        margin: auto;
    }

    section.partner div.image {
        width: 300px;       /* максимальная ширина контейнера */
        height: 500px;      /* максимальная высота контейнера */
        overflow: hidden;   /* скрываем выходящее за рамки */
        border-radius: 12px; /* опционально скругляем */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    section.partner div.image img {
        width: 100%;
        height: 100%;
        object-fit: cover;  /* заполняет контейнер, обрезая лишнее */

    }
}


@media (max-width: 648px) {
    section.why-choose .item{

        flex-direction: column;
    }


}
/* Адаптивность */
@media (max-width: 1024px) {
    header.hero h1 {
        font-size: 38px; /* 2.4rem ≈ 38px */
    }
    header.hero p.lead {
        font-size: 16px; /* 1rem = 16px */
    }
    header.hero button,
    .hero > div > a.catalog_but{
        font-size: 16px;
        padding: 12px 28px; /* вместо em — px */
    }
}

@media (max-width: 768px) {
    header.hero {
        height: 75vh;
    }
    header.hero h1 {
        font-size: 32px; /* 2rem ≈ 32px */
        line-height: 1.3;
    }
    header.hero p.lead {
        font-size: 15px; /* 0.95rem ≈ 15px */
        line-height: 1.4;
    }
    header.hero button,
    .hero > div > a.catalog_but{
        font-size: 15px;
        padding: 11px 25px;
    }
    header.hero img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    header.hero h1 {
        font-size: 26px; /* 1.6rem ≈ 26px */
        line-height: 1.2;
    }
    header.hero p.lead {
        font-size: 14px; /* 0.85rem ≈ 14px */
    }
    header.hero button,
    .hero > div > a.catalog_but{
        font-size: 16px;
        padding: 10px 22px;
    }
    header.hero img {
        width: 60px;
        height: 60px;
    }
}


/* === СТИЛИ ШАПКИ === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    color: #fff;
    padding: 10px 0;
    transition: background 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
}

/* Для мобильных */
@media (max-width: 792px) {
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .burger {
        display: flex;
    }
}

/* Оверлей */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 900;
}
.overlay.active {
    display: block;
}



