
/* ========== ОБЩИЕ СТИЛИ ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    padding-top: 0;
    color: var(--nb-text-primary);
}

/* ========== ЯКОРНЫЕ ССЫЛКИ ========== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    pointer-events: none;
}

.modal-content {
    pointer-events: auto;
    width: 100%;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: var(--nb-primary);
    color: var(--nb-text-white);
    border: none;
    padding: 1.2rem 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--nb-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.modal-body .form-check-input:checked {
    background-color: var(--nb-primary);
    border-color: var(--nb-primary);
}

.modal-body .btn-nb-primary {
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-body .btn-nb-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Адаптивность модального окна */
@media (max-width: 576px) {
    .modal-dialog {
        min-height: calc(100vh - 30px);
        margin: 15px;
    }
}

@media (min-width: 1400px) {
    .modal-dialog {
        max-width: 600px;
    }
}

/* ========== ШАПКА (десктоп) ========== */
.header-section {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo a {
    font-size: 24px;
    letter-spacing: 1px;
}

.header-section .logo img {height: 58px;}
.headermob-section .logo img {padding: 3px;height: 46px;}

.slogan {
    font-size: 12px;
    line-height: 1.4;
}
.header-contacts .blink {text-transform: uppercase;}

/* ========== МЕНЮ ========== */
.menu-section {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-menu {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: box-shadow 0.3s ease;
    background-color: var(--nb-primary) !important;
}

#main-menu.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

body.menu-fixed {
    padding-top: 56px;
}

.navbar-nav .nav-item { 
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar-nav .nav-item:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.navbar-nav .menu-link {
    font-weight: 500;
    color: black;
    text-decoration: none;
}

/* ========== МОБИЛЬНАЯ ШАПКА ========== */
.headermob-section {
    z-index: 1030;
    height: 46px;
    position: fixed;
    width: 100%;
}

.headermob {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1030;
}

.headermob .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 28px;
    height: 28px;
    display: block;
}

/* Offcanvas мобильное меню */
.offcanvas {
    max-width: 280px;
    background: linear-gradient(135deg, var(--nb-primary) 0%, #764ba2 100%);
}

#mobileOffcanvas {
    visibility: hidden;
    transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#mobileOffcanvas.show {
    visibility: visible;
}

.offcanvas .nav-link {
    color: white !important;
    font-size: 18px;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas .nav-link:hover {
    background: rgba(255,255,255,0.2);
}

#mobileOffcanvas .list-group-item {
    border-left: none;
    border-right: none;
    padding-left: 1.5rem;
    font-size: 1.1rem;
    border-color: rgba(255,255,255,0.1);
    background: transparent;
    color: white;
}

#mobileOffcanvas .list-group-item i {
    width: 24px;
    text-align: center;
    color: white;
}

#mobileOffcanvas .list-group-item:active {
    background-color: rgba(255,255,255,0.2);
}

/* ========== ПРОМО-БЛОК (десктоп) ========== */
.promo-section .discount-block {
    background: rgba(220, 53, 69, 0.05);
    padding: 12px 20px;
    border-radius: 60px;
    display: inline-block;
}

.promo-section .discount-block .display-4 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--nb-danger);
}

#selltimer {
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.promo-section .advantage-card {
    transition: all 0.3s;
    background: white;
}

.promo-section .advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--nb-primary) !important;
}

/* ========== МОБИЛЬНЫЙ ПРОМО-БЛОК ========== */
.promo-mob-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    animation: fadeIn 0.5s ease-out;
}

.promo-mob-section .mainSlogan {
    margin-top: 50px;
}

.promo-mob-section .display-5 {
    font-size: 2rem;
}

.promo-mob-section .discount-block {
    background: rgba(220, 53, 69, 0.05);
    padding: 15px;
    border-radius: 20px;
}

.promo-mob-section .discount-block .display-4 {
    font-size: 2.2rem;
    color: var(--nb-danger);
}

.promo-mob-section .promo-badge .badge {
    font-size: 0.95rem !important;
    white-space: normal;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.promo-mob-section .advantage-card {
    transition: all 0.3s;
    background: white;
}

.promo-mob-section .advantage-card:active {
    transform: scale(0.98);
    border-color: var(--nb-primary) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== ВИДЫ ОСТЕКЛЕНИЯ ========== */
.typesprofiles-section {
    background-color: #ffffff;
}

.type-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
    transform: translateY(-8px);
}

.type-card .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

.type-card:hover .card {
    box-shadow: 0 20px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--nb-primary) !important;
}

.type-card .card-header {
    background: linear-gradient(135deg, var(--nb-primary), var(--nb-primary-dark)) !important;
    position: relative;
    overflow: hidden;
}

.type-card img {
    transition: transform 0.5s ease;
    max-height: 295px;
    object-fit: contain;
    width: 100%;
}

.type-card:hover img {
    transform: scale(1.03);
}

