:root {
    --nav-gray: #cfcfcf;
    --page-bg: #eeeeee;
    --accent: #568cad;
    --navy: #1c244b;
    --footer-text: #324a6d;
    --button-gray: #9b9b9b;
    --white: #ffffff;
    --about-cyan: #00a0e4;
    --about-navy: #0b1c4d;
    --founder-purple: #9b6bc4;
    --media-purple: #8e4ecf;
    --media-orange: #e67e22;
    --media-green: #1aaa7a;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Roboto, Arial, sans-serif;
    background: var(--page-bg);
    color: #222;
    min-height: 100vh;
}

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

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.site-header {
    background: var(--white);
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    gap: 24px;
}

.site-logo {
    display: block;
    max-width: 220px;
}

.site-logo img {
    display: block;
    width: 100%;
}

.site-nav ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 8px 15px;
    color: #c45c5c;
    font-size: 15px;
}

.site-nav a[aria-current="page"] {
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #494c4f;
    position: absolute;
    left: 12px;
}

.nav-toggle-bar {
    top: 20px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.section-nav {
    background: var(--nav-gray);
}

.section-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0 auto;
    padding: 14px 8px;
    max-width: 1100px;
}

.section-nav a {
    display: block;
    text-align: center;
    color: var(--accent);
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 8px;
}

.section-nav a[aria-current="page"] {
    text-decoration: underline;
}

#content {
    min-height: 50vh;
}

.hero-poster {
    display: block;
    margin: 50px auto 24px;
    max-width: 662px;
}

.hero-video {
    display: block;
    width: min(900px, calc(100% - 48px));
    margin: 0 auto 32px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.btn-row {
    display: flex;
    justify-content: center;
    padding: 12px 0 28px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 30px 40px;
}

.btn-gray {
    background: var(--button-gray);
}

.showcase {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.panel {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 40px 32px;
    color: #fff;
}

.panel h1,
.panel h2 {
    font-family: Poppins, sans-serif;
    margin: 0 0 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel p {
    margin: 0 0 12px;
    line-height: 1.5;
    font-weight: 400;
}

.panel-cyan {
    background: var(--about-cyan);
}

.panel-navy {
    background: var(--about-navy);
    text-align: center;
}

.panel-purple {
    background: var(--media-purple);
}

.panel-orange {
    background: var(--media-orange);
}

.panel-green {
    background: var(--media-green);
}

.split {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto 24px;
}

.split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    background: var(--founder-purple);
    color: #fff;
    max-width: 1100px;
    margin: 0 auto 16px;
    padding: 32px;
}

.founder img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: left center;
}

.founder h3 {
    margin: 0 0 4px;
    font-family: Poppins, sans-serif;
}

.founder .role {
    font-style: italic;
    margin: 0 0 12px;
}

.founder p {
    margin: 0;
    line-height: 1.5;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.card {
    color: #fff;
    min-height: 180px;
    padding: 28px 22px;
}

.card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.involve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 16px 40px;
}

.involve-card {
    background: var(--white);
    padding: 24px;
}

.involve-card h2 {
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.involve-card p {
    line-height: 1.5;
}

.newsletter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter input {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #ccc;
}

.newsletter button,
.form button {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 1100px;
    margin: 24px auto 48px;
    padding: 0 16px;
}

.gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.form {
    max-width: 640px;
    margin: 24px auto 48px;
    padding: 24px;
    background: #fff;
    display: grid;
    gap: 12px;
}

.form label {
    font-weight: 700;
}

.form input,
.form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font: inherit;
}

.hp {
    position: absolute;
    left: -9999px;
}

.notice {
    max-width: 640px;
    margin: 16px auto;
    padding: 12px 16px;
    background: #e8f4ea;
}

.notice.error {
    background: #fdecea;
}

.site-footer {
    background: var(--white);
    padding: 0 0 24px;
    color: var(--footer-text);
    font-family: Poppins, Roboto, Arial, sans-serif;
    border-top: 4px solid var(--accent);
}

.footer-main {
    background: linear-gradient(180deg, #f8fafc 0%, rgba(248, 250, 252, 0.4) 100%);
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 48px 8% 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 32px 40px;
    align-items: start;
}

.footer-brand {
    max-width: 22rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-logo img {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.footer-city {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.footer-name {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.footer-tagline {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    font-weight: 400;
}

.footer-contact {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 14px;
}

.footer-contact li {
    margin: 0 0 6px;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
}

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

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    transition: background 0.15s ease, transform 0.15s ease;
}

.footer-social:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
}

.footer-nav h2 {
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin: 0 0 10px;
}

.footer-nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-footer .footer-bottom {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 8%;
    padding-right: 8%;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 0;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    font-family: Roboto, sans-serif;
}

.footer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.powered-label {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.mhg-logo {
    height: 48px;
    width: auto;
    max-width: 240px;
    display: block;
}

.footer-copyright {
    text-align: right;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 455px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-copyright {
        text-align: center;
    }
}

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 992px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        background: #fff;
        z-index: 20;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .site-header.is-open .site-nav {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 8px 0;
    }

    .site-nav a {
        padding: 16px 24px;
        box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    }

    .section-nav a {
        font-size: 11px;
    }

    .split,
    .founder,
    .cards,
    .involve-grid,
    .gallery,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 20px;
    }
}
