:root {
    --color-primary: #ff7675;
    --color-secondary: #ff9999;
    --color-accent: #fff5e6;
    --color-bg: #fff9f6;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-ink: #3a2424;
    --color-link: #b04444;
    --font-head: "Red Hat Display", sans-serif;
    --font-body: "Red Hat Text", sans-serif;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 28px;
    --space-xl: 56px;
}

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    padding-top: 76px;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-link);
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    color: var(--color-ink);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.cgy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cgy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.cgy-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cgy-l-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    align-items: center;
    min-height: 76px;
    padding: 8px 16px;
}

.cgy-header__logo {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    z-index: 2;
}

.cgy-header__logo img {
    width: 160px;
    height: auto;
    display: block;
}

.cgy-burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    position: relative;
    z-index: 101;
    padding: 8px;
}

.cgy-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-ink);
    border-radius: 2px;
}

.cgy-nav {
    grid-column: 1 / -1;
    grid-row: 1;
}

.cgy-l-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    align-items: center;
}

.cgy-l-side {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
}

.cgy-l-side:first-child {
    grid-column: 1;
    justify-content: flex-end;
}

.cgy-l-side:last-child {
    grid-column: 3;
    justify-content: flex-start;
}

.cgy-nav a {
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-ink);
    padding: 8px 2px;
}

.cgy-nav a.is-active {
    color: var(--color-link);
    box-shadow: inset 0 -3px 0 var(--color-primary);
}

.cgy-m-close {
    display: none;
}

.cgy-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
    display: none;
}

.cgy-nav-overlay.is-open {
    display: block;
}

.cgy-l-page {
    display: block;
}

.cgy-m-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 20px;
}

.cgy-m-hero::before,
.cgy-m-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    filter: blur(6px);
    opacity: 0.85;
}

.cgy-m-hero::before {
    width: 240px;
    height: 160px;
    left: -40px;
    top: 20px;
    background: var(--color-secondary);
    border-radius: 60% 40% 55% 45% / 48% 62% 38% 52%;
}

.cgy-m-hero::after {
    width: 180px;
    height: 140px;
    right: -30px;
    bottom: 10px;
    background: var(--color-primary);
    border-radius: 40% 60% 48% 52% / 55% 35% 65% 45%;
    opacity: 0.45;
}

.cgy-l-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-lg);
    align-items: start;
}

.cgy-m-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    background: var(--color-accent);
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.cgy-m-title,
.cgy-m-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0 0 12px;
}

.cgy-m-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cgy-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 2px solid var(--color-primary);
    border-radius: 22px 30px 18px 28px;
    background: transparent;
    color: var(--color-ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
}

.cgy-btn--primary {
    background: var(--color-primary);
    color: #3a1c1c;
}

.cgy-m-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: cgy-ripple 0.6s ease-out;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 1;
}

@keyframes cgy-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cgy-m-app {
    background: #fff;
    border-radius: 36px 48px 32px 52px;
    padding: 18px 18px 22px;
    box-shadow: 0 16px 0 rgba(255, 118, 117, 0.28);
}

.cgy-m-hero .cgy-app .cgy-container {
    max-width: none;
    padding: 0;
}

.cgy-app__badges {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cgy-app__head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cgy-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--color-accent);
}

.cgy-app__name {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.cgy-app__dev,
.cgy-app__note,
.cgy-app__checked {
    margin: 8px 0;
    color: var(--color-text-light);
}

.cgy-app__facts {
    margin: 12px 0;
    padding-left: 18px;
}

.cgy-app__preview {
    width: auto;
    max-width: 100%;
    max-height: 440px;
    aspect-ratio: 621 / 1104;
    object-fit: contain;
    background: var(--color-accent);
    display: block;
    margin: 14px auto;
    border-radius: 28px 40px 24px 36px;
}

.cgy-l-shell {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 64px;
    align-items: start;
}

.cgy-l-aside {
    position: sticky;
    top: 96px;
}

.cgy-m-req,
.cgy-m-note,
.cgy-m-steps,
.cgy-m-verdict,
.cgy-m-cta,
.cgy-m-card {
    background: #fff;
    border-radius: 32px 46px 28px 40px;
    padding: 22px;
    margin-bottom: 22px;
}

.cgy-l-maincol .cgy-container,
.cgy-l-aside .cgy-container {
    max-width: none;
    padding: 0;
}

.cgy-m-reqlist,
.cgy-m-steplist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cgy-m-reqlist li {
    margin: 0 0 10px;
    padding-left: 14px;
    border-left: 4px solid var(--color-secondary);
}

.cgy-m-steplist li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.cgy-m-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #3a1c1c;
    font-family: var(--font-head);
    font-weight: 900;
}

