/* ============================================
   HERO SECTION - Оптимизированные стили
   ============================================ */

/* --- Анимации (Keyframes) --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

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

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

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 60px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.animated-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(128, 204, 40, 0.1), rgba(107, 191, 26, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 5%;
    animation-delay: 3s;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(128, 204, 40, 0.1), rgba(107, 191, 26, 0.1));
    pointer-events: none;
    z-index: 2;
}

/* --- Hero Content --- */
.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Status Badges --- */
.status-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.badge.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.urgent-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.guarantee-badge {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
}

.free-badge {
    background: linear-gradient(135deg, #74c0fc, #4dabf7);
    color: white;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* --- Hero Title --- */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #80cc28 0%, #6bbf1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    margin: 10px 0;
}

.hero-description {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 600px;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 15px;
    border-radius: 15px;
    border: 1px solid rgba(128, 204, 40, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #80cc28, #6bbf1a);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(128, 204, 40, 0.4);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #80cc28, #6bbf1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* --- Hero Actions (Buttons) --- */
.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.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: left 0.5s ease;
}

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

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    position: relative;
}

.btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #80cc28, #6bbf1a);
    color: white;
    box-shadow: 0 8px 25px rgba(128, 204, 40, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(128, 204, 40, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #80cc28;
    border: 2px solid #80cc28;
}

.btn-outline:hover {
    background: #80cc28;
    color: white;
    transform: translateY(-2px);
}

.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.call-master-btn {
    position: relative;
}

.call-master-btn small {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 5px;
}

.call-btn.pulse {
    animation: pulse-animation 0.6s ease-in-out;
}

/* --- Hero Visual --- */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    text-align: center;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(128, 204, 40, 0.1), rgba(107, 191, 26, 0.1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-image:hover .image-overlay {
    opacity: 0.3;
}

/* --- Floating Cards --- */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(240, 240, 240, 0.3);
    pointer-events: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.floating-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.floating-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #80cc28, #6bbf1a, #74c0fc, #80cc28);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-card:hover::before {
    opacity: 1;
}

.floating-card.lifted {
    transform: translateY(-40px);
}

.rating-card {
    top: -30px;
    right: -30px;
    border-color: #ffd700;
    animation-delay: 0s;
}

.service-card {
    bottom: 30px;
    left: -20px;
    border-color: #80cc28;
    animation-delay: 1s;
}

.time-card {
    top: 50%;
    right: -40px;
    border-color: #74c0fc;
    animation-delay: 2s;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.rating-card .card-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.service-card .card-icon {
    background: linear-gradient(135deg, #80cc28, #6bbf1a);
    color: white;
}

.time-card .card-icon {
    background: linear-gradient(135deg, #74c0fc, #4dabf7);
    color: white;
}

.card-content h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

.rating-stars {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* --- Service Buttons --- */
.service-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    pointer-events: auto;
    z-index: 10;
}

.service-button {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid #80cc28;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #80cc28;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.service-button.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #80cc28, #6bbf1a);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-button:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
    border-color: #6bbf1a;
    box-shadow: 0 15px 35px rgba(128, 204, 40, 0.4);
}

.service-button:hover::before {
    opacity: 1;
}

.service-button .button-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(128, 204, 40, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.service-button:hover .button-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-button .button-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.service-icon {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.service-icon.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.service-icon:hover::before {
    width: 100px;
    height: 100px;
}

.service-icon i {
    transition: all 0.3s ease;
}

.service-icon:hover i {
    transform: scale(1.2) rotate(5deg);
}

.service-icon.active {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, #80cc28, #6bbf1a);
    color: white;
}

.service-icon.active i {
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large devices (1199px and down) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .title-highlight {
        font-size: 3.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Medium devices (991px and down) */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 40px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-highlight {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .status-badges {
        justify-content: center;
        gap: 15px;
    }

    .badge {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .stat-card {
        min-width: 100px;
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .floating-cards {
        position: static;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .floating-card {
        position: static;
        margin: 0;
        min-width: 140px;
        flex: 1;
    }

    .service-buttons {
        position: static;
        margin-top: 20px;
        transform: none;
        justify-content: center;
    }
}

/* Small devices (768px and down) */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px 0;
        min-height: auto;
    }

    .hero-visual {
        margin-bottom: 30px;
    }

    .hero-image-wrapper {
        margin-bottom: 20px;
    }

    .floating-cards {
        position: static;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .floating-card {
        position: static;
        margin: 0;
        min-width: 150px;
        padding: 15px;
    }

    .floating-card .card-title {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .floating-card .card-text {
        font-size: 0.9rem;
    }

    .service-buttons {
        position: static;
        margin-top: 20px;
        transform: none;
        justify-content: center;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .service-button {
        width: 80px;
        height: 80px;
    }

    .service-button .button-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .service-button .button-label {
        font-size: 10px;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .title-highlight {
        font-size: 3.2rem;
    }

    .hero-description {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .btn-title {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .btn-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .status-badges {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .badge {
        min-width: auto;
        padding: 10px 16px;
        font-size: 1rem;
    }
}

/* Extra small devices (576px and down) */
@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0 30px 0;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.1;
    }

    .title-highlight {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .status-badges {
        gap: 8px;
        flex-wrap: wrap;
    }

    .badge {
        min-width: auto;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .floating-cards {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 15px;
    }

    .floating-card {
        min-width: 120px;
        padding: 12px;
    }

    .floating-card .card-title {
        font-size: 1rem;
        font-weight: 700;
    }

    .floating-card .card-text {
        font-size: 0.8rem;
    }

    .floating-card .card-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .service-buttons {
        gap: 12px;
        margin-top: 15px;
    }

    .service-button {
        width: 70px;
        height: 70px;
    }

    .service-button .button-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .service-button .button-label {
        font-size: 9px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Very small devices (480px and down) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .title-highlight {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .badge {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .stat-card {
        padding: 12px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon i {
        font-size: 16px;
    }

    .service-icon span {
        font-size: 8px;
    }
}
