* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fefefe;
    color: #1E2A3E;
    line-height: 1.4;
    overflow-x: hidden;
    min-width: 390px;
}

/* container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* header фиксированный с мини-лого — плавающая шапка с тенью */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 16px 0;
    transition: box-shadow 0.25s ease, background 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.header-scrolled {
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

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

main {
    margin-top: 65px;

    @media (max-width: 900px) {
        margin-top: 77px;
    }
}

.mini-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #058669 0%, #046B55 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    box-shadow: 0 6px 12px -6px rgba(0,0,0,0.1);
}

.mini-logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    color: #1F3B4C;
}

/* Desktop навигация */
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.95rem;
    cursor: pointer;
}
.nav-links a:hover {
    color: #058669;
}

/* ========== БУРГЕР-МЕНЮ — ИДЕАЛЬНО ПЛАВНОЕ БЕЗ РЫВКОВ И ПОЛОС ========== */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #1F3B4C;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}
.burger-btn:hover {
    background: rgba(5, 134, 105, 0.08);
}

/* Оверлей — плавное появление */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1001;
    visibility: hidden;
    transition: background-color 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Контейнер меню — УБРАН cubic-bezier, используем стандартную ease-out */
.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    gap: 28px;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
}

.close-menu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1F3B4C;
    width: 40px;
    height: 40px;
    border-radius: 30px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-menu:hover {
    background: #f0f4f9;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 20px;
}

.mobile-nav-links a {
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    color: #1E2A3E;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f6;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-nav-links a i {
    width: 28px;
    font-size: 1.4rem;
    color: #058669;
    transition: 0.2s;
}

.mobile-nav-links a:hover {
    color: #058669;
    padding-left: 6px;
}

.mobile-nav-links a:hover i {
    transform: scale(1.05);
}

/* предотвращаем скролл при открытом бургере */
body.menu-open {
    overflow: hidden;
}

/* hero с крупным лого и приветствием */
.hero {
    padding: 70px 0 0px;
    text-align: center;
}
.main-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}
.large-logo {
    width: 100%;
    max-width: 410px;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.large-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.large-logo i {
    font-size: 58px;
    color: #058669;
}
.large-logo:hover {
    transform: scale(1.02);
}
.company-name-main {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(120deg, #046B55, #058669);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}
.tagline {
    font-size: 1.3rem;
    color: #4A627A;
    margin-top: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* общие секции */
section {
    padding: 70px 0;
    border-bottom: 1px solid #eef2f6;
    scroll-margin-top: 85px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
    color: #1F3B4C;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #058669;
    border-radius: 3px;
}
.desc-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #2C3E50;
    margin-top: 20px;
}

/* карточки модулей и фичи */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.feature-card {
    background: white;
    border-radius: 28px;
    padding: 28px 24px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.03);
    border: 1px solid #eef2f8;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #b8e0d4;
    box-shadow: 0 20px 30px -12px rgba(5, 134, 105, 0.12);
}
.card-icon {
    font-size: 2.5rem;
    color: #058669;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.feature-card p, .feature-card li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #415A77;
}

/* AI блок */
.ai-highlight {
    background: linear-gradient(110deg, #F0F9F6, #ffffff);
    border-radius: 36px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid #daede6;
}
.badge-ai {
    background: #E0F0EA;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #046B55;
    margin-bottom: 20px;
}

/* ВЕРТИКАЛЬНОЕ ФОТО ОФИСА */
.office-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}
.office-photo-vertical {
    max-width: 460px;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 40px -14px rgba(0, 0, 0, 0.2);
    background: #E8F3EF;
    transition: transform 0.4s ease, box-shadow 0.3s;
}
.office-photo-vertical:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 45px -16px rgba(0, 0, 0, 0.25);
}
.office-img-vertical {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #a8d5c5, #82bfab);
}
.office-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(125deg, #9fcdbb, #7bbaa4);
    color: white;
    text-align: center;
    padding: 32px 20px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}
.office-placeholder i {
    font-size: 68px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.office-placeholder p {
    font-size: 1rem;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 500;
}

.office-image {
    display: block;
    transition: transform 0.4s ease;
}

.office-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.office-address {
    margin-bottom: 5px;
}

.office-caption {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: #5e7a93;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.office-caption i {
    color: #058669;
}

/* контакты */
.contact-info {
    background: #F4FBF8;
    border-radius: 32px;
    padding: 36px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
    border: 1px solid #E0EDE6;
}
.info-block {
    flex: 1;
    min-width: 200px;
}
.info-block i {
    font-size: 1.6rem;
    color: #058669;
    margin-bottom: 15px;
}
.info-block h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.info-block p, .info-block address {
    font-style: normal;
    line-height: 1.5;
    color: #334e68;
}
.email-link {
    color: #058669;
    text-decoration: none;
    font-weight: 500;
}
.email-link:hover {
    text-decoration: underline;
}

footer {
    background: #EEF5F2;
    padding: 28px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #5c6f87;
}

/* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ (ширина < 900px) ========== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    .container {
        padding: 0 24px;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .company-name-main {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .contact-info {
        flex-direction: column;
    }
    .office-photo-vertical {
        max-width: 340px;
    }
    .ai-highlight {
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .company-name-main {
        font-size: 1.8rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .grid-2col {
        grid-template-columns: 1fr;
    }
    .office-photo-vertical {
        max-width: 280px;
    }
    .mobile-menu-container {
        width: 280px;
    }
    .mobile-nav-links a {
        font-size: 1.2rem;
    }
}

/* анимации fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 0.05s; }
.delay-200 { transition-delay: 0.1s; }
.delay-300 { transition-delay: 0.2s; }
