/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #0ea5e9;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.btn:hover:before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline i {
    transition: transform 0.3s ease;
}

.btn-outline:hover i {
    transform: translateX(5px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header Top */
.header-top {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -2px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.contact-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 0.7rem;
    width: 10px;
}

.contact-phones {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
}

.phone-secondary {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-callback {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-callback:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Header Navigation */
.header-nav {
    background: var(--primary-color);
    padding: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
}

.nav-link {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active,
.nav-link.current-menu-item,
.nav-link.current-menu-parent,
.nav-link.current-menu-ancestor,
.nav-link.current_page_item,
.nav-link.current_page_parent,
.nav-link.current_page_ancestor {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-color);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 83, 159, 0.1);
    overflow: hidden;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(0, 83, 159, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 83, 159, 0.08) 0%, rgba(0, 123, 191, 0.06) 100%);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: var(--accent-color);
}

/* Убираем дублированную анимацию - используется только transition */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Hide mobile elements on desktop */
.mobile-contacts {
    display: none;
}

/* Универсальные стили для кнопки мобильного меню (работают на всех устройствах) */
.mobile-menu-toggle {
    z-index: 99999 !important;
    position: fixed !important;
    right: 1rem !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    padding-top: 120px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 83, 159, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 191, 0.1) 0%, transparent 50%);
    opacity: 1;
}
.service-hero{
    margin-top: 40px;
}
.hero-content {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--text-primary);
    padding: 2rem 0;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    position: relative;
}
.cta-content p{
    color: var(--background-color);
}
.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.hero-text p {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 100%;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 83, 159, 0.1);
    box-shadow: 0 4px 20px rgba(0, 83, 159, 0.08);
    transition: all 0.3s ease;
}

.feature:hover {
    box-shadow: 0 8px 30px rgba(0, 83, 159, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.feature i {
    font-size: 1.25rem;
    color: var(--primary-color);
    min-width: 20px;
}

.feature span {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 83, 159, 0.15);
    transition: all 0.4s ease;
}

.hero-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 83, 159, 0.2);
}

.hero-photo img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 83, 159, 0.1) 0%, rgba(0, 123, 191, 0.1) 100%);
    z-index: 1;
}

.hero-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 1px solid rgba(0, 83, 159, 0.2);
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '✓';
    margin-right: 0.4rem;
    color: #059669;
    font-weight: 700;
}



/* Section Styles */
section {
    padding: 5rem 0;
}

/* Убираем лишние отступы у секций созданных редактором */
.markdown-section {
    padding: 0 !important;
    margin: 0 !important;
}

.markdown-section + .markdown-section {
    margin-top: 1rem !important;
}

/* Исправляем отображение списков из редактора */
.markdown-section ul {
    margin: 0 0 0.5rem 1.5rem !important;
    padding: 0 !important;
}

.markdown-section ul + ul {
    margin-top: -0.5rem !important;
}

