/**
 * Базовые стили
 *
 * @format
 */

:root {
    --blue: #3b82f6;
    --dark: #1a202c;
    --muted: #6b7280;
    --card-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #111827;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* NAVBAR */
.navbar {
    background: #fff;
    position: sticky;
    padding: 0 20px;
    top: 0;
    z-index: 60;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--blue);
    font-weight: 700;
    font-size: 22px;
}
.logo i {
    width: 22px;
    height: 22px;
    display: inline-block;
}

/* Mobile button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.mobile-menu-btn i {
    width: 20px;
    height: 20px;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-links a {
    text-decoration: none;
    color: #111827;
    display: inline-flex;
    align-items: center;
    height: 44px; /* фиксированная высота для вертикального выравнивания */
    padding: 0 6px;
    line-height: 1;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--blue);
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 20px 14px !important;
    border-radius: 9999px;
    background: var(--blue);
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: #2563eb;
}

/* HERO (header big) */
.hero {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.hero-inner {
    padding: 18px 0;
    text-align: center;
}
.site-title {
    margin: 0;
    font-size: 28px;
    color: var(--blue);
    font-weight: 800;
}
.site-tagline {
    margin: 6px 0 0;
    color: var(--muted);
    font-style: italic;
}

/* Sections */
.section {
    padding: 48px 0;
}
.section .section-title {
    margin: 0 0 12px;
    font-size: 26px;
    text-align: center;
    font-weight: 700;
}
.text-center {
    text-align: center;
}
.center {
    text-align: center;
}
.muted {
    color: var(--muted);
}
.mb-6 {
    margin-bottom: 24px;
}
.mt-8 {
    margin-top: 32px;
}
.mt-6 {
    margin-top: 24px;
}
.gap-6 {
    gap: 24px;
}

/* Cards grid */
.grid {
    display: grid;
    gap: 18px;
}
.three-cols {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .three-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}
.stats-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.icon-lg {
    width: 34px;
    height: 34px;
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
}
.card-title {
    font-weight: 700;
    margin: 6px 0;
}
.card-text {
    color: var(--muted);
    margin: 0;
}

/* Before/After slider */
.before-after-section .before-after-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    background: #e5e7eb;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}
.ba-before {
    z-index: 1;
}
.ba-after {
    z-index: 2;
    opacity: 1;
}
.ba-overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 3;
    background: transparent;
    mix-blend-mode: normal;
    pointer-events: none;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
}
.ba-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.06);
    cursor: grab;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
}
.ba-handle:active {
    cursor: grabbing;
}
.ba-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.ba-caption {
    position: relative;
    margin-top: 12px;
    text-align: center;
    color: #374151;
    font-weight: 600;
    z-index: 1;
}

/* Gallery */
.gallery-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--card-shadow);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact section */
.bg-dark {
    background: #111827;
}
.text-white {
    color: #fff;
}
.contact-grid {
    display: grid;
    gap: 18px;
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.contact-card {
    background: transparent;
    color: #fff;
}
.contact-line {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 12px 0;
}
.icon-sm {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--muted);
    padding: 28px 0;
}
.footer-inner {
    text-align: center;
}
.footer-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
}
.footer-links a:hover {
    color: #fff;
}
.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

/* Small devices nav */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        background: #fff;
        padding: 12px;
        flex-direction: column;
        gap: 6px;
        z-index: 70;
    }
    .nav-links.show {
        display: flex;
    }
}

/* Lightbox styles (created in JS) - kept minimal */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
#lightbox img {
    max-width: 94%;
    max-height: 94%;
    object-fit: contain;
}
