:root {
    --site-ink: #132d46;
    --site-muted: #63788d;
    --site-blue: #1d5e83;
    --site-cyan: #62c6d6;
    --site-paper: #f3f7fa;
    --site-line: #e3ebf0;
    --site-card: #ffffff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    color: var(--site-ink);
    background: var(--site-paper) !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--site-blue);
}

.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(19, 45, 70, .07);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
}

.site-header-inner,
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    color: var(--site-ink);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.07em;
    text-decoration: none;
}

.site-brand img {
    display: block;
    width: 144px;
    height: auto;
}

.site-brand span {
    color: var(--site-cyan);
}

.site-header-link {
    padding: .6rem 1rem;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    color: var(--site-ink);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.site-header-link:hover {
    border-color: #b6dce5;
    background: #eaf6f8;
}

.site-main {
    min-height: calc(100vh - 150px);
}

.site-container {
    max-width: 1180px;
    padding-top: 1.25rem;
    padding-bottom: 4.5rem;
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: .75rem 0;
    overflow: hidden;
}

.category-nav-label {
    flex: 0 0 auto;
    color: var(--site-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.category-nav-links {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.category-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
    color: var(--site-ink);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.category-chip img {
    object-fit: contain;
}

.category-chip:hover {
    border-color: #addce5;
    background: #eaf7f9;
    color: var(--site-blue);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .75fr);
    align-items: center;
    min-height: 410px;
    margin: .4rem 0 4.2rem;
    padding: clamp(2rem, 6vw, 4.4rem);
    overflow: hidden;
    border: 1px solid rgba(84, 157, 181, .2);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at 86% 45%, rgba(147, 223, 230, .45), transparent 35%),
        linear-gradient(118deg, #f8fcfd 0%, #e8f5f8 55%, #cbe8ee 100%);
    box-shadow: 0 24px 64px rgba(30, 82, 108, .1);
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 590px;
}

.home-eyebrow,
.admin-eyebrow {
    margin-bottom: .8rem;
    color: #387c97;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.home-eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: .4rem;
    border-radius: 50%;
    background: var(--site-cyan);
    box-shadow: 0 0 0 4px rgba(98, 198, 214, .18);
    vertical-align: 1px;
}

.home-hero h1 {
    margin: 0;
    color: #102b45;
    font-size: clamp(2.7rem, 5.7vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: .99;
}

.home-hero h1 span {
    color: #368aa6;
}

.home-hero-description {
    max-width: 480px;
    margin: 1.35rem 0 1.7rem;
    color: #526e82;
    font-size: 1.04rem;
    line-height: 1.75;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1.2rem;
    border: 0;
    border-radius: 12px;
    background: #123c5d;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(18, 60, 93, .18);
}

.home-hero-button:hover {
    background: #1e5c7d;
    color: white;
    transform: translateY(-1px);
}

.home-hero-art {
    position: relative;
    height: 300px;
    margin: 0 -2rem 0 0;
}

.iceberg-orbit {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(39, 130, 159, .14);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-two {
    width: 220px;
    height: 220px;
    border-style: dashed;
    border-color: rgba(39, 130, 159, .2);
}

.iceberg-sun {
    position: absolute;
    top: 8%;
    left: 55%;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #b8e4eb);
    box-shadow: 0 0 48px rgba(117, 207, 220, .6);
}

.iceberg-shape {
    position: absolute;
    top: 25%;
    left: 50%;
    width: 170px;
    height: 206px;
    overflow: hidden;
    clip-path: polygon(50% 0, 77% 36%, 100% 47%, 83% 100%, 12% 100%, 0 51%, 29% 42%);
    background: linear-gradient(145deg, #fff 2%, #b1e3ea 42%, #65aabf 100%);
    filter: drop-shadow(0 18px 22px rgba(28, 93, 121, .2));
    transform: translateX(-50%);
}

.iceberg-shape span {
    position: absolute;
    top: 48%;
    left: -12%;
    width: 130%;
    height: 60%;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(145deg, #72bdd0, #1d5e83);
    opacity: .8;
}

.iceberg-waterline {
    position: absolute;
    top: 57%;
    left: 2%;
    width: 96%;
    height: 1px;
    background: rgba(31, 112, 143, .38);
    box-shadow: 0 6px 24px rgba(44, 132, 160, .17);
}

.iceberg-depth-mark {
    position: absolute;
    left: 78%;
    width: 38px;
    height: 1px;
    background: rgba(26, 111, 145, .5);
}

.depth-mark-one { top: 67%; }
.depth-mark-two { top: 79%; width: 58px; }
.depth-mark-three { top: 91%; width: 28px; }

.home-section {
    margin: 0 0 4rem;
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.home-section-heading .home-eyebrow {
    margin-bottom: .45rem;
}

.home-section-heading h2,
.telegram-banner h2 {
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.home-section-note {
    padding-bottom: .25rem;
    color: var(--site-muted);
    font-size: .85rem;
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: var(--site-card);
    color: var(--site-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover,
.iceberg-card:hover {
    border-color: #c1e0e7;
    box-shadow: 0 13px 30px rgba(26, 67, 94, .08);
    color: var(--site-ink);
    transform: translateY(-3px);
}

.category-card-image {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: #eff8fa;
}

.category-card-image img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.category-card-copy {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.category-card-copy strong {
    overflow: hidden;
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card-copy > span {
    color: var(--site-muted);
    font-size: .75rem;
}

.category-card-arrow,
.iceberg-card-arrow {
    margin-left: auto;
    color: #7e9cad;
    font-size: 1rem;
    transition: color .2s ease, transform .2s ease;
}

.category-card:hover .category-card-arrow,
.iceberg-card:hover .iceberg-card-arrow {
    color: #287c9c;
    transform: translate(2px, -2px);
}

.iceberg-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.iceberg-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: var(--site-card);
    color: var(--site-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.iceberg-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.iceberg-card-category {
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #eff7f9;
    color: #397e98;
    font-size: .69rem;
    font-weight: 700;
}

.iceberg-card > strong {
    margin-bottom: .55rem;
    font-size: 1.1rem;
    letter-spacing: -.025em;
}

.iceberg-card-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--site-muted);
    font-size: .86rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.iceberg-card-link {
    display: flex;
    gap: .45rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    color: #287c9c;
    font-size: .82rem;
    font-weight: 700;
}

.home-empty-state {
    padding: 3.5rem 1.5rem;
    border: 1px dashed #c9dce5;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.home-empty-state > span {
    color: #4a9eb2;
    font-size: 2rem;
}

.home-empty-state h3 {
    margin: .7rem 0 .35rem;
    font-size: 1.15rem;
}

.home-empty-state p {
    margin: 0;
    color: var(--site-muted);
}

.telegram-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    border-radius: 20px;
    background: linear-gradient(115deg, #153d5d, #245f78);
    color: #fff;
}

.telegram-banner h2 {
    color: #fff;
}

.telegram-banner .home-eyebrow {
    color: #9edce4;
}

.telegram-banner p:last-child {
    margin: .45rem 0 0;
    color: rgba(255, 255, 255, .73);
    font-size: .9rem;
}

.telegram-button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: .7rem;
    align-items: center;
    padding: .8rem 1rem;
    border-radius: 11px;
    background: #fff;
    color: #173d5c;
    font-weight: 700;
}

.telegram-button:hover {
    background: #dff3f5;
    color: #173d5c;
}

.site-footer {
    border-top: 1px solid var(--site-line);
    background: #fff;
}

.site-footer-inner {
    min-height: 74px;
}

.site-brand-small {
    font-size: 1.15rem;
}

.site-footer p {
    margin: 0;
    color: var(--site-muted);
    font-size: .8rem;
}

.sidebar-detached-content {
    min-height: 55vh;
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
}

.page-header {
    margin: 1rem 0 1.5rem;
}

.page-header-title {
    color: var(--site-ink);
    font-weight: 800;
    letter-spacing: -.04em;
}

.breadcrumb {
    font-size: .82rem;
}

.card {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(23, 55, 79, .035);
}

.card-header {
    border-bottom-color: var(--site-line);
    background: #fff;
}

.card-header-title,
.card-header h3 {
    color: var(--site-ink);
    font-weight: 700;
}

.iceberg-item {
    border-radius: 999px;
}

.modal-content {
    border: 0;
    border-radius: 18px;
}

@media (max-width: 1199.98px) {
    .sidebar-detached-content > .row > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
    }

    .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iceberg-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header-inner,
    .site-footer-inner {
        min-height: 64px;
    }

    .site-brand img {
        width: 120px;
    }

    .site-container {
        padding-top: .6rem;
        padding-bottom: 3rem;
    }

    .category-nav {
        display: block;
        margin-bottom: .7rem;
        padding: .65rem 0;
    }

    .category-nav-label {
        display: block;
        margin-bottom: .55rem;
    }

    .home-hero {
        display: block;
        min-height: auto;
        margin: .25rem 0 3rem;
        padding: 2rem 1.35rem 1.2rem;
        border-radius: 21px;
    }

    .home-hero h1 {
        font-size: clamp(2.65rem, 12vw, 3.7rem);
    }

    .home-hero-description {
        font-size: .95rem;
    }

    .home-hero-art {
        height: 180px;
        margin: .8rem 0 0;
        transform: scale(.8);
        transform-origin: center top;
    }

    .iceberg-orbit {
        width: 220px;
        height: 220px;
    }

    .orbit-two {
        width: 175px;
        height: 175px;
    }

    .iceberg-shape {
        top: 17%;
        width: 140px;
        height: 175px;
    }

    .home-section {
        margin-bottom: 3rem;
    }

    .home-section-heading {
        align-items: start;
    }

    .home-section-note {
        display: none;
    }

    .category-card-grid,
    .iceberg-card-grid {
        grid-template-columns: 1fr;
    }

    .iceberg-card {
        min-height: 195px;
    }

    .telegram-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.4rem;
    }

    .site-footer-inner {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
