:root {
    color-scheme: light;
    --bg: #0b1012;
    --bg-soft: #12181b;
    --surface: #121b1f;
    --surface-light: #f4f1ec;
    --text: #f6f4f0;
    --text-muted: rgba(246, 244, 240, 0.7);
    --text-dark: #101315;
    --accent: #ffb86b;
    --accent-2: #2ec4b6;
    --accent-3: #f05d5e;
    --stroke: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --font-title: "Unbounded", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at top left, rgba(46, 196, 182, 0.18), transparent 55%),
        radial-gradient(circle at 10% 60%, rgba(240, 93, 94, 0.14), transparent 50%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.page {
    position: relative;
    overflow: hidden;
}

.page::before {
    content: "";
    position: absolute;
    inset: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0, transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(255, 184, 107, 0.08) 0, transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(46, 196, 182, 0.08) 0, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    padding: 32px 0 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand__mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #0e1216 0%, #1a242c 55%, #0b0f13 100%);
    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__name {
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 20px;
}

.brand__tag {
    font-size: 14px;
    color: var(--text-muted);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.soc-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--stroke);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.soc-icon:hover,
.soc-icon:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.contact-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: min(320px, 80vw);
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.98));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #000000;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.contact-panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.contact-panel__body {
    display: grid;
    gap: 10px;
    font-size: 13px;
    color: #000000;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
}

.hint {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.hint__trigger {
    border: none;
    background: transparent;
    padding: 0;
    color: #000000;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.hint__bubble {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(12, 18, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.hint.is-open .hint__bubble {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-panel__body a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.contact-panel__label {
    font-weight: 500;
}

.contact-panel__close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    position: absolute;
    top: 14px;
    right: 14px;
    cursor: pointer;
}

.contact-panel__close::before,
.contact-panel__close::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1b1b1b;
    left: 0;
    top: 50%;
    margin-top: -1px;
}

.contact-panel__close::before {
    transform: rotate(45deg);
}

.contact-panel__close::after {
    transform: rotate(-45deg);
}

.projects {
    padding: 40px 0 80px;
}

.projects__header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.stats--header {
    align-items: center;
}

.stats--header .stat {
    height: 38px;
    padding: 7px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 120px;
    text-align: center;
}

.stats--header .stat__value {
    font-size: 13px;
    width: 100%;
}

.stats--header .stat__label {
    font-size: 11px;
}

.stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid var(--stroke);
    text-align: left;
    color: inherit;
    font: inherit;
}

.stat__value {
    font-weight: 600;
    display: block;
}

.stat__label {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.stat--interactive {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat--interactive:hover,
.stat--interactive:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 184, 107, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 184, 107, 0.15);
}

.projects {
    padding: 40px 0 80px;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.row__item {
    padding-bottom: 130%;
    position: relative;
    cursor: pointer;
    perspective: 1200px;
}

.row__item-overlay {
    border-radius: var(--radius);
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 24px 28px;
    transition: transform 0.7s ease;
    will-change: transform, filter;
    backface-visibility: hidden;
    box-shadow: var(--shadow);
}

.row__item-overlay_front-side {
    transform: rotateY(0deg);
    background-color: rgba(10, 12, 14, 0.2);
}

.card-open .row__item:not(.row__item_show) .row__item-overlay_front-side {
    filter: brightness(0.45) saturate(0.75);
}



.row__item-overlay_inner-side {
    background-color: #0f1417;
    color: var(--text);
    transform: rotateY(180deg);
    justify-content: space-between;
}

.row__item_show .row__item-overlay_front-side {
    transform: rotateY(180deg);
}

.row__item_show .row__item-overlay_inner-side {
    transform: rotateY(360deg);
}


.row__item-title {
    font-size: 18px;
    font-weight: 600;
}

.row__item-title_min {
    max-width: 260px;
}

.row__item-subtitle {
    font-size: 15px;
    font-weight: 300;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.92);
}

.row__item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.row__item-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    outline: none;
    position: relative;
    cursor: pointer;
}

.row__item-close::before,
.row__item-close::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    left: 0;
    top: 50%;
    margin-top: -1px;
}

.row__item-close::before {
    transform: rotate(45deg);
}

.row__item-close::after {
    transform: rotate(-45deg);
}

.row__item_one-agency .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/super_tablica.png);
}


.row__item_course .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/super_course.png);
}


.row__item_one-agency-2 .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/nomadform.png);
}

.row__item_one-oleg .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/startrack.png);
}

.row__item_academy .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/nomadhouse.png);
}

.row__item_sebet .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/kuda_sebet.png);
}

.row__item_lection .row__item-overlay_front-side {
    background-image: url(../../assets/img/cards/visual_003.png);
}

.button {
    background: var(--accent);
    color: var(--text-dark);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 30px rgba(255, 184, 107, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 184, 107, 0.3);
}

.button--small {
    padding: 10px 18px;
}

.button--dark {
    background: #101315;
    color: #f4f1ec;
}


.site-footer {
    padding: 30px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .projects__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-panel {
        left: auto;
        right: auto;
    }
}

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

    .row__item {
        padding-bottom: 110%;
    }
}

@media (max-width: 600px) {
    .site-actions {
        gap: 12px;
    }
}
