*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-size: 16px;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background: #fff;
    color: #252627;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* NAV */
.nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo svg {
    height: 24px;
    width: auto;
    display: block;
}

.nav__text {
    font-size: clamp(11px, 0.8vw, 15px);
    color: #777;
    line-height: 1.6;
    text-align: right;
}

/* PAGE — десктопный грид (3 колонки) */
.page {
    min-height: calc(100svh - 60px);
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
                "photo hero hero"
                "photo services services";
}

/* HERO */
.left {
    grid-area: hero;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.hero {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

.hero__tag {
    font-size: clamp(14px, 1.1vw, 20px);
    color: #808080;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero__name {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(32px, 3.2vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero__role {
    font-size: clamp(16px, 1.3vw, 24px);
    color: #555;
    line-height: 1.3;
    max-width: 520px;
    margin-bottom: 32px;
}

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

/* маленькое фото внутри hero — только мобилка */
.hero__photo-small {
    display: none;
}

/* SERVICES */
.services-col {
    grid-area: services;
    background: #252627;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.services-top {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

.services__head {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2vw, 38px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}

.services__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    column-gap: 40px;
}

.service {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service:nth-last-child(-n+2) {
    border-bottom: none;
}

.service__name {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(15px, 1.3vw, 24px);
    color: #fff;
    margin-bottom: 6px;
}

.service__text {
    font-size: clamp(13px, 1.1vw, 20px);
    color: #aaa;
    line-height: 1.5;
}

/* КОНТАКТЫ — под фото (десктоп) */
.contacts {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* маленькое круглое фото — только мобилка */
.hero__photo-small {
    display: none;
}

/* RF-заметка перед услугами — только мобилка */
.rf-note {
    display: none;
}

/* Заголовок контактов — только мобилка */
.contacts__head {
    display: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity .2s;
}

.contact-link:hover {
    opacity: 0.6;
}

.contact-link__icon {
    width: 18px;
    font-size: 15px;
    color: #aaa;
    text-align: center;
    flex-shrink: 0;
}

.contact-link__label {
    font-size: clamp(13px, 1vw, 18px);
    color: #aaa;
    width: 110px;
}

.contact-link__val {
    font-size: clamp(14px, 1.1vw, 20px);
    color: #ddd;
    font-weight: 500;
    white-space: nowrap;
}

/* RF под контактами — только мобилка */
.rf-note-bottom {
    display: none;
}

/* PHOTO COL */
.photo-col {
    grid-area: photo;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #252627;
    overflow: hidden;
}

.photo-col__img {
    min-height: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    width: 100%;
    max-height: 100%;
}

.photo-col__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    font-size: clamp(14px, 1.1vw, 20px);
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
    cursor: pointer;
    font-family: 'Ubuntu', sans-serif;
    border: none;
}

.btn--dark {
    background: #252627;
    color: #fff;
}

.btn--dark:hover {
    background: #000;
}

.btn--ghost {
    border: 1px solid #ccc;
    color: #252627;
    background: transparent;
}

.btn--ghost:hover {
    border-color: #252627;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    max-width: 360px;
    padding: 20px 22px;
    background: #fff;
    color: #252627;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.cookie-banner__btn {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 14px;
}

/* PAGE FOOTER */
.page-footer {
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-footer__link {
    font-size: 14px;
    color: #777;
    text-decoration: underline;
}

.page-footer__link:hover {
    color: #252627;
}

@media (max-width: 480px) {
    .cookie-banner {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .page-footer {
        order: 6;
        background: #252627;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .page-footer__link {
        color: #555;
    }

    .page-footer__link:hover {
        color: #aaa;
    }
}

/* =====================
   DESKTOP 1300px
===================== */
@media (max-width: 1300px) {
    .hero {
        padding: 30px 50px;
    }

    .services-top {
        padding: 30px 50px;
    }

    .contacts {
        padding: 30px 20px;
    }

    .contact-link__label {
        width: 80px;
    }
}

/* =====================
   MOBILE — с 1024px
===================== */
@media (max-width: 1024px) {
    body {
        height: auto;
        overflow-y: auto;
    }

    /* растворяем page и photo-col — все дети становятся flex-детьми body */
    .page,
    .photo-col {
        display: contents;
    }

    /* большое фото скрываем */
    .photo-col__img {
        display: none;
    }

    /* контакты уходят вниз */
    .contacts {
        order: 4;
        flex-direction: column;
        padding: 24px;
        gap: 14px;
        background: #252627;
        border-top: none;
    }

    /* rf-note перед услугами скрываем */
    .rf-note {
        display: none;
    }

    /* rf-note под контактами показываем */
    .rf-note-bottom {
        display: block;
        order: 5;
        background: #252627;
        padding: 0 24px 24px;
        font-size: 13px;
        color: #555;
        line-height: 1.6;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding-top: 16px;
    }

    .rf-note-bottom strong {
        display: block;
        color: #777;
        margin-bottom: 2px;
    }

    .contacts__head {
        display: block;
    }

    .contact-link__icon {
        width: 16px;
        font-size: 13px;
    }

    .contact-link__label {
        font-size: 13px;
        width: 100px;
    }

    .contact-link__val {
        font-size: 14px;
    }

    /* RF-заметка */
    .rf-note {
        display: block;
        font-size: 13px;
        color: #666;
        line-height: 1.6;
        padding-bottom: 20px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .rf-note strong {
        display: block;
        color: #888;
        margin-bottom: 2px;
    }

    /* RF текст в nav — скрываем */
    .nav__text {
        display: none;
    }

    /* кнопки на всю ширину */
    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .left {
        order: 1;
        border-right: none;
        min-height: auto;
    }

    .hero {
        padding: 28px 24px;
    }

    /* круглое фото перед именем */
    .hero__photo-small {
        display: block;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 16px;
    }

    .hero__photo-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .services-col {
        order: 2;
        min-height: auto;
    }

    .services-top {
        flex: none;
        padding: 28px 24px;
    }

    .services__head {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .services__list {
        grid-template-columns: 1fr 1fr;
        gap: 14px 24px;
    }

    .service__name {
        font-size: 15px;
    }

    .service__text {
        font-size: 14px;
    }
}

/* CASES */
.cases {
    background: #fff;
    flex-shrink: 0;
    padding: 40px 60px;
}

.cases__inner {}

.cases__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2vw, 38px);
    font-weight: 600;
    color: #252627;
    margin-bottom: 40px;
}

.cases__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.case-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 36px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.case-card__name {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(15px, 1.3vw, 22px);
    font-weight: 600;
    color: #252627;
    line-height: 1.3;
}

.case-card__desc {
    font-size: clamp(13px, 1vw, 16px);
    color: #555;
    line-height: 1.6;
}

.case-card__block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.case-card__label {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 600;
    color: #252627;
}

.case-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-card__list li {
    font-size: clamp(13px, 1vw, 16px);
    color: #555;
    line-height: 1.5;
    padding-left: 19px;
    position: relative;
}

.case-card__list li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f068';
    position: absolute;
    left: 0;
    color: #ccc;
}

.case-card__list--result li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f00c';
    color: #ccc;
}

@media (max-width: 1100px) {
    .cases__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .cases {
        order: 3;
        padding: 28px 24px;
    }

    .cases__title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

@media (max-width: 700px) {
    .cases__grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .services__list {
        grid-template-columns: 1fr;
    }

    .service:nth-last-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .service:last-child {
        border-bottom: none;
    }
}