body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4faff;
    color: #222;
}
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99;
    background: #12b3c6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5vw;
    box-shadow: 0 2px 10px #0002;
}
body {
    padding-top: 78px; /* чтобы контент не уходил под шапку, подстрой под высоту header */
}

header .logo img {
    height: 78px; /* или 56px, если хочешь чуть крупнее */
    width: auto;
    display: block;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}
header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
header nav a:hover {
    opacity: 0.8;
}

.messenger-links {
    display: flex;
    flex-direction: row;     /* Горизонтально! */
    gap: 14px;               /* Отступ между иконками */
    align-items: center;
}
.messenger-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.messenger-links svg, .messenger-links img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}
#hero {
    text-align: center;
    background: linear-gradient(90deg, #bdf5fa 60%, #fff 100%);
    padding: 40px 5vw 32px 5vw;
}
.hero-image {
    max-width: 560px;
    width: 100%;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 20px #0001;
}
section {
    margin: 32px auto;
    max-width: 1000px;
    padding: 24px 5vw;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px #0001;
    scroll-margin-top: 90px; /* или высота твоей шапки (header) */
}
#hero {
    box-shadow: none;
    background: linear-gradient(90deg, #bdf5fa 60%, #fff 100%);
}
#advantages {
    text-align: center;
}
.advantages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 28px;
}
.adv-card {
    background: #f4faff;
    border-radius: 13px;
    box-shadow: 0 1px 9px #b2e3ef44;
    width: 220px;
    padding: 30px 14px 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s;
}
.adv-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 3px 22px #b2e3ef66;
}
.adv-icon {
    font-size: 37px;
    margin-bottom: 14px;
}
.adv-title {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 16px;
    color: #12b3c6;
    margin-bottom: 10px;
}
.adv-desc {
    font-size: 14px;
    color: #34495e;
}
#brands .brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    gap: 10px;
}
.brand img {
    height: 54px;
    margin-bottom: 6px;
    background: #f4faff;
    border-radius: 10px;
    padding: 6px;
    border: 1px solid #eef2f3;
    object-fit: contain;
}
.brand span {
    font-size: 14px;
    color: #199bb3;
    font-weight: 500;
}
.show-more {
    background: #e8fbff;
    color: #12b3c6;
    border: none;
    padding: 10px 28px;
    border-radius: 18px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.show-more:hover {
    background: #bdf5fa;
}
.hidden {
    display: none;
}
form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 410px;
    margin: 0 auto;
}
form input, form textarea {
    font-size: 15px;
    padding: 11px;
    border: 1px solid #bfe3e8;
    border-radius: 8px;
    resize: none;
}
form button {
    background: #12b3c6;
    color: #fff;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
form button:hover {
    background: #199bb3;
}
.telegram-contacts {
    margin-top: 12px;
    text-align: left;
}
.telegram-btn {
    background: #229ed9;
    color: #fff;
    padding: 9px 22px;
    border-radius: 7px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}
.telegram-btn:hover {
    background: #1786bc;
}
footer {
    text-align: center;
    padding: 17px 0 7px 0;
    color: #333;
    font-size: 15px;
    background: #e8fbff;
    margin-top: 32px;
    border-radius: 14px 14px 0 0;
}
@media (max-width: 900px) {
    .advantages-list, #brands .brands-list {
        flex-direction: column;
        align-items: center;
    }
    .adv-card, .brand {
        width: 90vw;
        max-width: 320px;
    }
}

section > h2, #hero h1 {
    text-align: center;
}

.contacts-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brands-twoline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.brands-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    gap: 8px;
    transition: transform 0.15s;
}
.brand img {
    height: 56px;
    width: 96px;
    object-fit: contain;
    background: #f4faff;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #eef2f3;
    box-shadow: 0 1px 7px #b2e3ef33;
    transition: box-shadow 0.2s;
}
.brand span {
    font-size: 13px;
    color: #199bb3;
    font-weight: 500;
    text-align: center;
}
.brand img:hover {
    box-shadow: 0 2px 16px #12b3c655;
    background: #e4f7fb;
}
.brands-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}
.brands-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 12px;
}
.hidden {
    display: none;
}
/* Для мобильных: перестроить в столбик */
@media (max-width: 900px) {
    .brands-row {
        flex-direction: column;
        gap: 13px;
        align-items: center;
    }
    .brand {
        width: 100vw;
        max-width: 210px;
    }
}

/* Базовый адаптив для планшетов */
@media (max-width: 900px) {
    body {
        padding-top: 60px;
    }
    header .logo img {
        height: 54px;
    }
    header {
        padding: 8px 2vw;
        flex-direction: column;
        gap: 8px;
    }
    header nav ul {
        gap: 14px;
        font-size: 15px;
    }
    .advantages-list,
    #brands .brands-list {
        flex-direction: column;
        align-items: center;
    }
    .adv-card,
    .brand {
        width: 90vw;
        max-width: 260px;
    }
    section {
        padding: 16px 2vw;
    }
    .brands-row {
        flex-direction: column;
        gap: 13px;
        align-items: center;
    }
    .brand {
        width: 90vw;
        max-width: 200px;
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 600px) {
    body {
        padding-top: 48px;
    }
    header {
        padding: 7px 1vw;
        flex-direction: column;
        gap: 5px;
    }
    header .logo img {
        height: 36px;
    }
    header nav ul {
        gap: 8px;
        font-size: 13px;
    }
    .messenger-links svg, .messenger-links img {
        width: 26px;
        height: 26px;
    }
    .advantages-list {
        gap: 16px;
    }
    .adv-card {
        width: 98vw;
        max-width: 350px;
        padding: 18px 5px 15px 5px;
    }
    .brand {
        width: 98vw;
        max-width: 130px;
        gap: 5px;
    }
    .brand img {
        height: 36px;
        width: 70px;
        padding: 4px;
    }
    #hero {
        padding: 20px 2vw 18px 2vw;
    }
    section {
        padding: 10px 1vw;
        margin: 14px auto;
    }
    .show-more {
        padding: 7px 13px;
        font-size: 13px;
    }
    form {
        max-width: 98vw;
        font-size: 14px;
        gap: 7px;
    }
    form input, form textarea {
        font-size: 13px;
        padding: 8px;
    }
    form button {
        font-size: 14px;
        padding: 10px;
    }
    footer {
        font-size: 13px;
        padding: 10px 0 6px 0;
        margin-top: 16px;
        border-radius: 10px 10px 0 0;
    }
    .brands-row {
        gap: 7px;
    }
    .brands-twoline {
        gap: 7px;
        margin-bottom: 7px;
    }
}

/* Адаптив для очень маленьких экранов */
@media (max-width: 420px) {
    .adv-card,
    .brand {
        max-width: 96vw;
    }
    section {
        padding: 4px 1vw;
        margin: 5px auto;
    }
}
