:root {
    --color-primary: #7a4329;
    --color-secondary: #2b1d17;
    --color-primary-opacity: #7a432940;
    --color-hover: #5f301f;
    --oleg-ink: #211713;
    --oleg-walnut: #5e3727;
    --oleg-copper: #a45f36;
    --oleg-sand: #f1dfc8;
    --oleg-cream: #f8f3ed;
}

body.page-home .header {
    display: none;
}

.oleg-hero {
    padding: clamp(28px, 4vw, 64px) 0 clamp(60px, 7vw, 110px);
    color: #fff;
    background:
        radial-gradient(circle at 16% 20%, rgba(184, 119, 75, 0.24), transparent 30%),
        radial-gradient(circle at 82% 10%, rgba(241, 223, 200, 0.12), transparent 24%),
        linear-gradient(135deg, #17110f 0%, #2f211b 48%, #4a2c20 100%);
    position: relative;
    overflow: hidden;
}

.oleg-hero::before {
    width: 460px;
    height: 460px;
    right: -180px;
    bottom: -240px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(255, 255, 255, 0.025),
        0 0 0 108px rgba(255, 255, 255, 0.018);
    content: "";
    position: absolute;
}

.oleg-hero__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    align-items: center;
    gap: clamp(38px, 6vw, 96px);
    position: relative;
    z-index: 1;
}

.oleg-hero__content {
    padding: 24px 0;
}

