/* local_volgmed_home — public homepage (design aligned to Kursoryum mockup) */

:root {
    --vmh-emerald: #0b3d36;
    --vmh-emerald-deep: #072e29;
    --vmh-teal: #0e6b5c;
    --vmh-teal-mid: #148f7a;
    --vmh-sand: #d4b896;
    --vmh-sand-hot: #e2c9a4;
    --vmh-ink: #14221f;
    --vmh-muted: #5a6b66;
    --vmh-paper: #f5f7f6;
    --vmh-white: #ffffff;
    --vmh-blue: #1a6fd4;
    --vmh-sky: #3b8fd9;
    --vmh-mint: #5fbf8a;
    --vmh-lime: #8bc34a;
    --vmh-red: #c94a4a;
    --vmh-radius: 22px;
    --vmh-radius-sm: 16px;
    --vmh-shadow: 0 12px 40px rgb(7 46 41 / 12%);
    --vmh-font: "Manrope", "Segoe UI", sans-serif;
    --vmh-max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.vmh-body {
    margin: 0;
    font-family: var(--vmh-font);
    color: var(--vmh-ink);
    background: var(--app-background, var(--vmh-paper));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

.vmh-main {
    overflow-x: hidden;
}

/* Sticky header */
.vmh-sticky {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    transform: translateY(-110%);
    transition: transform .28s ease, box-shadow .28s ease;
    background: rgb(7 46 41 / 92%);
    backdrop-filter: blur(10px);
    color: var(--vmh-white);
}

.vmh-sticky.is-visible {
    transform: translateY(0);
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.vmh-sticky[aria-hidden="false"] {
    /* shown */
}

.vmh-sticky__inner {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vmh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.vmh-brand__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.vmh-sticky__login {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 45%);
    font-size: 14px;
    font-weight: 600;
}

.vmh-sticky__login:hover {
    background: rgb(255 255 255 / 12%);
}

/* Buttons */
.vmh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid transparent;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

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

.vmh-btn--sand {
    background: var(--vmh-sand);
    color: var(--vmh-emerald-deep);
}

.vmh-btn--sand:hover {
    background: var(--vmh-sand-hot);
}

.vmh-btn--sand-sm {
    background: var(--vmh-sand);
    color: var(--vmh-emerald-deep);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.vmh-btn--ghost {
    background: transparent;
    color: var(--vmh-white);
    border-color: rgb(255 255 255 / 55%);
}

.vmh-btn--ghost:hover {
    background: rgb(255 255 255 / 10%);
}

.vmh-btn--ghost-light {
    background: transparent;
    color: var(--vmh-white);
    border-color: rgb(255 255 255 / 65%);
    align-self: flex-start;
}

/* Hero */
.vmh-hero {
    background: linear-gradient(135deg, #0a4a40 0%, #0b3d36 42%, #08332e 100%);
    color: var(--vmh-white);
    padding: 36px 20px 48px;
    position: relative;
    overflow: hidden;
}

.vmh-hero__inner {
    max-width: var(--vmh-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 28px;
    align-items: center;
    min-height: min(72vh, 620px);
}

.vmh-hero__brand {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: 18px;
}

.vmh-hero__title {
    margin: 0 0 18px;
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.vmh-hero__text {
    margin: 0 0 28px;
    max-width: 34em;
    font-size: 16px;
    line-height: 1.55;
    color: rgb(255 255 255 / 86%);
}

.vmh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vmh-hero__visual {
    position: relative;
    min-height: 280px;
}

.vmh-hero__image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgb(0 0 0 / 25%));
}

.vmh-hero__placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, rgb(94 220 190 / 45%), transparent 55%),
        radial-gradient(circle at 70% 60%, rgb(20 180 150 / 35%), transparent 50%),
        linear-gradient(160deg, #0e6b5c, #062823);
    opacity: .9;
}

/* Posters / guides — cabinet UI (local_volgmed_guides) */
.vmh-posters {
    max-width: var(--vmh-max);
    margin: -28px auto 0;
    padding: 0 20px 8px;
    position: relative;
    z-index: 2;
}

.vmh-posters--guides .vmh-posters__cabinet {
    width: 100%;
}

.vmh-posters--guides .volgmed-guides {
    margin: 0;
    padding: 0;
    background: transparent;
}

.vmh-posters--guides .volgmed-guides-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.vmh-posters--guides .volgmed-guide-modal {
    z-index: 11000;
}

/* News */
.vmh-news {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 56px 20px 24px;
}

.vmh-news__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.vmh-news__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.vmh-news__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.vmh-news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--vmh-radius);
    overflow: hidden;
    background: var(--vmh-white);
    box-shadow: var(--vmh-shadow);
    min-height: 0;
    transition: transform .18s ease;
}

.vmh-news-card:hover {
    transform: translateY(-3px);
}

.vmh-news-card--featured {
    grid-row: 1 / span 2;
    position: relative;
    min-height: 420px;
    color: var(--vmh-white);
}

.vmh-news-card--featured .vmh-news-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vmh-news-card--featured .vmh-news-card__overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    background: linear-gradient(transparent, rgb(8 40 35 / 88%));
}

.vmh-news-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dce6e2;
}

.vmh-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vmh-news-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.vmh-news-card__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.vmh-news-card--featured .vmh-news-card__name {
    font-size: clamp(18px, 2vw, 24px);
}

.vmh-news-card__date {
    font-size: 12px;
    color: var(--vmh-muted);
    margin-top: auto;
}

.vmh-news-card--featured .vmh-news-card__date {
    color: rgb(255 255 255 / 75%);
}

