/* ==========================================
   СБРОС И БАЗОВЫЕ ПЕРЕМЕННЫЕ
========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white:       #FFFFFF;
    --color-light-black: #383838;
    --color-grey:        #D2D2D2;
    --color-light-grey:  #F1F1F1;
    --color-dark-grey:   #989898;
    --font: 'TikTok Sans', sans-serif;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--color-white);
    color: var(--color-light-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    text-decoration: underline;
}



/* ==========================================
   HEADER
========================================== */
.header {
    width: 100%;
    height: 100px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    flex-shrink: 0;
}

.header__logo-img {
    display: block;
    height: 20px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__nav-item {
    line-height: 100%;
    color: var(--color-light-black);
    white-space: nowrap;
}

.header__nav-item:hover {
    text-decoration: underline;
}

.header__nav-text {
    color: var(--color-light-black);
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 16px;
    word-wrap: break-word;
}

.header__nav-number {
    margin-right: 2px;
}

.sup {
    color: var(--color-light-black);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 16px;
    word-wrap: break-word;
}

/* Бургер — скрыт на десктопе */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-light-black);
}


/* ==========================================
   МОБИЛЬНОЕ МЕНЮ
========================================== */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 16px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-grey);
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu__item {
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    text-transform: lowercase;
    color: var(--color-light-black);
}

.mobile-menu__item:hover {
    text-decoration: underline;
}


/* ==========================================
   FOOTER
========================================== */
.footer {
    width: 100%;
    height: 92px;
    background: var(--color-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 80px;
    justify-content: space-between;
}

.footer__left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.footer__email-desktop {
    display: inline;
}

.footer__right-mob {
    display: none;
}

.footer__link {
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
    text-transform: lowercase;
    color: var(--color-light-black);
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__privacy {
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
    text-transform: lowercase;
    color: var(--color-light-black);
}

.footer__privacy:hover {
    text-decoration: underline;
}


/* ==========================================
   ГЛАВНАЯ — карточки
========================================== */
.main {
    flex: 1;
    width: 100%;
    background: var(--color-white);
    display: flex;
    flex-direction: row;
    padding: 0 80px;
    gap: 20px;
}

.card {
    display: block;
    text-decoration: none;
    color: var(--color-light-black);
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 600px;
}

.card:hover {
    text-decoration: none;
}

.card--opencall {
    background: var(--color-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.card--opencall--stories {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.card__title {
    font-size: 64px;
    font-weight: 600;
    line-height: 80%;
    text-align: center;
    color: var(--color-light-black);
    text-transform: lowercase;
}

.card__more {
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    text-align: center;
    color: var(--color-light-black);
}

.card--opencall:hover .card__more {
    text-decoration: underline;
}

.card--about {
    background: var(--color-light-grey);
}

.card--about .card__image {
    position: absolute;
    inset: 0;
    width: 70%;
    height: 100%;
    left: 17%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.main_text {
    width: 100%; 
    top: 50%; 
    position: absolute; 
    position: absolute; 
    text-align: center; 
    color: #989898; 
    font-size: 20px; 
    font-weight: 500; 
    line-height: 24px; 
    word-wrap: break-word
}

/* .main-about__bg {
    width: 1440px;
    height: 840px;
    overflow: hidden;
    fill: red;
} */

.main-about-image-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Занимает всю высоту экрана */
  overflow: hidden; /* Обрезает то, что не помещается */
}

.main-about-image-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95); /* Затемняет изображение (60 % яркости) */
  object-position: top; /* Выравнивает изображение по верхнему краю */
  object-fit: cover; /* Заполняет контейнер с сохранением пропорций */
}

.about-block {
    position: absolute;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
}

.about-block--1 {
    width: 43.75%;       /* 630 / 1440 */
    left: 28.125%;       /* 405 / 1440 */
    top: 15.95%;          /* 50  / 840  */
}

.about-block--2 {
    width: 42.99%;       /* 619 / 1440 */
    left: 28.125%;       /* 405 / 1440 */
    top: 39.29%;         /* 246 / 840  */
}

.about-block--3 {
    width: 43.75%;       /* 630 / 1440 */
    left: 28.125%;       /* 405 / 1440 */
    top: 62.62%;         /* 442 / 840  */
}

.about-block--4 {
    width: 43.75%;       /* 630 / 1440 */
    left: 28.125%;       /* 405 / 1440 */
    top: 89.05%;         /* 664 / 840  */
}

.about-block--5 {
    width: 36.25%;       /* 522 / 1440 */
    left: 28.125%;       /* 405 / 1440 */
    top: 100.71%;         /* 762 / 840  */
}

.text-dark {
    color: #383838; 
}

.text-grey {
    color: #989898; 
}

.privacy {
    flex: 1;
    width: 100%;
    padding: 60px 80px 80px;   /* отступы как у логотипа */
}

.privacy__layout {
    display: flex;
    flex-direction: column;   /* ← колонка вместо строки */
    gap: 40px;
    width: 100%;
}

/* Заголовок — во всю ширину, одна строка */
.privacy__left {
    width: 100%;
}

.privacy__title {
    color: #383838;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: lowercase;
    white-space: nowrap;
}

/* Правая колонка — весь текст */
.privacy__content {
    flex: 1;
    max-width: 630px;          /* ограничиваем ширину текста */
    margin-left: 28.125%;    /* ← выравниваем с правой колонкой других страниц */
}

/* Вводный абзац */
.privacy__intro {
    color: #989898;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    margin-bottom: 32px;
}

/* Блок раздела */
.privacy__section {
    margin-bottom: 32px;
}

.privacy__section:last-child {
    margin-bottom: 0;
}

/* Заголовок раздела */
.privacy__heading {
    color: #383838;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    margin-bottom: 8px;
}

/* Текст раздела */
.privacy__text {
    color: #989898;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
}

/* Список внутри раздела */
.privacy__list {
    color: #989898;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.privacy__list li::before {
    content: '— ';
}

/* Ссылка внутри текста */
.privacy__link {
    color: #989898;
    text-decoration: underline;
}

.privacy__link:hover {
    color: #383838;
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000; /* Чёрный фон */
    color: #fff; /* Белый текст */
    text-decoration: none; /* Убираем подчёркивание */
    border-radius: 4px; /* Скругление углов */
    font-size: 16px;
}

.button-link:hover {
    background-color: #333; /* Изменение цвета при наведении */
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 76vh; /* Занимает всю видимую высоту страницы */
}

/* Внешняя обёртка — позиционирование фона */
.opencall {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
}

/* Фоновая картинка */
.opencall__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Контент поверх фона */
.opencall__content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 50px 80px 80px;
    gap: 80px;
}

/* ——— Левая колонка ——— */
.opencall__left {
    /* из макета: заголовок занимает ~245px,
        это примерно 17% от 1440px */
    width: 245px;
    flex-shrink: 0;
}

.opencall__page-title {
    color: #383838;
    font-size: 32px;
    font-weight: 600;
    line-height: 32px;
    word-wrap: break-word;
}

/* ——— Правая колонка ——— */
.opencall__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;

    /* Ключевое изменение: ограничиваем ширину,
        чтобы текст переносился раньше правого края —
        как на макете (~560px из доступного пространства) */
    max-width: 650px;
}

/* Основной текст — описание */
.opencall__description {
    color: #989898;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
    margin-bottom: 48px;
}

.opencall__description p {
    margin-bottom: 26px;
}

.opencall__description p:last-child {
    margin-bottom: 0;
}

/* Подзаголовок «Требования» */
.opencall__subtitle {
    color: #383838;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 16px;
}

/* Текст требований */
.opencall__requirements {
    color: #989898;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    word-wrap: break-word;
    margin-bottom: 48px;
}

/* Дедлайн */
.opencall__deadline {
    color: #989898;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 48px;
}

.opencall__deadline-label {
    color: #989898;
    white-space: nowrap;
}

.opencall__deadline-date {
    color: #989898;
}

/* Кнопка «отправить текст» */
.opencall__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #383838;
    border-radius: 500px;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.opencall__btn:hover {
    background: #555555;
    text-decoration: none;
}

.opencall__btn-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-transform: lowercase;
    line-height: 16px;
    word-wrap: break-word;
}


