/* =========================================================

   SCIOLAB TryOn

   Virtuální zkouška hodinek

   virtual-try.css

   ========================================================= */





/* =========================================================

   ZÁKLAD

   ========================================================= */



:root {

    --graphite: #181a1c;

    --graphite-soft: #24272a;

    --graphite-light: #34383c;



    --silver: #aeb4b9;

    --silver-light: #d8dcdf;



    --white: #ffffff;

    --ivory: #f4f2ed;

    --paper: #ebe8e2;



    --gold: #a78a55;



    --text: #202326;

    --muted: #74787c;



    --line: rgba(25, 28, 30, 0.14);



    --serif: "Cormorant Garamond", Georgia, serif;

    --sans: "Inter", Arial, sans-serif;



    --max-width: 1380px;

}





* {

    box-sizing: border-box;

}





html {

    scroll-behavior: smooth;

}





body {

    margin: 0;



    background:

        linear-gradient(

            180deg,

            #f7f6f3 0%,

            var(--ivory) 100%

        );



    color: var(--text);



    font-family: var(--sans);



    min-height: 100vh;

}





button,

input {

    font: inherit;

}





button,

a {

    -webkit-tap-highlight-color: transparent;

}





a {

    color: inherit;

    text-decoration: none;

}





/* =========================================================

   HEADER

   ========================================================= */



.try-header {

    width: 100%;



    min-height: 92px;



    padding: 18px 5%;



    background: rgba(24, 26, 28, 0.97);



    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 30px;



    border-bottom:

        1px solid rgba(255, 255, 255, 0.08);

}





.try-brand {

    display: flex;

    align-items: center;



    gap: 16px;



    color: var(--white);

}





.try-logo {

    width: 52px;

    height: 52px;



    border:

        1px solid rgba(255, 255, 255, 0.45);



    border-radius: 50%;



    display: flex;

    align-items: center;

    justify-content: center;



    font-family: var(--serif);



    font-size: 20px;

    font-weight: 600;



    letter-spacing: 2px;



    color: var(--silver-light);

}





.try-brand > div:last-child {

    display: flex;

    flex-direction: column;



    gap: 3px;

}





.try-brand strong {

    font-family: var(--serif);



    font-size: 20px;

    font-weight: 600;



    letter-spacing: 1.8px;

}





.try-brand span {

    color: var(--silver);



    font-size: 9px;



    letter-spacing: 2.2px;

}





.back-link {

    color: var(--silver-light);



    display: inline-flex;

    align-items: center;



    gap: 10px;



    font-size: 12px;



    letter-spacing: 1px;



    transition:

        color 0.25s ease,

        transform 0.25s ease;

}





.back-link:hover {

    color: var(--white);



    transform: translateX(-4px);

}





/* =========================================================

   HLAVNÍ OBSAH

   ========================================================= */



.try-main {

    width: min(

        calc(100% - 40px),

        var(--max-width)

    );



    margin: 0 auto;



    padding: 70px 0 90px;

}





/* =========================================================

   INTRO

   ========================================================= */



.try-intro {

    max-width: 780px;



    margin-bottom: 55px;

}





.eyebrow {

    margin: 0 0 18px;



    color: var(--gold);



    font-size: 11px;

    font-weight: 600;



    letter-spacing: 3px;

}





.eyebrow.dark {

    color: var(--muted);

}





.try-intro h1 {

    margin: 0;



    font-family: var(--serif);



    font-size: clamp(

        48px,

        6vw,

        82px

    );



    font-weight: 500;



    line-height: 0.95;



    letter-spacing: -2px;

}





.intro-text {

    max-width: 650px;



    margin: 28px 0 0;



    color: var(--muted);



    font-size: 15px;



    line-height: 1.8;

}





/* =========================================================

   PROGRESS

   ========================================================= */



.try-progress {

    display: flex;

    align-items: center;



    margin-bottom: 34px;



    padding: 22px 26px;



    background: var(--white);



    border:

        1px solid var(--line);

}





.progress-step {

    display: flex;

    align-items: center;



    gap: 12px;



    min-width: 145px;



    opacity: 0.38;



    transition: opacity 0.3s ease;

}





.progress-step.active {

    opacity: 1;

}





.progress-step > span {

    width: 34px;

    height: 34px;



    flex: 0 0 34px;



    border:

        1px solid var(--silver);



    border-radius: 50%;



    display: flex;

    align-items: center;

    justify-content: center;



    font-family: var(--serif);



    font-size: 17px;

}





