:root {
    --mh-red: #a31d22;
    --mh-red-dark: #962626;
    --mh-blue: #0b2c4d;
    --mh-gray: #56585e;
    --mh-text: #4a4a4a;
    --mh-light: #f5f6f7;
    --mh-border: #e3e5e8;
    --mh-white: #ffffff;
    --mh-shadow: 0 10px 30px rgba(11, 44, 77, 0.08);
    --mh-radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--mh-text);
    background: var(--mh-white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

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

.footer-author{
    display:flex;
    align-items:center;
    gap:15px;
}

.author-photo{
    width:58px;
    height:58px;
    min-width:58px;
    max-width:58px;
        border-radius:50%;
    object-fit:cover;
    display:block;
}
.hero-video {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    object-fit: contain;
}

.author-photo {
    width: 58px;
    height: 58px;
    min-width: 58px;
    max-width: 58px;
    min-height: 58px;
    max-height: 58px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex: 0 0 58px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--mh-border);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.header-nav a {
    padding: 8px 12px;
    color: var(--mh-blue);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 8px;
}

.header-nav a:hover {
    background: var(--mh-light);
    color: var(--mh-red);
}

.hero {
    background: linear-gradient(135deg, #f7f8f9 0%, #ffffff 70%);
    border-bottom: 1px solid var(--mh-border);
}

.hero-grid {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    padding: 60px 0;
}

.kicker {
    margin-bottom: 10px;
    color: var(--mh-red);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--mh-blue);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1.12rem;
    color: var(--mh-gray);
}

.hero-mascot {
    display: flex;
    justify-content: center;
    align-items: end;
}

.hero-mascot img {
    width: min(330px, 80%);
    max-height: 340px;
    object-fit: contain;
}

.section {
    padding: 70px 0;
}

.section.alt {
    background: var(--mh-light);
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0 0 5px;
    color: var(--mh-blue);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.2;
}

.section-title p {
    margin: 0;
    color: var(--mh-gray);
}

.featured-grid,
.recent-grid,
.all-grid {
    display: grid;
    gap: 24px;
}

.featured-grid {
    grid-template-columns: repeat(3, 1fr);
}

.recent-grid,
.all-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.card {
    overflow: hidden;
    background: var(--mh-white);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.feature-card {
    display: none;
}

.feature-card.active {
    display: block;
}

.feature-card-image,
.card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef0f2;
}

.feature-card-image img,
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover img,
.card:hover img {
    transform: scale(1.025);
}

.feature-card-body,
.card-body {
    padding: 20px;
}

.category {
    margin-bottom: 6px;
    color: var(--mh-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-date {
    margin-bottom: 8px;
    color: #777;
    font-size: 0.82rem;
}

.feature-card h3,
.card h3 {
    margin: 0 0 10px;
    color: var(--mh-blue);
    font-size: 1.2rem;
    line-height: 1.3;
}

.feature-card p,
.card p {
    margin: 0 0 15px;
    color: var(--mh-gray);
}

.read {
    display: inline-flex;
    align-items: center;
    color: var(--mh-red);
    font-weight: 800;
}

.read:hover {
    color: var(--mh-red-dark);
    text-decoration: underline;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    min-height: 12px;
    margin-top: 22px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c7cbd0;
}

.dot.active {
    background: var(--mh-red);
}

.search-box {
    padding: 24px;
    background: var(--mh-white);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    box-shadow: var(--mh-shadow);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-row input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #ccd1d6;
    border-radius: 10px;
    outline: none;
    font: inherit;
}

.search-row input:focus {
    border-color: var(--mh-blue);
}

.search-row button {
    min-height: 48px;
    padding: 0 22px;
    color: var(--mh-white);
    background: var(--mh-red);
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.search-row button:hover {
    background: var(--mh-red-dark);
}

.search-result {
    display: none;
    margin-top: 18px;
    border-top: 1px solid var(--mh-border);
}

.search-result.show {
    display: block;
}

.result-item {
    padding: 17px 0;
    border-bottom: 1px solid var(--mh-border);
}

.result-item small {
    display: block;
    margin-bottom: 3px;
    color: var(--mh-red);
    font-weight: 700;
}

.result-item a {
    display: block;
    margin-bottom: 4px;
    color: var(--mh-blue);
    font-size: 1.05rem;
    font-weight: 800;
}

.no-result {
    padding: 20px 0 5px;
    color: var(--mh-gray);
}

.sequence {
    border-top: 1px solid var(--mh-border);
}

.sequence-item {
    border-bottom: 1px solid var(--mh-border);
}

.sequence-item a {
    display: grid;
    grid-template-columns: 70px 140px 1fr;
    align-items: center;
    gap: 18px;
    padding: 16px 10px;
}

.sequence-item a:hover {
    background: rgba(255, 255, 255, 0.65);
}

.sequence-number {
    color: var(--mh-red);
    font-size: 1.3rem;
    font-weight: 900;
}

.sequence-category {
    color: var(--mh-red);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sequence-title {
    color: var(--mh-blue);
    font-weight: 700;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 25px;
}

.filter {
    padding: 9px 15px;
    color: var(--mh-blue);
    background: var(--mh-white);
    border: 1px solid var(--mh-border);
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.filter:hover,
.filter.active {
    color: var(--mh-white);
    background: var(--mh-red);
    border-color: var(--mh-red);
}

.all-card.hidden {
    display: none;
}

footer {
    padding: 42px 0;
    color: #e9edf0;
    background: var(--mh-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-title {
    margin-bottom: 5px;
    font-weight: 800;
}

.footer-text {
    color: #cbd5dd;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a {
    color: #e9edf0;
    font-size: 0.92rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .header-inner {
        align-items: flex-start;
        padding: 15px 0;
    }

    .header-nav {
        justify-content: flex-start;
    }

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

    .hero p {
        margin-inline: auto;
    }

    .featured-grid,
    .recent-grid,
    .all-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
    }

    .header-nav {
        justify-content: center;
    }

    .hero-grid {
        padding: 45px 0;
    }

    .section {
        padding: 50px 0;
    }

    .featured-grid,
    .recent-grid,
    .all-grid {
        grid-template-columns: 1fr;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .sequence-item a {
        grid-template-columns: 48px 1fr;
    }

    .sequence-category {
        display: none;
    }
}
