﻿/* ЦВСП «Кречет» — партнёрская тема */
body.partner-krechet {
    --bg: #0f1410;
    --bg-elevated: #161c14;
    --bg-card: #1c2418;
    --bg-card-inner: #141a12;
    --gold: #8fa86a;
    --gold-bright: #a8c07e;
    --gold-dim: #6b8050;
    --green: #556b2f;
    --green-dark: #2a3518;
    --green-bright: #7a9450;
    --green-glow: rgba(85, 107, 47, 0.55);
    --gold-glow: rgba(143, 168, 106, 0.35);
    --accent-cta: #7eb8d4;
    --accent-cta-hover: #9ecee6;
    --text: #e4ebe0;
    --text-bright: #f8faf6;
    --text-dim: #a8b4a0;
    --border: rgba(143, 168, 106, 0.22);
    --border-strong: rgba(126, 184, 212, 0.35);
    --neon-green: rgba(122, 148, 80, 0.5);
    --neon-gold: rgba(143, 168, 106, 0.3);
    --accent: #8fa86a;
    --accent-bright: #a8c07e;
}

body.partner-krechet .site-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -5%, rgba(85, 107, 47, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 90% 80%, rgba(126, 184, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 8% 70%, rgba(85, 107, 47, 0.25) 0%, transparent 45%),
        linear-gradient(180deg, #121810 0%, var(--bg) 40%, #0a0e08 100%);
}

body.partner-krechet .site-bg-topo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cg fill='none' stroke='%238fa86a' stroke-width='1' opacity='0.3'%3E%3Cpath d='M80 360 C140 210 270 150 410 190 C560 235 690 170 810 250 C880 310 850 430 740 500 C590 580 420 560 280 510 C150 460 40 450 80 360 Z'/%3E%3C/g%3E%3C/svg%3E");
}

body.partner-krechet .top-bar {
    background: rgba(15, 20, 16, 0.95);
    border-bottom-color: rgba(126, 184, 212, 0.2);
}

body.partner-krechet .header.shop-header,
body.partner-krechet .nav-secondary {
    background: rgba(22, 28, 20, 0.92);
    border-color: rgba(143, 168, 106, 0.2);
}

body.partner-krechet .nav-link.active,
body.partner-krechet .nav-link:hover {
    border-bottom-color: var(--accent-cta);
    color: var(--text-bright);
}

body.partner-krechet .btn-catalog {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-color: var(--gold-dim);
}

body.partner-krechet .footer {
    border-top-color: rgba(126, 184, 212, 0.15);
}

#page-partner-krechet.page {
    padding: 0;
    max-width: none;
}
#page-partner-krechet #partner-krechet-content {
    width: 100%;
}

.kr-hero {
    position: relative;
    height: clamp(380px, 54vh, 540px);
    overflow: hidden;
    background: #050705 url("img/partners/krechet-hero.jpg") center 40% / cover no-repeat;
}

.kr-hero-video {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 118%;
    height: 118%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: 50% 42%;
    z-index: 0;
}

.kr-hero-shade,
.kr-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.kr-hero-shade {
    background:
        linear-gradient(180deg, rgba(8, 12, 8, 0.28) 0%, rgba(8, 12, 8, 0.08) 36%, rgba(8, 12, 8, 0.88) 100%),
        linear-gradient(90deg, rgba(6, 10, 6, 0.62) 0%, transparent 52%);
}

.kr-hero-grain {
    opacity: 0.16;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.kr-hero-inner {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 64px));
    height: 100%;
    margin: 0 0 0 max(40px, calc((100% - 1180px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px 32px 0;
    opacity: 0;
    transform: translateX(-100%);
}

.kr-hero-logo {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 97, 0.85);
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.45);
    margin-bottom: 16px;
}

.kr-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-cta);
    margin-bottom: 12px;
    font-weight: 700;
}

.kr-hero h1 {
    font-family: 'Jura', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: 0.08em;
    line-height: 0.95;
    color: #f6f8f3;
    text-transform: uppercase;
    margin: 0 0 14px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.kr-hero-lead {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #d7e0d0;
    margin: 0 0 22px;
}

.kr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.kr-fly {
    opacity: 1;
    transform: none;
}

.kr-hero-inner.kr-in {
    animation: krInnerSlide 0.9s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}
.kr-hero-inner.kr-in .kr-fly { animation: none; }
.kr-hero-inner.kr-in .kr-fly-1,
.kr-hero-inner.kr-in .kr-fly-2,
.kr-hero-inner.kr-in .kr-fly-3,
.kr-hero-inner.kr-in .kr-fly-4,
.kr-hero-inner.kr-in .kr-fly-5 { animation-delay: 0s; }

@keyframes krInnerSlide {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

.kr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}

.kr-btn:hover { transform: translateY(-1px); }

.kr-btn-gold {
    background: linear-gradient(180deg, #c9b37a 0%, #9a8048 100%);
    color: #16140c;
    border-color: #e0d0a0;
}

.kr-btn-ghost {
    background: rgba(8, 12, 8, 0.45);
    color: #e8eee4;
    border-color: rgba(232, 238, 228, 0.45);
}

.kr-btn-vk {
    background: transparent;
    color: var(--accent-cta);
    border-color: var(--accent-cta);
}

.kr-news-band {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 40px));
    margin: 40px auto 0;
    padding: 0 0 8px;
}

.kr-news-band .kr-section-head {
    margin-bottom: 14px;
}

.kr-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 8px;
}

.kr-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
}

.kr-section-head h2 {
    font-family: 'Jura', sans-serif;
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0;
}

.kr-section-head span {
    color: var(--text-dim);
    font-size: 13px;
}

