@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #eef7ff;
    --bg-card: #ffffff;
    --bg-card-soft: #f4f9ff;
    --text-main: #102033;
    --text-muted: #3e5368;
    --line: #d6e2ef;
    --primary: #0f80ff;
    --primary-dark: #0859b3;
    --accent: #f65a1a;
    --success: #0b8f56;
    --danger: #bf2f2f;
    --shadow: 0 18px 40px rgba(5, 43, 77, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 10%, rgba(15, 128, 255, 0.16), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(246, 90, 26, 0.16), transparent 22%),
        linear-gradient(180deg, #f6fbff 0%, var(--bg-main) 100%);
}

body.activity-modal-open {
    overflow: hidden;
}

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

main {
    width: min(1160px, calc(100% - 2.2rem));
    margin: 0 auto;
    padding: 1.2rem 0 3rem;
}

.section-block {
    margin-top: 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    scroll-margin-top: 95px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    padding: 0.72rem 1rem;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #e5eff9;
    background: #fff;
    padding: 4px;
}

.brand-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.brand-text strong {
    display: block;
    font-size: 1rem;
}

.brand-text span {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56vw;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0.48rem 0.72rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav > a,
.nav-group > a {
    text-decoration: none;
    color: var(--text-main);
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
}

.main-nav > a:hover,
.nav-group > a:hover {
    background: #edf5ff;
    color: var(--primary-dark);
}

.nav-group {
    position: relative;
}

.submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 14px;
    min-width: 220px;
    display: none;
    overflow: hidden;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
    display: block;
}

.submenu a {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    padding: 0.55rem 0.75rem;
    font-size: 0.89rem;
}

.submenu a:hover {
    background: #f1f7ff;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: stretch;
}

.hero-content h1 {
    margin: 0 0 0.6rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4.6vw, 3.9rem);
    line-height: 1;
    letter-spacing: 0.03em;
}

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

.eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    background: linear-gradient(90deg, #d9ebff, #ffe7db);
    color: #294766;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    padding: 0.62rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 128, 255, 0.26);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid #b5d4f8;
}

.hero-poster {
    background: linear-gradient(160deg, #0f80ff, #0050a8 68%, #003f81);
    border-radius: 18px;
    padding: 1rem;
    color: #eff7ff;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 0.6rem;
}

.hero-poster img {
    width: min(220px, 85%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    padding: 0.7rem;
}

.hero-poster p {
    margin: 0;
    max-width: 320px;
    color: #d6ebff;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    letter-spacing: 0.03em;
}

.section-heading p {
    margin: 0.18rem 0 0;
    color: var(--text-muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.profile-card {
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
}

.profile-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
}

.profile-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.profile-card-wide {
    grid-column: 1 / -1;
}

.lazy-panel {
    min-height: 160px;
}

.lazy-skeleton {
    border-radius: 14px;
    border: 1px dashed #b8cfeb;
    background: repeating-linear-gradient(
        -45deg,
        #f1f7ff,
        #f1f7ff 10px,
        #e7f2ff 10px,
        #e7f2ff 20px
    );
    color: #2f567e;
    text-align: center;
    padding: 2rem 1rem;
    font-weight: 600;
}

.lazy-empty {
    border: 1px solid #c9dcf0;
    border-radius: 14px;
    background: #f8fbff;
    padding: 1rem;
    text-align: center;
}

.lazy-empty p {
    margin: 0 0 0.8rem;
    color: var(--text-muted);
}

.btn-inline {
    text-decoration: none;
    color: #fff;
    background: var(--primary-dark);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
}

.ig-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.ig-card,
.article-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(9, 41, 72, 0.08);
}

.ig-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ig-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.activity-card {
    display: flex;
    flex-direction: column;
}

.activity-media-trigger {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    display: block;
    width: 100%;
    text-align: left;
    cursor: zoom-in;
}

.activity-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #eaf2fc;
    overflow: hidden;
}

.activity-media img,
.activity-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-media video {
    pointer-events: none;
}

@supports not (aspect-ratio: 9 / 16) {
    .activity-media::before {
        content: '';
        display: block;
        padding-top: 177.7778%;
    }
}

.ig-fallback-image {
    width: 100%;
    height: 220px;
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(130deg, #eb4f0e, #ba1e89, #3551db);
}

.ig-content {
    padding: 0.8rem;
}

.ig-date {
    margin: 0;
    font-size: 0.78rem;
    color: #5f7c98;
}

.ig-content h3 {
    margin: 0.36rem 0 0.4rem;
    font-size: 1rem;
    line-height: 1.35;
}

.ig-link {
    font-size: 0.84rem;
    color: #245f9a;
    font-weight: 600;
}

.activity-caption {
    margin-top: 0.45rem;
}

.activity-readmore-btn {
    margin-top: 0.58rem;
    border: 0;
    border-radius: 999px;
    background: #eef5ff;
    color: #0d4b87;
    padding: 0.42rem 0.76rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.activity-readmore-btn:hover {
    background: #dcecff;
}

.activity-modal[hidden] {
    display: none;
}

.activity-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.activity-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 34, 0.68);
    backdrop-filter: blur(2px);
}

.activity-modal-dialog {
    position: relative;
    width: min(860px, calc(100% - 1rem));
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
    background: #ffffff;
    border-radius: 14px;
    overflow: auto;
    padding: 0.72rem;
    box-shadow: 0 26px 60px rgba(10, 28, 52, 0.4);
}

.activity-modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d7e3f0;
    background: #fff;
    font-size: 1.45rem;
    cursor: pointer;
}