/* When only featured + fewer cards, let grid breathe */
.vmh-news__grid > .vmh-news-card:not(.vmh-news-card--featured):nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}
.vmh-news__grid > .vmh-news-card:not(.vmh-news-card--featured):nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}
.vmh-news__grid > .vmh-news-card:not(.vmh-news-card--featured):nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}
.vmh-news__grid > .vmh-news-card:not(.vmh-news-card--featured):nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* Promo */
.vmh-promo {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 28px 20px;
}

.vmh-promo__card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(120deg, #0e6b5c 0%, #0b4f46 55%, #0a3d36 100%);
    color: var(--vmh-white);
    box-shadow: var(--vmh-shadow);
}

.vmh-promo__media {
    border-radius: 18px;
    overflow: hidden;
    min-height: 180px;
    background: rgb(255 255 255 / 12%);
}

.vmh-promo__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.vmh-promo__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.vmh-promo__text {
    margin: 0 0 20px;
    color: rgb(255 255 255 / 88%);
    max-width: 36em;
}

.vmh-promo__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Courses */
.vmh-courses {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 36px 20px 20px;
}

.vmh-courses__head {
    margin-bottom: 22px;
}

.vmh-courses__title {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
}

.vmh-courses__subtitle {
    margin: 0;
    color: var(--vmh-muted);
    font-size: 16px;
}

.vmh-courses__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vmh-course {
    border-radius: var(--vmh-radius);
    padding: 22px;
    color: var(--vmh-white);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--vmh-shadow);
}

.vmh-course--teal { background: linear-gradient(165deg, #128a74, #0b4f46); }
.vmh-course--blue { background: linear-gradient(165deg, #2b7fe0, #1557a8); }
.vmh-course--sand { background: linear-gradient(165deg, #d2b184, #a8844f); color: #2a2215; }

.vmh-course__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.vmh-course__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgb(255 255 255 / 22%);
}

.vmh-course__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgb(255 255 255 / 18%);
}

.vmh-course--sand .vmh-course__badge {
    background: rgb(42 34 21 / 12%);
}

.vmh-course__name {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.vmh-course__summary {
    margin: 0;
    font-size: 14px;
    opacity: .9;
    flex: 1;
}

.vmh-course__go {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.vmh-course__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 22%);
}

/* Sites */
.vmh-sites {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 40px 20px 56px;
}

.vmh-sites__title {
    margin: 0 0 22px;
    text-align: center;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
}

.vmh-sites__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.vmh-site {
    position: relative;
    grid-column: span 2;
    min-height: 200px;
    border-radius: var(--vmh-radius);
    background: var(--vmh-site-bg, var(--vmh-teal));
    overflow: hidden;
    color: var(--vmh-white);
    box-shadow: var(--vmh-shadow);
}

.vmh-site--large {
    grid-column: span 3;
    min-height: 240px;
}

.vmh-site__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    transition: transform .35s ease, opacity .25s ease;
}

.vmh-site:hover .vmh-site__img {
    transform: scale(1.04);
    opacity: .4;
}

.vmh-site__content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, rgb(0 0 0 / 25%), transparent 55%);
}

.vmh-site__name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    max-width: 12em;
}

.vmh-site__btn {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--vmh-white);
    color: var(--vmh-emerald-deep);
    font-weight: 700;
    font-size: 13px;
    transition: opacity .2s ease, transform .2s ease;
}

.vmh-site:hover .vmh-site__btn,
.vmh-site:focus-within .vmh-site__btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Footer */
.vmh-footer {
    background: var(--vmh-emerald-deep);
    color: rgb(255 255 255 / 88%);
    padding-top: 36px;
}

.vmh-footer__top {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 0 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.vmh-footer__logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: rgb(255 255 255 / 12%);
}

.vmh-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-weight: 600;
    font-size: 14px;
}

.vmh-footer__nav a:hover {
    color: var(--vmh-sand);
}

.vmh-footer__topbtn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 35%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.vmh-footer__mid {
    max-width: var(--vmh-max);
    margin: 0 auto;
    padding: 8px 20px 28px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
}

.vmh-footer__social {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
}

.vmh-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vmh-footer__col h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--vmh-sand);
}

.vmh-footer__colbody {
    font-size: 13px;
    line-height: 1.45;
}

.vmh-footer__colbody p {
    margin: 0 0 6px;
}

.vmh-footer__ticker {
    overflow: hidden;
    border-top: 1px solid rgb(255 255 255 / 10%);
    background: #063029;
    padding: 12px 0;
    white-space: nowrap;
}

.vmh-footer__ticker-track {
    display: inline-flex;
    animation: vmh-ticker 28s linear infinite;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 35%);
}

.vmh-footer__ticker-track span {
    padding-right: 1rem;
}

@keyframes vmh-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 960px) {
    .vmh-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .vmh-hero__visual {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }

    .vmh-posters--guides .volgmed-guides-track {
        gap: 10px;
    }

    .vmh-news__grid {
        grid-template-columns: 1fr 1fr;
    }

    .vmh-news-card--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }

    .vmh-news__grid > .vmh-news-card:not(.vmh-news-card--featured):nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .vmh-promo__card {
        grid-template-columns: 1fr;
    }

    .vmh-courses__grid {
        grid-template-columns: 1fr;
    }

    .vmh-sites__grid {
        grid-template-columns: 1fr 1fr;
    }

    .vmh-site,
    .vmh-site--large {
        grid-column: span 1;
    }

    .vmh-footer__mid,
    .vmh-footer__cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vmh-news__grid {
        grid-template-columns: 1fr;
    }

    .vmh-sites__grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .vmh-site__btn {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
