/* SABDAY — inner service story pages */

html:has(body.is-sv-page) {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.is-sv-page {
    --sv-pad-x: clamp(24px, 5vw, 72px);
}

.is-sv-page main {
    padding-top: 0;
}

.is-sv-page .header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.is-sv-page .header::before {
    opacity: 0;
}

.is-sv-page .header.is-scrolled {
    background: rgba(0, 0, 0, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.is-sv-page .header.is-scrolled::before {
    opacity: 1;
}

.is-sv-page .header__link,
.is-sv-page .header__logo,
.is-sv-page .lang-switch__link,
.is-sv-page .nav-drop__trigger {
    color: rgba(255, 255, 255, 0.88);
}

.is-sv-page .header__link:hover,
.is-sv-page .lang-switch__link:hover,
.is-sv-page .nav-drop__trigger:hover {
    color: #fff;
}

.is-sv-page .footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sv {
    background: #000;
    color: #fff;
}

.sv-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
}

.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    min-width: 168px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sv-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.sv-btn--ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}

.sv-btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sv-hero__actions .sv-btn {
    margin-top: 0;
}

.sv-hero__actions--center {
    justify-content: center;
}

.sv-overview .sv-btn {
    margin-top: 28px;
}

/* Product screenshots */
.sv-shots {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(72px, 10vh, 96px) var(--sv-pad-x) clamp(32px, 5vh, 56px);
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
}

.sv-shots__inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.sv-shots__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    margin: 20px 0 28px;
    align-items: end;
}

.sv-shots__item {
    margin: 0;
    padding: 10px 10px 12px;
    background: linear-gradient(180deg, #1a1f2e 0%, #0d1018 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.sv-shots__item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(62vh, 560px);
    margin: 0 auto;
    border-radius: 14px;
    object-fit: contain;
}

.sv-shots__dots {
    display: none;
}

.sv-shots .sv-btn {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .sv-shots {
        align-items: stretch;
        min-height: 100svh;
        padding: 64px 0 24px;
    }

    .sv-shots__inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        min-height: 0;
        flex: 1;
    }

    .sv-shots__inner > .sv-kicker,
    .sv-shots__inner > .sv-btn {
        padding-inline: var(--sv-pad-x);
        flex-shrink: 0;
    }

    .sv-shots__grid {
        display: flex;
        grid-template-columns: none;
        max-width: none;
        gap: 12px;
        margin: 0;
        padding: 0 max(16px, calc(50% - 130px));
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: max(16px, calc(50% - 130px));
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 0 0 auto;
    }

    .sv-shots__grid::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .sv-shots__item {
        flex: 0 0 auto;
        width: auto;
        max-width: min(72vw, 260px);
        padding: 8px;
        border-radius: 18px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        overflow: hidden;
    }

    .sv-shots__item img {
        width: auto;
        max-width: min(72vw, 244px);
        height: auto;
        max-height: calc(100svh - 200px);
        border-radius: 12px;
        object-fit: contain;
    }

    .sv-shots__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding-inline: var(--sv-pad-x);
        flex-shrink: 0;
    }

    .sv-shots__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.28);
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .sv-shots__dot.is-active {
        background: #fff;
        transform: scale(1.15);
    }
}

/* Hero */
.sv-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    overflow: clip;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sv-hero__media,
.sv-feature__media,
.sv-cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sv-hero__media img,
.sv-feature__media img,
.sv-cta__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sv-hero__shade,
.sv-feature__shade,
.sv-cta__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.4) 100%);
}

.sv-hero__content {
    position: relative;
    z-index: 2;
    width: min(780px, 100%);
    padding: calc(var(--header, 72px) + 48px) var(--sv-pad-x) clamp(72px, 12vh, 140px);
}

.sv-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #fff;
    max-width: 14ch;
    text-wrap: balance;
}

.sv-hero__title span {
    display: inline;
    color: rgba(255, 255, 255, 0.92);
}

