body > header {
    padding-bottom: 32px;
    color: #fff;
    background: linear-gradient(120deg, #0066ff, #4d8cff, #0066ff);
    background-size: 200% 200%;
}

body > header > div {
    box-sizing: border-box;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-top: 24px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

body > header > div > h1 {
    font-family: 'Heading Pro Wide', sans-serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 100%;
}

body > header > div > p {
    margin-top: 24px;
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
    max-width: 80%;
}

body > header > div > div {
    margin-top: 32px;
}

body > header > div > div > a {
    display: inline-block;

    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

body > header > div > div > a:hover,
body > main > article > div.promo > a:hover,
body > main > article > div.tiles > a:hover,
body > main > article > div.promo:has(> img) > div > a:hover {
    border-bottom: none;
}

body > header > div > div > a:hover,
body > main > article > div.promo:has(> img) > div > a:hover {
    color: white !important;
}

body > main > article > div.promo > a:hover,
body > main > article > div.tiles > a:hover {
    color: inherit !important;
}

body > header > div > div > a.main-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    background: #2d81ff;
    color: white;
    transition: 150ms;
}

body > header > div > div > a.main-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 35%,
        rgb(255 255 255 / 25%) 50%,
        transparent 65%
    );
    transform: translateX(-100%);
    animation: buttonShine 5s ease-in-out infinite;
    pointer-events: none;
}

body > header > div > div > a.main-button:hover {
    background: #ffa32d;
}

body > header > div > div > a.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: white;
    transition: 150ms;
}

body > header > div > div > a.secondary-button::before {
    content: '';
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url('/assets/mail.svg') no-repeat center;
    mask: url('/assets/mail.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

body > header > div > div > a.secondary-button:hover {
    opacity: 0.7;
}

body > header > div > div > a.secondary-button > span {
    border-bottom: 1px solid rgb(251 251 255 / 33%);
}

body > main > article {
    padding-top: 32px;
    padding-right: 64px;
}

body > main > article > h2 {
    font-weight: 400;
    margin-bottom: 8px;
}

body > main > article > div.promo:has(> img) {
    display: flex;
    align-items: stretch;
    gap: 12px;
    max-width: none;
    padding: 0;
}

body > main > article > div.promo:has(> img) > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 16px 24px;
}

body > main > article > div.promo:has(> img) > div > h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 500;
    color: #111;
}

body > main > article > div.promo:has(> img) > div > p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 130%;
    color: #404040;
}

body > main > article > div.promo:has(> img) > div > a {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    background: #0066ff;
    color: white;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    transition: background 150ms;
}

body > main > article > div.promo:has(> img) > div > a:hover {
    background: #ff5020;
}

body > main > article > div.promo:has(> img) > img {
    flex: 1.2;
    min-width: 0;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 0 8px 8px 0;
}

body > main > article > p {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 130%;
}

body > main > article > p > a.promo {
    color: inherit;
    white-space: nowrap;
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: rgba(37, 35, 207, 0.2);
    text-underline-offset: 3px;
}

body > main > article > p > a.promo:hover {
    border-bottom: none;
    text-decoration-color: rgba(255, 80, 32, 0.3);
}

body > main > article > p > a.promo::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.06);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body > main > article > p > a.promo.sotka::before {
    background-image: url('/assets/favicons/sotka.png');
}

body > main > article > p > a.promo.nplus1::before {
    background-image: url('/assets/favicons/nplus1.png');
}

body > main > article > p > a.promo.m18::before {
    background-image: url('/assets/favicons/m18.png');
}

body > main > article > p > a.promo.yandex::before {
    background-image: url('/assets/favicons/yandex.png');
}

body > main > article > ol {
    padding-left: 50px;
    max-width: 840px;
}

body > main > article > ol > li {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 130%;
}

body > main > article > ol.github {
    list-style: none;
    padding-left: 50px;
}

body > main > article > ol.github > li {
    position: relative;
}

body > main > article > ol.github > li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 3px;
    width: 16px;
    height: 16px;
    background-color: #404040;
    -webkit-mask: url('/assets/github.svg') no-repeat center;
    mask: url('/assets/github.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

body > main > article > div.promo {
    align-items: center;
    gap: 16px;
    background: #f0f0f2;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
}

body > main > article > div.promo > a {
    display: inline;
    font-size: 22px;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

body > main > article > div.promo > a:hover {
    opacity: 0.8;
}

body > main > article > div.promo > a > span {
    background: linear-gradient(135deg, #ff6b35, #ffd23f, #f4593a, #ffd23f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: promoGradient 4s ease-in-out infinite;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

body > main > article > div.promo > a > span::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background: linear-gradient(135deg, #ff6b35, #ffd23f, #f4593a, #ffd23f);
    background-size: 300% 300%;
    animation: promoGradient 4s ease-in-out infinite;
    -webkit-mask: url('/assets/external-link.svg') no-repeat center;
    mask: url('/assets/external-link.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: -1px;
}

body > main > article > div.promo > a:hover > span {
    border-bottom-color: rgba(255, 80, 32, 0.5);
}

body > main > article > div.promo > p {
    font-size: 18px;
    line-height: 130%;
    color: #404040;
    margin: 0;
    margin-top: 12px;
}

body > main > article > div.tiles {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

body > main > article > div.tiles > a {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    font-size: 18px;
    line-height: 130%;
    color: inherit !important;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition:
        box-shadow 150ms,
        transform 150ms;
}

body > main > article > div.tiles > a:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

body > main > article > div.tiles > a:first-child {
    flex: 1.6;
}

body > main > article > div.tiles > a:last-child {
    flex: 1;
}

body > main > article > div.tiles > a > span:first-child {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

body > main > article > div.tiles > a > span:last-child {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 70px 20px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6));
}

body > main > article > div.tiles > a > span:last-child > span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

body > main > article > div.tiles > a > span:last-child > span:last-child {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    transition: color 150ms;
}

body
    > main
    > article
    > div.tiles
    > a:hover
    > span:last-child
    > span:last-child {
    color: #ffd23f;
}

body > footer > div {
    padding-top: 24px;
    padding-bottom: 24px;
    opacity: 0.6;
    font-size: 14px;
}

body > footer > div > p {
    margin: 0;
}

@media screen and (max-width: 768px) {
    body > header > div > h1 {
        font-size: 40px;
    }

    body > header > div > p {
        font-size: 24px;
        max-width: 100%;
    }

    body > main > article {
        padding-right: 0;
    }

    body > main > article > ol,
    body > main > article > ol.github {
        padding-left: 24px;
    }

    body > main > article > div.tiles {
        flex-direction: column;
    }

    body > main > article > div.tiles > a {
        flex: none;
    }

    body > main > article > div.promo {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        max-width: none;
    }

    body > main > article > div.promo:has(> img) {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0;
    }

    body > main > article > div.promo:has(> img) > div {
        width: 100%;
        box-sizing: border-box;
        padding: 16px 16px 20px;
    }

    body > main > article > div.promo:has(> img) > img {
        order: -1;
        flex: none;
        width: 100%;
        max-height: 240px;
        border-radius: 0;
    }
}

@media screen and (max-width: 480px) {
    body > header > div > h1 {
        font-size: 28px;
    }

    body > header > div > p {
        font-size: 20px;
    }
}

@keyframes heroGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes promoGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%);
    }
    40%,
    100% {
        transform: translateX(100%);
    }
}
