/* === SECTIONS.CSS ===
 * assets/css/sections.css
 * НАЗНАЧЕНИЕ: Стили 14 секций лендинга Galabau Nurnberg
 * СВЯЗИ: main.css (CSS переменные)
 * РАЗМЕР: ~660 строк
 */

/* =====================================================================
   SHARED UTILITIES
   ===================================================================== */

.gb-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.gb-section-title {
    text-align: center;
    margin-bottom: 48px;

    & small {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-primary);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 12px;
        font-family: var(--font-body);
    }

    & h2 {
        font-family: var(--font-display);
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 12px;
        line-height: 1.25;
    }

    & p {
        font-size: 0.95rem;
        color: var(--text-muted);
        max-width: 560px;
        margin: 0 auto;
        line-height: 1.65;
    }
}

.gb-section-title--left {
    text-align: left;

    & p { margin: 0; }
}

/* Buttons */
.gb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform var(--transition-fast) var(--ease-out),
                box-shadow var(--transition-fast) var(--ease-out),
                background var(--transition-fast);

    &:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }
}

.gb-btn-primary {
    background: var(--color-primary);
    color: #fff;

    &:hover { background: var(--color-primary-hover); }
}

.gb-btn-outline {
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    border: 1px solid var(--color-primary);
    color: var(--color-primary);

    &:hover {
        background: var(--color-primary);
        color: #fff;
    }
}

.gb-btn-sm  { padding: 8px 18px; font-size: 0.85rem; }
.gb-btn-lg  { padding: 16px 36px; font-size: 1.05rem; }
.gb-btn-full { width: 100%; justify-content: center; }

/* =====================================================================
   1. HERO
   ===================================================================== */

.gb-hero {
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* === HERO SLIDER === */
.gb-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gb-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 6s cubic-bezier(0.0, 0, 0.2, 1);
}

.gb-hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gb-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        oklch(20% 0.05 155 / 0.35) 0%,
        oklch(15% 0.04 155 / 0.6) 100%
    );
}

/* Slider dots */
.gb-hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.gb-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: oklch(99% 0 0 / 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
    padding: 0;

    &.active {
        width: 28px;
        border-radius: 4px;
        background: oklch(99% 0 0 / 0.9);
    }
}

/* Slider arrows */
.gb-hero-prev,
.gb-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: oklch(99% 0 0 / 0.15);
    border: 1.5px solid oklch(99% 0 0 / 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: oklch(99% 0 0);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;

    &:hover {
        background: oklch(99% 0 0 / 0.25);
        border-color: oklch(99% 0 0 / 0.5);
    }

    & svg { width: 20px; height: 20px; }
}

.gb-hero-prev { left: 32px; }
.gb-hero-next { right: 32px; }

.gb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.45));
    z-index: 1;
}

.gb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 20px;
}

.gb-hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid oklch(99% 0 0 / 0.4);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: oklch(99% 0 0);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: oklch(99% 0 0 / 0.1);
    backdrop-filter: blur(8px);
}

.gb-hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: oklch(99% 0 0);
    line-height: 1.15;
    margin-bottom: 20px;
    text-wrap: balance;
    text-shadow: 0 2px 20px oklch(20% 0.05 155 / 0.4);

    & em {
        font-style: normal;
        color: oklch(85% 0.12 155);
    }
}

.gb-hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: oklch(92% 0.01 90);
    max-width: 560px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.gb-hero-sub2 {
    font-size: 0.9rem;
    color: oklch(85% 0.01 90);
    opacity: 0.9;
    margin-bottom: 36px;
}

.gb-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gb-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: oklch(99% 0 0 / 0.7);
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;

    &::after {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        border-right: 2px solid oklch(99% 0 0 / 0.6);
        border-bottom: 2px solid oklch(99% 0 0 / 0.6);
        transform: rotate(45deg);
        animation: gb-bounce 1.8s ease-in-out infinite;
    }
}

@keyframes gb-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(6px); }
}

/* =====================================================================
   2. TRUST STRIP
   ===================================================================== */

.gb-trust {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 28px 0;
}

.gb-trust-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.gb-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 32px;
    border-right: 1px solid var(--border-color);

    &:last-child { border-right: none; }

    & svg {
        width: 34px;
        height: 34px;
        color: var(--color-primary);
        flex-shrink: 0;
    }

    & strong {
        display: block;
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    & span {
        font-size: 0.8rem;
        color: var(--text-muted);
    }
}

