/* ============================================
  общие стили для main
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e1e2a;
    background-color: #f8fafc;
    line-height: 1.6;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* ----- Кнопки (общие) ----- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    color: #0b7bb8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-primary {
    background: #0b7bb8;
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 123, 184, 0.25);
}

.btn-primary:hover {
    background: #065a86;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #0b7bb8;
    color: #0b7bb8;
}

.btn-outline:hover {
    background: #0b7bb8;
    color: #fff;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 30px;
    background: #eef5fa;
    color: #0b7bb8;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.btn-sm:hover {
    background: #0b7bb8;
    color: #fff;
}

/* ----- Карточки (общие) ----- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px 28px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    border: 1px solid #edf2f7;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

/* ----- Секции ----- */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0b2a3b;
}

.section-sub {
    color: #475569;
    max-width: 600px;
    margin-bottom: 36px;
}

/* ----- Карусель ----- */
.carousel-section {
    padding: 20px 0 40px;
    background: #f8fafc;
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    background: #cbd5e1;
    background-size: cover;
    background-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
    color: #0b2a3b;
    z-index: 10;
}

.carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px 0 8px;
}

.carousel-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dots span.active {
    background: #0b7bb8;
    width: 32px;
    border-radius: 8px;
}

/* ----- Карта ----- */
.map-section {
    padding: 20px 0 50px;
}

.map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    background: #e2e8f0;
    aspect-ratio: 16 / 7;
    min-height: 320px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ============================================
   КОМПОНЕНТЫ: Шапка, навигация, футер
   ============================================ */

/* ----- Шапка ----- */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.6rem;
    color: #0b7bb8;
}

.logo img {
    height: 48px;
    width: auto;
}

/* ----- Навигация ----- */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
}

.nav a {
    font-size: 1rem;
    color: #2c3e50;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav a:hover {
    color: #0b7bb8;
    border-bottom-color: #0b7bb8;
}

.nav .btn-cabinet {
    background: #0b7bb8;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 30px;
    border-bottom: none;
    font-weight: 600;
    transition: background 0.2s;
}

.nav .btn-cabinet:hover {
    background: #065a86;
    border-bottom: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: #1e1e2a;
    border-radius: 4px;
    transition: 0.3s;
}

/* ----- Футер ----- */
.footer {
    background: #0b2a3b;
    color: #cbd5e1;
    padding: 28px 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 16px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
    background: transparent;
    opacity: 0.5;
}

.lang-btn.active {
    opacity: 1;
    background: rgba(11, 123, 184, 0.15);
    box-shadow: 0 0 0 2px #0b7bb8;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(11, 123, 184, 0.08);
}
/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 820px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 20px 0 10px;
        gap: 16px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        margin-top: 14px;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .map-wrapper {
        aspect-ratio: 4 / 3;
    }
}

/* для иконок соцсетей */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0b7bb8;
    color: #fff;
    font: 700 13px/1 -apple-system, sans-serif;
    text-decoration: none;
    transition: 0.2s;
    margin-right: 8px;
}

.social-link:hover {
    background: #065a86;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    .logo img {
        height: 36px;
    }
    .section-title {
        font-size: 1.6rem;
    }
}