@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&display=swap');

/* =========================
   BASE
========================= */

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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background: #030303;
    color: #f5f5f5;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

label,
a {
    font-family: inherit;
}

label {
    cursor: pointer;
}

/* =========================
   CSS PAGE CONTROLLER
========================= */

.page-radio {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.page {
    display: none;
}

#page-about:checked ~ .site-main .page-about {
    display: block;
}

#page-cases:checked ~ .site-main .page-cases {
    display: block;
}

#page-services:checked ~ .site-main .page-services {
    display: block;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 34px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.site-nav {
    width: fit-content;
    margin: 0 auto;
    padding: 4px;

    display: flex;
    align-items: center;
    gap: 3px;

    border-radius: 12px;
    background: #060606;
    border: 1px solid rgba(255,255,255,0.16);

    box-shadow: none;
    pointer-events: auto;
}

.nav-link {
    padding: 9px 15px;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;

    color: rgba(255,255,255,0.42);
    transition: 0.25s ease;
}

#page-about:checked ~ .site-header .nav-about,
#page-cases:checked ~ .site-header .nav-cases,
#page-services:checked ~ .site-header .nav-services {
    color: #070707;
    background: #ffffff;
}

.language-switch {
    position: absolute;
    top: 7px;
    right: 48px;

    display: flex;
    align-items: center;
    gap: 14px;

    pointer-events: auto;
}

.language-item {
    border: 0;
    padding: 0;
    background: transparent;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    color: rgba(255,255,255,0.35);
    cursor: pointer;
}

.language-item.is-active {
    color: #ffffff;
}

/* =========================
   FLOATING CONTACT BUTTON
========================= */

.floating-contact-button {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 1200;

    min-width: 204px;
    min-height: 56px;
    padding: 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: #050505;
    color: #ffffff;

    border: 1px solid rgba(255,255,255,0.18);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    box-shadow: none;
    filter: none;
    backdrop-filter: none;
}

.floating-contact-button::before,
.floating-contact-button::after {
    content: none;
    display: none;
}

/* =========================
   PAGE SYSTEM
========================= */

.site-main {
    position: relative;
    z-index: 5;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    overflow: hidden;
}

.page {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;
}

.page-scroll {
    width: 100%;
    height: 100vh;
    height: 100dvh;

    overflow-y: auto;
    padding: 118px 40px 130px;
}

/* =========================
   ABOUT
========================= */

.page-about .page-scroll {
    padding: 0 40px 150px;
    overflow-y: auto;
}

.about-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    text-align: center;
}

.about-hero {
    min-height: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-top: 330px;
    margin-bottom: 90px;
}

.about-avatar {
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;

    border-radius: 50%;
    overflow: hidden;

    background: #101010;
    border: 1px solid rgba(255,255,255,0.18);
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-name {
    margin-bottom: 10px;

    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;

    color: #ffffff;
}

.about-role {
    max-width: 230px;
    margin: 0 auto;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;

    color: rgba(255,255,255,0.42);
    text-transform: uppercase;
}

.about-section {
    min-height: auto;
    margin-bottom: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-section-number {
    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
}

.about-section-title {
    max-width: 560px;
    margin: 0 auto;

    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.045em;

    color: #ffffff;
}

.about-socials-section {
    margin-bottom: 0;
}

.about-socials-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;

    color: rgba(255,255,255,0.52);
}

.about-socials {
    margin-top: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.about-social-link {
    width: 84px;
    height: 84px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    text-decoration: none;

    transition: transform 0.25s ease, filter 0.25s ease;
}

.telegram-icon,
.instagram-icon {
    width: 84px;
    height: 84px;
    display: block;

    transition: transform 0.25s ease, filter 0.25s ease;
}

.telegram-icon {
    filter: drop-shadow(0 0 10px rgba(42, 171, 238, 0.18));
}

.instagram-icon {
    filter: drop-shadow(0 0 10px rgba(214, 41, 118, 0.18));
}

.about-social-link:hover {
    transform: translateY(-2px) scale(1.04);
}

.about-social-link:hover .telegram-icon {
    filter: drop-shadow(0 0 18px rgba(42, 171, 238, 0.32));
}

.about-social-link:hover .instagram-icon {
    filter: drop-shadow(0 0 18px rgba(214, 41, 118, 0.32));
}
/* =========================
   CASES
========================= */

.cases-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.cases-zone {
    margin-bottom: 76px;
}

.cases-zone:last-child {
    margin-bottom: 0;
}

.cases-zone-top {
    margin-bottom: 22px;
}

.cases-zone-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.055em;

    color: #ffffff;
}

.vertical-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 190px);
    justify-content: start;
    gap: 24px;
}