/* =====================================================================
   3. PROBLEMS / SOLUTIONS
   ===================================================================== */

.gb-problems {
    padding: 80px 0;
}

.gb-problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gb-problems-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gb-problems-solution {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gb-problem-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);

    &.is-problem { border-left: 3px solid oklch(55% 0.2 25); }
    &.is-solution { border-left: 3px solid var(--color-primary); }

    & svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    &.is-problem svg { color: oklch(55% 0.2 25); }
    &.is-solution svg { color: var(--color-primary); }

    & p {
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
    }
}

/* =====================================================================
   4. SERVICES
   ===================================================================== */

.gb-services {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.gb-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gb-service-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base) var(--ease-out),
                box-shadow var(--transition-base) var(--ease-out);

    &:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px oklch(25% 0.02 90 / 0.15);

        & .gb-service-img img { transform: scale(1.06); }
    }
}

.gb-service-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: transform var(--transition-slow) var(--ease-out);

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform var(--transition-slow) var(--ease-out);
    }
}

.gb-service-body {
    padding: 22px;

    & h3 {
        font-family: var(--font-display);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    & p {
        font-size: 0.875rem;
        color: var(--text-muted);
        line-height: 1.6;
        margin: 0;
    }
}

/* =====================================================================
   5. BEFORE / AFTER
   ===================================================================== */

.gb-beforeafter {
    padding: 80px 0;
}

.gb-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gb-ba-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);

    & > h3 {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        padding: 14px 18px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        margin: 0;
    }
}

.gb-ba-slider {
    position: relative;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
}

.gb-ba-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        pointer-events: none;
    }
}

.gb-ba-before {
    background: oklch(90% 0.02 90);
}

.gb-ba-after {
    clip-path: inset(0 0 0 50%);
    background: oklch(92% 0.03 140);
    transition: clip-path 0.05s linear;
}

.gb-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #fff;
    z-index: 3;
    cursor: col-resize;
}

.gb-ba-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);

    &::before,
    &::after {
        content: '';
        position: absolute;
        border: 6px solid transparent;
    }
    &::before {
        border-right-color: var(--color-primary);
        right: 56%;
    }
    &::after {
        border-left-color: var(--color-primary);
        left: 56%;
    }
}

.gb-ba-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 10px;
    background: oklch(25% 0.04 155 / 0.7);
    color: #fff;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 4;
}

.gb-ba-label-before { left: 12px; }
.gb-ba-label-after  { right: 12px; }

.gb-ba-desc {
    padding: 12px 16px;
    font-size: 0.825rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    margin: 0;
}

/* =====================================================================
   6. PORTFOLIO
   ===================================================================== */

.gb-portfolio {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.gb-portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.gb-filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast) var(--ease-out);

    &:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    &.active {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: #fff;
    }
}

.gb-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gb-portfolio-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);

    &.is-hidden { display: none; }

    &:hover {
        & .gb-portfolio-img { transform: scale(1.08); }

        &::after { opacity: 1; }
    }

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: oklch(25% 0.06 155 / 0.5);
        opacity: 0;
        transition: opacity var(--transition-fast) var(--ease-out);
        z-index: 2;
    }
}

.gb-portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-base) var(--ease-out);

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform var(--transition-base) var(--ease-out);
    }
}

/* === SCROLL STRIP === */
.gb-scroll-strip {
    margin-top: 40px;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gb-scroll-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: gb-scroll-left 30s linear infinite;
}

.gb-scroll-track:hover { animation-play-state: paused; }

.gb-scroll-track img {
    height: 220px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 4px 16px oklch(25% 0.02 90 / 0.1);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gb-scroll-track img:hover { transform: scale(1.03); }

@keyframes gb-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .gb-scroll-track { animation: none; }
}

/* =====================================================================
   7. PROCESS
   ===================================================================== */

.gb-process {
    padding: 80px 0;
}

.gb-process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;

    &::before {
        content: '';
        position: absolute;
        top: 27px;
        left: calc(10% + 18px);
        right: calc(10% + 18px);
        height: 2px;
        background: var(--border-color);
        z-index: 0;
    }
}

