/* =========================================
   STORIES WINDOWS — КАТАЛОГ ІСТОРІЙ
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #292522;
    background: #faf8f5;
    font-family: Arial, Helvetica, sans-serif;
}

/* Шапка */

.site-header {
    width: 100%;
    background: #fff;
}

.top-bar {
    min-height: 38px;
    padding: 8px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #292522;
    color: #fff;
    font-size: 12px;
}

.top-bar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
}

.main-nav {
    min-height: 76px;
    padding: 16px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    flex-shrink: 0;
    color: #171513;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.menu a {
    color: #38322e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active {
    color: #c47743;
}

.promo-bar {
    padding: 11px 16px;
    background: #f0e5d9;
    color: #594537;
    text-align: center;
    font-size: 12px;
}

/* Хлебные крошки */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 18px 5%;
    color: #8b8179;
    font-size: 13px;
}

.breadcrumbs a {
    color: #6b5b50;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #c47743;
}

/* Заголовок страницы */

.stories-windows-page {
    width: min(1240px, 90%);
    min-height: 55vh;
    margin: 0 auto;
    padding: 28px 0 70px;
}

.stories-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.stories-eyebrow {
    color: #b87548;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.stories-heading h1 {
    margin: 12px 0;
    color: #292522;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
}

.stories-heading p {
    margin: 0;
    color: #81766e;
    font-size: 15px;
    line-height: 1.7;
}

/* Сетка карточек */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.story-window-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee5dd;
    border-radius: 12px;
    box-shadow: 0 5px 22px rgb(65 43 25 / 5%);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.story-window-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgb(65 43 25 / 11%);
}

/* Обложка */

.story-window-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee6df;
}

.story-window-media img,
.story-window-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-window-video-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 20px;
    background: rgb(35 29 25 / 75%);
    color: #fff;
    font-size: 12px;
}

.story-window-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #987a64;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    text-align: center;
}

/* Текст карточки */

.story-window-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.story-window-title {
    margin: 0 0 12px;
    color: #292522;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.story-window-description {
    flex: 1;
    margin: 0 0 22px;
    color: #7c7169;
    font-size: 14px;
    line-height: 1.65;

    /* Карточки остаются одинаковой высоты по тексту */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* Кнопка просмотра */

.story-window-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #b87548;
    border-radius: 6px;
    background: #b87548;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.story-window-button:hover {
    border-color: #925b37;
    background: #925b37;
}

/* Сообщения загрузки и ошибок */

.stories-status {
    grid-column: 1 / -1;
    padding: 40px 16px;
    color: #82766d;
    text-align: center;
    line-height: 1.6;
}

/* Футер */

.stories-footer {
    padding: 30px 5%;
    background: #292522;
    color: #fff;
}

.stories-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
}

.stories-footer a {
    color: #fff;
    text-decoration: none;
}

.stories-footer-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.stories-footer p {
    margin: 0;
    color: #c9bdb4;
    font-size: 12px;
}

/* Планшеты */

@media (max-width: 950px) {
    .main-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu {
        justify-content: flex-start;
        gap: 14px;
    }

    .stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Телефоны */

@media (max-width: 600px) {
    .top-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px 5%;
    }

    .top-bar-right {
        gap: 14px;
    }

    .main-nav {
        padding: 16px 5%;
        gap: 18px;
    }

    .logo {
        font-size: 20px;
    }

    .menu {
        width: 100%;
        gap: 13px 16px;
    }

    .menu a {
        font-size: 11px;
    }

    .promo-bar {
        font-size: 11px;
        line-height: 1.6;
    }

    .breadcrumbs {
        padding: 14px 5%;
        font-size: 12px;
    }

    .stories-windows-page {
        width: 90%;
        padding-top: 20px;
        padding-bottom: 45px;
    }

    .stories-heading {
        margin-bottom: 26px;
    }

    .stories-heading p {
        font-size: 14px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .story-window-media {
        aspect-ratio: 4 / 3;
    }

    .story-window-content {
        padding: 18px;
    }

    .story-window-title {
        font-size: 21px;
    }

    .story-window-button {
        width: 100%;
    }

    .stories-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   ANNACOS — ЛОГОТИП СЛЕВА В ШАПКЕ
========================================= */

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 250px;
    height: 44px;

    padding: 0;
    margin: 0;

    flex-shrink: 0;
    overflow: visible;

    cursor: pointer;
    text-decoration: none;
}

.logo-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: left center;

    transform: scale(1.35);
    transform-origin: left center;
}

/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 768px) {
    .logo {
        width: 150px;
        height: 38px;
    }

    .logo-img {
        transform: scale(1.1);
        transform-origin: left center;
    }
}




