@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
}

/* Глобальные стили */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: #332E2E;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    color: #332E2E;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

a {
    text-decoration: none;
    color: #332E2E;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #a2a2a2;
}

strong, b {
  font-weight: 900; /* или даже 800 для супер жирного */
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2); /* Легкая тень для усиления эффекта */
}

h1, h2, h3 {
  font-weight: 800;
  color: #333333;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}


.article-content p {
    font-size: 18px;
    margin-top: 20px;
    font-weight: 300;
}

.article-content h1 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 20px;
    color: #333333;
}

.article-content h2 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 20px;
    color: #333333;
}

.article-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    color: #333333;
}

.article-content h4 {
    font-size: 14px;
    margin-top: 20px;
    color: #777777;
}

.article-content a {
    color: #6A93B1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #888888;
}

.article-content .news-inline-article {
    margin: 10px 0 22px 0;
}

.article-content .news-inline-article:last-child {
    margin-bottom: 0;
}

.article-content .news-inline-article__link {
    display: grid;
    grid-template-columns: minmax(0, 172px) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 10px;
    align-items: start;
    padding: 16px;
    border: 1px solid #E6E6E6;
    border-radius: 0;
    background: transparent;
    color: #332E2E;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.article-content .news-inline-article__link:hover {
    border-color: #D4D4D4;
    background: transparent;
    color: #332E2E;
    transform: translateY(-1px);
}

.article-content .news-inline-article__media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
    background: #F2F2F2;
}

.article-content .news-inline-article__content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    align-self: center;
}

.article-content .news-inline-article__body {
    display: contents;
}

.article-content .news-inline-article__label {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    width: fit-content;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #A7443E;
}

.article-content .news-inline-article__title {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 22px;
    line-height: 1.28;
    font-weight: 600;
    color: #1F1B1B;
}

.article-content .news-inline-article__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    font-size: 15px;
    line-height: 1.5;
    color: #5A5A5A;
}

@media (max-width: 767px) {
    .article-content .news-inline-article__link {
        grid-template-columns: 74px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 10px;
        padding: 14px;
        border-radius: 0;
        align-items: start;
    }

    .article-content .news-inline-article__media {
        grid-column: 1;
        grid-row: 1;
        width: 74px;
        min-width: 74px;
        max-width: 74px;
        height: 74px;
        min-height: 74px;
        max-height: 74px;
        aspect-ratio: 1 / 1;
    }

    .article-content .news-inline-article__content {
        grid-column: 2;
        grid-row: 1;
        gap: 6px;
        align-self: start;
    }

    .article-content .news-inline-article__body {
        display: contents;
    }

    .article-content .news-inline-article__title {
        grid-column: 2;
        grid-row: 1;
        font-size: 18px;
        line-height: 1.22;
    }

    .article-content .news-inline-article__label {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 2px;
    }

    .article-content .news-inline-article__desc {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.45;
    }
}

.article-content iframe,
.article-content embed,
.article-content object,
.article-content video {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 24px auto;
    border: none;
}

.article-content iframe[src*="spotify"],
.article-content iframe[src*="linkfire"],
.article-content iframe[src*="soundcloud"],
.article-content iframe[src*="music.apple.com"],
.article-content iframe[src*="embed.music.apple.com"] {
    aspect-ratio: auto;
    min-height: 180px;
    width: 100% !important;
    max-width: 100%;
}

.article-content iframe.article-embed-audio {
    aspect-ratio: auto;
    height: 190px;
    min-height: 190px;
    max-height: 220px;
}
