/* ==========================================================================
   «Гідна праця для всіх» — основні стилі (комп’ютер).
   Методологія БЕМ: .block, .block__element, .block--modifier.
   Мобільна версія — у файлі media-style.css.
   ========================================================================== */

/* ---------- Змінні ---------- */
:root {
    --color-navy: #14305f;
    --color-blue: #2158a5;
    --color-yellow: #f3b344;
    --color-text: #2b4068;
    --color-muted: #4f6285;
    --color-white: #ffffff;
    --color-bg-soft: #f7fafe;
    --color-card-blue: #eef4fc;
    --color-card-yellow: #fef5e1;
    --color-icon-bg: #e3edfb;
    --color-border: #d9e4f3;
    --color-border-yellow: #f6e2b5;
    --color-placeholder: #fff1b8;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-card: 28px;
    --radius-pill: 999px;
    --container-width: 1160px;
    --container-wide-width: 1240px;
    --header-height: 88px;
}

/* ---------- Скидання та база ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
}

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

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

h1,
h2,
h3,
p,
ul,
dl,
dd {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-navy);
}

button {
    font-family: inherit;
}

/* ---------- Універсальні блоки ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container--wide {
    max-width: var(--container-wide-width);
}

.icon {
    flex-shrink: 0;
}

.placeholder {
    padding: 0 4px;
    border-radius: 4px;
    background: var(--color-placeholder);
    color: var(--color-navy);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 3px solid var(--color-navy);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-navy);
}

.btn--accent {
    background: var(--color-yellow);
    color: var(--color-navy);
}

.btn--accent:hover {
    background: #f7c566;
}

.btn--outline {
    background: var(--color-white);
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.btn--outline:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.btn--small {
    padding: 11px 20px;
    font-size: 14px;
}

/* Плашки */
.pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.pill--accent {
    background: var(--color-yellow);
    color: var(--color-navy);
}

.pill--dark {
    background: var(--color-navy);
    color: var(--color-white);
}

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

/* Картки */
.card {
    padding: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius-card);
}

.card--blue {
    background: var(--color-card-blue);
    border-color: var(--color-border);
}

.card--yellow {
    background: var(--color-card-yellow);
    border-color: var(--color-border-yellow);
}

.card--navy {
    background: var(--color-navy);
    color: #dce7f8;
}

/* Секції */
.section {
    padding-top: 40px;
}

.section--last {
    padding-bottom: 72px;
}

.section__title {
    margin-bottom: 32px;
    font-size: 38px;
}

/* Поява при прокрутці (клас html.js ставить скрипт у <head>) */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal--visible {
    opacity: 1;
    transform: none;
}

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    transition: box-shadow 0.25s;
}

.header--scrolled {
    box-shadow: 0 6px 24px rgba(20, 48, 95, 0.12);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
}

.header__logo-img {
    width: auto;
    height: 68px;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.header__burger-line {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--color-navy);
    transition: transform 0.2s, opacity 0.2s;
}

.header__burger--open .header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Меню ---------- */
.header-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    background-color: rgba(255, 255, 255, 6);
    border-radius: 20px;
    padding-left: 24px;
}

.header-menu__list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-menu__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-navy);
    transition: color 0.2s;
}

.header-menu__link:hover {
    color: var(--color-blue);
}

.header-menu__lang {
    display: flex;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-blue);
}

.header-menu__lang-item--active {
    border-bottom: 2px solid var(--color-blue);
}

/* ---------- Перший екран ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-bg-soft);
}

.hero__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
}

.hero__fade {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-bg-soft) 0%, rgba(247, 250, 254, 0.85) 14%, rgba(247, 250, 254, 0) 46%);
}

.hero__inner {
    position: relative;
    padding-top: 64px;
    padding-bottom: 64px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    max-width: 520px;
}

.hero__title {
    font-size: 64px;
    line-height: 55px;
    letter-spacing: -0.01em;
}

.hero__text {
    max-width: 470px;
    font-size: 21px;
    line-height: 1.5;
    color: var(--color-text);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

/* ---------- Мета та спільна робота ---------- */
.about {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
}