.cgy-m-textlink {
    font-family: var(--font-head);
    font-weight: 700;
}

.cgy-m-cta {
    background: var(--color-accent);
}

.cgy-m-page {
    padding: 36px 0 72px;
}

.cgy-l-prose {
    max-width: 760px;
}

.cgy-l-prose h1,
.cgy-m-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cgy-m-band {
    height: 92px;
    border-radius: 28px 40px 18px 32px;
    background: linear-gradient(140deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: flex-end;
    padding: 10px;
    margin: -8px -8px 14px;
}

.cgy-m-band--alt {
    background: linear-gradient(160deg, #ffb4b0, var(--color-accent));
}

.cgy-m-band--deep {
    background: linear-gradient(200deg, #ff8f8c, #ffe1d6);
}

.cgy-m-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 28px;
}

.cgy-m-gallery figure {
    margin: 0;
    width: 100%;
}

.cgy-m-gallery .cgy-app__preview {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
}

.cgy-m-form {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.cgy-m-form input,
.cgy-m-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--color-secondary);
    border-radius: 18px 24px 16px 22px;
    font: inherit;
    background: #fff;
    color: var(--color-ink);
}

.cgy-m-formerror {
    color: #9d1c1c;
    margin: 0;
}

.cgy-m-crumbs {
    font-size: 0.92rem;
}

.cgy-footer {
    background: #fff;
    border-top: 4px solid var(--color-primary);
    padding: 28px 0 36px;
}

.cgy-l-footgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.cgy-m-footcol ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.cgy-m-footcol a {
    display: inline-block;
    padding: 6px 0;
    text-decoration: none;
    font-weight: 700;
}

.cgy-m-footlabel {
    font-family: var(--font-head);
    font-weight: 900;
    margin: 0 0 8px;
}

.cgy-m-disclaimer {
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.cgy-m-rise {
    animation: cgy-scale-in 0.45s ease both;
}

@keyframes cgy-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 980px) {
    .cgy-nav a {
        font-size: 0.92rem;
    }
}

@media (max-width: 860px) {
    .cgy-l-hero,
    .cgy-l-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .cgy-l-aside {
        position: static;
    }
}

.cgy-m-cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 18px;
    background: #fff;
    border-radius: 28px 36px 22px 32px;
    box-shadow: 0 12px 0 rgba(255, 118, 117, 0.35);
}

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

.cgy-m-cookie p {
    flex: 1 1 220px;
    margin: 0;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }

    .cgy-header__logo img {
        width: 90px;
    }

    .cgy-l-bar {
        grid-template-columns: 1fr auto;
        min-height: 64px;
    }

    .cgy-header__logo {
        grid-column: 1;
        justify-self: start;
    }

    .cgy-burger {
        display: block;
    }

    .cgy-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        background: var(--color-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
        overflow-y: auto;
        padding: 16px 8px 32px;
        grid-column: auto;
        grid-row: auto;
    }

    .cgy-nav.is-open {
        transform: translateX(0);
    }

    .cgy-nav a {
        display: block;
        width: 100%;
        padding: 16px 20px;
    }

    .cgy-l-split,
    .cgy-l-side {
        display: block;
    }

    .cgy-m-close {
        display: inline-flex;
        margin: 8px 20px 12px;
        min-height: 40px;
        min-width: 40px;
        padding: 8px 16px;
        border: none;
        background: var(--color-accent);
        border-radius: 999px;
        font-family: var(--font-head);
        font-weight: 700;
        cursor: pointer;
    }

    .cgy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .cgy-grid,
    .cgy-m-gallery,
    .cgy-l-footgrid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cgy-m-steplist li {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .cgy-m-orb {
        width: 48px;
        height: 48px;
    }

    .cgy-app__head {
        align-items: flex-start;
    }

    .cgy-app__icon {
        width: 64px;
        height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cgy-m-rise,
    .cgy-m-ripple {
        animation: none;
    }
}

body.nav-open {
    overflow: hidden;
}
