/* Главная страница. */

.hero {
    padding: 80px 0;
    position: relative;

    min-height: min(820px, calc(100vh - var(--header-height)));

    display: flex;
    align-items: center;

    overflow: hidden;

    background-color: var(--color-bg);

}

.hero__background {
    position: absolute;
    z-index: 0;
    inset: 0;
}

.hero__background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    -webkit-user-drag: none;
}

.hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,16,20,.95) 0%, rgba(15,16,20,.90) 40%, rgba(15,16,20,.35) 70%, rgba(15,16,20,.15) 100%);
    content: '';
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 650px;
}

.hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: clamp(2rem, 3.33vw, 2.875rem);
    line-height: 1.02;
}

.hero__lead {
    width: 100%;
    max-width: 620px;
    margin-top: 24px;
    padding: 0;
    color: var(--color-muted);
    font-size: 1.25rem;
    line-height: 1.5;
}

.hero__lead > * {
    margin-left: 0;
    padding-left: 0;
}

.hero__lead p {
    margin: 0;
}

.hero .button{
    display: block;
    width: fit-content;

    margin: 32px auto 0;
}

#services { scroll-margin-top: calc(var(--header-height) + 24px); }

.about-text + .button {
    margin-top: 24px;
}

.about-text {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.split-section__right .button {
    display: block;
    width: fit-content;
    margin: 32px auto 0;
}

.about-text p {
    margin-bottom: 18px;
}

.about-text ul {
    margin: 18px 0;
    padding-left: 22px;
}

.about-text li {
    margin-bottom: 8px;
}

.about-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); gap: 96px; align-items: stretch; max-width: 1200px; margin: 0 auto; }
.about-cta__left h2 { max-width: 620px; margin: 18px 0 0; font-size: clamp(2rem, 2.8vw, 2.5rem); line-height: 1; }
.about-cta__right { display: flex; flex-direction: column; justify-content: center; }
.about-cta__text { max-width: 470px; margin-bottom: 0; color: var(--color-muted); font-size: 1.2rem; line-height: 1.7; }
.about-cta__text p { margin-bottom: 18px; }
.about-cta__text p:last-child { margin-bottom: 0; }
.about-cta__button { display: flex; justify-content: center; margin-top: 30px; }
.about-cta .button { width: fit-content; }

.empty-state {
    color: var(--color-muted);
    font-size: 1.1rem;
    text-align: center;
}

.articles-grid,
.blog-home-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
}

.home-post-card {
    min-height: 0;
    max-width: 340px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.home-post-card::after { display: none; }

.home-post-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #25272d;
}

.home-post-card__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .35));
    content: '';
    pointer-events: none;
}

.home-post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-post-card:hover .home-post-card__media img { transform: scale(1.05); }

.home-post-card__body {
    display: flex;
    min-height: 210px;
    padding: 20px 22px 22px;
    flex-direction: column;
}

.home-post-card__meta {
    color: var(--color-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.home-post-card h3 { margin: 10px 0 10px; font-size: 1.3rem; line-height: 1.15; }
.home-post-card h3 a { color: inherit; text-decoration: none; }
.home-post-card h3 a:hover { color: var(--color-accent); }
.home-post-card p { margin: 0; color: var(--color-muted); font-size: .95rem; line-height: 1.55; }

.home-post-card__link {
    display: inline-flex;
    width: fit-content;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--color-text);
    font-size: .9rem;
    font-weight: 700;
}

.home-post-card__link span { color: var(--color-accent); font-size: 1.1rem; transition: transform .2s ease; }
.home-post-card__link:hover span { transform: translate(3px, -3px); }

.home-post-card__placeholder {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        180deg,
        #2d2f36 0%,
        #23252b 100%
    );
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 1800px) {
    .hero { min-height: min(900px, calc(100vh - var(--header-height))); }
    .hero__content { max-width: 720px; }
}

@media (max-width: 910px) {
    .hero {
        min-height: auto;
        padding: 56px 0 64px;
    }

    .about-cta { grid-template-columns: 1fr; gap: 32px; }
    .about-cta__left, .about-cta__right { text-align: left; }
    .about-cta__text { max-width: none; margin-bottom: 0; }
    .about-cta__button { justify-content: center; margin-top: 20px; }

    .articles-grid,
    .blog-home-grid{
        grid-template-columns: 1fr;
    }

    .home-post-card {
        max-width:100%;
    }
    
    .home-post-card__media {
        height: 180px;
        aspect-ratio: auto;
    }
}
