.hero-content {
    max-width: min(var(--looply-shell-width), 100%);
    width: 100%;
}

.section-cards-header h2,
.section-cards-header p,
.section-tabs-header h2,
.section-tabs-header p,
.section-team-header h2,
.section-team-header p,
.section-radial-header h2,
.section-radial-header p,
.section-plans-header h2,
.section-plans-header p,
.section-bento-header h2,
.section-bento-header p,
.section-testimonials-header h2,
.section-testimonials-header p,
.faq-left h2,
.faq-left p,
.banner-wrapper h2,
.banner-wrapper p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-headline {
    display: block;
    overflow: visible;
    max-width: min(var(--looply-shell-width), 100%);
}

.hero-subtitle {
    display: block;
    overflow: visible;
}

.section-cards-header p,
.section-tabs-header p,
.section-team-header p,
.section-plans-header p,
.section-bento-header p,
.section-testimonials-header p,
.faq-left p,
.banner-wrapper p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.section-cards-header h2,
.section-tabs-header h2,
.section-team-header h2,
.section-radial-header h2,
.section-plans-header h2,
.section-bento-header h2,
.section-testimonials-header h2,
.faq-left h2,
.banner-wrapper h2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.section-radial-header p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.hero-visual {
    width: min(100%, 440px);
}

.hero .btn-primary,
.banner-wrapper .btn-primary {
    background: #ffffff;
    color: var(--looply-primary);
}

.hero .btn-primary:hover,
.banner-wrapper .btn-primary:hover {
    background: var(--looply-primary-soft);
    color: var(--looply-primary-strong);
}

.logo-track {
    animation: none;
    will-change: transform;
}

.plan-card.featured {
    border: 2px solid var(--looply-primary);
}

.banner-wrapper h2 {
    max-width: 28ch;
}

.header {
    top: 16px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--looply-shell-width), calc(100% - 32px));
    min-height: 68px;
    padding: 10px 20px;
    border: 1px solid rgba(224, 17, 95, 0.08);
    border-radius: 24px;
    box-sizing: border-box;
    box-shadow: 0 18px 44px rgba(31, 31, 31, 0.08);
}

.header-logo img {
    width: 100px;
}

.footer-logo img {
    width: 192px;
}

.header-nav a {
    font-size: 14px;
}

.header .btn {
    height: var(--looply-button-height);
    min-height: var(--looply-button-height);
    padding: 0 var(--looply-button-padding-x);
    font-size: 15px;
}

.section-badge {
    border-color: rgba(224, 17, 95, 0.2);
    color: var(--looply-primary);
}

.header-logo,
.header-logo .material-symbols-outlined,
.menu-toggle,
.header-nav a:hover,
.logo-track .material-symbols-outlined {
    color: var(--looply-primary);
}

.btn-primary,
.btn-outline-dark:hover {
    background: var(--looply-primary);
}

.btn-primary:hover {
    background: var(--looply-primary-strong);
}

.btn-outline-dark {
    color: var(--looply-primary);
    border-color: var(--looply-primary);
}

.btn-white {
    color: var(--looply-primary);
}

.hero {
    background: radial-gradient(circle at center, #F2558D 0%, var(--looply-primary) 52%, var(--looply-primary-strong) 100%);
}

.page-placeholder {
    padding: 112px 24px 80px;
    background:
        radial-gradient(circle at top left, rgba(224, 17, 95, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
}

.page-placeholder__inner {
    width: min(960px, 100%);
    margin: 0 auto;
}

.page-placeholder__panel {
    border: 1px solid var(--looply-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(31, 31, 31, 0.08);
    padding: 32px;
}

.page-placeholder__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(224, 17, 95, 0.16);
    color: var(--looply-primary);
    background: rgba(253, 231, 239, 0.8);
    font-size: 13px;
    font-weight: 500;
}

.page-placeholder__title {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-placeholder__copy {
    max-width: 56ch;
    color: var(--looply-muted);
    line-height: 1.65;
}

.page-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

body.page-404 {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.page-not-found {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 156px 24px 72px;
    background:
        radial-gradient(circle at top left, rgba(224, 17, 95, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
}

.page-not-found__content {
    width: min(720px, 100%);
    text-align: center;
}

.page-not-found__code {
    margin: 0;
    color: var(--looply-primary);
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    font-weight: 600;
}

.page-not-found__title {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.page-not-found__copy {
    margin: 0 auto;
    max-width: 32ch;
    color: var(--looply-muted);
    line-height: 1.65;
}

.page-not-found__action {
    margin-top: 24px;
}

body.page-404 .footer {
    margin-top: auto;
}

@media (min-width: 481px) {
    .footer-content {
        grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr);
    }
}

@media (min-width: 1025px) {
    .bento-item:nth-child(3),
    .bento-item:nth-child(4) {
        min-height: 380px;
    }
}

@media (max-width: 560px) {
    .cookie-banner {
        right: 16px;
        bottom: 16px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        top: 10px;
        width: calc(100% - 20px);
        min-height: 60px;
        padding: 10px 14px;
        border-radius: 20px;
    }

    .hero-headline {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .hero-visual {
        width: min(100%, 320px);
        margin-top: 24px;
    }

    .btn {
        height: var(--looply-button-height-mobile);
        min-height: var(--looply-button-height-mobile);
        padding: 0 18px;
    }

    .banner-wrapper h2 {
        max-width: 100%;
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }

    .page-not-found {
        padding: 132px 16px 56px;
    }

    .page-not-found__title {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .page-not-found__action {
        width: 100%;
    }

    .page-placeholder {
        padding: 96px 16px 56px;
    }

    .page-placeholder__panel {
        padding: 24px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .footer {
        min-height: auto;
        padding: 112px 24px 72px;
    }

    .footer-legal {
        text-align: left;
    }
}
