/* CircleFormat / Circle of Skill — layout aligned with blueformat-style landing */
:root {
    --font-family: "Poppins", sans-serif;
    /* Główna paleta: ciepły pomarańcz + indygo na ciemnym slate */
    --blue: #fb923c;
    --violet: #6366f1;
    --bg-body: #0f172a;
    --bg-dark: #020617;
    --header-bg: #0c1222;
    --hero-ink: #0f172a;
    --btn-tint: #ffedd5;
    --glass: rgba(99, 102, 241, 0.22);
    --glass-hover: rgba(251, 146, 60, 0.32);
    --link-soft: #fdba74;
    --hero-bg-image: url("/assets/img/hero-bg.webp");
}

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

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background-color: transparent;
    padding: 0;
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-family);
    margin: 0;
    background: var(--bg-body);
    color: #fff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--header-bg);
    border-radius: 8px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

.hidden {
    display: none !important;
}

.overflow {
    overflow: hidden;
}

.section {
    padding: 40px 0;
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.content {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    padding: 22px;
    background: var(--glass);
    min-width: 0;
    max-width: 100%;
}

.title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 26px;
    line-height: 131%;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 40px;
}

.text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    margin-bottom: 24px;
}

.text-no-margin {
    margin: 0;
}

.text-center {
    text-align: center;
}

.title-center {
    text-align: center;
}

.text-ready {
    margin-bottom: 40px;
}

.text-footnote {
    margin-top: 20px;
    font-size: 14px;
    line-height: 150%;
    opacity: 0.88;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 375px) {
    .container {
        width: 375px;
    }
}

@media screen and (min-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .container {
        width: 768px;
        padding: 0 32px;
    }
}

@media screen and (min-width: 1440px) {
    .section {
        padding: 100px 0;
    }

    .container {
        width: 1440px;
        padding: 0 80px;
    }

    .title {
        font-size: 38px;
    }
}

/* Header */
.main-section {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    z-index: 9;
    padding: 16px 0;
    border-radius: 32px;
    background: var(--header-bg);
    transition: background 0.3s ease;
}

.main-section.header-bg {
    background: #080c18;
}

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

.header-title {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 900;
    font-size: 22px;
    line-height: 136%;
    background: linear-gradient(90deg, #fff 0%, var(--blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-nav {
    display: none;
}

.page-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
}

.page-nav-link {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 188%;
    color: #fff;
    transition: color 0.3s ease;
}

.page-nav-link:hover,
.page-nav-link:focus {
    color: var(--blue);
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    color: #fff;
}

.menu-btn .menu-svg {
    display: block;
}

.menu-btn:hover,
.menu-btn:focus {
    color: var(--blue);
}

.google-link {
    display: none;
}

@media screen and (min-width: 1440px) {
    .main-section {
        padding: 11px 0;
    }

    .page-nav {
        display: block;
    }

    .google-link {
        display: block;
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 16px;
        color: #fff;
        text-align: center;
        backdrop-filter: blur(6px);
        border: 1px solid #fff;
        border-radius: 32px;
        padding: 18px 22px;
        background-color: var(--btn-tint);
        background-image: linear-gradient(90deg, var(--blue) 0%, var(--violet) 100%);
        transition:
            color 0.3s ease,
            border-color 0.3s ease,
            background-image 0.3s ease;
    }

    .google-link:hover,
    .google-link:focus {
        color: #312e81;
        border-color: #4338ca;
        background-image: none;
        background-color: #e0e7ff;
    }

    .menu-btn {
        display: none;
    }
}

/* Hero */
.dashboard {
    position: relative;
    isolation: isolate;
    padding-top: 120px;
    padding-bottom: 108px;
    background-color: var(--bg-body);
    background-image: var(--hero-bg-image);
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 120px rgba(15, 23, 42, 0.42);
}

/* «Дымка» и лёгкая вуаль по полю кадра */
.dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 110% 60% at 50% 105%, rgba(226, 232, 240, 0.2) 0%, transparent 52%),
        radial-gradient(ellipse 55% 95% at 0% 45%, rgba(148, 163, 184, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 55% 95% at 100% 55%, rgba(148, 163, 184, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 90% 55% at 50% -5%, rgba(251, 146, 60, 0.1) 0%, transparent 48%),
        radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(15, 23, 42, 0.18) 100%);
    mix-blend-mode: soft-light;
}