.about__content {
    display: flex;
    flex: 1.5 1 480px;
    flex-direction: column;
    gap: 20px;
}

.about__title {
    margin-bottom: 0;
}

.about__text {
    font-size: 18px;
    line-height: 1.65;
}

.about__values {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    align-self: center;
    gap: 14px;
}

.value {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--color-white);
}

.value__icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-icon-bg);
    color: var(--color-blue);
}

.value__label {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
}

/* ---------- Публічний запуск ---------- */
.launch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 36px 56px;
}

.launch__main {
    display: flex;
    flex: 1.5 1 460px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.launch__title {
    margin-bottom: 0;
}

.launch__event {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
}

.launch__text {
    font-size: 18px;
    line-height: 1.65;
}

.launch__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
    width: 100%;
    margin-top: 6px;
}

.launch__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-navy);
}

.launch__detail-text {
    font-size: 16px;
    font-weight: 600;
}

.launch__photo {
    width: 100%;
    max-height: 340px;
    border-radius: 18px;
    object-fit: cover;
}

.launch__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.launch__badge {
    display: flex;
    flex: 0 0 150px;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-blue);
}

.launch__badge .icon {
    width: 72px;
    height: 72px;
    stroke-width: 1.6;
}

/* ---------- Напрями ---------- */
.directions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
}

.direction {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px;
}

.direction__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.direction__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.direction__title {
    font-size: 26px;
    line-height: 1.25;
}

.direction__support {
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
}

.direction__facts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.direction__fact-title {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-blue);
}

.direction__fact-text {
    font-size: 16px;
    line-height: 1.6;
}

.direction__panel {
    padding-top: 16px;
    border-top: 1px solid #d0ddf0;
}

.direction__panel-text {
    line-height: 1.65;
}

.direction__more,
.direction__actions {
    margin-top: auto;
}

.direction__more {
    align-self: flex-start;
}

.direction__more .icon {
    transition: transform 0.2s;
}

.direction__more--open .icon {
    transform: rotate(180deg);
}

.direction__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 6px;
}

/* ---------- Дайджест ---------- */
.digest {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.digest__cover {
    flex: 0 0 190px;
    width: 190px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.digest__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px dashed #8fb0e0;
    /* background: var(--color-white); */
    background: #fdf6ec;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue);
}

.digest__meta {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 12px;
}

.digest__meta-title {
    font-weight: 700;
    color: var(--color-navy);
}

/* ---------- Партнери ---------- */
.partners {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.partner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.partner__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-white);
}

.partner__logo--empty {
    border: 2px dashed #b9c8e6;
    background: var(--color-bg-soft);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-muted);
}

.partner__logo-img {
    max-height: 100%;
    object-fit: contain;
}

.partner__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
}

.partner__role {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-muted);
}

/* ---------- Контакти ---------- */
.contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 36px 64px;
    padding: 52px;
}

.contacts__main {
    flex: 1.3 1 400px;
}

.contacts__title {
    margin-bottom: 16px;
    color: var(--color-white);
}

.contacts__text {
    font-size: 18px;
    line-height: 1.6;
}

.contacts__person {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 30px;
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-muted);
}

.contacts__name {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-navy);
}

.contacts__role {
    margin-bottom: 12px;
}

.contacts__link {
    word-break: break-word;
}

.contacts__link--static {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    font-weight: 700;
    color: var(--color-navy);
}

/* ---------- Підвал ---------- */
.footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.footer__logo {
    width: auto;
    height: 56px;
}

.footer__copy {
    font-size: 14px;
    color: var(--color-muted);
}

.footer__link:hover {
    color: var(--color-blue);
}

/* Менше анімацій для тих, хто їх вимкнув у системі */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .btn,
    .header,
    .header__burger-line {
        transition: none;
    }
}
