:root {
--primary: #003366;
--accent: #ff0000;
--light: #f8f9fa;
--dark: #343a40;
--gray: #6c757d;
--light-blue: #4cb5ae;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Trebuchet MS', Arial, sans-serif;
}

html {
scroll-behavior: smooth;
}

body {
color: #333;
line-height: 1.6;
background-color: #f5f7fa;
overflow-x: hidden;
}

.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* Header Styles */
header {
background: linear-gradient(135deg, var(--primary), #001a33);
color: white;
padding: 15px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow);
transition: var(--transition);
}

.header-scrolled {
padding: 10px 0;
background: rgba(0, 51, 102, 0.98);
backdrop-filter: blur(10px);
}

.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
font-size: 24px;
font-weight: bold;
color: white;
text-decoration: none;
display: flex;
align-items: center;
transition: var(--transition);
}

.logo:hover {
transform: scale(1.05);
}

.logo i {
margin-right: 10px;
color: var(--accent);
transition: var(--transition);
}

.nav-toggle {
display: none;
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
transition: var(--transition);
}

.nav-toggle:hover {
color: var(--light-blue);
transform: rotate(90deg);
}

nav ul {
display: flex;
list-style: none;
}

nav ul li {
margin-left: 20px;
position: relative;
}

nav ul li a {
color: white;
text-decoration: none;
font-weight: 500;
transition: var(--transition);
position: relative;
padding: 5px 0;
}

nav ul li a:hover {
color: var(--light-blue);
}

nav ul li a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: var(--light-blue);
transition: width 0.3s;
}

nav ul li a:hover::after {
width: 100%;
}

/* Active menu item */
nav ul li a.active {
color: var(--light-blue);
}

nav ul li a.active::after {
width: 100%;
}

/* Модифицированная Hero Section */
        .hero {
            position: relative;
            color: white;
            text-align: center;
            padding: 100px 0;
            overflow: hidden;
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }

        .hero-background::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 26, 51, 0.9));
            z-index: 1;
        }

        .hero-background img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: sepia(50%) brightness(0.7);
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect fill="none" width="200" height="200"/><path fill="%23003366" fill-opacity="0.05" d="M0,0 L200,0 L200,200 L0,200 Z"/></svg>');
            animation: grain 8s steps(10) infinite;
            z-index: -1;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 1s ease forwards 0.5s;
        }

.hero h1 {
font-size: 3.8rem;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
line-height: 1.2;
}

.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}

.hero-buttons {
margin-top: 30px;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
background-color: var(--accent);
color: white;
padding: 14px 30px;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: var(--transition);
border: 2px solid var(--accent);
position: relative;
overflow: hidden;
z-index: 1;
}

.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
transition: all 0.4s;
z-index: -1;
}

.btn:hover {
background-color: transparent;
color: white;
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
left: 100%;
}

.btn-outline {
background-color: transparent;
border: 2px solid white;
}

.btn-outline:hover {
background-color: white;
color: var(--primary);
}

/* Services Section */
.services {
padding: 80px 0;
background-color: white;
}

.section-title {
text-align: center;
margin-bottom: 50px;
opacity: 0;
transform: translateY(20px);
}

.section-title.animate {
animation: fadeInUp 0.8s ease forwards;
}

.section-title h2 {
font-size: 2.2rem;
color: var(--primary);
margin-bottom: 15px;
position: relative;
display: inline-block;
}

.section-title h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: var(--accent);
}

.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}

.service-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
transition: var(--transition);
text-align: center;
padding: 0;
border-top: 5px solid var(--primary);
display: flex;
flex-direction: column;
height: 100%;
opacity: 0;
transform: translateY(20px);
}

.service-card.animate {
animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

 /* ИЗМЕНЕНИЯ ДЛЯ УВЕЛИЧЕНИЯ ИЗОБРАЖЕНИЙ */
        .service-image {
            height: 270px; /* Увеличиваем высоту */
            overflow: hidden;
            position: relative;
            margin: -12px -12px 12px -12px; /* Расширяем изображение за пределы карточки */
            width: calc(100% + 30px); /* Компенсируем расширение */
        }

        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Обеспечиваем заполнение области */
            transition: transform 0.5s;
        }

        .service-card:hover .service-image img {
            transform: scale(1.15); /* Увеличиваем масштаб при наведении */
        }