/* Размытие по краям за счёт backdrop-filter (видно только по кольцу маски) */
.dashboard::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: radial-gradient(
        ellipse 92% 86% at 50% 50%,
        rgba(15, 23, 42, 0) 36%,
        rgba(15, 23, 42, 0.12) 62%,
        rgba(15, 23, 42, 0.35) 100%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 88% 82% at 50% 50%,
        transparent 0%,
        transparent 44%,
        #000 100%
    );
    mask-image: radial-gradient(
        ellipse 88% 82% at 50% 50%,
        transparent 0%,
        transparent 44%,
        #000 100%
    );
}

.dashboard .container {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 32px;
    line-height: 138%;
    text-transform: uppercase;
    text-align: center;
    color: var(--hero-ink);
    margin-bottom: 22px;
    text-shadow: 0 2px 28px rgba(255, 255, 255, 0.45);
}

.page-hero-title span {
    color: var(--blue);
}

.page-hero-text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    text-align: center;
    color: var(--hero-ink);
    margin-bottom: 42px;
    text-shadow: 0 2px 24px rgba(255, 255, 255, 0.4);
}

.page-hero-link {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(6px);
    border: 1px solid #fff;
    border-radius: 32px;
    padding: 22px 32px;
    background-color: var(--btn-tint);
    background-image: linear-gradient(90deg, var(--blue) 0%, var(--violet) 100%);
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-image 0.3s ease;
}

.page-hero-link:hover,
.page-hero-link:focus {
    color: #312e81;
    border-color: #4338ca;
    background-image: none;
    background-color: #e0e7ff;
}

.hero-link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.page-hero-link-center {
    width: fit-content;
    margin: 0 auto;
}

@media screen and (min-width: 1440px) {
    .dashboard {
        padding: 214px 0;
    }

    .hero-main-content {
        width: 752px;
        margin: 0 auto;
    }

    .page-hero-title {
        font-size: 42px;
        margin-bottom: 32px;
    }

    .page-hero-text {
        margin-bottom: 32px;
    }

    .hero-link-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }

    .dashboard .hero-link-wrapper .page-hero-link {
        width: 238px;
    }

    .dashboard .hero-link-wrapper {
        flex-wrap: wrap;
    }
}

.section-dark {
    background: var(--bg-dark);
}

/* What */
.what-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
    min-width: 0;
    width: 100%;
}

.what-container > div:first-child {
    min-width: 0;
}

.what-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    min-width: 0;
    flex-shrink: 1;
    border-radius: 24px;
    overflow: hidden;
}

@media screen and (min-width: 1440px) {
    .what-container {
        flex-direction: row;
        align-items: center;
    }

    .what-container .title {
        text-align: start;
    }

    .what-img {
        flex: 0 1 46%;
        max-width: min(560px, 46%);
    }
}

/* Advantages */
.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.advantages-item {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 22px;
    background-color: var(--glass);
    cursor: default;
    transition: background-color 0.3s ease;
}

.advantages-item:hover {
    background-color: var(--glass-hover);
}

.advantages-item img {
    width: 50px;
    flex-shrink: 0;
    margin-bottom: 24px;
}

.advantages-item p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}

.advantages-item span {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}

@media screen and (min-width: 1440px) {
    .advantages-list {
        flex-direction: row;
    }

    .advantages-item {
        width: calc((100% - 44px) / 3);
    }
}

/* Gameplay / intensity layout */
.gameplay-container {
    display: flex;
    flex-direction: column;
    gap: 42px;
    min-width: 0;
    width: 100%;
}

.gameplay-container .title {
    text-align: center;
}

.gameplay-img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    min-width: 0;
    flex-shrink: 1;
    border-radius: 24px;
    overflow: hidden;
}

@media screen and (min-width: 1440px) {
    .gameplay-container {
        flex-direction: row;
        align-items: center;
    }

    .gameplay-container .title {
        text-align: start;
    }

    .gameplay-img {
        flex: 0 1 46%;
        max-width: min(560px, 46%);
    }
}

/* Table */
.table {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 32px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.row {
    display: flex;
}

.cell {
    width: calc(100% / 3);
    padding: 16px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}

.row.header {
    background: var(--glass);
}

.row.header .cell {
    padding: 32px 16px;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-transform: uppercase;
    color: #fff;
}

@media screen and (min-width: 1440px) {
    .cell {
        padding: 32px;
        font-size: 20px;
    }
}

@media screen and (max-width: 767px) {
    .row {
        flex-wrap: wrap;
    }

    .row.header .cell,
    .row .cell {
        width: 100%;
    }
}

/* Ready CTA */
.section-ready {
    padding: 100px 0;
    background-color: var(--bg-body);
    background-image:
        linear-gradient(90deg, rgba(249, 115, 22, 0.42) 0%, rgba(79, 70, 229, 0.48) 100%),
        var(--hero-bg-image);
    background-position: center;
    background-size: cover;
}

.section-ready .title,
.section-ready .text {
    text-shadow: 0 2px 20px rgba(15, 23, 42, 0.65);
}

.ready-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.section-ready .text-footnote {
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.55);
}

