/* Additional Styles for Services Page */

/* Service Categories Tabs */
.service-categories {
    margin-top: 4rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.category-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.tab-btn {
    padding: 1.5rem 2.5rem;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    outline: none;
    overflow: hidden;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent var(--secondary-color) transparent;
    opacity: 0;
    transition: all 0.3s;
}

.tab-btn.active:before {
    opacity: 1;
}

.tab-btn:hover:after,
.tab-btn.active:after {
    width: 100%;
}

.tab-btn:hover {
    color: var(--secondary-color);
}

.tab-btn.active {
    color: var(--secondary-color);
    background-color: white;
}

.tab-btn.active:after {
    width: 100%;
}

.tab-content {
    padding: 3rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

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

.service-features {
    list-style: none;
    margin: 2rem 0;
}

.service-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInRight 0.5s forwards;
}

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

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

.service-features li i {
    color: var(--secondary-color);
    margin-right: 1rem;
}

/* Enhanced Service Packages Section */
.service-packages {
    padding: 10rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.service-packages:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.png');
    opacity: 0.05;
    z-index: 0;
}

.service-packages .container {
    position: relative;
    z-index: 1;
}

.service-packages .section-header {
    margin-bottom: 6rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.package-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-header {
    padding: 3rem;
    background-color: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.package-content {
    padding: 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.package-cta {
    margin-top: auto;
}

/* Popular package highlight */
.package-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    border-bottom-left-radius: 8px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Price styling */
.price {
    margin-top: 1.5rem;
    position: relative;
    display: inline-block;
}

.price:before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: rgba(192, 57, 43, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.price .amount {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.price .period {
    font-size: 1.4rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}

/* Feature list styling */
.package-features li {
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features i {
    margin-right: 1.5rem;
    font-size: 1.6rem;
    width: 20px;
    text-align: center;
}

.package-features i.fa-check {
    color: #27ae60;
}

.package-features i.fa-times {
    color: #e74c3c;
}

/* Custom package section */
.custom-package {
    text-align: center;
    padding: 4rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.custom-package:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.custom-package:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.custom-package h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.custom-package p {
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1.2rem 2.4rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 992px) {
    .package-card.featured {
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .custom-package {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* FAQ Section */
.faq {
    padding: 8rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 2rem;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

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

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    transition: color 0.3s;
}

.faq-question:hover h3 {
    color: var(--secondary-color);
}

.toggle-icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.faq-question:hover .toggle-icon {
    color: var(--secondary-color);
}

.faq-question.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.faq-answer p {
    padding: 2rem 0;
    margin: 0;
    opacity: 1;
}

.faq-question.active + .faq-answer {
    max-height: 2000px; /* Достаточно большое значение, чтобы вместить любой текст */
    padding: 0 2rem 2rem;
    border-top: none;
}

.faq-question.active {
    background-color: #f5f5f5;
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question.active h3 {
    color: var(--primary-color);
}

/* Services Overview */
.services-overview {
    padding: 8rem 0;
}

/* Enhanced Page Banner with Video Background */
.page-banner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 8rem;
}

.page-banner .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-banner .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%);
    z-index: -1;
}

.page-banner .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.page-banner .banner-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 4.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner .banner-content p {
    font-size: 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Decorative elements for the banner */
.page-banner:before,
.page-banner:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.page-banner:before {
    top: 50px;
    left: 50px;
    border-right: none;
    border-bottom: none;
    animation: rotateBorder 30s linear infinite;
}

.page-banner:after {
    bottom: 50px;
    right: 50px;
    border-left: none;
    border-top: none;
    animation: rotateBorder 30s linear infinite reverse;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for the banner */
@media screen and (max-width: 768px) {
    .page-banner {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-banner .banner-content h1 {
        font-size: 3.6rem;
    }
    
    .page-banner .banner-content p {
        font-size: 1.8rem;
    }
    
    .page-banner:before,
    .page-banner:after {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .page-banner .banner-content h1 {
        font-size: 3rem;
    }
    
    .page-banner:before,
    .page-banner:after {
        display: none;
    }
}

/* Responsive Styles for Services Page */
@media screen and (max-width: 992px) {
    .tab-content-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-column {
        order: -1;
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1.4rem;
    }
    
    .package-card.featured {
        transform: scale(1);
    }
    
    .package-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media screen and (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 1rem;
        font-size: 1.3rem;
    }
    
    .tab-content {
        padding: 2rem 1.5rem;
    }
}

.image-column img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: all 0.5s;
    transform: perspective(1000px) rotateY(0deg);
}

.image-column:hover img {
    transform: perspective(1000px) rotateY(5deg);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2);
}

.btn.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
    z-index: -1;
}

.btn.btn-primary:hover:after {
    left: 100%;
}

/* Interactive Service Cards */
.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover:before {
    opacity: 0.9;
}

.service-card:hover * {
    color: white;
}

.service-card:hover .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(10deg);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.png');
    opacity: 0.1;
    z-index: 1;
}

.service-icon i {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: all 0.5s ease;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Unique colors for each service */
#registration .service-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

#monitoring .service-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

#enforcement .service-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

#litigation .service-icon {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

#licensing .service-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

#consultation .service-icon {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

/* Animation for icons */
.tab-pane.active .service-icon i {
    animation: pulse 2s infinite;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .service-icon {
        height: 250px;
    }
    .service-icon i {
        font-size: 9rem;
    }
}

@media (max-width: 768px) {
    .service-icon i {
        font-size: 7rem;
    }
    .service-icon {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .service-icon {
        height: 200px;
    }
}

.service-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.service-description {
    margin-bottom: 2rem;
    transition: all 0.4s;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.4s;
    text-decoration: none;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

/* Animated counters */
.stats-section {
    padding: 8rem 0;
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.stat-number {
    font-size: 4.8rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

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

/* Testimonials carousel */
.testimonials-section {
    padding: 8rem 0;
    background-color: var(--light-color);
    position: relative;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 3rem;
    position: relative;
    margin: 2rem 1rem;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.testimonial-content:before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 6rem;
    position: absolute;
    left: -1rem;
    top: -2rem;
    color: var(--secondary-color);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

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

.testimonial-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 1.4rem;
}

.testimonial-rating {
    color: #f39c12;
    margin-top: 0.5rem;
}

@media screen and (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 3.6rem;
    }
}

/* Animations for elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Delay animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