.progress-step.active > span {

    background: var(--graphite);



    border-color: var(--graphite);



    color: var(--white);

}





.progress-step div {

    display: flex;

    flex-direction: column;



    gap: 3px;

}





.progress-step strong {

    font-family: var(--serif);



    font-size: 17px;



    font-weight: 600;

}





.progress-step small {

    color: var(--muted);



    font-size: 10px;

}





.progress-line {

    height: 1px;



    flex: 1;



    margin: 0 18px;



    background: var(--line);

}





/* =========================================================

   WORKSPACE

   ========================================================= */



.try-workspace {

    display: grid;



    grid-template-columns:

        minmax(0, 1.55fr)

        minmax(340px, 0.65fr);



    min-height: 680px;



    background: var(--white);



    border:

        1px solid var(--line);



    box-shadow:

        0 25px 70px rgba(20, 22, 24, 0.08);

}





/* =========================================================

   FOTOGRAFIE

   ========================================================= */



.workspace-photo {

    min-width: 0;



    padding: 28px;



    background: #deddd9;

}





.photo-stage {

    position: relative;



    width: 100%;

    height: 100%;



    min-height: 620px;



    overflow: hidden;



    background:

        linear-gradient(

            135deg,

            #e8e6e1,

            #d5d3cd

        );



    display: flex;

    align-items: center;

    justify-content: center;



    user-select: none;

}





.photo-placeholder {

    max-width: 420px;



    padding: 40px;



    text-align: center;



    color: var(--muted);

}





.photo-placeholder > i {

    display: block;



    margin: 25px 0 18px;



    color: var(--graphite);



    font-size: 28px;

}





.photo-placeholder h2 {

    margin: 0 0 12px;



    color: var(--graphite);



    font-family: var(--serif);



    font-size: 31px;



    font-weight: 600;

}





.photo-placeholder p {

    margin: 0;



    font-size: 13px;



    line-height: 1.7;

}





/* =========================================================

   UKÁZKOVÁ MINCE

   ========================================================= */



.coin-demo {

    width: 90px;

    height: 90px;



    margin: 0 auto;



    border-radius: 50%;



    border:

        2px solid rgba(80, 80, 80, 0.45);



    background:

        radial-gradient(

            circle at 35% 30%,

            #f0d9a0,

            #c4a55f 55%,

            #8f753d 100%

        );



    display: flex;

    align-items: center;

    justify-content: center;



    color: #5e4b27;



    font-family: var(--serif);



    font-size: 34px;

    font-weight: 700;



    box-shadow:

        inset 0 0 0 5px rgba(255, 255, 255, 0.12),

        0 12px 25px rgba(0, 0, 0, 0.12);

}





/* =========================================================

   NAHRANÁ FOTOGRAFIE

   ========================================================= */



.wrist-photo {

    position: absolute;



    inset: 0;



    width: 100%;

    height: 100%;



    object-fit: contain;



    display: none;



    pointer-events: none;

}





.wrist-photo.visible {

    display: block;

}





/* =========================================================

   KALIBRAČNÍ KRUH

   ========================================================= */



.calibration-circle {

    position: absolute;



    left: 50%;

    top: 50%;



    width: 120px;

    height: 120px;



    transform:

        translate(-50%, -50%);



    border:

        3px solid var(--gold);



    border-radius: 50%;



    background:

        rgba(167, 138, 85, 0.10);



    cursor: move;



    touch-action: none;



    box-shadow:

        0 0 0 1px rgba(255, 255, 255, 0.7),

        0 0 30px rgba(0, 0, 0, 0.12);



    z-index: 10;

}





.calibration-circle[hidden] {

    display: none;

}





.calibration-circle span {

    position: absolute;



    left: 50%;

    top: 50%;



    transform:

        translate(-50%, -50%);



    padding: 5px 8px;



    background: rgba(24, 26, 28, 0.82);



    color: var(--white);



    font-size: 10px;



    letter-spacing: 1px;



    white-space: nowrap;

}





.resize-handle {

    position: absolute;



    right: -10px;

    bottom: -10px;



    width: 22px;

    height: 22px;



    border-radius: 50%;



    background: var(--white);



    border:

        3px solid var(--gold);



    cursor: nwse-resize;



    box-shadow:

        0 4px 12px rgba(0, 0, 0, 0.18);

}





/* =========================================================

   HODINKY NA FOTOGRAFII

   ========================================================= */