.activity-modal-media {
    width: min(440px, 100%);
    aspect-ratio: 9 / 16;
    margin: 0.35rem auto 0.65rem;
    border-radius: 12px;
    overflow: hidden;
    background: #e7eff9;
}

.activity-modal-media img,
.activity-modal-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f1f2f;
    display: block;
}

.activity-modal-caption {
    margin: 0.45rem 0 0;
    color: #253c55;
    line-height: 1.6;
    white-space: pre-wrap;
}

.lazy-note {
    margin: 0.7rem 0 0;
    color: #5d7690;
    font-size: 0.86rem;
}

.article-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #eef5ff;
}

.article-body {
    padding: 0.85rem;
}

.article-body h3 {
    margin: 0;
    font-size: 1.07rem;
}

.article-meta {
    margin: 0.4rem 0 0.5rem;
    color: #5c7590;
    font-size: 0.85rem;
}

.article-body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.58;
}

.article-body details {
    margin-top: 0.65rem;
}

.article-body summary {
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 700;
}

.article-full {
    margin-top: 0.55rem;
    border-top: 1px dashed #d5e4f3;
    padding-top: 0.5rem;
    color: #22394f;
    line-height: 1.66;
}

.alert {
    border-radius: 12px;
    margin-bottom: 0.8rem;
    padding: 0.72rem 0.8rem;
    font-weight: 600;
}

.alert-success {
    background: #e6f9ef;
    border: 1px solid #a8e0c3;
    color: var(--success);
}

.alert-error {
    background: #fff1f1;
    border: 1px solid #f0c4c4;
    color: var(--danger);
}

.contact-form {
    display: grid;
    gap: 0.56rem;
}

.contact-form label {
    font-weight: 700;
    font-size: 0.93rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.72rem 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fbfdff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(15, 128, 255, 0.26);
    outline-offset: 1px;
}

.site-footer {
    width: min(1160px, calc(100% - 2.2rem));
    margin: 1.1rem auto 2rem;
    background: #0f233a;
    color: #e8f2fd;
    border-radius: 16px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 0.8fr 1.15fr 1fr;
    gap: 1rem;
}

.footer-col h3 {
    margin: 0 0 0.45rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
    font-size: 1.55rem;
}

.footer-col p {
    margin: 0 0 0.7rem;
    line-height: 1.6;
    color: #c8dbf0;
}

.footer-col a {
    display: block;
    color: #d6ebff;
    text-decoration: none;
    margin: 0.2rem 0;
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col iframe {
    width: 100%;
    min-height: 210px;
    border: 0;
    border-radius: 12px;
}

.social-wrap {
    margin-top: 0.8rem;
}

.social-wrap a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.44rem 0.68rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.social-wrap svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 1040px) {
    .ig-grid,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        left: 0.8rem;
        right: 0.8rem;
        top: 66px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
        padding: 0.5rem;
        gap: 0.2rem;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a,
    .nav-group > a {
        padding: 0.65rem 0.72rem;
    }

    .submenu {
        position: static;
        display: block;
        box-shadow: none;
        border: 1px dashed var(--line);
        margin: 0 0.5rem 0.3rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .brand-text span {
        max-width: 44vw;
    }
}

@media (max-width: 620px) {
    main,
    .site-footer {
        width: calc(100% - 1rem);
    }

    .section-block {
        padding: 1rem;
    }

    .ig-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-text strong {
        font-size: 0.92rem;
    }

    .brand-text span {
        font-size: 0.68rem;
    }
}
