/* ============================================
   FROSTIA — Landing Page Styles
   ============================================ */

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    background: linear-gradient(165deg, #F0F9FF 0%, #E0F2FE 30%, #FFFFFF 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--frost-700);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: var(--navy-900);
}

.hero-title em {
    font-style: normal;
    color: var(--frost-600);
    position: relative;
}

.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--frost-200);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.6;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 480px;
}

/* --- Variant Picker --- */
.variant-picker {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.variant-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.variant-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy-700, #334155);
    min-width: 58px;
}

.size-options {
    display: flex;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.45rem 1rem;
    border: 2px solid var(--frost-200);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy-700, #334155);
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: var(--frost-400);
}

.size-btn.active {
    border-color: var(--frost-500);
    background: var(--frost-50);
    color: var(--frost-700);
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 0.45rem;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--swatch);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    position: relative;
}

.color-btn:hover {
    transform: scale(1.15);
}

.color-btn::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 30, 60, 0.88);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
}

.color-btn:hover::after {
    opacity: 1;
}

.color-btn.active {
    border-color: var(--navy-900);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy-900);
}

/* Quantity picker */
.qty-picker {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--frost-200);
    border-radius: 999px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--frost-600);
    transition: background 0.15s;
    padding: 0;
}

.qty-btn:hover {
    background: var(--frost-50);
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-900);
}

.price-current {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-900);
}

@media (max-width: 768px) {
    .variant-picker {
        align-items: center;
    }

    .variant-group {
        flex-direction: column;
        gap: 0.4rem;
    }

    .color-btn {
        width: 34px;
        height: 34px;
    }
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-avatars {
    display: flex;
}

.hero-avatars span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-left: -8px;
}

.hero-avatars span:first-child { margin-left: 0; }
.hero-avatars span:nth-child(1) { background: var(--frost-500); }
.hero-avatars span:nth-child(2) { background: var(--frost-600); }
.hero-avatars span:nth-child(3) { background: var(--frost-700); }
.hero-avatars span:nth-child(4) { background: var(--frost-800); }

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-image-wrapper img {
    width: 85%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.25s ease;
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-color-label {
    position: absolute;
    bottom: -1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-700, #334155);
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 2;
}

.hero-image-placeholder {
    width: 85%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--frost-100), var(--frost-200));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--frost-600);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.hero-float-badge {
    position: absolute;
    z-index: 2;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-float-badge.badge-temp {
    top: 15%;
    right: -5%;
    color: var(--frost-700);
}

.hero-float-badge.badge-reviews {
    bottom: 15%;
    left: -5%;
    color: var(--navy-900);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-social-proof {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 220px;
        margin: 0 auto;
        aspect-ratio: 1;
    }

    .hero-float-badge {
        display: none;
    }
}

/* --- Urgency badge --- */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --- Trust Bar --- */
.trust-bar {
    padding: 1.5rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.5rem;
}

.trust-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--frost-50);
    color: var(--frost-600);
    font-size: 1.1rem;
}

.trust-item-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.3;
}

.trust-item-text small {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
}

/* --- Problem --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.problem-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.problem-card-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- Solution (tech gallery: 1 top + 2 bottom) --- */

/* --- Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.benefit-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.benefit-card:hover {
    border-color: var(--frost-200);
    box-shadow: var(--shadow-frost);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.benefit-icon-1 { background: #E0F2FE; color: #0369A1; }
.benefit-icon-2 { background: #ECFDF5; color: #059669; }
.benefit-icon-3 { background: #EEF2FF; color: #4F46E5; }
.benefit-icon-4 { background: #FEF3C7; color: #D97706; }
.benefit-icon-5 { background: #FCE7F3; color: #DB2777; }
.benefit-icon-6 { background: #F0FDF4; color: #16A34A; }

.benefit-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- How It Works --- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.how-it-works-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--frost-200), var(--frost-400), var(--frost-200));
}

.hiw-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hiw-step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--frost-500), var(--frost-600));
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.hiw-step h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.hiw-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
        gap: 2.5rem;
    }

    .how-it-works-grid::before {
        display: none;
    }
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.feature-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--frost-200);
    box-shadow: var(--shadow-md);
}

.feature-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--frost-50);
    color: var(--frost-600);
    font-size: 1.2rem;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.35rem;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.55;
}

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

/* --- Social Proof / Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.testimonial-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #FFFFFF;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy-900);
}

.testimonial-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.testimonial-stars {
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Comparison --- */
.comparison-table {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row-header {
    background: var(--navy-900);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
}

.comparison-cell {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-cell:first-child {
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    color: var(--navy-900);
    background: var(--bg-alt);
}

.comparison-row-header .comparison-cell:first-child {
    background: var(--navy-800);
    color: #94A3B8;
}

.comparison-row-header .comparison-cell:nth-child(2) {
    background: var(--frost-600);
}

.comparison-check {
    color: var(--success);
    font-size: 1.1rem;
}

.comparison-cross {
    color: #EF4444;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .comparison-cell {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* --- FAQ --- */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--frost-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-900);
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--frost-600);
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--frost-50);
    color: var(--frost-600);
    font-size: 0.8rem;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Shipping Info --- */
.shipping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.shipping-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.shipping-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.shipping-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.4rem;
}