.service-content {
padding: 25px;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.service-icon {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 15px;
transition: var(--transition);
}

.service-card:hover .service-icon {
transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--primary);
}

.service-card p {
margin-bottom: 20px;
flex-grow: 1;
}

.price {
font-size: 2.2rem;
color: var(--accent);
font-weight: bold;
margin: 15px 0;
position: relative;
display: inline-block;
}

.price::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Common Problems Section */
.problems {
padding: 80px 0;
background: linear-gradient(to right, #f8f9fa, #e9ecef);
position: relative;
}

.problems::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.problems-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
}

.problem-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
transition: var(--transition);
padding: 25px;
text-align: center;
border-left: 4px solid var(--accent);
opacity: 0;
transform: translateY(20px);
}

.problem-card.animate {
animation: fadeInUp 0.8s ease forwards;
}

.problem-card:nth-child(1) { animation-delay: 0.1s; }
.problem-card:nth-child(2) { animation-delay: 0.2s; }
.problem-card:nth-child(3) { animation-delay: 0.3s; }
.problem-card:nth-child(4) { animation-delay: 0.4s; }

.problem-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.problem-icon {
font-size: 2.2rem;
color: var(--accent);
margin-bottom: 15px;
transition: var(--transition);
}

.problem-card:hover .problem-icon {
transform: scale(1.1) rotate(10deg);
}

.problem-card h3 {
font-size: 1.3rem;
margin-bottom: 15px;
color: var(--primary);
}

.problem-card p {
margin-bottom: 15px;
}

.solution {
background: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin-top: 15px;
border-left: 3px solid var(--light-blue);
transition: var(--transition);
}

.solution:hover {
transform: translateX(5px);
}

.solution h4 {
color: var(--primary);
margin-bottom: 8px;
font-size: 1.1rem;
}

/* About Section */
.about {
padding: 80px 0;
background-color: white;
}

.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
}

.about-text {
opacity: 0;
transform: translateX(-20px);
}

.about-text.animate {
animation: fadeInLeft 0.8s ease forwards;
}

.about-text h2 {
font-size: 2rem;
color: var(--primary);
margin-bottom: 20px;
}

.about-text p {
margin-bottom: 20px;
}

.about-image {
position: relative;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
opacity: 0;
transform: translateX(20px);
}

.about-image.animate {
animation: fadeInRight 0.8s ease forwards;
}

.about-image img {
width: 100%;
height: auto;
display: block;
transition: transform 0.5s;
}

.about-image:hover img {
transform: scale(1.05);
}

/* Guarantee Section */
.guarantee {
padding: 70px 0;
background: linear-gradient(135deg, var(--primary), #001a33);
color: white;
text-align: center;
position: relative;
overflow: hidden;
}

.guarantee::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
transform: rotate(30deg);
}

.guarantee-content {
max-width: 800px;
margin: 0 auto;
position: relative;
z-index: 1;
}

.guarantee h2 {
font-size: 2.5rem;
margin-bottom: 20px;
opacity: 0;
transform: translateY(20px);
}

.guarantee h2.animate {
animation: fadeInUp 0.8s ease forwards;
}

.guarantee-badge {
background-color: var(--accent);
width: 150px;
height: 150px;
border-radius: 50%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0 auto 30px;
animation: pulse 2s infinite;
box-shadow: 0 0 0 15px rgba(255, 0, 0, 0.2);
opacity: 0;
transform: scale(0.8);
}

.guarantee-badge.animate {
animation: fadeInUp 0.8s ease forwards, pulse 2s infinite 0.8s;
}

.guarantee-badge span {
font-size: 2rem;
font-weight: bold;
}

.guarantee p {
opacity: 0;
transform: translateY(20px);
}

.guarantee p.animate {
animation: fadeInUp 0.8s ease forwards 0.4s;
}

/* How It Works Section */
.how-it-works {
padding: 80px 0;
background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-top: 40px;
}

.step {
text-align: center;
padding: 30px;
background: white;
border-radius: 10px;
transition: var(--transition);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
opacity: 0;
transform: translateY(20px);
}

