/* ===== HERO SECTION ===== */
.hero-section {
    padding: 160px 0 180px;
    background: linear-gradient(135deg, rgba(220, 194, 170, 0.3) 0%, rgba(32, 31, 30, 0.7) 100%),
                url('../../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: -120px;
    padding-top: 220px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    position: relative;
    z-index: 1;
    margin-top: -50px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ebeef7 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition);
}

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

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 15px;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-zoom {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-zoom:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    text-align: center;
    background: white;
}

.project-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.btn-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 194, 170, 0.4);
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-steps {
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.calculator-form-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.result-box {
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: #ffffff;
}

.result-note {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
}

.reviews-slider {
    margin-top: 50px;
    padding-bottom: 50px;
}

.review-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(102, 126, 234, 0.1);
    height: 100%;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-content {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-project {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-project i {
    color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 2px 0px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 194, 170, 0.3) 0%, rgba(32, 31, 30, 0.7) 100%),
                url('../../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-text {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    position: relative;
    z-index: 1;
    margin-top: -50px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.trust-header {
    text-align: center;
    margin-bottom: 50px;
}

.trust-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.trust-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.trust-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.trust-slider-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.trust-slider {
    overflow: hidden;
}

.trust-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    width: fit-content;
    will-change: transform;
}

.trust-slide {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-logo-card {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.trust-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.trust-logo-card::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
}

.trust-logo-card:hover::after {
    opacity: 1;
    visibility: visible;
}

.trust-logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.trust-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0.9;
}

.trust-nav:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.trust-nav-prev {
    left: 0;
}

.trust-nav-next {
    right: 0;
}

.trust-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.trust-empty-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .calculator-wrapper {
        gap: 40px;
    }

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

    .projects-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .trust-slider-container {
        max-width: 1000px;
        padding: 0 50px;
    }

    .trust-slide {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        height: 150px;
    }

    .trust-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 140px 0 100px;
        padding-top: 180px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .trust-section {
        padding: 60px 0;
        margin-top: -30px;
    }

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

    .trust-slider-container {
        max-width: 800px;
    }

    .trust-slide {
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 100px;
        padding-top: 160px;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .hero-buttons, .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .calculator-form-card {
        padding: 30px;
    }

    .review-card {
        padding: 25px;
    }

    .trust-section {
        padding: 50px 0;
    }

    .trust-title {
        font-size: 1.8rem;
    }

    .trust-slider-container {
        max-width: 600px;
        padding: 0 40px;
    }

    .trust-slide {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 120px;
    }

    .trust-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

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

    .cta-title {
        font-size: 1.8rem;
    }

    .calculator-form-card {
        padding: 25px 20px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .trust-slider-container {
        max-width: 100%;
        padding: 0 35px;
    }

    .trust-slide {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 100px;
    }

    .trust-nav {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .trust-empty-message {
        padding: 40px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .calculator-form-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .trust-slide {
        width: 85px;
        min-width: 85px;
        max-width: 85px;
        height: 85px;
    }

    .trust-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .trust-slider-container {
        padding: 0 30px;
    }

    .trust-slide {
        width: 75px;
        min-width: 75px;
        max-width: 75px;
        height: 75px;
    }
}