html {
    overflow-y: scroll;
}
 
/* ====== GLOBAL ====== */
body {
    margin: 0;
    padding: 0;
    background: #05060A;
    color: #F5F7FA;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

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

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 600;
}

/* ====== HEADER ====== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header__nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #A3AEC4;
}

/* ====== HERO ====== */
.hero {
    display: flex;

    padding: 0 0 20px  0;
}


.hero__label {
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7C8499;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    padding: 0 10px;
}

.hero__row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.hero__desc {
    flex: 1;
    text-align: justify;
    font-size: 15px;
    line-height: 1.6;
    color: #C4CCDD;
    margin-bottom: 20px;
}

.hero__img {
    width: 380px;
    height: auto;
    border-radius: 12px;
    flex-shrink: 0;
    margin-top: 10px;
}


.btn-primary {
    background: #1DD3B0;
    color: #05060A;
    border: none;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: #F5F7FA;
    border: 1px solid #2C3244;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
}

/* ====== FORMATS STRIP ====== */
.formats {
    border-top: 1px solid #151927;
    border-bottom: 1px solid #151927;
    padding: 16px 0;
}

.formats__list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.format-pill {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #2C3244;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
    color: #A3AEC4;
}

.format-pill--active {
    border-color: #1DD3B0;
    color: #1DD3B0;
}

/* ====== CARDS GRID ====== */
.cards {
    padding: 20px 0 30px;
}

.cards__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: #070814;
    border: 1px solid #181D2A;
    border-radius: 18px;
    padding: 18px 18px 20px;
}

.card__tag {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7C8499;
    margin-bottom: 8px;
}

.card__title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.card__desc {
    font-size: 14px;
    color: #C4CCDD;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card__meta {
    font-size: 14px;
    color: #7C8499;
    display: flex;
    justify-content: space-between;
}

.card_article {
  background: #ffffff;
  border-radius: 7px;
  padding: 15px;
  border: 1px solid #e8e2e6;  
  box-shadow: none;          
  text-align: justify;       
    font-size: 15px;
    line-height: 1.6;
  color: #4a4a4a;
  margin-bottom: 20px;
}
 
.card_article h2,
.card_article h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin: 0 0 18px;
  line-height: 1.25;
  color: #1a1a1a;
}
 
.card_article h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: #1a1a1a;
}
/* ====== FOOTER ====== */
.footer {
    border-top: 1px solid #151927;
    padding: 22px 0 30px;
    font-size: 14px;
    color: #7C8499;
    display: flex;
    justify-content: space-between;
}

/* ====== MOBILE (до 768px) ====== */
@media (max-width: 768px) {

    .page {
        padding: 0 16px;
    }

    /* HEADER */
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 0;
    }

    .header__nav {
        gap: 16px;
        flex-wrap: wrap;
        font-size: 14px;
    }

    /* HERO */
    .hero {
        flex-direction: column;
        gap: 32px;
        padding: 32px 0 40px;
    }

    .hero__title {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero__desc {
        font-size: 14px;
        max-width: 100%;
        order: 2;
    }

    .hero__row {
        flex-direction: column;
    }

    .hero__img {
        width: 100%;
        margin-top: 10px;
    }


    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* FORMATS */
    .formats__list {
        gap: 12px;
        padding-bottom: 4px;
    }

    .format-pill {
        font-size: 13px;
        padding: 6px 12px;
    }

    /* CARDS */
    .cards {
        padding: 32px 0 40px;
    }

    .cards__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        padding: 16px 16px 18px;
    }

    .card__title {
        font-size: 14px;
    }

    .card__desc {
        font-size: 12px;
    }

    /* FOOTER */
    .footer {
        flex-direction: column;
        gap: 12px;
        font-size: 11px;
        padding: 20px 0 26px;
    }
}

/* ====== VERY SMALL (до 480px) ====== */
@media (max-width: 480px) {

    .hero__title {
        font-size: 26px;
    }

    .header__nav {
        font-size: 12px;
        gap: 12px;
    }

    .format-pill {
        font-size: 12px;
        padding: 5px 10px;
    }

    .card__title {
        font-size: 13px;
    }
}

/***/
.clear{clear:both;}

/* ====== SHARE BUTTONS (cognitived.science style) ====== */

#share-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px;
}

/* SHARE BUTTONS */
.share-btn {
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    background-color: #1A1F2C; /*  */
    color: #F5F7FA;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #2C3244;
    transition: all 0.25s ease;
}

/* Hover  */
.share-btn:hover {
    background-color: #1DD3B0;
    color: #05060A;
    border-color: #1DD3B0;
}

/* Pinterest */
#share-pinterest {
    background-color: #7A0F18;  
    border-color: #7A0F18;
}

#share-pinterest:hover {
    background-color: #E60023; /*Pinterest */
    border-color: #E60023;
    color: #fff;
}

/* Tooltip */
.share-tooltip {
    position: absolute;
    visibility: hidden;
    width: max-content;
    max-width: 180px;
    background-color: #2C3244;
    color: #F5F7FA;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    z-index: 1;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    font-size: 12px;
    line-height: 1.4;
    transition: opacity 0.25s ease;
    border: 1px solid #3A4256;
}

/* Hover tooltip */
.share-btn:hover .share-tooltip {
    visibility: visible;
    opacity: 1;
}


#cookieBanner {
    position: fixed;                        
    bottom: 20px;                           
    right: 20px;                            
    background-color: rgba(0, 0, 0, 0.7);  
    color: white;                           
    padding: 10px;                          
    border-radius: 5px;                     
    max-width: 400px;                       
    z-index: 9999;                          
}

#cookieBanner button {
    background-color: #fff;                 
    color: black;                           
    border-radius: 5px;                     
    cursor: pointer;                        
    padding: 5px 10px;                      
}

        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        .pagination a,
        .pagination span.current {
            padding: 3px 10px;
            color: #007bff;
            text-decoration: none;
            border-radius: 4px;
        }
        .pagination a:hover {
            background-color: #f4f4f4;
        }
        .pagination span.current {
            background-color: #444;
            color: white;
        }
        
th, td {
  text-align: left;
  padding: 5px 10px;
}        
tr:nth-child(even) {background-color: #f2f2f2;}
th {background-color: #f2f2f2;}