.markdown-section li {
    margin: 0.25rem 0 !important;
    padding: 0 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    background: var(--surface-color);
}

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

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card.featured {
    background: var(--gradient-primary);
    color: white;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card.featured li:before {
    color: white;
}

.service-compact-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.service-compact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.service-compact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(14, 165, 233, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-compact-card:hover .service-compact-overlay {
    opacity: 1;
}

.service-compact-overlay i {
    font-size: 3rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-compact-card:hover .service-compact-overlay i {
    transform: scale(1);
}

.service-compact-content {
    padding: 1.5rem;
    text-align: center;
}

.service-compact-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.service-compact-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

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

.advantage-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Projects Section */
.projects {
    background: var(--surface-color);
}

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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.project-placeholder {
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 1.5rem;
}

.service-price {
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.review-company {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    opacity: 0.8;
}

.review-rating .fa-star.empty {
    color: #ddd;
}

.project-details {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.detail {
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

/* Contacts Section */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalShow 0.3s ease;
}

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

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 100%;
        padding: 0 2rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-text h1::after {
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text p {
        max-width: 100%;
        margin: 0 auto 2.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .hero-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-photo img {
        height: 300px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-bottom: none;
    }

    .header-top {
        padding: 1rem 0;
        position: relative;
        overflow: hidden;
    }

    .header-top::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: -10%;
        width: 120%;
        height: 40px;
        background: linear-gradient(45deg, var(--primary-color) 0%, #007bbf 100%);
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
        opacity: 0.1;
    }

    .header-top-content {
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .header-info {
        display: none;
    }

    .logo {
        position: relative;
    }

    .logo::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -15px;
        width: 30px;
        height: 30px;
        background: linear-gradient(45deg, rgba(0, 123, 191, 0.2) 0%, rgba(0, 83, 159, 0.1) 100%);
        border-radius: 50%;
        transform: translateY(-50%);
        animation: pulse 3s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
        50% { transform: translateY(-50%) scale(1.2); opacity: 0.3; }
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    .logo i {
        font-size: 2.2rem;
    }

    /* Mobile Navigation */
    .header-nav {
        position: relative;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        padding: 90px 0 20px 0;
        z-index: 99998;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: flex-start;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes pulseButton {
        0%, 100% {
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.7);
        }
        50% {
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 255, 255, 0);
        }
    }

    .nav-link {
        padding: 5px 40px;
        border-radius: 10px;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        text-align: center;
        color: white;
        margin: 0.5rem 1rem;
    }

    .nav-link:first-child {
        margin-top: 0;
    }

    .nav-link:hover,
    .nav-link.active,
    .nav-link.current-menu-item,
    .nav-link.current-menu-parent,
    .nav-link.current-menu-ancestor,
    .nav-link.current_page_item,
    .nav-link.current_page_parent,
    .nav-link.current_page_ancestor {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    /* Mobile Dropdown Styles */
    .nav-item.dropdown {
        width: 100%;
    }

    .nav-link.dropdown-toggle {
        justify-content: center;
        text-align: center;
    }

    .nav-link.dropdown-toggle i {
        margin-left: 8px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 10px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 60px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
        text-align: center;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }

    .dropdown-item i {
        color: rgba(255, 255, 255, 0.8);
        margin-right: 8px;
    }

    .mobile-close-btn {
        display: none;
        position: absolute;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid white;
        border-radius: 50%;
        cursor: pointer;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 4px;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .mobile-close-btn span {
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-close-btn span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .mobile-close-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-close-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }


    .nav.active .mobile-close-btn {
        display: flex !important;
    }

    .mobile-contacts {
        display: block;
        background: rgba(255, 255, 255, 0.1);
        padding: 2rem;
        margin-top: 20px;
        text-align: center;
        flex-shrink: 0;
        border-radius: 20px;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .mobile-contact-item:last-child {
        margin-bottom: 0;
    }

    .mobile-contact-item i {
        color: var(--accent-color);
        font-size: 1rem;
        width: 18px;
        text-align: center;
    }

    .mobile-phone-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .mobile-phone {
        color: white;
        font-weight: 600;
        font-size: 1.1rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }

    .mobile-phone:hover {
        color: var(--accent-color);
    }

    .mobile-phone i {
        color: var(--accent-color);
        font-size: 1rem;
        width: 18px;
        text-align: center;
    }

    .mobile-callback-btn {
        background: var(--accent-color);
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        margin-top: 1rem;
    }

    .mobile-callback-btn:hover {
        background: #e65100;
        transform: translateY(-1px);
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: fixed !important;
        right: 1rem !important;
        z-index: 99999 !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, #007bbf 100%) !important;
        border-radius: 50% !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 8px 25px rgba(0, 83, 159, 0.4) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 3px solid white !important;
        cursor: pointer !important;
        outline: none !important;
        transform: scale(1) !important;
    }

    /* Оригинальная кнопка скрывается через JavaScript */

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 83, 159, 0.4);
    }

    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-toggle.active {
        background: white !important;
        border: 4px solid #ff3333 !important;
        transform: scale(1.2) !important;
        animation: pulseButton 1.5s infinite !important;
        box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.8), 0 8px 30px rgba(0, 0, 0, 0.5) !important;
        width: 65px !important;
        height: 65px !important;
        z-index: 999999 !important;
        position: fixed !important;
        right: 1rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .mobile-menu-toggle.active span {
        background: #ff3333 !important;
        width: 20px !important;
        height: 3px !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* Добавляем подсказку для закрытия меню */
    .mobile-menu-toggle.active::after {
        content: "ЗАКРЫТЬ";
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 51, 51, 0.9);
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
        animation: bounce 1s infinite alternate;
        z-index: 999999 !important;
    }

    /* Принудительное отображение активной кнопки */
    .mobile-menu-toggle.active {
        background: #ff3333 !important;
        border: 4px solid white !important;
        color: white !important;
        box-shadow: 0 0 0 2px #ff3333, 0 8px 30px rgba(255, 51, 51, 0.6) !important;
        transform: scale(1.3) !important;
    }

    @keyframes bounce {
        0% { transform: translateX(-50%) translateY(0); }
        100% { transform: translateX(-50%) translateY(-3px); }
    }
    
    .hero {
        min-height: 80vh;
        padding: 140px 0 2rem 0;
    }

    .hero-content {
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero-text{
        padding: 0;
    }
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .feature {
        padding: 0.75rem 1rem;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-photo {
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-photo img {
        height: 250px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        top: 12px;
        left: 12px;
    }
    
    .services-grid,
    .services-compact-grid,
    .advantages-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    section {
        padding: 3rem 0;
    }
}

/* Скрываем кнопку закрытия мобильного меню на десктопе */
@media (min-width: 769px) {
    .mobile-close-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 0.75rem 0;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        width: 45px !important;
        height: 45px !important;
        z-index: 99999 !important;
        display: flex !important;
        position: fixed !important;
        right: 1rem !important;
    }

    .mobile-menu-toggle.active {
        width: 60px !important;
        height: 60px !important;
        border: 4px solid #ff3333 !important;
        box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.8), 0 8px 30px rgba(0, 0, 0, 0.5) !important;
    }

    .mobile-menu-toggle span {
        width: 16px;
    }

    .nav {
        padding: 15px 0 15px 0;
        min-height: 100vh;
    }

    .nav-link {
        padding: 5px 40px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .nav-link:first-child {
        margin-top: 0.5rem;
    }

    .mobile-contacts {
        padding: 1.5rem;
    }

    .mobile-contact-item {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .mobile-phone {
        font-size: 1rem;
    }

    .mobile-callback-btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.25rem;
        border-radius: 12px;
    }

    .hero {
        min-height: 70vh;
        padding-top: 90px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        margin-bottom: 1.5rem;
    }

    .feature {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .feature i {
        font-size: 1.1rem;
    }

    .feature span {
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-photo {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-photo img {
        height: 200px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        top: 10px;
        left: 10px;
    }
    
    .service-card,
    .service-compact-card,
    .advantage-card {
        padding: 1.5rem;
    }
    
    .services-compact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-compact-image {
        height: 160px;
    }

    .service-compact-content {
        padding: 1rem;
    }

    .service-compact-content h3 {
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Pages Styles */

/* Service Hero */
.service-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    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="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.service-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Service Details */
.service-details {
    padding: 5rem 0;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.service-description h2 {
    margin-bottom: 1.5rem;
}

.service-description > p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.service-list {
    display: grid;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-item-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-item-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-item-content p {
    color: var(--text-secondary);
}

/* Service Sidebar */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-card,
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.price-card h3,
.contact-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.price-list {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item span:first-child {
    color: var(--text-primary);
}

.price-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Service Gallery */
.service-gallery {
    padding: 5rem 0;
    background: var(--surface-color);
}

.service-gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Process Section */
.process-section {
    padding: 5rem 0;
}

.process-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive adjustments for service pages */
@media (max-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-hero h1 {
        font-size: 3rem;
    }
    
    .service-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 60vh;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero p {
        font-size: 1rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step:not(:last-child)::after {
        content: '↓';
        top: auto;
        bottom: -1rem;
        right: 50%;
        transform: translateX(50%);
    }
    
    .gallery-overlay {
        position: static;
        transform: none;
        background: var(--gradient-primary);
        padding: 1.5rem;
    }
}

/* Очень короткие экраны (ландшафт телефонов) */
@media (max-height: 550px) {
    .nav {
        padding: 70px 0 15px 0;
    }
    
    .nav-link {
        padding: 3px 30px;
        margin: 0.25rem 1rem;
        font-size: 1rem;
    }
    
    .mobile-contacts {
        padding: 1.5rem;
    }
    
    .nav-link:first-child {
        margin-top: 0.25rem;
    }
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    padding: 5rem 0;
}

.pricing-content {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.pricing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Process Section */
.process {
    padding: 5rem 0;
}

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

.process-step {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Guarantees Section */
.guarantees {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    padding: 5rem 0;
}

.guarantees-content {
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 120px;
}

.guarantee-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
    }
}

.guarantee-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.guarantee-item:hover i {
    color: white;
}

.guarantee-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.guarantee-item:hover span {
    color: white;
}

.guarantee-item .download-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.guarantee-item:hover .download-link {
    opacity: 1;
    visibility: visible;
}

.guarantee-item .download-link i {
    font-size: 1.8rem;
    color: white;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

/* Certificates Section */
.certificates {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    padding: 5rem 0;
}

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

.certificate-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.certificate-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.certificate-card h3 {
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    color: var(--text-primary);
}

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

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

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

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

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(37, 99, 235, 0.02);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    padding: 5rem 0;
}

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

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.review-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.review-rating {
    display: flex;
    gap: 0.25rem;
}

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

.review-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Responsive styles for new sections */
@media (max-width: 768px) {
    .pricing-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .guarantee-features {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-item {
        justify-content: center;
        text-align: center;
    }
}

/* Section CTA Button */
.section-cta {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .section-cta {
        margin-top: 30px;
    }
}

/* Certificate Lightbox */
.certificate-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox-title {
    color: white;
    font-size: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    padding: 0 1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.certificate-image {
    cursor: pointer;
    position: relative;
}

.certificate-image::after {
    content: '\f065';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(37, 99, 235, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.certificate-card:hover .certificate-image::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* Contacts Page Styles - Minimalist Design */
.contacts-hero {
    background: var(--background-color);
    padding: 2rem 0;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
}

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

.contacts-hero h1 {
    font-size: 2.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contacts-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Main Contacts Layout */
.contacts-main {
    padding: 4rem 0;
    background: var(--background-color);
}

.contacts-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Card */
.contacts-info {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 120px;
}

.contacts-info h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.contacts-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
}

.contacts-item:last-child {
    margin-bottom: 2rem;
}

.contacts-icon {
    width: 36px;
    height: 36px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contacts-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.contacts-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.contacts-link:hover {
    color: var(--primary-color);
}

.contacts-address,
.work-schedule {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.contacts-note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Messengers */
.messengers {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--background-color);
    transition: all 0.2s ease;
}

.messenger-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.messenger-link i {
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.quick-actions .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    justify-content: center;
}

.quick-actions .btn i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Map Section */
.contacts-map {
    background: var(--background-color);
}

.contacts-map h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.contacts-map p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.map-container {
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#yandex-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
}

.map-legend {
    display: none; /* Убираем легенду для минимализма */
}

/* Contact Form Section */
.contact-form-section {
    padding: 4rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.form-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.contact-form {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
}

/* Simple Contact Form Styles */
.simple-contact-form {
    max-width: 100%;
}

.simple-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.simple-contact-form .form-group {
    margin-bottom: 1rem;
}

.simple-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.simple-contact-form input,
.simple-contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--background-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.simple-contact-form input:focus,
.simple-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.simple-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.simple-contact-form .form-note {
    margin-top: 1rem;
    text-align: center;
}

.simple-contact-form .form-note small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .simple-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .simple-contact-form .form-group {
        margin-bottom: 0.75rem;
    }
}

/* Additional Info */
.additional-info {
    padding: 4rem 0;
    background: var(--background-color);
}

.additional-content,
.additional-text {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.additional-text h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.additional-content p,
.additional-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contacts-info {
        position: static;
        order: 2;
    }
    
    .contacts-map {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contacts-hero {
        padding: 2rem 0 1.5rem;
        margin-top: 100px !important;
    }
    
    .contacts-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .contacts-hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contacts-main {
        padding: 2rem 0;
    }
    
    .contacts-layout {
        gap: 1.5rem;
    }
    
    .contacts-info {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .contacts-info h2 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .contacts-item {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding: 1rem;
        background: var(--surface-color);
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .contacts-icon {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .contacts-details h4 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .contacts-link {
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .contacts-address,
    .work-schedule {
        font-size: 0.875rem;
    }
    
    .contacts-note {
        font-size: 0.75rem;
    }
    
    .messengers {
        justify-content: flex-start;
        gap: 0.375rem;
    }
    
    .messenger-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .quick-actions {
        flex-direction: row;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .quick-actions .btn {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.625rem 0.5rem;
    }
    
    .contacts-map h2 {
        font-size: 1.125rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .contacts-map p {
        font-size: 0.875rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .map-container {
        height: 250px;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    #yandex-map {
        height: 250px !important;
        min-height: 250px !important;
    }
    
    .contact-form-section {
        padding: 2rem 0;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 0.875rem;
    }
    
    .contact-form {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .additional-info {
        padding: 2rem 0;
    }
    
    .additional-content,
    .additional-text {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .additional-text h3 {
        font-size: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contacts-hero {
        padding: 1.5rem 0 1rem;
        margin-top: 80px !important;
    }
    
    .contacts-hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .contacts-hero p {
        font-size: 0.875rem;
    }
    
    .contacts-main,
    .contact-form-section,
    .additional-info {
        padding: 1.5rem 0;
    }
    
    .contacts-layout {
        gap: 1rem;
    }
    
    .contacts-info {
        padding: 1rem;
        margin: 0 -5px;
    }
    
    .contacts-info h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .contacts-item {
        margin-bottom: 1rem;
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contacts-icon {
        width: 28px;
        height: 28px;
        align-self: center;
        font-size: 0.75rem;
    }
    
    .contacts-details h4 {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .contacts-link {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .contacts-address,
    .work-schedule {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .contacts-note {
        font-size: 0.7rem;
    }
    
    .messengers {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .messenger-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.7rem;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.375rem;
        padding-top: 0.75rem;
    }
    
    .quick-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .contacts-map h2 {
        font-size: 1rem;
    }
    
    .contacts-map p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .map-container {
        height: 200px;
        margin: 0 -5px;
    }

    #yandex-map {
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .form-wrapper {
        margin: 0 -5px;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
    }
    
    .form-header p {
        font-size: 0.8rem;
    }
    
    .contact-form,
    .additional-content,
    .additional-text {
        padding: 1rem;
        margin: 0;
    }
    
    .additional-text h3 {
        font-size: 0.95rem;
    }
}

.hero-contents {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

