/* Общие стили */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('Images/Block1.jpg') no-repeat center center;
    background-size: cover;
}

.vh-100 {
    height: 100vh;
}

.divider {
    width: 100px;
    height: 3px;
    background: #0d6efd;
}

/* Очень высокие экраны */
@media (min-height: 1200px) {
    .hero-section {
        min-height: 800px;
    }
}

/* Секция услуг */
.services-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.2);
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.service-card ul {
    list-style-type: none;
}

.service-card li {
    padding: 5px 0;
    position: relative;
}

.service-card li:before {
    content: "✓";
    color: #0d6efd;
    font-weight: bold;
    position: absolute;
    left: -1.2em;
}

/* Анимация появления */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

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

/* Секция цен */
.services-prices-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
}

.service-category {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-category:nth-child(1) { animation-delay: 0.1s; }
.service-category:nth-child(2) { animation-delay: 0.3s; }
.service-category:nth-child(3) { animation-delay: 0.5s; }

.service-item {
    padding: 1.5rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.service-item:hover {
    transform: translateX(5px);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.1);
}

.service-item h4 {
    color: #212529;
    transition: color 0.3s ease;
}

.service-item:hover h4 {
    color: #0d6efd;
}

.badge {
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.note-box {
    border-left: 4px solid #0d6efd;
    animation: fadeIn 0.8s ease 0.7s forwards;
    opacity: 0;
}

/* Секция отзывов */
.reviews-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1);
}

.stars svg,
.stars img {
    margin: 0 1px;
}

.reviews-widget-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.yandex-widget-wrapper {
    position: relative;
}

.yandex-widget-wrapper iframe {
    min-height: 600px;
}

.review-platform {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.review-platform:hover {
    transform: translateY(-3px);
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.widget-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Секция контактов */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
}

.contact-info {
    position: relative;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h5 {
    font-size: 1.1rem;
}

.contact-details a,
.contact-details p {
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form-wrapper {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #0d6efd;
    background: white;
    padding: 0.5rem 0.75rem;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.social-link {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Футер */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.footer-link {
    transition: all 0.3s ease;
    opacity: 0.85;
}

.footer-link:hover {
    color: #0d6efd !important;
    opacity: 1;
    transform: translateX(3px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.footer ul li a {
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    padding-left: 5px;
}

/* Анимации */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимации футера */
.footer-brand {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer .col-lg-2 {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.footer .col-lg-3:first-of-type {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.footer .col-lg-3:last-of-type {
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* Проверка загрузки виджета */
@keyframes widgetLoadCheck {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.yandex-widget-wrapper iframe {
    animation: widgetLoadCheck 0.5s ease;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    transition: all 0.3s ease;
}

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

/* Адаптивность */
@media (max-width: 992px) {
    .services-section,
    .services-prices-section,
    .reviews-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 30px !important;
    }
    
    .yandex-widget-wrapper iframe {
        min-height: 500px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .reviews-widget-wrapper {
        margin-top: 2rem;
    }
    
    .yandex-widget-wrapper iframe {
        min-height: 400px;
    }
    
    .review-platform {
        width: 100%;
        justify-content: center;
    }
    
    .contact-section {
        min-height: auto;
        padding: 50px 0;
    }
    
    .contact-form-wrapper {
        padding: 25px !important;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer ul li {
        justify-content: center !important;
        text-align: center;
    }
    
    .footer ul li div {
        text-align: center;
    }
    
    .border-top .d-flex {
        justify-content: center !important;
    }
    
    .service-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .badge {
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    .service-item:hover {
        transform: translateX(0);
        transform: translateY(-3px);
    }
    
    .text-center .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .text-center .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .services-section,
    .services-prices-section,
    .reviews-section {
        min-height: auto;
    }
    
    .yandex-widget-wrapper {
        height: 500px;
    }
    
    .yandex-widget-wrapper iframe {
        min-height: 450px;
    }
    
    .service-category h3 {
        font-size: 1.5rem !important;
    }
    
    .service-category h3 img {
        width: 24px;
        height: 24px;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
}