/* service-page.css */

.service-page {
    padding-top: 80px; /* Adjust for fixed header */
}

.service-hero {
    background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::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;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.back-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.service-details {
    padding: 80px 0;
    background: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-description h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #004d40;
    margin-bottom: 1.5rem;
}

.service-description p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #004d40;
}

.service-description ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 1rem;
}

.service-description ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #374151;
}

.service-description ul li .fa-check {
    color: #10b981;
    margin-top: 5px;
}

.service-icon-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-radius: 24px;
    height: 100%;
    min-height: 400px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.service-icon-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 105, 92, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.main-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.main-icon i {
    font-size: 10rem;
    color: #00695c;
    opacity: 0.9;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.main-icon span {
    font-size: 1.4rem;
    color: #374151;
    font-weight: 600;
    text-align: center;
}

.main-icon:hover i {
    transform: scale(1.1);
    color: #009688;
}

.service-icons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-icons-grid .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    min-height: 100px;
    opacity: 0;
    transform: translateY(20px);
}

.service-icons-grid .icon-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-icons-grid .icon-item i,
.main-icon i {
    /* Font Awesome Fix */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.service-icons-grid .icon-item i {
    font-size: 2.2rem;
    color: #00695c;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.service-icons-grid .icon-item span {
    font-size: 0.9rem;
    color: #374151;
    text-align: center;
    font-weight: 500;
}

.service-icons-grid .icon-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px) !important; /* Ensure hover effect works */
    box-shadow: 0 4px 12px rgba(0, 105, 92, 0.15);
}

.service-icons-grid .icon-item:hover i {
    color: #009688;
    transform: scale(1.1);
}

.service-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-image img:hover {
    transform: translateY(-5px);
}

.service-cta {
    padding: 60px 0;
    background: #f8fafc;
    text-align: center;
}

.service-cta h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #004d40;
    margin-bottom: 1rem;
}

.service-cta p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Стили для блока иконок с подписями и анимацией */
.service-icons-section {
    background: #f8fafc;
    padding: 32px 0 0 0;
    margin-bottom: 0;
}
.service-icons-grid.with-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: end;
    margin: 0 auto;
    max-width: 900px;
}

/* FAQ Accordion Styles */
.faq-container {
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #00695c;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: #f8fafc;
    padding: 0 1.5rem;
}

.faq-answer p {
    color: #475569;
    padding-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if answers are longer */
    padding: 0 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .service-icon-display {
        order: -1;
        margin-bottom: 2rem;
        padding: 2rem;
        min-height: auto;
    }

    .service-icon-display i {
        font-size: 4rem;
    }

    .service-icons-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-icons-grid i {
        font-size: 1.5rem;
    }

    .service-image {
        order: -1; /* Move image to top on smaller screens */
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }

    .service-icons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .service-icons-grid.with-labels {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .icon-item {
        min-width: 80px;
        min-height: 90px;
        padding: 0.8rem 0.2rem 0.5rem 0.2rem;
    }
    .icon-item i {
        font-size: 1.5rem;
    }
    .icon-item span {
        font-size: 0.9rem;
    }
}

/* --- Стили для формы обратной связи на всех услугах --- */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0 0 0;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    margin-bottom: 0.8rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00695c;
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form button[type="submit"] {
    background: #00695c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button[type="submit"]:hover {
    background: #009688;
}
@media (max-width: 600px) {
    .contact-form {
        padding: 1rem;
        max-width: 100%;
    }
} 