.step.animate {
animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.step:hover {
background: var(--primary);
color: white;
transform: translateY(-5px);
}

.step:hover h3 {
color: white;
}

.step:hover .step-number {
background: white;
color: var(--primary);
}

.step-number {
width: 60px;
height: 60px;
background: var(--accent);
color: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
font-weight: bold;
margin: 0 auto 15px;
transition: var(--transition);
}

.step h3 {
font-size: 1.3rem;
margin-bottom: 15px;
color: var(--primary);
transition: var(--transition);
}

/* FAQ Section */
.faq {
padding: 80px 0;
background-color: white;
}

.accordion {
margin-top: 30px;
}

.accordion-item {
margin-bottom: 15px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: var(--transition);
opacity: 0;
transform: translateY(10px);
}

.accordion-item.animate {
animation: fadeInUp 0.6s ease forwards;
}

.accordion-item:nth-child(1) { animation-delay: 0.1s; }
.accordion-item:nth-child(2) { animation-delay: 0.2s; }
.accordion-item:nth-child(3) { animation-delay: 0.3s; }
.accordion-item:nth-child(4) { animation-delay: 0.4s; }

.accordion-header {
background: var(--primary);
color: white;
padding: 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background 0.3s;
}

.accordion-header:hover {
background: #001a33;
}

.accordion-content {
padding: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease;
background: white;
}

.accordion-content-inner {
padding: 20px;
}

.accordion-item.active .accordion-content {
max-height: 500px;
}

.accordion-item.active .accordion-icon {
transform: rotate(180deg);
}

/* Contact Section */
.contact {
padding: 80px 0;
background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.contact-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 40px;
}

.contact-info {
display: flex;
flex-direction: column;
gap: 20px;
}

.contact-item {
display: flex;
align-items: center;
gap: 15px;
opacity: 0;
transform: translateX(-20px);
}

.contact-item.animate {
animation: fadeInLeft 0.8s ease forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

.contact-icon {
width: 50px;
height: 50px;
background: var(--primary);
color: white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
transition: var(--transition);
flex-shrink: 0;
}

.contact-item:hover .contact-icon {
background: var(--accent);
transform: scale(1.1) rotate(5deg);
}

.map-container {
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
height: 300px;
opacity: 0;
transform: translateX(20px);
}

.map-container.animate {
animation: fadeInRight 0.8s ease forwards;
}

/* Footer */
footer {
background: var(--dark);
color: white;
padding: 60px 0 20px;
position: relative;
}

footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-bottom: 30px;
}

.footer-column h3 {
font-size: 1.3rem;
margin-bottom: 20px;
color: var(--light-blue);
position: relative;
padding-bottom: 10px;
}

.footer-column h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background-color: var(--accent);
}

.footer-links {
list-style: none;
}

.footer-links li {
margin-bottom: 10px;
transition: var(--transition);
}

.footer-links li:hover {
transform: translateX(5px);
}

.footer-links a {
color: #ddd;
text-decoration: none;
transition: var(--transition);
display: inline-block;
}

.footer-links a:hover {
color: var(--light-blue);
padding-left: 5px;
}

.social-links {
display: flex;
gap: 15px;
margin-top: 15px;
}

.social-links a {
width: 40px;
height: 40px;
border-radius: 50%;
background: #444;
color: white;
display: flex;
justify-content: center;
align-items: center;
transition: var(--transition);
}

.social-links a:hover {
background: var(--light-blue);
transform: translateY(-3px);
}

.footer-bottom {
text-align: center;
padding-top: 20px;
border-top: 1px solid #444;
}

/* Back to top button */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--accent);
color: white;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: var(--transition);
opacity: 0;
visibility: hidden;
z-index: 999;
}

.back-to-top.visible {
opacity: 1;
visibility: visible;
}

.back-to-top:hover {
background: var(--primary);
transform: translateY(-5px);
}

/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
opacity: 0;
visibility: hidden;
transition: all 0.3s;
}

.modal.active {
opacity: 1;
visibility: visible;
}

.modal-content {
background: white;
border-radius: 10px;
padding: 30px;
max-width: 500px;
width: 90%;
position: relative;
transform: translateY(50px);
transition: all 0.3s;
}

.modal.active .modal-content {
transform: translateY(0);
}

.modal-close {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--gray);
transition: var(--transition);
}

.modal-close:hover {
color: var(--accent);
transform: rotate(90deg);
}

.modal-title {
margin-bottom: 20px;
color: var(--primary);
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}

.form-control {
width: 100%;
padding: 12px 15px;
border: 1px solid #ddd;
border-radius: 5px;
transition: var(--transition);
}