.gb-process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;

    & h3 {
        font-family: var(--font-display);
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 8px;
    }

    & p {
        font-size: 0.8rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin: 0;
    }
}

.gb-step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--color-primary);
    color: oklch(99% 0 0);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 0 6px var(--bg-primary);
    flex-shrink: 0;
}

/* =====================================================================
   8. PRICING
   ===================================================================== */

.gb-pricing {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.gb-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.gb-pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
    transition: transform var(--transition-base) var(--ease-out),
                box-shadow var(--transition-base) var(--ease-out);
    position: relative;

    &.is-featured {
        border-color: var(--color-primary);
        transform: translateY(-8px);
        box-shadow: var(--shadow-green);

        &::before {
            content: attr(data-badge);
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--color-primary);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 4px 14px;
            border-radius: var(--radius-full);
            white-space: nowrap;
            font-family: var(--font-body);
        }
    }

    &:hover:not(.is-featured) {
        transform: translateY(-4px);
        box-shadow: var(--shadow-sm);
    }

    & h3 {
        font-family: var(--font-display);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 12px;
    }

    & p {
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.55;
        margin: 0;
    }
}

.gb-pricing-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin: 0 auto 16px;
}

.gb-pricing-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;

    & small {
        font-size: 0.875rem;
        font-weight: 400;
        color: var(--text-muted);
    }
}

.gb-pricing-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 8px 0 20px;
}

.gb-pricing-cta {
    margin-top: 24px;
}

/* =====================================================================
   9. ABOUT
   ===================================================================== */

.gb-about {
    padding: 80px 0;
}

.gb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.gb-about-img {
    position: relative;
}

.gb-about-photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.gb-about-content {
    & p { margin-bottom: 0; }
}

.gb-about-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.gb-about-stats {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.gb-stat {
    flex: 0 0 auto;
}

.gb-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}

.gb-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* =====================================================================
   10. TESTIMONIALS
   ===================================================================== */

.gb-testimonials {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.gb-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gb-testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;

    &::before {
        content: '\201C';
        position: absolute;
        top: 16px;
        right: 20px;
        font-family: var(--font-display);
        font-size: 4rem;
        line-height: 1;
        color: var(--color-primary);
        opacity: 0.12;
        pointer-events: none;
    }
}

.gb-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;

    & svg {
        width: 16px;
        height: 16px;
        color: var(--gold, #c9a84c);
        fill: var(--gold, #c9a84c);
    }
}

.gb-testimonial-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 18px;
    font-style: italic;
}

.gb-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);

    & .gb-testimonial-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-display);
        font-size: 0.8rem;
        font-weight: 600;
        color: #fff;
        flex-shrink: 0;
    }

    & strong {
        display: block;
        font-size: 0.85rem;
        color: var(--text-primary);
        font-weight: 600;
    }

    & span {
        font-size: 0.75rem;
        color: var(--text-muted);
    }
}

/* =====================================================================
   11. SEO TEXT
   ===================================================================== */

.gb-seo {
    padding: 60px 0;
    text-align: center;
}

.gb-seo-text {
    max-width: 720px;
    margin: 0 auto;

    & p {
        font-size: 0.875rem;
        color: var(--text-muted);
        line-height: 1.8;
        margin-bottom: 12px;

        &:last-child { margin-bottom: 0; }
    }
}

/* =====================================================================
   12. CTA BANNER
   ===================================================================== */

.gb-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    text-align: center;
}

.gb-cta-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: oklch(99% 0 0);
    margin-bottom: 14px;
    text-wrap: balance;
}

.gb-cta-sub {
    font-size: 1rem;
    color: oklch(100% 0 0 / 0.82);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* White CTA button on green background */
.gb-cta .gb-btn-primary {
    background: #fff;
    color: var(--color-primary);

    &:hover {
        background: oklch(96% 0.01 140);
        box-shadow: 0 8px 24px oklch(0% 0 0 / 0.2);
    }
}

/* =====================================================================
   13. CONTACT
   ===================================================================== */

.gb-contact {
    padding: 80px 0;
}

.gb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.gb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;

    & label {
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 500;
        letter-spacing: 0.03em;
    }

    & input,
    & textarea,
    & select {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 11px 14px;
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: var(--text-primary);
        transition: border-color var(--transition-fast) var(--ease-out);
        outline: none;
        width: 100%;
        box-sizing: border-box;

        &::placeholder {
            color: var(--text-muted);
            opacity: 0.5;
        }

        &:focus { border-color: var(--color-primary); }
    }

    & textarea {
        min-height: 110px;
        resize: vertical;
    }
}