.sv-hero__text {
    margin-top: 18px;
    max-width: 40ch;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.sv-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    width: 28px;
    height: 44px;
    margin-left: -14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.sv-scroll span {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: #fff;
    animation: sv-scroll 1.6s ease-in-out infinite;
}

@keyframes sv-scroll {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* Overview */
.sv-overview {
    padding: clamp(72px, 12vw, 140px) var(--sv-pad-x);
    background: #000;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.sv-overview__inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.sv-overview__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
}

.sv-overview__text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 52ch;
    margin: 0 auto;
}

/* Specs */
.sv-specs {
    padding: clamp(48px, 8vw, 96px) var(--sv-pad-x);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #050505;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sv-specs__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.sv-specs__grid {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sv-specs__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(20px, 3vw, 28px);
    background: #000;
    min-height: 110px;
}

.sv-specs__num {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
}

.sv-specs__label {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

/* Feature panels */
.sv-feature {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    overflow: clip;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sv-feature--flip .sv-feature__content {
    margin-left: auto;
    text-align: right;
}

.sv-feature--flip .sv-feature__text {
    margin-left: auto;
}

.sv-feature__content {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    padding: clamp(64px, 10vh, 120px) var(--sv-pad-x);
}

.sv-feature__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
    max-width: 12ch;
}

.sv-feature--flip .sv-feature__title {
    margin-left: auto;
}

.sv-feature__text {
    margin-top: 16px;
    max-width: 36ch;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* Before / after */
.sv-shift {
    padding: clamp(64px, 10vw, 120px) var(--sv-pad-x);
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sv-shift__inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sv-shift__col {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sv-shift__col--after {
    border-color: rgba(255, 255, 255, 0.35);
}

.sv-shift__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sv-shift__col li {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
}

.sv-shift__col--after li {
    color: #fff;
    font-weight: 500;
}

.sv-shift__col:not(.sv-shift__col--after) li {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    opacity: 0.75;
}

/* CTA */
.sv-cta {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: clip;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sv-cta__content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    padding: clamp(64px, 10vh, 120px) var(--sv-pad-x);
}

.sv-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}

.sv-cta__text {
    margin: 18px auto 0;
    max-width: 42ch;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.sv-hero--short {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Contact form on dark story pages */
.sv-form {
    padding: clamp(56px, 9vw, 112px) var(--sv-pad-x) clamp(72px, 12vw, 140px);
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    min-height: 100dvh;
}

.sv-form__inner {
    max-width: 720px;
    margin: 0 auto;
}

.sv-form__form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sv-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sv-field__label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.sv-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: inherit;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sv-input:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
}

.sv-input.is-error {
    border-color: #f87171;
}

.sv-input option {
    color: #111;
}

.sv-radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sv-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sv-radio:hover,
.sv-radio:has(input:checked) {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.sv-radio input {
    margin-top: 3px;
    accent-color: #fff;
}

.sv-error {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #f87171;
}

.sv-alert {
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sv-alert--ok {
    border-color: rgba(45, 212, 168, 0.45);
    background: rgba(45, 212, 168, 0.08);
}

.sv-alert--err {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.08);
}

.sv-alert__title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.sv-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.sv-form .form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.sv-form .sv-btn {
    align-self: flex-start;
    cursor: pointer;
    appearance: none;
    background: transparent;
}

@media (max-width: 900px) {
    .sv-specs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-feature--flip .sv-feature__content,
    .sv-feature--flip .sv-feature__title,
    .sv-feature--flip .sv-feature__text {
        margin-left: 0;
        text-align: left;
    }

    .sv-shift__inner,
    .sv-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    html:has(body.is-sv-page) {
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
    }

    .is-sv-page .footer,
    .sv-hero,
    .sv-overview,
    .sv-shots,
    .sv-specs,
    .sv-feature,
    .sv-shift,
    .sv-cta,
    .sv-form {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    .sv-hero,
    .sv-overview,
    .sv-shots,
    .sv-feature,
    .sv-cta,
    .sv-form,
    .sv-hero--short {
        height: auto;
        min-height: 100svh;
    }
}

@media (max-width: 560px) {
    .sv-specs__grid {
        grid-template-columns: 1fr;
    }

    .sv-hero__title {
        max-width: none;
    }

    .sv-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.is-sv-page) {
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .sv-scroll span {
        animation: none;
    }
}