.form-control:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
outline: none;
}

/* Content sections for SEO */
.content-section {
margin: 40px 0;
padding: 30px;
background: white;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
opacity: 0;
transform: translateY(20px);
}

.content-section.animate {
animation: fadeInUp 0.8s ease forwards;
}

.content-section h2 {
color: var(--primary);
margin-bottom: 20px;
font-size: 1.8rem;
}

.content-section h3 {
color: var(--primary);
margin: 20px 0 15px;
font-size: 1.4rem;
}

.content-section p, .content-section ul, .content-section ol {
margin-bottom: 15px;
}

.content-section ul, .content-section ol {
padding-left: 20px;
}

.content-section li {
margin-bottom: 8px;
}

.highlight {
background: #fff9e6;
border-left: 4px solid var(--accent);
padding: 20px;
margin: 20px 0;
border-radius: 0 8px 8px 0;
}

/* Breadcrumb */
.breadcrumb {
padding: 15px 0;
background: #f1f1f1;
margin-bottom: 30px;
}

.breadcrumb ul {
display: flex;
list-style: none;
flex-wrap: wrap;
}

.breadcrumb li {
margin-right: 10px;
font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
content: '/';
margin-left: 10px;
color: #777;
}

.breadcrumb a {
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}

.breadcrumb a:hover {
color: var(--accent);
text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


@keyframes fadeInLeft {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes pulse {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
}
70% {
transform: scale(1.05);
box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
}
}

@keyframes grain {
            0%, 100% { transform: translate(0, 0); }
            10% { transform: translate(-5%, -10%); }
            20% { transform: translate(-15%, 5%); }
            30% { transform: translate(7%, -25%); }
            40% { transform: translate(-5%, 25%); }
            50% { transform: translate(-15%, 10%); }
            60% { transform: translate(15%, 0%); }
            70% { transform: translate(0%, 15%); }
            80% { transform: translate(3%, 35%); }
            90% { transform: translate(-10%, 10%); }
        }

/* Lazy loading */
.lazy-load {
opacity: 0;
transform: translateY(20px);
transition: all 0.6s;
}

.lazy-load.visible {
opacity: 1;
transform: translateY(0);
}

/* Loading animation for images */
.image-placeholder {
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;
}
}

/* Responsive Styles */
@media (max-width: 1200px) {
.container {
max-width: 960px;
}
}

@media (max-width: 992px) {
.container {
max-width: 720px;
}

.about-content {
grid-template-columns: 1fr;
gap: 30px;
}

.hero h1 {
font-size: 2.2rem;
}

.section-title h2 {
font-size: 1.8rem;
}
}

/* Responsive Styles */
        @media (max-width: 768px) {
            .service-image {
                height: 270px; /* Немного уменьшаем высоту на мобильных */
                margin: -10px -10px 15px -10px;
                width: calc(100% + 20px);
            }
        }

        @media (max-width: 576px) {
            .services-grid {
                grid-template-columns: 1fr;
            }
            
            .service-image {
                height: 250px;
            }
        }

.nav-toggle {
display: block;
}

nav ul {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background: var(--primary);
padding: 15px 0;
z-index: 100;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

nav ul.show {
display: flex;
}

nav ul li {
margin: 0;
text-align: center;
}

nav ul li a {
display: block;
padding: 10px;
}

.hero {
padding: 80px 0;
}

.hero h1 {
font-size: 1.8rem;
}

.hero p {
font-size: 1rem;
}

.hero-buttons {
flex-direction: column;
align-items: center;
}

.btn {
width: 100%;
max-width: 300px;
margin: 5px 0;
}

.contact-grid {
grid-template-columns: 1fr;
}

.footer-content {
grid-template-columns: 1fr;
gap: 30px;
}
}

@media (max-width: 576px) {
.container {
width: 100%;
padding: 0 20px;
}

.hero h1 {
font-size: 1.6rem;
}

.services-grid,
.problems-grid,
.steps {
grid-template-columns: 1fr;
}

.section-title h2 {
font-size: 1.6rem;
}

.price {
font-size: 1.8rem;
}

.back-to-top {
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
}
}