.oleg-hero__eyebrow,
.work-modes__label,
.oleg-channels__label {
    margin-bottom: 22px;
    color: #e9ba91;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.oleg-hero__title {
    max-width: 780px;
    margin: 0 0 28px;
    color: #fff;
    font-size: clamp(43px, 5.1vw, 76px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.oleg-hero__title span {
    color: var(--oleg-sand);
}

.oleg-hero__lead {
    max-width: 660px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(19px, 1.55vw, 24px);
    line-height: 1.45;
}

.oleg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.oleg-hero__button {
    min-height: 62px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.oleg-hero__button:hover,
.oleg-hero__button:focus-visible {
    transform: translateY(-2px);
}

.oleg-hero__button--primary {
    background: var(--oleg-copper);
}

.oleg-hero__button--primary:hover,
.oleg-hero__button--primary:focus-visible {
    background: #8d4928;
}

.oleg-hero__button--ghost {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.oleg-hero__button--ghost:hover,
.oleg-hero__button--ghost:focus-visible {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.oleg-hero__facts {
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
    list-style: none;
}

.oleg-hero__facts li {
    padding-left: 18px;
    position: relative;
}

.oleg-hero__facts li::before {
    width: 7px;
    height: 7px;
    left: 0;
    top: 0.47em;
    border-radius: 50%;
    background: #e9ba91;
    content: "";
    position: absolute;
}

.oleg-hero__visual {
    width: 100%;
    max-width: 390px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.32);
    justify-self: end;
    position: relative;
}

.oleg-hero__visual::after {
    inset: 12px;
    border-radius: 22px;
    background: linear-gradient(90deg, rgba(22, 16, 14, 0.34), transparent 42%);
    content: "";
    pointer-events: none;
    position: absolute;
}

.oleg-hero__photo {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
}

.oleg-hero__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 82% 38%;
    transform: scale(1.12);
}

.oleg-hero__caption {
    max-width: none;
    margin-top: 8px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(26, 18, 15, 0.78);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.oleg-hero__caption strong {
    font-size: 18px;
}

.oleg-hero__caption span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.35;
}

.work-modes {
    padding: clamp(80px, 9vw, 150px) 0;
    background: var(--oleg-cream);
}

.work-modes__header {
    max-width: 850px;
    margin-bottom: 52px;
}

.work-modes__label,
.oleg-channels__label {
    margin-bottom: 14px;
    color: var(--color-primary);
}

.work-modes__title {
    color: var(--oleg-ink);
}

.work-modes__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.work-modes__card {
    min-height: 410px;
    padding: clamp(34px, 4vw, 58px);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(69, 45, 34, 0.08);
}

.work-modes__card--office {
    border: 1px solid #e8d8c7;
    background:
        radial-gradient(circle at 100% 0, rgba(184, 119, 75, 0.17), transparent 40%),
        #fff;
    color: var(--oleg-ink);
}

.work-modes__card--online {
    background:
        radial-gradient(circle at 100% 0, rgba(233, 186, 145, 0.2), transparent 37%),
        linear-gradient(145deg, #211713, #4b2c20);
    color: #fff;
}

.work-modes__number {
    margin-bottom: auto;
    color: var(--oleg-copper);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.work-modes__card h3 {
    margin: 42px 0 18px;
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.08;
}

.work-modes__card p {
    max-width: 560px;
    font-size: 19px;
    line-height: 1.5;
}

.work-modes__card--online > p {
    color: rgba(255, 255, 255, 0.76);
}

.work-modes__card .work-modes__meta {
    margin: 22px 0 28px;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.75;
}

.work-modes__card button,
.work-modes__card a {
    width: fit-content;
    min-height: 54px;
    margin-top: auto;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background: var(--color-primary);
    cursor: pointer;
}

.work-modes__card--online a {
    color: var(--oleg-ink);
    background: var(--oleg-sand);
}

.work-modes__actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.work-modes__card .work-modes__actions a {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 0 18px;
    justify-content: center;
    text-align: center;
}

.oleg-channels {
    padding: clamp(70px, 8vw, 130px) 0;
    background: #fff;
}

.oleg-channels__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(520px, 1.25fr);
    align-items: start;
    gap: clamp(40px, 7vw, 110px);
}

.oleg-channels__title {
    margin: 0 0 20px;
    color: var(--oleg-ink);
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: 1.05;
}

.oleg-channels__text {
    color: #6b5b53;
    line-height: 1.5;
}

.oleg-channels__links {
    display: grid;
    gap: 12px;
}

.oleg-channels__links a {
    padding: 24px 28px;
    border: 1px solid #eaded3;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--oleg-ink);
    text-decoration: none;
    background: var(--oleg-cream);
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.oleg-channels__links a:hover,
.oleg-channels__links a:focus-visible {
    border-color: var(--oleg-copper);
    background: #fff;
    transform: translateX(4px);
}

.oleg-channels__links span {
    color: #79675d;
    font-size: 15px;
}

.oleg-channels__links strong {
    font-size: 17px;
    text-align: right;
}

.about-video__card-img,
.bfl-stages__card-img,
.form-hello__user-img {
    object-position: 72% center;
}

.contacts-start {
    background:
        radial-gradient(circle at 85% 15%, rgba(184, 119, 75, 0.12), transparent 28%),
        linear-gradient(180deg, #fff, var(--oleg-cream));
}

.contacts-start__media-img {
    flex: 0 0 92%;
}

.contacts-start__media-img img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

.contacts-start__plug {
    border: 1px solid #e8d8c7;
    background: rgba(255, 255, 255, 0.94);
}

.about-contact__messenger-link {
    width: auto !important;
    height: 38px !important;
    margin-top: 24px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1) !important;
}

.footer__social-inner {
    flex-wrap: wrap;
    gap: 8px;
}

.footer__channel-link {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 12px;
    border: 1px solid rgba(51, 51, 51, 0.18);
    border-radius: 999px;
    color: inherit;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    background: transparent !important;
}

@media (max-width: 1180px) {
    .oleg-hero__shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
        gap: 42px;
    }

    .oleg-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .oleg-hero__button {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .oleg-hero__shell,
    .oleg-channels__inner {
        grid-template-columns: 1fr;
    }

    .oleg-hero__content {
        padding-bottom: 0;
    }

    .oleg-hero__visual {
        max-width: 360px;
        justify-self: center;
    }

    .oleg-hero__actions {
        max-width: 620px;
        flex-direction: row;
    }

    .oleg-hero__button {
        width: auto;
        flex: 1 1 260px;
    }

    .oleg-channels__links {
        max-width: 760px;
    }
}

@media (max-width: 780px) {
    .oleg-hero {
        padding-top: 22px;
    }

    .oleg-hero__title {
        font-size: clamp(40px, 10.5vw, 62px);
    }

    .work-modes__grid {
        grid-template-columns: 1fr;
    }

    .work-modes__card {
        min-height: 370px;
    }

    .contacts-start__media-img {
        flex-basis: 100%;
    }
}

@media (max-width: 560px) {
    .oleg-hero__eyebrow {
        font-size: 12px;
    }

    .oleg-hero__lead {
        font-size: 18px;
    }

    .oleg-hero__actions {
        flex-direction: column;
    }

    .oleg-hero__button {
        width: 100%;
        min-height: 58px;
        flex: none;
        padding: 0 20px;
        font-size: 15px;
    }

    .oleg-hero__facts {
        display: grid;
    }

    .oleg-hero__visual {
        max-width: 300px;
        padding: 7px;
        border-radius: 22px;
    }

    .oleg-hero__photo {
        border-radius: 16px;
    }

    .oleg-hero__photo img {
        object-position: 84% 38%;
        transform: scale(1.08);
    }

    .oleg-hero__visual > img {
        width: 100%;
        height: min(calc((100vw - 44px) * 1.7777778), 508px);
        aspect-ratio: 9 / 16;
        border-radius: 16px;
        display: block;
        object-fit: cover;
        object-position: 84% 38%;
        transform: none;
    }

    .oleg-hero__visual::after {
        inset: 7px;
        border-radius: 16px;
    }

    .oleg-hero__caption {
        max-width: none;
        margin-top: 8px;
        position: relative;
    }

    .work-modes__card {
        min-height: 350px;
        padding: 30px 24px;
        border-radius: 24px;
    }

    .work-modes__card p {
        font-size: 17px;
    }

    .work-modes__card button,
    .work-modes__card a {
        width: 100%;
        justify-content: center;
    }

    .work-modes__actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .oleg-channels__links a {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .oleg-channels__links strong {
        font-size: 15px;
        overflow-wrap: anywhere;
        text-align: left;
    }
}