/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ (≤ 768px)
========================================== */
@media (max-width: 768px) {

    /* Header */
    .header {
        height: 52px;
        padding: 0 20px;
    }

    .header__logo-img {
        height: 12px;
    }

    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    /* Main */
    .main {
        flex-direction: column;
        padding: 0 20px;
        gap: 10px;
        flex: none;
    }

    .card {
        width: 100%;
        height: 320px;
        flex: none;
    }

    .card__title {
        font-size: 40px;
    }

    .card__more {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        height: 68px;
        padding: 20px 20px 0;
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer__email-desktop {
        display: none;
    }

    .footer__link {
        font-size: 10px;
    }

    .footer__right-mob {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer__right-mob .footer__link {
        font-size: 10px;
        color: var(--color-light-black);
    }

    .footer__right-mob .footer__privacy {
        font-size: 10px;
        color: var(--color-dark-grey);
    }

    .footer__privacy {
        font-size: 10px;
    }

    .main-about-image-container {
        position: absolute;  /* ← не в потоке, за текстом */
        inset: 0;            /* top:0, right:0, bottom:0, left:0 */
        width: 100%;
        height: 75vh;
        overflow: hidden;
        pointer-events: none;
        z-index: 0;          /* ← за текстом */
    }

    .main-about-image-container img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: bottom;
        filter: brightness(0.95);
    }

    /* Высота auto — растягивается под контент */
    .main-about-text-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px 60px;
    }

    /* Сбрасываем абсолютное позиционирование */
    .about-block {
        position: relative;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        font-size: 14px;
        line-height: 16.8px;
    }

    .privacy {
        padding: 40px 20px;
    }

    .privacy__layout {
        gap: 24px;
    }

    .privacy__title {
        font-size: 24px;
        white-space: normal;  /* ← на мобильном перенос разрешён */
    }

    /* На мобильном убираем отступ слева */
    .privacy__content {
        margin-left: 0;
        max-width: 100%;
    }

    .privacy__intro,
    .privacy__heading,
    .privacy__text,
    .privacy__list {
        font-size: 14px;
        line-height: 16.8px;
    }

    .privacy__section {
        margin-bottom: 24px;
    }

    .opencall__content {
        flex-direction: column;
        padding: 28px 20px 60px;
        gap: 24px;
    }

    /* На мобильном max-width снимаем —
        текст занимает всю ширину колонки */
    .opencall__left {
        width: 100%;
    }

    .opencall__right {
        max-width: 100%;
    }

    .opencall__page-title {
        font-size: 24px;
        line-height: 28px;
    }

    .opencall__description {
        font-size: 14px;
        line-height: 16.8px;
        margin-bottom: 32px;
    }

    .opencall__description p {
        margin-bottom: 16px;
    }

    .opencall__subtitle {
        font-size: 14px;
        line-height: 16.8px;
        margin-bottom: 12px;
    }

    .opencall__requirements {
        font-size: 14px;
        line-height: 16.8px;
        margin-bottom: 24px;
    }

    .opencall__deadline {
        font-size: 14px;
        line-height: 16.8px;
        gap: 16px;
        margin-bottom: 32px;
    }

    .opencall__btn-text {
        font-size: 14px;
    }
}