/* Заголовок секции */
        .testimonials-header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
        }
        
        .testimonials-header h2 {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .testimonials-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
            border-radius: 2px;
        }
        
        .testimonials-header p {
            font-size: 1.2rem;
            color: #7f8c8d;
            max-width: 700px;
            margin: 0 auto;
        }
        
        /* Сетка отзывов */
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        /* Карточка отзыва */
        .testimonial-card {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .testimonial-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
        }
        
        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }
        
        /* Заголовок в карточке */
        .testimonial-client {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .testimonial-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3498db, #2ecc71);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .testimonial-info h3 {
            font-size: 1.3rem;
            color: #2c3e50;
            margin-bottom: 5px;
        }
        
        .testimonial-info p {
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        
        /* Текст отзыва */
        .testimonial-content {
            position: relative;
            flex-grow: 1;
        }
        
        .testimonial-text {
            font-size: 1.05rem;
            line-height: 1.7;
            color: #34495e;
            margin-bottom: 20px;
            position: relative;
            padding-left: 25px;
        }
        
        .testimonial-text::before {
            content: '\201C';
            font-size: 4rem;
            position: absolute;
            left: -15px;
            top: -15px;
            color: rgba(52, 152, 219, 0.15);
            font-family: Georgia, serif;
        }
        
        /* Рейтинг */
        .testimonial-rating {
            color: #f39c12;
            margin-top: 15px;
            font-size: 0.9rem;
        }
        
        /* Блок с акцией */
        .testimonial-promo {
            background: linear-gradient(135deg, #3498db, #2ecc71);
            border-radius: 16px;
            padding: 30px;
            text-align: center;
            color: white;
            box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
            margin-top: 20px;
        }
        
        .testimonial-promo p {
            font-size: 1.3rem;
            margin-bottom: 0;
            font-weight: 500;
        }
        
        .testimonial-promo .promo-highlight {
            font-size: 1.8rem;
            font-weight: bold;
            display: inline-block;
            margin: 10px 0;
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 15px;
            border-radius: 50px;
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .testimonials-grid {
                grid-template-columns: 1fr;
            }
            
            .testimonials-header h2 {
                font-size: 2rem;
            }
            
            .testimonial-card {
                padding: 20px;
            }
        }
        
        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .testimonial-card {
            animation: fadeIn 0.6s ease forwards;
        }
        
        .testimonial-card:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .testimonial-card:nth-child(3) {
            animation-delay: 0.4s;
        }



/* ============================================
   КИБЕР-ГАЛЕРЕЯ "NEON FRAME" — СВЕТЛЫЙ СТИЛЬ
   Версия 2.0 — полностью изолированные классы
   ============================================ */

/* --- БЛОК-ОБЕРТКА --- */
.cyber-gallery-frame {
    --neon-cyan: #00e5ff;
    --neon-pink: #d600ff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --border-color: #8ba7c4;
    --text-dark: #0f2b45;
    --surface-grid: rgba(140, 170, 200, 0.08);
    
    position: relative;
    max-width: 1022px;
    width: 100%;
    margin: 2.5rem auto;
    background: #eff3f8;
    
    /* Двойная рамка: внешняя тонкая + внутренний отступ */
    border: 1px solid var(--border-color);
    outline: 1px solid rgba(255, 255, 255, 0.7);
    outline-offset: -7px;
    
    /* Неоновое свечение */
    box-shadow: 
        0 0 20px rgba(0, 229, 255, 0.2),
        0 0 45px rgba(214, 0, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    
    /* Техно-сетка на фоне */
    background-image: 
        linear-gradient(var(--surface-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--surface-grid) 1px, transparent 1px);
    background-size: 22px 22px;
    
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    font-family: 'Rajdhani', 'Exo 2', 'Segoe UI', monospace, sans-serif;
    letter-spacing: 0.6px;
    box-sizing: border-box;
}

.cyber-gallery-frame:hover {
    box-shadow: 
        0 0 30px rgba(0, 229, 255, 0.45),
        0 0 60px rgba(214, 0, 255, 0.25),
        inset 0 0 40px rgba(255, 255, 255, 0.8);
    border-color: var(--neon-cyan);
}

/* --- ЛИНИИ СКАНИРОВАНИЯ (светлые) --- */
.cyber-gallery-frame .scan-line-top,
.cyber-gallery-frame .scan-line-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 8;
    pointer-events: none;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-cyan) 25%, 
        var(--neon-pink) 75%, 
        transparent 100%);
    opacity: 0.5;
}

.cyber-gallery-frame .scan-line-top {
    top: 10px;
    animation: scanTopLine 3s ease-in-out infinite;
}