.horizontal-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    justify-content: start;
    gap: 24px;
}

.case-card {
    width: 100%;
    padding: 6px;

    border-radius: 14px;
    background: #060606;
    border: 1px solid rgba(255,255,255,0.16);

    box-shadow: none;
}

.case-preview {
    position: relative;
    width: 100%;
    display: block;

    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;

    background: #070707;
    border-radius: 9px;
}

.case-preview img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.vertical-cases-grid .case-preview {
    aspect-ratio: 9 / 16;
}

.horizontal-cases-grid .case-preview {
    aspect-ratio: 16 / 9;
}

.case-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.18);
    transition: 0.25s ease;
}

.case-play-button {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 62px;
    height: 62px;

    transform: translate(-50%, -50%);
    border-radius: 50%;

    background: rgba(0,0,0,0.58);
    border: 1px solid rgba(255,255,255,0.32);

    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transition: 0.25s ease;
}

.case-play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;

    transform: translate(-50%, -50%);

    width: 0;
    height: 0;

    border-left: 15px solid #ffffff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.case-preview:hover .case-overlay {
    background: rgba(0,0,0,0.08);
}

.case-preview:hover .case-play-button {
    transform: translate(-50%, -50%) scale(1.05);
}

.case-youtube-frame {
    width: 100%;
    display: block;

    border: 0;
    border-radius: 9px;
    overflow: hidden;
}

.vertical-cases-grid .case-youtube-frame {
    aspect-ratio: 9 / 16;
}

.horizontal-cases-grid .case-youtube-frame {
    aspect-ratio: 16 / 9;
}

/* =========================
   SERVICES
========================= */

.page-services .page-scroll {
    padding: 96px 40px 0;
    overflow: hidden;
}

.services-container {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
}

.service-panel {
    position: relative;
    width: 100%;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);

    padding: 78px 74px 140px;
    overflow: hidden;

    border-radius: 14px 14px 0 0;

    background: #050505;
    border: 1px solid rgba(255,255,255,0.16);

    box-shadow: none;
}