.section-ready .text-footnote a {
    color: var(--link-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media screen and (min-width: 1440px) {
    .section-ready {
        padding: 120px 0;
    }

    .section-ready .text-ready {
        width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Footer */
.footer {
    padding: 22px 0;
    background: var(--bg-dark);
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #fff;
}

.footer-title a {
    display: block;
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 900;
    font-size: 42px;
    line-height: 119%;
    background: linear-gradient(90deg, #fff 0%, var(--blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 12px;
}

.footer-title p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
}

.footer-nav a {
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--blue);
}

.footer-contact {
    text-align: center;
    padding-top: 4px;
}

.footer-contact-label {
    margin: 0 0 6px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    line-height: 150%;
    color: #fff;
}

.footer-contact-line {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
}

.footer-contact-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
    color: var(--blue);
}

.footer-flex2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff;
}

.footer-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff;
}

.footer-list a {
    transition: color 0.3s ease;
}

.footer-list a:hover,
.footer-list a:focus {
    color: var(--blue);
}

@media screen and (min-width: 1440px) {
    .footer {
        padding: 32px 0;
    }

    .footer-flex {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px 32px;
    }

    .footer-title a,
    .footer-title p {
        text-align: start;
    }

    .footer-nav ul {
        justify-content: flex-end;
    }

    .footer-contact {
        text-align: end;
        padding-top: 0;
        min-width: 200px;
    }

    .footer-contact-label {
        text-align: end;
    }

    .footer-flex2 {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer-list {
        gap: 22px;
        flex-direction: row;
    }
}

/* Fullscreen menu */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    padding-top: 120px;
    padding-bottom: 100px;
    z-index: 8;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.93);
    transform: translateY(-100%);
    transition: transform 1s ease;
    border-radius: 0 0 32px 32px;
}

.menu-transform {
    transform: translateY(0);
}

.menu-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

/* Cookie popup */
.page-popup {
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 0;
    transition: transform 0.4s ease;
    backdrop-filter: blur(22px);
    background: var(--bg-body);
}

.popup-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #fff;
    text-align: center;
    margin-bottom: 34px;
}

.popup-text a {
    color: var(--link-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.popup-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.page-popup .page-hero-link {
    width: auto;
    min-width: 140px;
    flex: 0 1 auto;
}

.popup-btn {
    min-width: 120px;
}

@media screen and (min-width: 1440px) {
    .popup-text {
        font-size: 18px;
        margin: 0;
        text-align: start;
    }

    .popup-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 24px 32px;
    }

    .popup-wrap {
        flex-shrink: 0;
        margin-left: auto;
    }
}

.popup-click {
    transform: translateY(100%);
}

/* Scroll top */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 7;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        border-color 0.4s ease;
    color: #fff;
    background: rgba(15, 23, 42, 0.45);
}

#scrollTopBtn .menu-svg {
    display: block;
}

#scrollTopBtn:hover,
#scrollTopBtn:focus {
    border-color: var(--violet);
    color: var(--violet);
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Inner legal pages */
.legal-page {
    padding-top: 110px;
    padding-bottom: 80px;
}

.legal-page .content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page .legal-h1 {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 32px;
    line-height: 120%;
    color: #fff;
    margin: 0 0 8px;
    text-transform: none;
}

.legal-page h2.title {
    text-align: left;
    margin-top: 28px;
    margin-bottom: 16px;
    font-size: 22px;
    line-height: 130%;
}

.legal-page .meta {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.legal-page p,
.legal-page li {
    font-size: 16px;
    line-height: 160%;
    color: #fff;
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.legal-page a {
    color: var(--link-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page strong {
    color: #f1f5f9;
    font-weight: 600;
}

.legal-page code {
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.business-card {
    margin: 12px 0 8px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.45);
}

.business-card p {
    margin-bottom: 12px;
}

.business-card p:last-child {
    margin-bottom: 0;
}

.about-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
}

.about-cta-wrap .page-hero-link {
    margin: 0;
}

.footer-contact-legal {
    font-weight: 600;
    font-size: 15px;
}

.footer-contact-address {
    font-size: 14px;
    line-height: 150%;
    opacity: 0.95;
}
