/* ===== ПЛАВАЮЩАЯ КНОПКА КАЛЬКУЛЯТОРА ===== */
.floating-calc-btn {
    position: fixed;
    left: 25px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 25px rgba(26, 41, 128, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-calc-btn:hover {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 8px 35px rgba(26, 41, 128, 0.7);
    background: linear-gradient(135deg, #26d0ce, #1a2980);
}

.floating-calc-btn i {
    font-size: 30px;
    transition: transform 0.3s ease;
}

.floating-calc-btn:hover i {
    transform: rotate(15deg);
}

/* ===== ВСПЛЫВАЮЩАЯ ПОДСКАЗКА ===== */
.calc-tooltip {
    position: absolute;
    left: 78px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a2980;
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.calc-tooltip::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: #1a2980;
}

.floating-calc-btn:hover .calc-tooltip,
.floating-calc-btn:focus .calc-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== АНИМАЦИЯ ПУЛЬСАЦИИ ===== */
@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-calc-btn {
    animation: floatPulse 3s ease-in-out infinite;
}

.floating-calc-btn:hover {
    animation-play-state: paused;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .floating-calc-btn {
        width: 54px;
        height: 54px;
        left: 18px;
        bottom: 20px;
    }
    
    .floating-calc-btn i {
        font-size: 24px;
    }
    
    .calc-tooltip {
        font-size: 13px;
        padding: 6px 14px;
        left: 66px;
    }
}

@media (max-width: 480px) {
    .floating-calc-btn {
        width: 48px;
        height: 48px;
        left: 14px;
        bottom: 20px;
    }
    
    .floating-calc-btn i {
        font-size: 20px;
    }
    
    .calc-tooltip {
        font-size: 11px;
        padding: 4px 10px;
        left: 60px;
    }
    
    .calc-tooltip::before {
        left: -8px;
        border-width: 8px;
    }
}



/* Стили для модального окна */
.modal-error-border {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.modal-field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

.modal-field-error::before {
    content: "❌ ";
}
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный фон */
    backdrop-filter: blur(5px); /* Эффект размытия фона */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid #1a2980;
}

/* Кнопка закрытия (крестик) */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #1a2980;
    transform: rotate(90deg);
}

/* Шапка модального окна */
.modal-header h2 {
    color: #1a2980;
    font-size: 1.8rem;
    margin-bottom: 5px;
    margin-top: 0;
}

.modal-header p {
    color: #64748b;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Стили для формы */
.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a2980;
    font-size: 0.95rem;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #26d0ce;
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.2);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Чекбокс */
.modal-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.modal-form .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #26d0ce;
}

.modal-form .checkbox-group label {
    font-weight: 400;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Кнопка отправки */
.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(26, 41, 128, 0.3);
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 41, 128, 0.4);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-subtext {
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Сообщения об ошибках */
.modal-form .error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 640px) {
    .modal-content {
        padding: 20px;
        width: 95%;
        border-radius: 15px;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-close-btn {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }

    .modal-form input[type="text"],
    .modal-form input[type="tel"],
    .modal-form select,
    .modal-form textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .modal-submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}


/* Кнопка "Отправить заявку" (оставляем как есть) */
.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(26, 41, 128, 0.3);
    text-align: center;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 41, 128, 0.4);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Кнопка "Перейти в калькулятор" */
.modal-calc-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: white;
    color: #1a2980;
    border: 2px solid #1a2980;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.modal-calc-btn:hover {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 41, 128, 0.15);
}

.modal-calc-btn:active {
    transform: translateY(0);
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
    .modal-buttons {
        gap: 10px;
    }
    
    .modal-submit-btn,
    .modal-calc-btn {
        padding: 12px;
        font-size: 1rem;
    }
}



header {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
/* Затемнение поверх GIF */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
    z-index: 2;
}

/* Контент поверх фона */
.header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

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

/* Анимированная стрелка вниз */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}
.scroll-down i {
    font-size: 2rem;
    color: #00d4ff;
}



.services-section {
    padding: 100px 0;
    background: white;
}
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #1a2980;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

.container-servic {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.services-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
}

.service-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px 30px;
    height: 400px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 290px;
    align-items: center;
}
.service-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: #1a2980;
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    box-shadow: 0 20px 40px rgba(38, 208, 206, 0.15);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    position: relative;
}

.icon-3d {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(38, 208, 206, 0.3));
    transition: all 0.5s ease;
}

.service-card:hover .icon-3d {
    transform: rotateY(20deg) scale(1.1);
}

.service-title {
    font-size: 1.6rem;
    color: #1a2980;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-desc {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}


/* About team section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    display: flex;
    justify-content: center;
}

.team-title {
    text-align: center;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
}
.container-team {
    max-width: 1000px;
}
.team-subtitle {
    text-align: center;
    color: #e0f2fe;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1000px;
}

.team-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-photo img {
    transform: scale(1.1);
}

.team-name {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.team-role {
    color: #26d0ce;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-bio {
    color: #e0f2fe;
    font-size: 1rem;
    line-height: 1.6;
}
.blog-section {
    text-align: center;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.blog-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-text {
    color: #e0f2fe;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}
.header-btn {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

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

.header-btn:hover::before {
    left: 100%;
}

.header-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: white;
}


/* Reviews section */
.reviews-section {
    padding: 100px 0;
    background: white;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.review-form-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #e2e8f0;
}

.reviews-list-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    border: 2px solid #e2e8f0;
    max-height: 600px;
    overflow-y: auto;
}

.form-title, .reviews-title {
    font-size: 1.8rem;
    color: #1a2980;
    margin-bottom: 25px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a2980;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1a2980;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #26d0ce;
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.1);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.rating-stars {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.star {
    font-size: 2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active {
    color: #ffd700;
}

.submit-btn {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    border: none;
    padding: 16px 35px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 41, 128, 0.2);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-size: 1.2rem;
    color: #1a2980;
    font-weight: 700;
}

.review-date {
    color: #64748b;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffd700;
    margin-bottom: 10px;
}

.review-text {
    color: #64748b;
    line-height: 1.6;
}
















@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .header-content img {
        width: 900px;
    }
    /* Responsive */
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .logo-large {
        font-size: 6rem;
    }
    
    .site-title {
        font-size: 3rem;
    }

    
}


@media (max-width: 768px) {
    .team-grid {
        display: flex;
        flex-direction: column;
    }
    .header-content img {
        width: 600px;
    }
    /* Responsive */
    .logo-large {
        font-size: 4.5rem;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .site-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title, .team-title {
        font-size: 2.2rem;
    }
    
    .services-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .header-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}



@media (max-width: 480px) {
    .header-content img {
        width: 400px;
    }
    .logo-large {
        font-size: 3.5rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .service-card, .team-card, .review-form-container, .reviews-list-container {
        padding: 30px 20px;
    }
}