body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    margin: 0;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: 0.03em;
}

h1, h2 {
    background-color: #223982;
    border-radius: 20px;
    color: white !important;
    text-align: center;
}

/* Сброс дефолтных margin для абзацев в хиро, чтобы не раздувало блок */
.slider-title,
.slider-desc p {
    margin: 0;
}

.__ymDebuggerOpener {
    display: none;
}

.__ymContent,
.__ymHidden {
    display: none;
}

.__ymIframe {
    display: none;
}

/* ====== Шапка ====== */

.upper_menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    box-sizing: border-box;
}

.secound_layer {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.logo_wrap {
    flex-shrink: 0;
}

.logo_img {
    height: 64px;
    width: auto;
    max-width: 200px;
}

.vk_link {
    max-width: 50px;
    max-height: 50px;
    overflow: hidden;
}

.whatsapp_link {
    max-width: 50px;
    max-height: 50px;
    overflow: hidden;
}

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

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

.upper_menu_buttons {
    display: flex;
    gap: 8px;
    flex: 1;
}

.upper_menu_btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 16px;
    color: #1e40af;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upper_menu_btn:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
}

.upper_menu_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.upper_menu_btn:hover::before {
    left: 100%;
}

.upper_menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    font-family: sans-serif;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.contact_block {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.whatsapp_link a{
    max-width: 100%;
    padding: 10px;
}

.vk_link a{
    max-width: 100%;
    padding: 10px;
}

.cellphone {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    margin: 10px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cellphone a {
    color: #1e40af;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.cellphone a:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.whatsapp_link img:hover,
.vk_link img:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

/* ====== Адаптивность шапки ====== */
@media (max-width: 1024px) {
    .upper_menu {
        padding: 12px 24px;
        flex-direction: column;
        gap: 16px;
    }

    .secound_layer {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .upper_menu_buttons {
        order: 3;
    }

    .contact_block {
        order: 2;
    }
}

@media (max-width: 768px) {
    .upper_menu {
        padding: 10px 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .secound_layer {
        gap: 12px;
    }

    .logo_img {
        height: 52px;
        max-width: 160px;
    }

    .upper_menu_buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .upper_menu_btn {
        padding: 10px 16px;
        font-size: 14px;
        flex: 1 1 45%;
        justify-content: center;
    }

    .contact_block {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cellphone {
        margin: 0;
        font-size: 18px;
    }

    .cellphone a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .upper_menu {
        padding: 8px 10px;
        gap: 10px;
    }

    .upper_menu_buttons {
        flex-direction: column;
    }

    .upper_menu_btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .contact_block {
        gap: 8px;
    }
}

/* ====== Кнопка бургера ====== */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(30, 64, 175, 0.25);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #1e40af;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger_open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger_open span:nth-child(2) {
    opacity: 0;
}

.burger_open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .upper_menu {
        padding: 10px 16px;
        gap: 10px;
    }

    .secound_layer {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .upper_menu {
        padding: 8px 12px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .burger {
        display: flex;
    }

    .secound_layer {
        display: none;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        margin-top: 8px;
    }

    .upper_menu_open {
        display: flex !important;
    }

    .upper_menu_buttons {
        flex-direction: column;
        width: 100%;
    }

    .upper_menu_btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .contact_block {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cellphone {
        margin: 0;
        font-size: 18px;
    }

    .cellphone a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .upper_menu {
        padding: 6px 10px;
    }

    .upper_menu_buttons {
        gap: 6px;
    }
}

/* ====== Хиро-слайдер ====== */

.slider-main {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    padding: 32px 30px;
    border-radius: 16px;
    background-image: url("../banner_images/banner-image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

/* левый столбец */
.slider-left {
    flex: 1 1 0;
    display: flex;
}

/* правый столбец с additional_block */
.slider-right {
    flex: 0 0 680px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    align-self: center;
}

/* стили самих additional_block */
.additional_block {
    max-width: 600px;
    width: 100%;
    background: #223982;
    border-radius: 20px;
    padding: 8px 16px;
    text-align: center;
    box-sizing: border-box;
}

.additional_block p {
    margin: 0;
    font-weight: 500;
    color: #ffffff;
}

.additional_btn {
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%) !important;
    border-radius: 20px;
    padding: 8px 16px;
    text-align: center;
    box-sizing: border-box;
}

.additional_btn:hover {
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    transform: translateY(-2px);
}

.additional_btn {
    color: white;
    text-decoration: none;
}

.slider-main h1 {
    background: none !important;
}

.slider-info {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(15, 23, 42, 0.60);
    margin: 0;
    justify-content: center;
    align-items: center;
    max-height: 420px;
    position: relative;
    padding: 32px 36px;
    border-radius: 16px;
    box-sizing: border-box;
}

.slider-img {
    position: absolute;
    right: 0;
    display: none;
}

.slider-img img {
    max-height: 365px;
}

.slider-title {
    display: block;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-align: left;
}

/* перенос НА ЗАКАЗ на новую строку через <br>, p не используем внутри h1 */
.slider-desc {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(249, 250, 251, 0.95);
    letter-spacing: 0.02em;
    text-align: left;
    max-width: 540px;
}

.slider-desc p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.slider-btn {
    margin-top: 4px;
}

.slider-btn {
    font-size: 12px;
    width: 300px;
    height: 200px;
    background-color: #223982;
    border-radius: 20px;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
}

.slider-btn a {
    color: white;
    text-decoration: none;
}

/* Адаптивность слайдера */
@media (max-width: 1024px) {
    .slider-main {
        width: 100%;
        max-width: 1110px;
        margin: 0 16px;
        padding: 24px 20px;
    }

    .slider-info {
        width: 100%;
        max-height: none;
    }

    .slider-right {
        flex: 0 0 240px;
    }
}

@media (max-width: 900px) {
    .slider-main {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-left,
    .slider-right {
        width: 100%;
    }

    .slider-right {
        flex: 0 0 auto;
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .slider-main {
        margin: 0 12px;
        padding: 20px 16px;
        border-radius: 12px;
        box-shadow: 0 1px 8px rgba(0,0,0,0.12);
    }

    .slider-info {
        padding: 20px 18px;
        gap: 12px;
    }

    .slider-title {
        font-size: 24px;
        letter-spacing: 0.05em;
    }

    .slider-desc {
        font-size: 14px;
        max-width: 100%;
    }

    .slider-btn {
        margin-top: 8px;
    }

    .slider-right {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .slider-main {
        margin: 0 8px;
        padding: 16px 12px;
    }

    .slider-info {
        padding: 16px 14px;
    }

    .slider-title {
        font-size: 20px;
    }

    .slider-desc {
        font-size: 13px;
    }

    .slider-btn {
        width: 100%;
    }
}

/* ====== Блок преимуществ ====== */

.Advantages {
    width: 1110px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.adv_block {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 0 auto;
}

.adv_block_item {
    display: flex;
    flex-direction: column;
    width: 240px;
    height: 140px;
    border: 3px solid gray;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 5px;
    gap: 10px;
    color: #243b83;
    text-decoration: none;
}

.adv_block_item img {
    max-width: 60px;
}

.advant_title {
    padding-left: 40px;
}

/* Адаптивность преимуществ */
@media (max-width: 1024px) {
    .Advantages {
        width: 100%;
        margin: 0 16px;
    }

    .adv_block {
        flex-wrap: wrap;
        justify-content: center;
    }

    .adv_block_item {
        flex: 1 1 45%;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .Advantages {
        margin: 0 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .advant_title {
        padding-left: 0;
        text-align: center;
        margin-bottom: 12px;
    }

    .adv_block_item {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }
}

/* ====== Портфолио ====== */

.portfolio {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 1110px;
    margin: 0 auto;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 16px;
    box-sizing: border-box;
}

.portfolio h1 {
    padding-left: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 20px;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
    border: linear-gradient(135deg, #3b82f6, #1d4ed8) 2px;
}

.portfolio a {
    width: 200px;
    height: 37px;
    background-color: #223982;
    border-radius: 10px;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto;
    color: white;
    text-decoration: none;
}

a:hover {
    transform: scale(0.9);
    transition: transform 0.2s ease-in-out;
}

.adv_block_item:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease-in-out;
}

.load-more_href {
    margin-bottom: 15px !important;
}

/* Адаптивность портфолио */
@media (max-width: 1200px) {
    .portfolio {
        width: 100%;
        margin: 0 16px;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio h1 {
        padding-left: 0;
        text-align: center;
        margin: 16px 0;
    }
}

@media (max-width: 600px) {
    .portfolio {
        margin: 0 12px;
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 12px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 200px;
    }

    .portfolio a {
        width: 100%;
    }
}

/* ====== Карта ====== */

.y-map {
    position: relative;
    left: 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

/* ====== Контакты ====== */

.number_block {
    display: flex;
    flex-direction: row;
}

.main_contact_class {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
    width: 1110px;
    height: 550px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    box-sizing: border-box;
}

.contact_us_block {
    width: 630px;
}

.bigger_title {
    font-size: 82px;
    line-height: 0.9;
    font-weight: 450;
}

.info_desc {
    font-size: 20px;
    line-height: 0.9;
    font-weight: 300;
}

.info_coll {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10%;
    padding-bottom: 10%;
}

.contact_info_data {
    display: flex;
    flex-direction: row;
}

.data_item {
    display: flex;
    flex-direction: column;
    margin-right: 2%;
}

.callback_us {
    margin-top: 5%;
    display: flex;
    text-align: center;
    justify-content: center !important;
    align-items: center !important;
}

.input_field {
    width: 80%;
}

/* Адаптивность контактов */
@media (max-width: 1200px) {
    .main_contact_class {
        width: 100%;
        margin: 0 16px;
    }
}

@media (max-width: 900px) {
    .main_contact_class {
        height: auto;
        grid-template-columns: 1fr 1fr;
        padding-left: 20px;
        padding-right: 20px;
        row-gap: 20px;
    }

    .contact_us_block {
        width: 100%;
    }

    .bigger_title {
        font-size: 56px;
    }

    .info_desc {
        font-size: 18px;
    }

    .contact_info_data {
        flex-direction: column;
        gap: 8px;
    }

    .data_item {
        margin-right: 0;
    }

    .input_field {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .main_contact_class {
        margin: 0 12px;
        padding-left: 16px;
        padding-right: 16px;
        grid-template-columns: 1fr;
    }

    .info_coll {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .bigger_title {
        font-size: 42px;
    }

    .info_desc {
        font-size: 16px;
    }

    .callback_us {
        margin-top: 16px;
    }
}

/* === Универсальный футер сайта === */

.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 32px 20px 18px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    align-items: flex-start;
}

.footer-column h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 10px;
}

.footer-column p,
.footer-column li {
    font-size: 13px;
    color: #e5e7eb;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column a {
    color: #bfdbfe;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-contacts li + li {
    margin-top: 3px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 24px 16px 14px 16px;
    }

    .footer-bottom {
        font-size: 10px;
        gap: 10px;
    }
}