.cyber-gallery-frame .scan-line-bottom {
    bottom: 10px;
    animation: scanBottomLine 3s ease-in-out infinite;
}

/* --- КОНТЕЙНЕР СЛАЙДОВ --- */
.cyber-gallery-frame .gallery-slide-panel {
    position: relative;
    display: none;
    width: 100%;
    aspect-ratio: 1022 / 940;
    text-align: center; /* Центрирование inline-элементов */
    line-height: 0; /* Убираем лишние отступы */
}

.cyber-gallery-frame .gallery-slide-panel.is-visible {
    display: block;
    animation: cyberFadeIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cyber-gallery-frame .gallery-slide-panel img {
    display: block;
    max-width: 100%; /* Не шире контейнера */
    max-height: 100%; /* Не выше контейнера */
    width: auto; /* Автоматическая ширина */
    height: auto; /* Автоматическая высота */
    margin: 0 auto; /* ГОРИЗОНТАЛЬНОЕ ЦЕНТРИРОВАНИЕ */
    position: absolute; /* Абсолютное позиционирование */
    top: 50%; /* Центр по вертикали */
    left: 50%; /* Центр по горизонтали */
    transform: translate(-50%, -50%); /* Точное центрирование */
    object-fit: contain; /* Сохраняем пропорции */
    filter: brightness(1.03) contrast(1.06) saturate(0.88);
    box-shadow: inset 0 0 0 3px rgba(0, 229, 255, 0.15);
    transition: filter 0.35s ease;
}

/* --- ПАНЕЛЬ НАВИГАЦИИ (ТОЧКИ) --- */
.cyber-gallery-frame .nav-dots-cluster {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
    padding: 7px 20px;
    
    /* Матовое стекло */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(140, 170, 200, 0.5);
    border-radius: 40px;
    
    /* Скошенные углы (киберпанк) */
    clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
    box-sizing: border-box;
}

.cyber-gallery-frame .nav-dot-item {
    width: 13px;
    height: 13px;
    background: rgba(15, 43, 69, 0.25);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    
    /* Шестиугольная форма */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cyber-gallery-frame .nav-dot-item:hover {
    background: rgba(0, 229, 255, 0.55);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.35);
}

.cyber-gallery-frame .nav-dot-item.dot-active {
    background: var(--neon-cyan);
    border-color: #ffffff;
    box-shadow: 
        0 0 18px var(--neon-cyan),
        0 0 35px var(--neon-pink),
        inset 0 0 5px #ffffff;
    animation: dotPulseGlow 1.6s infinite;
}

/* --- ПОДПИСЬ (FIGCAPTION) --- */
.cyber-gallery-frame .gallery-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 25px;
    
    /* Матовое стекло */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(140, 170, 200, 0.65);
    
    /* Текст */
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
}

.cyber-gallery-frame .gallery-caption-bar::before,
.cyber-gallery-frame .gallery-caption-bar::after {
    content: "//";
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 12px var(--neon-cyan);
    font-size: 1.1rem;
    opacity: 0.85;
}

/* --- АНИМАЦИИ --- */
@keyframes cyberFadeIn {
    0%   { opacity: 0; transform: translateX(-8px); clip-path: inset(0 100% 0 0); }
    15%  { clip-path: inset(15% 0 80% 0); }
    35%  { clip-path: inset(80% 0 10% 0); }
    55%  { clip-path: inset(25% 0 55% 0); }
    80%  { opacity: 1; clip-path: inset(0 0 0 0); }
    100% { transform: translateX(0); }
}

@keyframes scanTopLine {
    0%   { transform: translateY(0); opacity: 0; }
    15%  { opacity: 0.7; }
    85%  { opacity: 0.7; }
    100% { transform: translateY(2px); opacity: 0; }
}

@keyframes scanBottomLine {
    0%   { transform: translateY(0); opacity: 0; }
    15%  { opacity: 0.7; }
    85%  { opacity: 0.7; }
    100% { transform: translateY(-2px); opacity: 0; }
}