.gb-form-privacy {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;

    & a {
        color: var(--color-primary);
        text-decoration: none;

        &:hover { text-decoration: underline; }
    }
}

.gb-form-result {
    font-size: 0.875rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: none;

    &.is-success {
        display: block;
        background: color-mix(in oklch, var(--color-primary), transparent 85%);
        color: var(--color-primary);
        border: 1px solid var(--color-primary);
    }

    &.is-error {
        display: block;
        background: color-mix(in oklch, var(--color-danger), transparent 85%);
        color: var(--color-danger);
        border: 1px solid var(--color-danger);
    }
}

.gb-contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 400px;

    & iframe {
        width: 100%;
        height: 100%;
        min-height: 400px;
        display: block;
        border: none;
        filter: grayscale(0.3) brightness(1.05) saturate(0.8);
    }
}

/* =====================================================================
   14. FOOTER
   ===================================================================== */

.gb-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 36px 0 28px;
}

.gb-footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.gb-footer-logo {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 8px;
}

.gb-footer-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;

    & em {
        font-style: normal;
        color: var(--color-primary);
    }
}

.gb-footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;

    & a {
        font-size: 0.85rem;
        color: var(--text-muted);
        text-decoration: none;
        transition: color var(--transition-fast) var(--ease-out);

        &:hover { color: var(--color-primary); }
    }
}

.gb-footer-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;

    & p {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin: 0;
    }
}

/* =====================================================================
   COOKIE BANNER
   ===================================================================== */

.gb-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform var(--transition-base) var(--ease-out);

    &.is-visible { transform: translateY(0); }
}

.gb-cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;

    & p {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin: 0;
        flex: 1 1 300px;
        line-height: 1.5;
    }
}

.gb-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.gb-cookie-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;

    &:hover { text-decoration: underline; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 960px) {
    .gb-services-grid,
    .gb-testimonials-grid { grid-template-columns: 1fr; }

    .gb-pricing-grid { grid-template-columns: 1fr; }
    .gb-pricing-card.is-featured { transform: none; }
}

@media (max-width: 900px) {
    .gb-problems-grid,
    .gb-about-grid,
    .gb-contact-grid { grid-template-columns: 1fr; }

    .gb-ba-grid { grid-template-columns: 1fr; }

    .gb-process-timeline {
        grid-template-columns: 1fr;
        gap: 24px;

        &::before { display: none; }
    }

    .gb-portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .gb-trust-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        justify-content: center;

        &:last-child { border-bottom: none; }
    }
}

