/* ===================== BASE ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #223e99;
    --ink: #070c1f;
    --muted: #6b7280;
    --divider: #dee8ee;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Exo', sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
}

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

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

.container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER ===================== */
.header {
    background: #fff;
    border-bottom: 1px solid var(--divider);
    position: relative;
    z-index: 5;
}

.header__top {
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    width: 40px;
    height: 24px;
}

.header__burger {
    border: 0;
    background: none;
    border-left: 1px solid #dedede;
    padding-left: 14px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.header__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
}

.header__nav {
    height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header__nav::-webkit-scrollbar {
    display: none;
}

.header__nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 48px;
    padding: 0 12px;
    width: max-content;
}

.header__nav-list a {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
    text-transform: uppercase;
    white-space: nowrap;
}

.header__nav-list a.is-active {
    color: var(--blue);
    font-weight: 700;
}

/* ===================== ARTICLE BANNER ===================== */
.banner {
    position: relative;
    width: 100%;
    min-height: 360px;
    background: #1c3480;
    overflow: hidden;
}

.banner__pattern {
    position: absolute;
    inset: 0;
    background-image: url("../img/banner-pattern.png");
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.banner__inner {
    position: relative;
    z-index: 1;
    max-width: 375px;
    margin: 0 auto;
    padding: 40px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.banner__eyebrow {
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
    color: #a7b2d6;
    white-space: nowrap;
}

.banner__title {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 32px;
    color: #f9fafb;
}

.banner__byline {
    align-self: stretch;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.banner__autor {
    display: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #7a8bc2;
    text-transform: capitalize;
}

.banner__avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.banner__author {
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
    color: #a7b2d6;
    white-space: nowrap;
}

.banner__sep {
    font-style: normal;
    font-size: 10px;
    line-height: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.banner__date {
    font-weight: 400;
    font-size: 11px;
    line-height: 20px;
    color: #7b8aba;
    white-space: nowrap;
}

.banner__cat {
    font-weight: 600;
    font-size: 12px;
    line-height: 20px;
    text-transform: uppercase;
    color: #a7b2d6;
    white-space: nowrap;
}

.banner__comments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.banner__cbubble {
    position: relative;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.banner__cbubble img {
    width: 25px;
    height: 25px;
}

.banner__cbubble b {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    transform: translateY(-50%);
    text-align: center;
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    color: #223e99;
}

.banner__ctext {
    display: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #a7b2d6;
    white-space: nowrap;
}

.article__body {
    position: relative;
}

/* Hero photo overlapping banner */
.hero {
    margin-top: -70px;
    border-radius: 6px;
}

.hero img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 896 / 502;
    object-fit: cover;
}

.hero figcaption {
    font-style: italic;
    font-size: 12px;
    line-height: 20px;
    color: var(--muted);
    padding: 6px 0 0;
    border-bottom: 1px solid var(--divider);
    padding-bottom: 14px;
}

/* ===================== LEAD ===================== */
.lead {
    padding-top: 20px;
}

.lead__title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.lead__sub {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
}

/* ===================== SHARE ===================== */
.share {
    margin-top: 20px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-radius: 8px;
}

.share__label {
    font-size: 12px;
    line-height: 14px;
    color: #64748b;
}

.share__icons {
    display: flex;
    gap: 32px;
}

.share__ico {
    width: 24px;
    height: 24px;
    display: block;
}

.share__ico img {
    width: 24px;
    height: 24px;
    display: block;
}

/* ===================== POST ===================== */
.post {
    padding-top: 24px;
}

.post__title {
    font-weight: 600;
    font-size: 30px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.post__text {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
}

/* ===================== REGISTRATION FORM ===================== */
.reg {
    margin-top: 48px;
}

.reg__form {
    background: linear-gradient(221.3deg, #8c11ff 1.72%, #004bc9 93.04%);
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 61px rgba(0, 0, 0, 0.15);
}

.reg__logo {
    width: 146px;
    height: auto;
}

.reg__title {
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0.216px;
    color: #fff;
    text-align: center;
}

.reg__age {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reg__age-q {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
}

.reg__age-btns {
    display: flex;
    gap: 4px;
    width: 100%;
}

.age-btn {
    flex: 1 0 0;
    min-width: 0;
    padding: 10px 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: .15s;
}

.age-btn.is-active {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    color: #0171e4;
}

.reg__fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reg__fields input,
.reg__fields .iti {
    width: 100%;
}

.reg__fields input {
    height: 60px;
    border-radius: 12px;
    border: 1px solid #373737;
    background: #fff;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000619;
    outline: none;
}

.reg__fields input::placeholder {
    color: #a0a5ad;
}

.reg__fields input:focus {
    border-color: #0dab12;
}

.reg__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reg__submit {
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 12px;
    background: #1cc3f7;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.18px;
    cursor: pointer;
    transition: .15s;
}

.reg__submit:hover {
    background: #14b4e6;
}

.reg__note {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.reg__note img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.reg__note span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.12px;
    color: #fff;
    opacity: 0.6;
}

/* ===================== TOPICS ===================== */
.topics {
    margin-top: 28px;
}

.topics__title {
    font-weight: 600;
    font-size: 16px;
    padding: 10px 16px;
}

.topics__tags {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
}

.tag {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef2f7;
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
}

/* ===================== FOLLOW ===================== */
.follow {
    margin-top: 16px;
    padding: 11px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.follow__title {
    font-weight: 600;
    font-size: 18px;
}

.follow__icons {
    display: flex;
    gap: 24px;
}

.follow__icons svg {
    width: 32px;
    height: 32px;
}

/* ===================== COMMENTS ===================== */
.comments {
    margin-top: 28px;
}

.comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 21px;
}

.comments__count {
    font-weight: 700;
    font-size: 24px;
}

.comments__lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--ink);
}

.comments__chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(45deg);
    margin-top: -4px;
}

.comments__list {
    border-top: 1px solid var(--divider);
    padding-top: 21px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.comment__body {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.comment__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 15px;
    color: #282828;
}

.comment__time {
    font-weight: 500;
    font-size: 12px;
    line-height: 12px;
    color: #494e58;
}

.comment__text {
    font-weight: 400;
    font-size: 15px;
    line-height: 21px;
    color: #2a2e2e;
}

.comment__img {
    width: 100%;
    border-radius: 4px;
}

.comment__react {
    display: flex;
    gap: 20px;
}

.react {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #2a2e2e;
}

.react::before {
    content: "";
    width: 16px;
    height: 16px;
    background: #494e58;
    opacity: 0.7;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.react--like::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 10h4v12H2zM22 11a2 2 0 0 0-2-2h-5.5l.8-3.9c.1-.5 0-1-.3-1.4a1.7 1.7 0 0 0-2.6-.1L8 8.5V22h10.3a2 2 0 0 0 2-1.6l1.6-7c.1-.2.1-.3.1-.4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 10h4v12H2zM22 11a2 2 0 0 0-2-2h-5.5l.8-3.9c.1-.5 0-1-.3-1.4a1.7 1.7 0 0 0-2.6-.1L8 8.5V22h10.3a2 2 0 0 0 2-1.6l1.6-7c.1-.2.1-.3.1-.4z'/%3E%3C/svg%3E");
}

.react--dislike::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 14h-4V2h4zM2 13a2 2 0 0 0 2 2h5.5l-.8 3.9c-.1.5 0 1 .3 1.4a1.7 1.7 0 0 0 2.6.1L16 15.5V2H5.7a2 2 0 0 0-2 1.6l-1.6 7c-.1.2-.1.3-.1.4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 14h-4V2h4zM2 13a2 2 0 0 0 2 2h5.5l-.8 3.9c-.1.5 0 1 .3 1.4a1.7 1.7 0 0 0 2.6.1L16 15.5V2H5.7a2 2 0 0 0-2 1.6l-1.6 7c-.1.2-.1.3-.1.4z'/%3E%3C/svg%3E");
}

/* ===================== FOOTER ===================== */
.footer {
    margin-top: 40px;
}

.footer__top {
    border-top: 3px solid var(--divider);
    padding: 35px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer__logo img {
    height: 40px;
    width: auto;
}

.footer__social {
    display: flex;
    gap: 24px;
}

.footer__social svg {
    width: 30px;
    height: 30px;
}

.footer__nav {
    background: var(--blue);
    padding: 43px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer__nav span {
    font-family: 'Exo', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #f9fafb;
    text-transform: uppercase;
}

.footer__nav i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.footer__links {
    background: #fff;
    padding: 16px 47px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer__menu a,
.footer__copy {
    font-size: 12px;
    line-height: 14px;
    color: #9ca3af;
}

/* ===================== DESKTOP ===================== */
@media (min-width: 1024px) {
    .container {
        max-width: 1440px;
        padding: 0 40px;
    }

    .banner {
        min-height: 440px;
    }

    .banner__inner {
        max-width: 896px;
        padding: 52px 0 0;
        gap: 16px;
    }

    .banner__title {
        font-size: 40px;
        line-height: 48px;
    }

    .banner__byline {
        justify-content: flex-start;
        gap: 6px;
    }

    .banner__avatar {
        width: 34px;
        height: 34px;
    }

    .banner__autor {
        display: block;
    }

    .banner__author {
        font-size: 16px;
    }

    .banner__date,
    .banner__cat {
        font-size: 14px;
    }

    .banner__ctext {
        display: block;
    }

    .article__layout {
        position: relative;
        max-width: 1168px;
        margin: 0 auto;
    }

    .article__body {
        max-width: 896px;
        margin: 0 auto;
    }

    .hero {
        margin-top: -150px;
    }

    .lead__title {
        font-size: 24px;
    }

    .lead__sub {
        font-size: 24px;
    }

    .post__text {
        font-size: 20px;
    }

    /* form desktop: horizontal age row, wider */
    .reg__form {
        padding: 32px;
        gap: 24px;
    }

    .reg__logo {
        width: 164px;
    }

    .reg__title {
        font-size: 36px;
        max-width: 832px;
    }

    .reg__age-btns {
        gap: 12px;
    }

    .age-btn {
        padding: 10px 12px;
    }

    .reg__fields {
        gap: 8px;
    }

    .topics__title,
    .follow__title {
        font-size: 20px;
    }

    .comments__count {
        font-size: 30px;
    }

    .comment__img {
        max-width: 510px;
    }

    /* footer desktop */
    .footer__top {
        flex-direction: row;
        justify-content: space-between;
        padding: 35px 40px;
    }

    .footer__logo img {
        height: 50px;
    }

    .footer__nav {
        flex-direction: row;
        justify-content: center;
    }

    .footer__links {
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 47px;
    }

    .footer__menu {
        flex-direction: row;
        gap: 24px;
    }
}

/* vertical share card in the left gutter (wide desktop only) */
@media (min-width: 1280px) {
    .share {
        position: absolute;
        left: -88px;
        top: 24px;
        margin: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
        background: #f1f5f9;
        border-radius: 4px;
        padding: 12px 0;
        width: 58px;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }

    .share__label {
        margin-bottom: 6px;
        color: #64748b;
    }

    .share__icons {
        flex-direction: column;
        gap: 24px;
    }
}
