:root {
    --primary-from: #4f46e5;
    --primary-to: #06b6d4;
    --radius: 1.25rem;
}
/* ===== БАЗОВЫЕ СТИЛИ ===== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 20% 20%, #dfe9f3 0%, #ffffff 100%);
}

/* ===== ФЛЕКС‑ОБЁРТКА ДЛЯ ВЫРАВНИВАНИЯ ===== */
.page {
    min-height: 100vh;          /* вся страница не меньше высоты окна */
    display: flex;              /* вертикальный флекс‑контейнер */
    flex-direction: column;
}
.main {
    flex: 1;                    /* занимает всё оставшееся между хедером и футером */
    display: flex;              /* центруем наш калькулятор */
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ===== КАРТОЧКА КАЛЬКУЛЯТОРА ===== */
.calc-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    overflow: hidden;
    transition: max-width 0.3s ease;
}

/* ===== ТАБЫ ===== */
.tabs { display: flex; }
.tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.tab-btn {
    padding: 1rem 0;
    font-size: 1rem;
}
.tab-btn.active {
    background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
    color: #fff;
}


/* ===== ФОРМЫ ===== */
.form {
    display: none;
    padding: 1.5rem;
    animation: fadeIn .3s ease;
}
.form.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== ИНПУТЫ ===== */
.input-group { margin-bottom: 1rem; display: flex; flex-direction: column; }
.input-group label {
    margin-bottom: .35rem;
    font-size: 1rem;
}
.input-group input,
.input-group select {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 1px solid #d1d5db;
    border-radius: .75rem;
}
.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-from);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .2);
}
.select-wrapper { position: relative; }

.btn {
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
    border: none;
    border-radius: .75rem;
    cursor: pointer;
    transition: opacity .2s;
}
/* ===== КНОПКИ ===== */
.btn {
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: .75rem;
}
.btn:hover { opacity: .9; }

/* ===== ОШИБКИ ===== */
.error {
    margin-top: .5rem;
    font-size: .875rem;
    color: #dc2626;
    display: none;
}

/* ===== СЛОМАННЫЕ ЭКРАНЫ ===== */
@media (max-width: 480px) {
    .input-group label { font-size: .8rem; }
}

@media (min-width: 768px) {
    .calc-card {
        max-width: 650px;
    }

    .input-group label {
        font-size: 1.1rem;
    }

    .input-group input,
    .input-group select {
        font-size: 1.15rem;
        padding: 1rem 1.5rem;
    }

    .btn {
        font-size: 1.15rem;
        padding: 1rem 1.5rem;
    }
}








.cost-items-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

@media (max-width: 800px) {
    .cost-items-wrapper {
        grid-template-columns: 1fr;
    }
}














.site_block {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    box-sizing: border-box;

    border: 2px solid #132871;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.95;

    z-index: 9999; /* Поверх всего */

    padding-left: 20px;
    padding-right: 20px;
    font-size: 18px;

}
.contact_numbers{
    font-size: 18px;
}
.header_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
}
.header_left {
    display: flex;
    align-items: center;
}

.header_logo {
    height: 40px;
}

.header_nav a {
    margin: 0 35px;
    text-decoration: none;
    font-weight: 500;
    color: #132871;
    transition: color 0.3s;
}

.header_nav a:hover {
    color: #0f1e6e;
}

.header_contacts {
    display: flex;
    align-items: center;
}

.contact_numbers {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
    font-weight: 500;
}

.contact_icons a {
    margin-left: 10px;
}

.contact_icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.burger_menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger_menu div {
    width: 25px;
    height: 3px;
    background-color: #132871;
    border-radius: 2px;
}

.mobile_menu_overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: flex-end;
    align-items: stretch;
    transition: background 0.3s ease;
}

.mobile_menu {
    width: 250px;
    background-color: #132871;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
}

.mobile_menu.show {
    transform: translateX(0);
}

.close_button {
    font-size: 30px;
    cursor: pointer;
    align-self: flex-end;
}

.mobile_nav a {
    display: block;
    margin: 15px 0;
    color: white;
    font-weight: 500;
    text-decoration: none;
    font-size: 18px;
}

.mobile_nav a:hover {
    text-decoration: underline;
}

.mobile_contacts {
    display: none;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .header_nav,
    .header_contacts {
        display: none;
    }
    .header_container{
        width: 60%;
    }

    .burger_menu {
        display: flex;
    }

    .mobile_contacts {
        display: flex;
        font-size: 11px;
    }
}

body.no_scroll {
    overflow: hidden;
    position: relative;
}













































.site_footer {
    background-color: #132871;
    padding: 40px 0 20px 0;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer_container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer_logo img {
    height: 60px;
    margin-bottom: 30px;
}

.footer_top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer_nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer_nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer_nav a:hover {
    opacity: 0.7;
}

.footer_contacts {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.footer_contacts a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact_icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.footer_separator {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 20px 0;
    opacity: 0.3;
}

.footer_bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer_bottom a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    transition: opacity 0.3s ease;
}

.footer_bottom a:hover {
    opacity: 0.7;
}

.footer_company {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
}

/* Мобильная версия */
@media (max-width: 768px) {

    .footer_top {
        flex-direction: column;
        align-items: center;
    }

    .footer_nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 30px;
        margin-bottom: 20px;
    }

    .footer_contacts {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
        margin-bottom: 20px;
    }

    .footer_bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer_bottom a {
        margin-left: 0;
    }
}


















.cost-container {
    width: 90%;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    transition: all 0.3s ease;
}

.cost-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.cost-item:last-of-type {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    padding-top: 20px;
}

.cost-label {
    color: #555;
    max-width: 65%;
}

.cost-value {
    font-weight: 500;
}

.button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.order-button {
    background: linear-gradient(90deg, var(--primary-from), var(--primary-to));
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

@media (max-width: 600px) {
    .cost-container {
        padding: 30px 20px;
    }

    .cost-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cost-value {
        margin-top: 5px;
    }
}























/* Попап-оверлей */
.popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;   /* ✅ заменили 100% на 100vw */
    height: 100vh;  /* ✅ заменили 100% на 100vh */
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    overflow: hidden;

    animation: fadeInOverlay 0.4s ease forwards;
}

/* Анимация появления оверлея */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Контент попапа */
.popup_content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1c1c1e;
}

/* Анимация появления попапа */
@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.form_group {
    margin-bottom: 20px;
    text-align: left;
}

.form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.form_group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.form_group input:focus {
    border-color: #132871;
    box-shadow: 0 0 10px rgba(19, 40, 113, 0.3);
    outline: none;
}

.error_message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Apple-style кнопка */
.popup_submit_button {
    background: #132871;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.popup_submit_button:hover {
    background-color: #0f1e6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.no_scroll {
    overflow: hidden;
}

/* Адаптив */
@media (max-width: 480px) {
    .popup_content {
        padding: 20px 15px;
    }

    .popup_submit_button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Уведомление */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #132871, #555555);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}
.notification.show {
    opacity: 1;
    transform: translateY(0);
}
.notification.error {
    background: linear-gradient(135deg, #ff4b4b, #a00000);
}









