:root {
    --primary: #2c7ae0;
    --primary-dark: #143fdd;
    --secondary: #ff6b35;
    --dark: #2d3748;
    --light: #f8f9fa;
    --gray: #718096;
    --success: #48bb78;
    --yelow: #ffdf1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.yelow {
    color: var(--yelow);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f9fafb;
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}
    /* Стили для модального окна с зумом */
    .zoom-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        cursor: grab;
        overflow: hidden;
        user-select: none;
    }
    
    .zoom-modal.grabbing {
        cursor: grabbing;
    }
    
    .zoom-modal-content {
        display: block;
        position: absolute;
        transition: transform 0.1s ease;
        transform-origin: 0 0;
        max-width: none;
        cursor: grab;
    }
    
    .zoom-modal-content.grabbing {
        cursor: grabbing;
    }
    
    .zoom-modal-close {
        position: fixed;
        top: 20px;
        right: 30px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
        background: rgba(0,0,0,0.5);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .zoom-modal-close:hover {
        background: rgba(0,0,0,0.7);
    }
    
    .zoom-controls {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 1001;
        background: rgba(0,0,0,0.5);
        padding: 10px;
        border-radius: 25px;
    }
    
    .zoom-control {
        background: rgba(255,255,255,0.2);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .zoom-control:hover {
        background: rgba(255,255,255,0.3);
    }
    
    .zoom-reset {
        background: rgba(255,255,255,0.3);
        font-size: 16px;
    }
    
    /* Указываем курсор pointer для изображений, чтобы показать, что их можно увеличить */
    .case-img img {
        cursor: zoom-in;
        transition: transform 0.2s ease;
    }
    
    .case-img img:hover {
        transform: scale(1.02);
    }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
}

/* Header */
header {
    color: #333;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap:30px
}
.header-contacts {
        display: flex;
    gap: 30px;
}
/* Бургер всегда видим */
.burger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Анимация бургера */
.burger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Мобильное меню (всегда скрыто по умолчанию) */
.nav-links {
    position: absolute;
    top: 70px;
    right: -200%;
    width: fit-content;
    height: calc(80vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: left 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: block;
    list-style: none;
    z-index: 1000;
    padding:20px;
    border-radius:20px;
}

.nav-links.active {
    right: 0;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 18px;
    /*padding: 10px 20px;*/
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd700;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 220px;
    
}
.logo img {
    width:100%;
}
.logo i {
    margin-right: 10px;
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: url('/img/bg.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 160px 0 100px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-align: left;
    color: #fff;
    width: 70%;
}

.hero p {
    font-size: 1.5rem;
    animation: fadeInUp 1s ease;
    text-align: left;
    color: #fff;
}

.offer-wrapper {
    margin-top: 50px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(21, 64, 221, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.offer {
    padding: 30px;
    border-radius: 15px;
    animation: fadeIn 1.5s ease;
}

.offer h2 {
    color: #ffd700;
    margin-bottom: 15px;
}

.offer ul {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.offer li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.offer li:before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Form */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.5s ease;
    min-width: 450px;
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 122, 224, 0.2);
}

.btn {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Cases Section */
.cases {
    background: var(--light);
}
.case-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
        align-items: center;
    justify-content: center;
    }
.ico img {
    width: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.case-grid {
    display: block;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333
}

.case-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.case-img {
    position: relative;
    margin: 20px 0;
}

.case-img img,
.offer-img img {
    width: 100%;
    border-radius: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Map Section */
.map-section {
    padding: 60px 0;
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p,
.footer-column a {
    color: #cbd5e0;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Form Styles */
.footer-form {
    background: url(/img/form-bg.png) center/cover;
    position: relative;
    padding: 60px 0;
    color: white;
}

.footer-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.8;
    z-index: 1;
}

.footer-form .container {
    position: relative;
    z-index: 2;
}

.footer-form .form-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-form .form-title {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.footer-form .form-group label {
    color: white;
}

.footer-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-form .form-control:focus {
    background: white;
    border-color: #667eea;
}

.footer-form .btn {
    background: var(--primary-dark);
    border: none;
    margin-top: 15px;
}

.footer-form .btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

 

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
        width: 100%;
    }
    .header-contacts {
        display:none;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .offer-wrapper {
        flex-direction: column;
    }

    .form-container {
        min-width: auto;
    }

    .testimonials-grid {
        display: block;
    }

    .ico {
        width: 80px;
    }

    .case-stats {
        flex-direction: column;
    }

    .case-card {
        margin-bottom: 30px;
    }
    
    .case-box {
        display: grid;
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .case-box {
        display: grid;
    grid-template-columns: repeat(1, 1fr);
    }
}
/* Убираем медиа-запрос для бургера, так как он теперь всегда видим */
/* Добавляем отступ для контента под фиксированным хедером */
main {
    margin-top: 120px; /* Подстраиваем под высоту хедера */
}