html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 4px 10px 18px;
    border-top: 3px solid #0088cc;
    background: #f4f6f7;
    color: #333333;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: 18px;
}

a {
    color: #0088cc;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #005580;
    text-decoration: underline;
}

.page-shell {
    max-width: 1080px;
    margin: 0 auto 18px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.site-header {
    position: relative;
    border-bottom: 1px solid #eeeeee;
}

.site-header__brand {
    display: block;
    overflow: visible;
}

.site-header__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.language-flags {
    position: absolute;
    right: 8px;
    bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-flags__link {
    display: inline-flex;
    opacity: 0.9;
}

.language-flags__link.is-active,
.language-flags__link:hover {
    opacity: 1;
}

.language-flags img {
    display: block;
    width: auto;
    height: 11px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    padding: 9px 0 8px;
    border-bottom: 1px solid #eeeeee;
}

.main-nav__link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 18px;
}

.main-nav__link.is-active {
    background: #0088cc;
    color: #ffffff;
    text-decoration: none;
}

.content-area {
    padding-top: 10px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 56px;
    align-items: center;
    padding: 0 0 20px;
}

.home-hero__map {
    display: block;
    width: 400px;
    max-width: 100%;
    height: auto;
}

.home-hero__claim {
    color: #222222;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.home-hero__claim p {
    margin: 0 0 6px;
}

.sponsor-block {
    padding: 2px 0 0;
    text-align: center;
}

.sponsor-block__intro {
    margin: 0 0 14px;
    color: #111111;
    font-size: 24px;
    line-height: 1.25;
}

.sponsor-block__bk {
    display: block;
    width: 100%;
    max-width: 996px;
    height: auto;
    margin: 0 auto;
}

.sponsor-block__benefit {
    margin: 8px 0 8px;
    color: #111111;
    font-size: 24px;
    line-height: 1.25;
}

.sponsor-block__foundation {
    display: block;
    width: 380px;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
}

.rules-content {
    font-size: 13px;
    line-height: 1.5;
}

.rules-content h1 {
    margin: 12px 0 4px;
    font-size: 28px;
    line-height: 1.2;
    text-align: center;
}

.rules-content h2 {
    margin: 42px 0 10px;
    font-size: 26px;
    line-height: 1.2;
}

.rules-content__download {
    margin: 0 0 38px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.rules-content__map {
    display: block;
    width: 684px;
    max-width: 78%;
    height: auto;
    margin: 8px auto 22px;
}

.rules-content li {
    margin-bottom: 7px;
}

.simple-content {
    min-height: 420px;
    padding: 18px 0 28px;
    font-size: 16px;
    line-height: 1.5;
}

.simple-content h1 {
    margin: 0 0 18px;
    font-size: 28px;
    text-align: center;
}

.simple-content ul {
    max-width: 520px;
    margin: 0 auto;
}

.simple-content li {
    margin-bottom: 10px;
}

.content-frame {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 0;
    overflow: hidden;
}

.debug-checkpoints {
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid #b8d8ef;
    border-radius: 4px;
    background: #eef8ff;
    color: #333333;
    font-size: 12px;
}

.debug-checkpoints strong,
.debug-checkpoints span {
    display: block;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    color: #333333;
    font-size: 12px;
}

@media (max-width: 820px) {
    body {
        padding: 4px 4px 14px;
    }

    .page-shell {
        padding: 16px;
    }

    .site-header__brand {
        max-height: none;
    }

    .language-flags {
        position: static;
        justify-content: flex-end;
        padding: 8px 0 4px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-hero__claim {
        font-size: 22px;
    }

    .rules-content__map {
        max-width: 100%;
    }
}