@media (max-width: 480px) {
    .gb-portfolio-grid { grid-template-columns: 1fr; }

    .gb-hero-cta { flex-direction: column; align-items: stretch; }
    .gb-hero-cta .gb-btn { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .gb-hero-scroll::after { animation: none; }

    .gb-service-card,
    .gb-portfolio-item,
    .gb-btn { transition: none; }
}

/* === LEGAL PAGES (Impressum/Datenschutz) === */
.gb-header--simple {
    background: var(--bg-primary, #f3f0e8);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gb-header-simple-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-full, 999px);
    transition: background 0.2s ease;
}

.gb-back-link:hover {
    background: rgba(0,0,0,0.05);
    color: var(--color-primary);
}

.gb-legal-page {
    padding: 60px 0 80px;
    min-height: 60vh;
    background: var(--bg-primary, #f3f0e8);
}

.gb-legal-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.gb-legal-title {
    font-family: var(--font-display, 'Raleway', sans-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary, #1a2520);
    margin: 0 0 40px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--color-primary, #2d7a3a);
    line-height: 1.2;
}

.gb-legal-section {
    margin-bottom: 36px;
}

.gb-legal-section h2 {
    font-family: var(--font-display, 'Raleway', sans-serif);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.gb-legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 18px 0 8px;
}

.gb-legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary, #4a5550);
    margin: 0 0 12px;
    word-wrap: break-word;
}

.gb-legal-section a {
    color: var(--color-primary, #2d7a3a);
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}

.gb-legal-section a:hover {
    color: var(--color-primary-dark, #1f5828);
}

.gb-legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.gb-footer-simple {
    background: var(--bg-secondary, #e8e2d4);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted, #6b7570);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .gb-header-simple-inner {
        flex-direction: row;
        gap: 10px;
    }
    .gb-back-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .gb-back-link svg {
        flex-shrink: 0;
    }
    .gb-legal-page {
        padding: 30px 0 50px;
    }
    .gb-legal-title {
        margin-bottom: 28px;
    }
}

/* === TBD (data pending from client) === */
.gb-tbd {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255, 200, 0, 0.15);
    border: 1px dashed #c89800;
    border-radius: 4px;
    color: #8a6d00;
    font-style: italic;
    font-size: 0.9em;
}

.gb-legal-tbd-section {
    background: rgba(255, 200, 0, 0.05);
    border-left: 3px solid #c89800;
    padding-left: 16px;
    border-radius: 4px;
}

.gb-tbd-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7570);
    line-height: 1.5;
}

/* === HERO SLIDER (auto-rotating client project photos) === */
.gb-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gb-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.gb-hero-slide.gb-hero-slide.active {
    opacity: 1;
}

/* Затемнение для читаемости текста поверх любого слайда */
.gb-hero-overlay {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)) !important;
    z-index: 1;
}

.gb-hero-content {
    position: relative;
    z-index: 2;
}

/* Hero на главной - убираем фон у .gb-hero чтобы слайды было видно */
.gb-hero {
    background-image: none !important;
    background: var(--bg-primary, #f3f0e8);
}

/* Reduced motion - не переключаем слайды автоматически */
@media (prefers-reduced-motion: reduce) {
    .gb-hero-slide { transition: none; }
}


/* === HERO SLIDER DOTS === */
.gb-hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.gb-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gb-hero-dot:hover { background: rgba(255,255,255,0.7); }

.gb-hero-dot.active {
    background: #fff;
    transform: scale(1.4);
}

@media (max-width: 600px) {
    .gb-hero-dots { bottom: 50px; }
}

/* ========================================
   FIX: hero dots position (no overlap with CTA)
   ======================================== */
.gb-hero-dots {
    bottom: 24px !important;
}

/* На мобильных скрываем стрелку scroll, точки опускаем еще ниже */
@media (max-width: 600px) {
    .gb-hero-dots { bottom: 20px !important; }
    .gb-hero-scroll { display: none !important; }
}

/* На планшетах/десктопе точки и стрелка стоят рядом, но не пересекаются */
@media (min-width: 601px) {
    .gb-hero-scroll { bottom: 14px !important; }
    .gb-hero-dots { bottom: 60px !important; }
}

/* ========================================
   FINAL FIX: hero dots под scroll-arrow, не пересекают CTA
   ======================================== */
@media (min-width: 601px) and (max-width: 1023px) {
    .gb-hero-content { padding-bottom: 100px; }
    .gb-hero-dots { bottom: 50px !important; }
    .gb-hero-scroll { bottom: 12px !important; }
}

@media (min-width: 1024px) {
    .gb-hero-content { padding-bottom: 80px; }
    .gb-hero-dots { bottom: 50px !important; }
}

/* Mobile: контент сжат, точки между формой и контентом */
@media (max-width: 600px) {
    .gb-hero { min-height: 92vh; }
    .gb-hero-content { padding-bottom: 60px; }
    .gb-hero-dots { bottom: 24px !important; }
}

/* ========================================
   FINAL-2: убираем пересечение точек и стрелки
   на ВСЕХ брейкпойнтах — раз и навсегда
   ======================================== */
.gb-hero-scroll { display: none !important; }

@media (max-width: 600px) {
    .gb-hero-dots { bottom: 18px !important; }
}

@media (min-width: 601px) and (max-width: 1023px) {
    .gb-hero-dots { bottom: 24px !important; }
    .gb-hero-content { padding-bottom: 70px; }
}

@media (min-width: 1024px) {
    .gb-hero-dots { bottom: 32px !important; }
    .gb-hero-content { padding-bottom: 70px; }
}