.shipping-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .shipping-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* --- Guarantee --- */
.guarantee-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--frost-50), #FFFFFF);
    border: 2px solid var(--frost-200);
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.guarantee-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.guarantee-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.guarantee-variant-info {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.guarantee-change-link {
    color: var(--frost-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Product Gallery (Bento Grid) --- */
.product-gallery {
    padding: 1.5rem 0 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 14px;
    background: var(--frost-100);
    position: relative;
    cursor: pointer;
}

.gallery-item-1 {
    grid-row: 1 / 3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

/* Overlay labels */
.gallery-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--frost-800, #1e3a5f);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-label {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 160px 160px;
    }

    .gallery-item-1 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery-label {
        opacity: 1;
        transform: translateY(0);
        font-size: 0.7rem;
        padding: 4px 10px;
        bottom: 8px;
        left: 8px;
    }
}

/* --- Lightbox --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

/* --- Tech gallery override (1 top + 2 bottom) --- */
#rozwiazanie .section-header {
    margin-bottom: 1rem;
}

.gallery-grid.tech-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.gallery-grid.tech-gallery .gallery-item-1 {
    grid-column: 1 / -1;
    grid-row: auto;
}

.gallery-grid.tech-gallery .gallery-item-1 .gallery-img {
    height: auto;
    object-fit: contain;
}

.gallery-grid.tech-gallery .gallery-item {
    background: var(--frost-50);
    height: 300px;
}

.gallery-grid.tech-gallery .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .gallery-grid.tech-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-grid.tech-gallery .gallery-item-1 {
        grid-column: auto;
    }
}

/* --- Sticky CTA --- */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform var(--transition);
    box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    gap: 1rem;
}

.sticky-cta-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.sticky-cta-price {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy-900);
}

.sticky-cta-old {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sticky-cta-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.sticky-cta .btn {
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .sticky-cta {
        display: none;
    }
}

/* --- Mid CTA Section --- */
.mid-cta {
    text-align: center;
    padding: 3rem 0;
}

.mid-cta .price {
    margin-bottom: 0.5rem;
}

.mid-cta .btn {
    margin-top: 1rem;
}

/* ── Language switcher ─────────────────────────────── */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lang-switcher {
    display: flex;
    gap: 0.25rem;
}
.lang-btn {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.lang-btn:hover,
.lang-btn--active {
    color: var(--color-primary);
    background: rgba(99, 179, 237, 0.12);
}
@media (max-width: 600px) {
    .lang-switcher { display: none; }

/* ── Gallery Page ────────────────────────────────────── */
.gallery-page {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.gallery-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--navy-900);
    margin: 0.25rem 0 0.75rem;
}

.gallery-page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.gp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gp-section {
    margin-top: 3rem;
}

.gp-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.gp-grid--colors {
    grid-template-columns: repeat(6, 1fr);
}

.gp-grid--details {
    grid-template-columns: repeat(3, 1fr);
}

.gp-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--frost-50, #f0f9ff);
    aspect-ratio: 1;
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gp-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.12);
}

.gp-item .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gp-item:hover .gallery-img {
    transform: scale(1.04);
}

.gp-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--frost-50, #f0f9ff) 0%, #e0f2fe 100%);
    border-radius: 20px;
}

.gp-cta-sub {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .gp-grid--colors {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .gp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gp-grid--colors {
        grid-template-columns: repeat(3, 1fr);
    }
    .gp-grid--details {
        grid-template-columns: repeat(2, 1fr);
    }
}
}