.type-card .price-block {
    background: rgba(13, 110, 253, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed rgba(13, 110, 253, 0.2);
}

.type-card .btn-outline-nb-primary {
    border-width: 2px;
    padding: 12px;
    font-weight: 600;
}

.type-card .btn-outline-nb-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ========== ПОРТФОЛИО ========== */
.portfolio-section {
    background-color: var(--nb-light-bg);
}

.portfolio-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    border-color: var(--nb-primary);
}

.portfolio-card img {
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card h3 {
    height: 60px;
}

.portfolio-card ul li {
    border-bottom: 1px dashed rgba(0,0,0,0.05);
    padding-bottom: 8px;
}

/* ========== КВИЗ/КАЛЬКУЛЯТОР ========== */
.kviz-section {
    
}

#quizWarningMessage {
    animation: slideInDown 0.3s ease-out;
    border-left: 4px solid var(--nb-warning);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.quiz-card .btn-check:checked + .btn-outline-secondary {
    background-color: var(--nb-primary);
    border-color: var(--nb-primary);
    color: white;
}

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

/* Десктоп: перенос после "скидку" */
@media (min-width: 768px) {
    .split-headline .price-part {
        display: block;
        width: 100%;
    }
}

/* Мобильная: перенос перед плюсом */
@media (max-width: 767px) {
    .split-headline .gift-part {
        display: block;
        width: 100%;
    }
}

/* ========== ПОЧЕМУ МЫ ========== */
.whywe-section {
    background-color: var(--nb-whywe-bg);
}

.whywe-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.whywe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--nb-primary);
}

/* ========== ВИДЕО ========== */
.video-section {
    background-color: var(--nb-light-bg);
}

.video-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1) !important;
}

.video-thumbnail {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-btn .btn {
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--nb-primary);
    border-color: var(--nb-primary);
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========== ЭТАПЫ РАБОТЫ ========== */
.workstages-section {
    background-color: var(--nb-workstages-bg);
}

.workstages-left {
    min-height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.workstages-left:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.workstages-trust {
    padding: 20px;
    background: rgba(255,255,255,0.7);
}

.workstage-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.workstage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--nb-primary);
}

/* ========== КОНСУЛЬТАЦИИ ========== */
.consultations-section {
    background-color: var(--nb-light-bg);
}

.consultations-section .row {
    background-color: white;
    transition: transform 0.3s ease;
}

.consultations-section .row:hover {
    transform: translateY(-5px);
}

.consultations-image {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.promo-image .like-mark,
.consultations-image img {
    transition: transform 0.5s ease;
}
.promo-image:hover .like-mark,
.consultations-image:hover img {
    transform: scale(1.05);
}

.consultations-form .form-control:focus,
.consultations-form .form-control-lg:focus {
    border-color: var(--nb-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.consultations-form .btn-nb-primary {
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.consultations-form .btn-nb-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

/* ========== ПОДАРКИ ========== */
.present-section {
    background-color: var(--nb-light-bg);
}

.present-card {
    transition: all 0.3s ease;
}

.present-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.present-header.bg-nb-primary {
    background-color: var(--nb-primary) !important;
}

.present-header.bg-nb-success {
    background-color: var(--nb-success) !important;
}

.present-header.bg-nb-warning {
    background-color: var(--nb-warning) !important;
}

/* ========== ПОДВАЛ ========== */
.footer-section {
    background-color: #1a1e2b;
    position: relative;
    z-index: 1;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nb-primary), #764ba2);
    z-index: 2;
}

.footer-section a {
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--nb-primary) !important;
    transform: translateX(5px);
}

.footer-section .fa-telegram {
    color: #0088cc !important;
}

.footer-section .fa-phone {
    color: var(--nb-primary) !important;
}

.footer-section .h3:hover {
    color: var(--nb-primary) !important;
    transform: scale(1.02);
}

/* ========== КНОПКИ (общие стили) ========== */
.btn-nb-primary {
    background: var(--nb-primary);
    border: none;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-nb-primary:hover {
    background: var(--nb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

.btn-outline-nb-primary {

    transition: all 0.3s;
}

.btn-outline-nb-primary:hover {

    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 991px) {
    .menu-section {
        display: none;
    }
    
    /* Скрываем offcanvas на десктопе */
    .offcanvas {


    }
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 70px;
    }
    
    body.menu-fixed {
        padding-top: 50px;
    }
    
    .logo a {
        font-size: 20px;
    }

    .kviz-section {background-image: none;}
    .quiz-img {height: 150px;}
    
    .portfolio-card h3 {
        height: auto;
    }
    
    .portfolio-card ul li:first-child {
        height: auto;
    }
    
    .whywe-section .display-5 {
        font-size: 1.8rem;
    }
    
    .footer-section .border-start-md {
        border-left: none !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .discount-block .display-4 {
        font-size: 1.8rem;
    }
    
    .promo-badge .badge {
        font-size: 0.85rem !important;
        white-space: normal;
        line-height: 1.4;
    }
    
    .consultations-image {
        min-height: 250px;
    }
}