.watch-overlay {

    position: absolute;



    left: 50%;

    top: 50%;



    transform:

        translate(-50%, -50%);



    max-width: none;



    cursor: move;



    touch-action: none;



    z-index: 12;



    filter:

        drop-shadow(

            0 12px 10px rgba(0, 0, 0, 0.25)

        );

}





.watch-overlay[hidden] {

    display: none;

}





/* =========================================================

   PRAVÝ PANEL

   ========================================================= */



.try-panel {

    position: relative;



    padding: 54px 44px;



    background: var(--graphite);



    color: var(--white);

}





.panel-step {

    display: none;

}





.panel-step.active {

    display: block;



    animation:

        panelFade 0.35s ease;

}





@keyframes panelFade {



    from {

        opacity: 0;

        transform: translateY(8px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }



}





.step-label {

    display: block;



    margin-bottom: 18px;



    color: var(--gold);



    font-size: 10px;

    font-weight: 600;



    letter-spacing: 2.5px;

}





.try-panel h2 {

    margin: 0 0 20px;



    font-family: var(--serif);



    font-size: 40px;



    font-weight: 500;



    line-height: 1;

}





.try-panel p {

    margin: 0 0 28px;



    color: var(--silver);



    font-size: 13px;



    line-height: 1.75;

}





/* =========================================================

   INFORMACE O MINCI

   ========================================================= */



.coin-info {

    display: flex;

    align-items: center;



    gap: 15px;



    margin: 28px 0;



    padding: 17px;



    border:

        1px solid rgba(255, 255, 255, 0.12);



    background:

        rgba(255, 255, 255, 0.035);

}





.coin-icon {

    width: 54px;

    height: 54px;



    flex: 0 0 54px;



    border-radius: 50%;



    background:

        radial-gradient(

            circle at 35% 30%,

            #efd89f,

            #c6a760 60%,

            #8e743b

        );



    color: #594821;



    display: flex;

    align-items: center;

    justify-content: center;



    font-family: var(--serif);



    font-size: 22px;

    font-weight: 700;

}





.coin-info > div:last-child {

    display: flex;

    flex-direction: column;



    gap: 4px;

}





.coin-info strong {

    font-family: var(--serif);



    font-size: 21px;

}





.coin-info span {

    color: var(--silver);



    font-size: 11px;

}





/* =========================================================

   TLAČÍTKA

   ========================================================= */



.upload-button,

.primary-button,

.secondary-button {

    min-height: 52px;



    padding: 0 20px;



    border: none;



    display: flex;

    align-items: center;

    justify-content: center;



    gap: 10px;



    cursor: pointer;



    font-size: 11px;

    font-weight: 600;



    letter-spacing: 0.7px;



    transition:

        background 0.25s ease,

        color 0.25s ease,

        border-color 0.25s ease,

        transform 0.25s ease;

}





.upload-button,

.primary-button {

    width: 100%;



    background: var(--white);



    color: var(--graphite);

}





.upload-button:hover,

.primary-button:hover {

    background: var(--silver-light);



    transform: translateY(-2px);

}





.secondary-button {

    background: transparent;



    color: var(--white);



    border:

        1px solid rgba(255, 255, 255, 0.25);

}





.secondary-button:hover {

    border-color: var(--white);

}





/* =========================================================

   SOUKROMÍ

   ========================================================= */



.privacy-note {

    display: flex;



    gap: 12px;



    margin-top: 25px;



    padding-top: 22px;



    border-top:

        1px solid rgba(255, 255, 255, 0.1);

}





.privacy-note i {

    margin-top: 3px;



    color: var(--gold);

}





.privacy-note p {

    margin: 0;



    font-size: 10px;



    line-height: 1.65;



    color: #94999d;

}





/* =========================================================

   KALIBRACE

   ========================================================= */



.calibration-status {

    display: flex;

    align-items: center;

    justify-content: space-between;



    margin: 30px 0;



    padding: 18px 0;



    border-top:

        1px solid rgba(255, 255, 255, 0.12);



    border-bottom:

        1px solid rgba(255, 255, 255, 0.12);

}





.calibration-status span {

    color: var(--silver);



    font-size: 11px;

}





.calibration-status strong {

    font-family: var(--serif);



    font-size: 24px;



    font-weight: 500;

}





/* =========================================================

   VÝBĚR HODINEK

   ========================================================= */



.watch-selector {

    display: grid;



    gap: 10px;



    margin-top: 30px;

}





.watch-option {

    width: 100%;



    padding: 18px;



    background:

        rgba(255, 255, 255, 0.035);



    border:

        1px solid rgba(255, 255, 255, 0.12);



    color: var(--white);



    text-align: left;



    cursor: pointer;



    display: flex;

    flex-direction: column;



    gap: 4px;



    transition:

        background 0.25s ease,

        border-color 0.25s ease,

        transform 0.25s ease;

}





.watch-option:hover {

    background:

        rgba(255, 255, 255, 0.08);



    border-color:

        rgba(255, 255, 255, 0.35);



    transform: translateX(4px);

}





.watch-option.selected {

    border-color: var(--gold);



    background:

        rgba(167, 138, 85, 0.12);

}





.watch-option > span {

    color: var(--gold);



    font-size: 9px;



    letter-spacing: 2px;

}





.watch-option strong {

    margin-top: 3px;



    font-family: var(--serif);



    font-size: 20px;



    font-weight: 500;

}





.watch-option small {

    color: var(--silver);



    font-size: 10px;

}





/* =========================================================

   VÝSLEDEK

   ========================================================= */



.result-watch {

    margin: 30px 0;



    padding: 24px 0;



    border-top:

        1px solid rgba(255, 255, 255, 0.12);



    border-bottom:

        1px solid rgba(255, 255, 255, 0.12);



    display: flex;

    flex-direction: column;



    gap: 6px;

}





.result-watch span {

    color: var(--gold);



    font-size: 10px;



    letter-spacing: 2px;

}





.result-watch strong {

    font-family: var(--serif);



    font-size: 24px;



    font-weight: 500;

}





.result-watch small {

    color: var(--silver);

}





.result-actions {

    display: grid;



    grid-template-columns: 1fr 1fr;



    gap: 10px;

}





/* =========================================================

   NÁVOD

   ========================================================= */



.try-help {

    padding: 90px 0 20px;

}





.help-grid {

    display: grid;



    grid-template-columns:

        repeat(3, 1fr);



    margin-top: 30px;



    border-top:

        1px solid var(--line);



    border-bottom:

        1px solid var(--line);

}





.help-grid > div {

    position: relative;



    min-height: 220px;



    padding: 35px;



    border-right:

        1px solid var(--line);

}





.help-grid > div:last-child {

    border-right: none;

}





.help-grid > div > span {

    position: absolute;



    right: 24px;

    top: 20px;



    color: #c3c3c0;



    font-family: var(--serif);



    font-size: 34px;

}





.help-grid i {

    margin-bottom: 30px;



    color: var(--graphite);



    font-size: 25px;

}





.help-grid strong {

    display: block;



    margin-bottom: 10px;



    font-family: var(--serif);



    font-size: 24px;



    font-weight: 600;

}





.help-grid p {

    max-width: 260px;



    margin: 0;



    color: var(--muted);



    font-size: 12px;



    line-height: 1.7;

}





.mini-coin {

    width: 32px;

    height: 32px;



    margin-bottom: 24px;



    border-radius: 50%;



    background: var(--gold);



    color: var(--white);



    display: flex;

    align-items: center;

    justify-content: center;



    font-family: var(--serif);



    font-weight: 700;

}





/* =========================================================

   FOOTER

   ========================================================= */



.try-footer {

    min-height: 100px;



    padding: 30px 5%;



    background: var(--graphite);



    color: var(--white);



    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 20px;

}





.try-footer strong {

    font-family: var(--serif);



    font-size: 18px;



    letter-spacing: 1.5px;

}





.try-footer span {

    color: var(--silver);



    font-size: 10px;



    letter-spacing: 1px;

}





/* =========================================================

   TABLET

   ========================================================= */



@media (max-width: 1100px) {



    .try-workspace {

        grid-template-columns:

            minmax(0, 1.2fr)

            minmax(320px, 0.8fr);

    }





    .try-panel {

        padding:

            45px 30px;

    }





    .progress-step small {

        display: none;

    }





    .progress-step {

        min-width: auto;

    }



}





/* =========================================================

   MOBIL

   ========================================================= */



@media (max-width: 800px) {



    .try-header {

        min-height: 76px;



        padding: 13px 20px;

    }





    .try-logo {

        width: 44px;

        height: 44px;



        flex: 0 0 44px;



        font-size: 17px;

    }





    .try-brand strong {

        font-size: 16px;

    }





    .try-brand span {

        display: none;

    }





    .back-link {

        font-size: 0;

    }





    .back-link i {

        font-size: 17px;

    }





    .try-main {

        width: min(

            calc(100% - 24px),

            var(--max-width)

        );



        padding:

            45px 0 60px;

    }





    .try-intro {

        margin-bottom: 35px;

    }





    .try-intro h1 {

        font-size: 48px;



        letter-spacing: -1px;

    }





    .intro-text {

        font-size: 13px;

    }





    /* progress */



    .try-progress {

        padding: 15px 12px;



        justify-content: space-between;

    }





    .progress-step {

        flex-direction: column;



        gap: 6px;



        min-width: 42px;



        text-align: center;

    }





    .progress-step > span {

        width: 31px;

        height: 31px;



        flex-basis: 31px;

    }





    .progress-step div {

        display: none;

    }





    .progress-line {

        margin: 0 5px;

    }





    /* workspace */



    .try-workspace {

        display: flex;



        flex-direction: column;



        min-height: 0;

    }





    .workspace-photo {

        padding: 12px;

    }





    .photo-stage {

        min-height: 470px;

    }





    .photo-placeholder {

        padding: 25px;

    }





    .photo-placeholder h2 {

        font-size: 27px;

    }





    .try-panel {

        padding: 38px 25px;

    }





    .try-panel h2 {

        font-size: 34px;

    }





    /* help */



    .try-help {

        padding-top: 65px;

    }





    .help-grid {

        grid-template-columns: 1fr;

    }





    .help-grid > div {

        min-height: auto;



        border-right: none;



        border-bottom:

            1px solid var(--line);

    }





    .help-grid > div:last-child {

        border-bottom: none;

    }





    .result-actions {

        grid-template-columns: 1fr;

    }





    .try-footer {

        flex-direction: column;



        align-items: flex-start;

    }



}





/* =========================================================

   MALÝ MOBIL

   ========================================================= */



@media (max-width: 480px) {



    .try-main {

        width: calc(100% - 16px);

    }





    .try-intro h1 {

        font-size: 41px;

    }





    .try-intro h1 br {

        display: none;

    }





    .photo-stage {

        min-height: 400px;

    }





    .coin-demo {

        width: 72px;

        height: 72px;



        font-size: 28px;

    }





    .try-panel {

        padding:

            32px 20px;

    }





    .calibration-circle {

        width: 100px;

        height: 100px;

    }





    .help-grid > div {

        padding:

            30px 24px;

    }

}


/* =========================================================

   DIAGNOSTIKA SKUTEČNÉ VELIKOSTI POUZDRA

   ========================================================= */



.watch-size-guide {

    position: absolute;



    left: 50%;

    top: 50%;



    transform: translate(-50%, -50%);



    border: 3px solid #d7a84b;



    border-radius: 50%;



    background: rgba(215, 168, 75, 0.08);



    pointer-events: none;



    z-index: 20;



    box-shadow:

        0 0 0 1px rgba(255, 255, 255, 0.8);

}



.watch-size-guide[hidden] {

    display: none;

}



.watch-size-guide span {

    position: absolute;



    left: 50%;

    top: -30px;



    transform: translateX(-50%);



    padding: 4px 8px;



    background: #181a1c;



    color: #ffffff;



    font-size: 10px;



    font-family: "Inter", Arial, sans-serif;



    letter-spacing: 1px;



    white-space: nowrap;

}


/* =========================================================
   OVLÁDÁNÍ OTOČENÍ A NÁKLONU HODINEK
   ========================================================= */

.watch-pose-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0 18px;
}

.pose-control-group {
    min-width: 0;
}

.pose-control-group > span {
    display: block;
    min-height: 28px;
    margin-bottom: 8px;
    color: var(--silver);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.4;
}

.pose-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.pose-button,
.pose-reset {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.035);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pose-button {
    min-height: 42px;
    font-size: 20px;
}

.pose-button:hover,
.pose-reset:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.55);
}

.pose-button:active,
.pose-reset:active {
    transform: scale(0.97);
}

.pose-reset {
    grid-column: 1 / -1;
    min-height: 44px;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.diagnostic-note {
    margin-top: -12px !important;
    font-size: 10px !important;
}

.watch-overlay {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform-origin: center center;
}

@media (max-width: 800px) {
    .watch-pose-controls {
        grid-template-columns: 1fr;
    }

    .pose-control-group > span {
        min-height: 0;
    }
}