.kr-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.kr-news-card {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
    color: inherit;
    font: inherit;
}

.kr-news-card-art {
    position: absolute;
    inset: 0;
}

.kr-news-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.kr-news-card:hover .kr-news-card-art img { transform: scale(1.06); }

.kr-news-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 16px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 6, 0.92) 72%);
}

.kr-news-date {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 6px;
}

.kr-news-card h3 {
    font-size: 1.02rem;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.kr-news-card p {
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: #c9d2c4;
    font-size: 13px;
    line-height: 1.45;
    transition: max-height 0.35s ease, opacity 0.28s ease, margin 0.28s ease;
}

.kr-news-card:hover p,
.kr-news-card:focus-visible p {
    max-height: 2.9em;
    opacity: 1;
    margin-top: 8px;
}

.kr-news-extra-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s cubic-bezier(0.22, 0.8, 0.32, 1);
}
.kr-news-extra-inner {
    overflow: hidden;
    min-height: 0;
}
.kr-news-band.is-open .kr-news-extra-wrap {
    grid-template-rows: 1fr;
}
.kr-news-extra-inner .kr-news-grid {
    padding-top: 14px;
}

.kr-news-more {
    display: flex;
    justify-content: center;
    margin: 10px 0 4px;
}

.kr-news-more-btn {
    width: 64px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e8dfc4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, color 0.2s;
}

.kr-news-more-btn svg {
    width: 42px;
    height: 16px;
    display: block;
}

.kr-news-more-btn:hover { color: #c9a961; }
.kr-news-band.is-open .kr-news-more-btn { transform: rotate(180deg); }

.kr-news-empty {
    grid-column: 1 / -1;
    color: var(--text-dim);
    padding: 28px;
    border: 1px dashed var(--border);
    text-align: center;
}

.kr-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.kr-split img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}

.kr-copy h2 {
    font-family: 'Jura', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0 0 14px;
}

.kr-copy p {
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0 0 14px;
    font-size: 1.02rem;
}

.kr-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.kr-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px 16px;
}

.kr-pill strong {
    display: block;
    color: var(--gold-bright);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.kr-pill p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.5; }

.kr-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kr-list li {
    position: relative;
    padding: 10px 0 10px 22px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.kr-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--gold);
}

.kr-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding: 22px 0 64px;
    color: var(--text-dim);
}

.kr-contacts a { color: var(--accent-cta); font-weight: 700; text-decoration: none; }
.kr-contacts a:hover { text-decoration: underline; }

.kr-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(4, 8, 4, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kr-modal.hidden { display: none; }

.kr-modal-card {
    position: relative;
    width: min(760px, 100%);
    max-height: min(86vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #12180f;
    border: 1px solid rgba(201, 169, 97, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.kr-modal-media {
    flex: 0 0 auto;
    height: 220px;
    background: #0a0d09;
}

.kr-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kr-modal-body {
    padding: 22px 26px 26px;
    overflow: auto;
}

.kr-modal-body h3 {
    margin: 6px 0 12px;
    color: var(--text-bright);
    font-size: 1.35rem;
    line-height: 1.25;
}

.kr-modal-body p {
    white-space: pre-wrap;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

.kr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(8, 10, 8, 0.72);
    color: #f2f2f2;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 980px) {
    .kr-news-grid, .kr-split, .kr-pills { grid-template-columns: 1fr; }
    .kr-hero {
        height: auto;
        min-height: 320px;
    }
    .kr-hero-video {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        transform: none;
        object-fit: cover;
        object-position: 50% 38%;
    }
    .kr-hero-shade {
        background:
            linear-gradient(180deg, rgba(5, 8, 5, 0.55) 0%, rgba(5, 8, 5, 0.42) 35%, rgba(5, 8, 5, 0.94) 100%);
    }
    .kr-hero-inner {
        height: auto;
        padding: 28px 16px 22px 0;
        justify-content: flex-end;
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 0 0 16px;
    }
    .kr-hero-logo { display: none; }
    .kr-kicker { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 8px; }
    .kr-hero h1 {
        font-size: 1.7rem;
        letter-spacing: 0.06em;
        line-height: 1.1;
        margin-bottom: 10px;
    }
    .kr-hero-lead {
        font-size: 0.92rem;
        line-height: 1.45;
        margin-bottom: 16px;
        max-width: none;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
    }
    .kr-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .kr-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        font-size: 13px;
        justify-content: center;
    }
    .kr-news-band {
        margin-top: 20px;
        width: calc(100% - 28px);
        max-width: 1180px;
    }
    .kr-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 14px;
    }
    .kr-section-head h2 { font-size: 1.15rem; letter-spacing: 0.1em; }
    .kr-section-head span { font-size: 12px; }
    .kr-section {
        width: calc(100% - 28px);
        max-width: 1180px;
        padding: 28px 0 8px;
    }
    .kr-news-card { aspect-ratio: 16 / 10; }
    .kr-news-card h3 { font-size: 0.98rem; }
    .kr-split img { min-height: 180px; }
    .kr-modal { padding: 0; align-items: flex-end; }
    .kr-modal-card {
        max-height: min(92dvh, 820px);
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    .kr-modal-media { height: 160px; }
    .kr-modal-body { padding: 16px 16px 28px; }
    .kr-contacts { flex-direction: column; gap: 10px; padding: 12px 0 48px; }
}

@media (hover: none) {
    .kr-news-card p {
        max-height: 2.9em;
        opacity: 1;
        margin-top: 8px;
    }
    .kr-fly { opacity: 1; transform: none; }
    .kr-hero-inner.kr-in .kr-fly { animation: none; }
}