@keyframes dotPulseGlow {
    0%   { box-shadow: 0 0 12px var(--neon-cyan); }
    50%  { box-shadow: 0 0 28px var(--neon-cyan), 0 0 50px var(--neon-pink); }
    100% { box-shadow: 0 0 12px var(--neon-cyan); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .cyber-gallery-frame {
        max-width: 100%;
        margin: 1.2rem;
        outline-offset: -5px;
        background-size: 16px 16px;
    }
    
    .cyber-gallery-frame .gallery-slide-panel img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .cyber-gallery-frame .nav-dots-cluster {
        bottom: 44px;
        gap: 10px;
        padding: 6px 14px;
    }
    
    .cyber-gallery-frame .nav-dot-item {
        width: 11px;
        height: 11px;
    }
    
    .cyber-gallery-frame .gallery-caption-bar {
        font-size: 1rem;
        padding: 12px 18px;
        letter-spacing: 1.5px;
    }
    
    .cyber-gallery-frame .gallery-caption-bar::before,
    .cyber-gallery-frame .gallery-caption-bar::after {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cyber-gallery-frame {
        margin: 0.6rem;
        outline-offset: -4px;
        box-shadow: 
            0 0 12px rgba(0, 229, 255, 0.25),
            inset 0 0 15px rgba(255, 255, 255, 0.4);
        background-image: none;
    }
    
    .cyber-gallery-frame .gallery-slide-panel img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .cyber-gallery-frame .scan-line-top,
    .cyber-gallery-frame .scan-line-bottom {
        animation: none;
        opacity: 0.35;
    }
    
    .cyber-gallery-frame .nav-dots-cluster {
        bottom: 38px;
        gap: 7px;
        padding: 5px 12px;
        background: rgba(255, 255, 255, 0.6);
    }
    
    .cyber-gallery-frame .nav-dot-item {
        width: 9px;
        height: 9px;
        clip-path: none;
        border-radius: 2px;
    }
    
    .cyber-gallery-frame .gallery-caption-bar {
        font-size: 0.85rem;
        padding: 10px 12px;
        letter-spacing: 1px;
        backdrop-filter: blur(8px);
    }
    
    .cyber-gallery-frame .gallery-caption-bar::before,
    .cyber-gallery-frame .gallery-caption-bar::after {
        display: none;
    }
}


/* Основной блок с рамкой в стиле киберпанк */
.content-section,
.guarantee,
.how-it-works {
    background: var(--cp-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cp-border);
    border-radius: 20px;
    padding: 35px 30px;
    margin: 35px 0;
    box-shadow: var(--cp-glow), 0 8px 32px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--cp-transition);
}

/* Декоративный уголок в стиле tech */
.content-section::before,
.guarantee::before,
.how-it-works::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--cp-accent);
    border-left: 3px solid var(--cp-accent);
    border-radius: 6px 0 0 0;
    filter: drop-shadow(0 0 6px var(--cp-accent));
}

.content-section::after,
.guarantee::after,
.how-it-works::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid var(--cp-accent2);
    border-right: 3px solid var(--cp-accent2);
    border-radius: 0 0 6px 0;
    filter: drop-shadow(0 0 6px var(--cp-accent2));
}

/* ==============================================
   WEAK POINTS (Проблемные узлы)
   ============================================== */
.weak-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.weak-point {
    display: flex;
    gap: 20px;
    background: rgba(240, 248, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.weak-point:hover {
    border-color: var(--cp-accent2);
    box-shadow: 0 0 25px rgba(184, 0, 230, 0.15);
}

.weak-point-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(180deg, var(--cp-accent), var(--cp-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 50px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* ==============================================
   GUARANTEE SECTION
   ============================================== */
.guarantee-content {
    text-align: center;
}

.guarantee-badge {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 3px solid var(--cp-accent);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: #0a1a2b;
    text-shadow: 0 0 10px white;
}

/* ==============================================
   STEPS (Как мы ремонтируем)
   ============================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.step::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cp-accent), var(--cp-accent2));
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 243, 255, 0.3);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00e5ff, #b800e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

/* ==============================================
   RESPONSIVE ADAPTATION
   ============================================== */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .content-section,
    .guarantee,
    .how-it-works {
        padding: 25px 18px;
        border-radius: 14px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .weak-point {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .weak-point-number {
        font-size: 2.2rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .step {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.4rem;
    }

    .guarantee-badge {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .content-section::before,
    .guarantee::before,
    .how-it-works::before,
    .content-section::after,
    .guarantee::after,
    .how-it-works::after {
        width: 18px;
        height: 18px;
    }

    ul li {
        padding: 8px 12px;
    }
}