/* Services Page Specific Styles */

/* Services Hero */
.services-hero {
    position: relative;
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
}

.services-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    z-index: -1;
}

.services-hero .hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.services-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}



/* Services Main */
.services-main {
    padding: 80px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Компактные карточки услуг */
.services-grid--compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 28px;
    margin-bottom: 32px;

}

.service-card-compact {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    min-height: 405px;
    max-width: none;
    margin: 0;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.service-card-compact:hover {
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.12);
    transform: translateY(-4px) scale(1.02);
}

.service-card__image {
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 150px;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 28px 28px 20px 28px;
    min-width: 0;
}

.service-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-width: 0;
}

.service-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: #fff7ed;
    color: #f97316;
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.service-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
    white-space: normal;
    /* Разрешить перенос строк */
    overflow: visible;
    /* Не обрезать */
    text-overflow: unset;
    /* Не обрезать */
    flex: 1 1 auto;
    word-break: break-word;
    /* Переносить длинные слова */
}

.service-card__desc {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 12px;
    margin-top: 0;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card__features-block {
    margin-bottom: 12px;
}

.service-card__features-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #222;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card__features li {
    color: #1e293b;
    font-size: 0.98rem;
    margin-bottom: 4px;
    position: relative;
    padding-left: 28px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card__features li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    position: absolute;
    left: 0;
    top: 1px;
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="9" fill="%2310b981"/><path d="M5 9.5l3 3 5-5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: 18px 18px;
    background-repeat: no-repeat;
}

.service-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
    flex-wrap: wrap;
}

.service-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.service-card__price-label {
    color: #64748b;
    font-size: 0.98rem;
    margin-bottom: 2px;
    white-space: nowrap;
}

.service-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.service-card__price {
    color: #f97316;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.1;
    white-space: nowrap;
}

.service-card__currency {
    color: #f97316;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 2px;
    white-space: nowrap;
}

.btn.btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    min-width: 110px;
    max-width: 100%;
    justify-content: center;
}

.btn.btn-primary:hover {
    background: #ea580c;
}

.btn.btn-primary svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}



/* FAQ Section */
.faq-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 0;
    background: #f9fafb;
}

.faq-list {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.faq-item.active {
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.12);
    border-color: #f97316;
    transform: translateY(-2px) scale(1.01);
}

.faq-question {
    cursor: pointer;
    padding: 22px 32px;
    font-size: 1.18rem;
    font-weight: 700;
    color: #1e293b;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #fff7ed;
}

.faq-arrow {
    transition: transform 0.3s;
    margin-left: 12px;
    width: 22px;
    height: 22px;
    color: #f97316;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    display: none;
    padding: 0 32px 22px 32px;
    font-size: 1.05rem;
    color: #374151;
    background: #fff;
    animation: fadeIn 0.3s;
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 900px) {
    .service-card-compact {
        flex-direction: column;
        max-width: 100%;
    }

    .service-card__image {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .service-card__content {
        padding: 18px 14px 16px 14px;
    }
}

@media (max-width: 700px) {
    .contact-image img {
        max-width: 90vw;
        max-height: 180px;
    }

    .faq-list {
        max-width: 98vw;
    }

    .faq-question,
    .faq-answer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 600px) {
    .services-grid--compact {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card-compact {
        padding: 18px 12px 16px 12px;
        min-height: unset;
    }
}

/* Detailed Service Cards */
.service-card-detailed {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.service-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card-detailed.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-detailed:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.service-price {
    background-color: #f97316;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.service-content {
    padding: 2rem;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: #f97316;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin: 0;
}

.service-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 2rem;
}

.service-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.service-features .feature-item svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

.service-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-actions .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background-color: #f97316;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.5rem;
}

.advantage-icon svg {
    width: 32px;
    height: 32px;
}

.advantage-item h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.advantage-item p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #1e293b;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.contact-features {
    margin-bottom: 2rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.contact-feature svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

.contact-image img {
    max-width: 600px;
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.15);
}

/* Detail Section */
.detail-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
}

.detail-feature svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.pricing-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pricing-package {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-package:hover {
    border-color: #f97316;
    transform: translateY(-2px);
}

.pricing-package.featured {
    border-color: #f97316;
    background-color: #fff7ed;
}

.package-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 1rem;
}

.package-features {
    list-style: none;
    padding: 0;
}

.package-features li {
    padding: 0.25rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Quote Form */
.quote-form-container {
    padding: 2rem;
}

.quote-form-container h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter animation */
.service-card-detailed {
    transition: all 0.5s ease;
}

.service-card-detailed.filtering {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skeleton-image {
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

/* Responsive Design for Services Page */
@media (max-width: 768px) {
    .services-hero .hero-title {
        font-size: 2.5rem;
    }

    .services-hero .hero-subtitle {
        font-size: 1.125rem;
    }

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

    .service-card-detailed {
        min-width: unset;
    }

    .service-actions {
        flex-direction: column;
    }

    .service-actions .btn {
        flex: none;
        width: 100%;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

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

    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .service-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-features {
        grid-template-columns: 1fr;
    }

    .pricing-packages {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 100px 0 60px;
    }

    .services-hero .hero-title {
        font-size: 2rem;
    }

    .services-main {
        padding: 60px 0;
    }

    .why-choose-us {
        padding: 60px 0;
    }

    .contact-section {
        padding: 60px 0;
    }

    .service-content {
        padding: 1.5rem;
    }

    .advantage-item {
        padding: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.75rem;
    }

    .contact-info p {
        font-size: 1.125rem;
    }
}