.service-title {
    position: relative;
    z-index: 2;

    margin-bottom: 54px;

    text-align: center;
    font-size: clamp(86px, 8.2vw, 118px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.075em;
    text-transform: uppercase;

    color: #ffffff;

    font-kerning: normal;
    font-feature-settings: "kern" 1;
    text-rendering: geometricPrecision;
}

.service-title-line {
    display: block;
    white-space: nowrap;
}

.service-list {
    position: relative;
    z-index: 2;

    width: min(100%, 840px);
    margin: 0 auto;
}

.service-row {
    min-height: 84px;
    padding: 18px 0;

    display: grid;
    grid-template-columns: 1fr 54px;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.service-info h3 {
    margin-bottom: 8px;

    font-size: 27px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;

    color: #ffffff;
}

.service-info h3.service-title-accent {
    font-weight: 500;
    letter-spacing: -0.045em;
}

.service-info p {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.035em;

    color: rgba(255,255,255,0.42);
}

.service-arrow {
    justify-self: end;

    font-size: 34px;
    font-weight: 400;
    line-height: 1;

    color: rgba(255,255,255,0.72);
}

.letter-zh {
    display: inline-block;
    margin-left: 0.1em;
}
.letter-l {
    display: inline-block;
    margin-left: 0.08em;
}

/* =========================
   ADAPTIVE
========================= */

/* TABLET */
@media (max-width: 1024px) {
    .page-scroll {
        padding: 112px 28px 130px;
    }

    .language-switch {
        right: 28px;
    }

    .about-hero {
        padding-top: 260px;
        margin-bottom: 80px;
    }

    .about-section {
        margin-bottom: 78px;
    }

    .vertical-cases-grid {
        grid-template-columns: repeat(3, 150px);
        gap: 18px;
    }

    .horizontal-cases-grid {
        grid-template-columns: repeat(3, 250px);
        gap: 18px;
    }

    .service-panel {
        padding: 72px 48px 130px;
    }

    .service-title {
        font-size: clamp(72px, 8vw, 96px);
    }

    .service-list {
        width: min(100%, 760px);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .site-header {
        top: 24px;
    }

    .site-nav {
        padding: 4px;
        border-radius: 11px;
    }

    .nav-link {
        padding: 8px 11px;
        font-size: 10px;
    }

    .language-switch {
        top: 46px;
        right: 50%;
        transform: translateX(50%);
        gap: 18px;
    }

    .language-item {
        font-size: 12px;
    }

    .page-scroll {
        padding: 112px 20px 120px;
    }

    .floating-contact-button {
        bottom: 22px;
        min-width: 168px;
        min-height: 50px;
        padding: 0 24px;

        border-radius: 12px;

        font-size: 11px;
        line-height: 1.05;
    }

    /* ABOUT */

    .page-about .page-scroll {
        padding: 0 22px 130px;
    }

    .about-hero {
        padding-top: 230px;
        margin-bottom: 76px;
    }

    .about-avatar {
        width: 112px;
        height: 112px;
        margin-bottom: 16px;
    }

    .about-name {
        font-size: 24px;
    }

    .about-role {
        font-size: 11px;
        max-width: 210px;
    }

    .about-section {
        margin-bottom: 72px;
    }

    .about-section-number {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .about-section-title {
        max-width: 340px;
        font-size: 21px;
        line-height: 1.2;
    }

    .about-socials-title {
        font-size: 14px;
    }

    .about-socials {
        margin-top: 32px;
        gap: 16px;
    }

    .about-social-link,
    .telegram-icon,
    .instagram-icon {
        width: 72px;
        height: 72px;
    }

    /* CASES */

    .page-cases .page-scroll {
        padding: 118px 22px 130px;
    }

    .cases-container {
        max-width: 100%;
    }

    .cases-zone {
        margin-bottom: 54px;
    }

    .cases-zone-top {
        margin-bottom: 16px;
    }

    .cases-zone-title {
        font-size: 18px;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .vertical-cases-grid {
        grid-template-columns: repeat(3, 92px);
        justify-content: start;
        gap: 10px;
    }

    .horizontal-cases-grid {
        grid-template-columns: repeat(2, 148px);
        justify-content: start;
        gap: 10px;
    }

    .case-card {
        padding: 4px;
        border-radius: 10px;
    }

    .case-preview {
        border-radius: 7px;
    }

    .case-youtube-frame {
        border-radius: 7px;
    }

    .case-play-button {
        width: 42px;
        height: 42px;
    }

    .case-play-button::before {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }

    /* SERVICES */

    .page-services .page-scroll {
        padding: 96px 18px 0;
    }

    .service-panel {
        height: calc(100vh - 96px);
        height: calc(100dvh - 96px);

        padding: 58px 22px 110px;
        border-radius: 12px 12px 0 0;
    }

    .service-title {
        margin-bottom: 44px;

        font-size: clamp(48px, 13vw, 72px);
        line-height: 0.9;
        letter-spacing: -0.075em;
    }

    .service-list {
        width: 100%;
    }

    .service-row {
        min-height: 76px;
        padding: 16px 0;
        grid-template-columns: 1fr 34px;
    }

    .service-info h3 {
        margin-bottom: 7px;

        font-size: 20px;
        line-height: 1.05;
    }

    .service-info p {
        font-size: 14px;
        line-height: 1.15;
    }

    .service-arrow {
        font-size: 26px;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    .page-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-link {
        padding: 8px 9px;
        font-size: 9px;
    }

    .page-about .page-scroll {
        padding-left: 18px;
        padding-right: 18px;
    }

    .about-hero {
        padding-top: 210px;
        margin-bottom: 68px;
    }

    .about-avatar {
        width: 104px;
        height: 104px;
    }

    .about-name {
        font-size: 23px;
    }

    .about-section-title {
        max-width: 300px;
        font-size: 20px;
    }

    .about-social-link,
    .telegram-icon,
    .instagram-icon {
        width: 68px;
        height: 68px;
    }

    .page-cases .page-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .vertical-cases-grid {
        grid-template-columns: repeat(3, 86px);
        gap: 9px;
    }

    .horizontal-cases-grid {
        grid-template-columns: repeat(2, 138px);
        gap: 9px;
    }

    .cases-zone-title {
        font-size: 16px;
    }

    .case-card {
        padding: 4px;
    }

    .page-services .page-scroll {
        padding-left: 12px;
        padding-right: 12px;
    }

    .service-panel {
        padding: 54px 18px 105px;
    }

    .service-title {
        font-size: clamp(42px, 14vw, 60px);
        margin-bottom: 40px;
    }

    .service-info h3 {
        font-size: 18px;
    }

    .service-info p {
        font-size: 13px;
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 360px) {
    .vertical-cases-grid {
        grid-template-columns: repeat(3, 78px);
        gap: 8px;
    }

    .horizontal-cases-grid {
        grid-template-columns: repeat(2, 126px);
        gap: 8px;
    }

    .service-title {
        font-size: 40px;
    }
}
/* =========================
   MOBILE CASES — ONE COLUMN
========================= */

@media (max-width: 768px) {
    .page-cases .page-scroll {
        padding: 118px 18px 150px;
    }

    .cases-container {
        width: 100%;
        max-width: 100%;
    }

    .cases-zone {
        margin-bottom: 64px;
    }

    .cases-zone-top {
        margin-bottom: 20px;
    }

    .cases-zone-title {
        font-size: 20px;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .vertical-cases-grid,
    .horizontal-cases-grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 24px;
    }

    .vertical-cases-grid .case-card {
        width: min(82vw, 340px);
    }

    .horizontal-cases-grid .case-card {
        width: 100%;
        max-width: 520px;
    }

    .case-card {
        padding: 6px;
        border-radius: 14px;
    }

    .case-preview,
    .case-youtube-frame {
        width: 100%;
        border-radius: 9px;
    }

    .case-play-button {
        width: 58px;
        height: 58px;
    }

    .case-play-button::before {
        border-left-width: 14px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
}

@media (max-width: 480px) {
    .page-cases .page-scroll {
        padding-left: 14px;
        padding-right: 14px;
    }

    .vertical-cases-grid .case-card {
        width: min(86vw, 330px);
    }

    .horizontal-cases-grid .case-card {
        width: 100%;
    }

    .vertical-cases-grid,
    .horizontal-cases-grid {
        gap: 20px;
    }
}
/* =========================
   SERVICES SCROLL FIX
========================= */

.page-services .page-scroll {
    padding: 96px 40px 150px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.services-container {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
}

.service-panel {
    height: auto !important;
    min-height: calc(100vh - 96px) !important;
    min-height: calc(100dvh - 96px) !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .page-services .page-scroll {
        padding: 96px 18px 150px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .services-container {
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
    }

    .service-panel {
        height: auto !important;
        min-height: calc(100vh - 96px) !important;
        min-height: calc(100dvh - 96px) !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .page-services .page-scroll {
        padding: 96px 12px 150px !important;
    }
}