/**
 * Site polish — loaded sync after main.min.css.
 * Keeps the existing design system; reduces CLS and tidies chrome.
 */

/* Stable header chrome */
.header .heading-wrapper {
    border-bottom-color: #ececec;
    background: #fff;
}

.header .top-line {
    min-height: 18px;
    letter-spacing: 0.02em;
}

.header .home-logo img {
    display: block;
    width: 203px;
    height: 33px;
    max-width: 100%;
}

.header .nav__link {
    letter-spacing: 0.01em;
}

/* Footer */
.footer {
    padding: 28px 0;
    background: #2f3236;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer__copyright {
    color: #8a8d91;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
}

.footer__copyright a {
    color: #a8abad;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__copyright a:hover {
    color: #fff;
}

.footer__sep {
    margin: 0 8px;
    opacity: 0.45;
}

/* Quiet language switcher */
.footer__lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-family: "Open Sans", "PT Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.footer__lang-link {
    color: #6f7276;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.footer__lang-link:hover {
    color: #c5c7c9;
}

.footer__lang-link.is-active {
    color: #9aa0a6;
    pointer-events: none;
}

.footer__lang-sep {
    color: #55585c;
    font-weight: 400;
}

.footer .go-to-top {
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 640px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__lang {
        margin-left: 0;
    }
}

/* Blog sidebar: active category */
.cats__item.is-active > a {
    color: #80bcdc;
    font-weight: 600;
}

/* Readable type */
body {
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.article p,
.page-content p,
.promo-block__desc {
    font-size: 17px;
    line-height: 1.65;
}

/* Covers: scroll (fixed breaks on phones), overlay, fluid titles */
.cover {
    position: relative;
    background-attachment: scroll !important;
    background-position: center center !important;
    isolation: isolate;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(24, 32, 38, 0.78) 0%, rgba(24, 32, 38, 0.48) 58%, rgba(128, 188, 220, 0.28) 100%);
    z-index: 0;
}

.cover .container {
    position: relative;
    z-index: 1;
}

.cover .page-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    max-width: 16ch;
}

.cover--big {
    padding: clamp(48px, 8vw, 85px) 0;
}

.cover--big .page-title {
    font-size: clamp(32px, 5.2vw, 56px);
    line-height: 1.15;
}

.cover--small .page-title {
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.25;
    letter-spacing: 0.06em;
}

.cover .page-category,
.cover .page-vacancy__category {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Same button feel as vacancy / cover CTAs */
.btn.page-btn,
.btn.page-vacancy__btn,
a.promo-block__link.btn {
    display: inline-block;
    border: 1px solid #80bcdc;
    background: #80bcdc;
    color: #1f2428;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.page-btn:hover,
.btn.page-vacancy__btn:hover,
a.promo-block__link.btn:hover {
    background: transparent;
    color: #80bcdc;
}

.page-vacancy.hot-stuff .btn.page-vacancy__btn {
    background: #ffd000;
    border-color: #ffd000;
    color: #1f2428;
}

.page-vacancy.hot-stuff .btn.page-vacancy__btn:hover {
    background: transparent;
    color: #ffd000;
}

@media (max-width: 640px) {
    .cover .page-title {
        max-width: none;
    }

    .article p,
    .page-content p {
        font-size: 16px;
    }
}

/* CTA form text is white; keep a dark photo behind it even if lazy-load misses */
.cta-form {
    position: relative;
    background: #1e2428 url("/app/img/seven.webp") center center / cover no-repeat;
}

.cta-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 30, 0.55);
}

.cta-form .container {
    position: relative;
    z-index: 1;
}

.cta-form__input {
    background: rgba(255, 255, 255, 0.08);
}

/* Promo cards use white type and expect a photo */
.promo-block {
    background-color: #243038;
    background-size: cover;
    background-position: center;
}
