/* keldaro.world — layout */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --kd-steel: #24476b;
    --kd-steel-dark: #183350;
    --kd-sky: #dce8f3;
    --kd-orange: #ee8a2f;
    --kd-orange-dark: #d6741b;
    --kd-text: #1c2835;
    --kd-muted: #5b6b7b;
    --kd-border: #d8e1ea;
    --kd-page: #f2f5f8;
    --kd-white: #ffffff;
    --kd-font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body {
    background: var(--kd-page);
    color: var(--kd-text);
    font-family: var(--kd-font);
    line-height: 1.55;
}

/* шапка */
.c-kd-header {
    padding: 16px 20px;
    text-align: center;
    background: var(--kd-white);
    border-top: 5px solid var(--kd-orange);
    border-bottom: 1px solid var(--kd-border);
}

.c-kd-header__brand {
    display: inline-block;
    font-size: 23px;
    font-weight: 700;
    text-decoration: none;
    color: var(--kd-steel);
}

.c-kd-header__brand:hover {
    color: var(--kd-orange);
}

/* заголовок */
.c-kd-title {
    max-width: 920px;
    margin: 0 auto;
    padding: 44px 20px 28px;
    text-align: center;
    font-size: clamp(25px, 4.1vw, 44px);
    font-weight: 700;
    line-height: 1.22;
    color: var(--kd-steel-dark);
}

.c-kd-title__em {
    color: var(--kd-orange-dark);
    font-style: italic;
}

/* відео */
#kd-stage {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 18px;
}

#kd-frame {
    position: relative;
    width: 100%;
    max-width: 924px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--kd-border), 0 16px 36px rgba(24, 51, 80, .18);
}

#kd-video {
    display: block;
    width: 100%;
    height: auto;
}

#kd-gate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px 10px 10px;
    cursor: pointer;
    background: var(--kd-white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
    transition: opacity .25s ease, visibility .25s ease, transform .2s ease;
}

#kd-gate:hover {
    transform: translate(-50%, -52%);
}

.c-kd-gate__disc {
    position: relative;
    flex: none;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--kd-steel);
}

.c-kd-gate__ring {
    position: absolute;
    inset: -5px;
    border: 2px dashed var(--kd-orange);
    border-radius: 50%;
    animation: kdSpin 8s linear infinite;
}

.c-kd-gate__ring--slow {
    inset: -10px;
    border-style: dotted;
    border-color: var(--kd-sky);
    animation-duration: 14s;
    animation-direction: reverse;
}

@keyframes kdSpin {
    to { transform: rotate(360deg); }
}

.c-kd-gate__arrow {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--kd-orange);
}

.c-kd-gate__caption {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.c-kd-gate__label {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--kd-steel-dark);
}

.c-kd-gate__hint {
    font-size: 12px;
    white-space: nowrap;
    color: var(--kd-muted);
}

.is-kd-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#kd-expand {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    border-radius: 12px;
    background: var(--kd-orange);
}

#kd-expand:hover {
    background: var(--kd-orange-dark);
}

#kd-expand svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--kd-white);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#kd-frame:fullscreen,
#kd-frame:-webkit-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

#kd-frame:fullscreen #kd-video,
#kd-frame:-webkit-full-screen #kd-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 540px) {
    #kd-gate {
        gap: 12px;
        padding: 8px 14px 8px 8px;
    }
    .c-kd-gate__disc {
        width: 44px;
        height: 44px;
    }
    .c-kd-gate__label {
        font-size: 14px;
    }
    .c-kd-gate__hint {
        display: none;
    }
}

/* форма */
.c-kd-order {
    padding: 42px 16px 0;
}

.c-kd-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 22px;
    overflow: hidden;
    background: var(--kd-white);
    border: 1px solid var(--kd-border);
    border-radius: 12px;
}

.c-kd-form__title {
    margin-bottom: 16px;
    padding: 14px 20px;
    text-align: center;
    font-size: 21px;
    color: var(--kd-white);
    background: var(--kd-steel);
}

.c-kd-form__photo {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.c-kd-form__photo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .c-kd-form__photo img { max-height: 230px; }
}

@media (max-width: 480px) {
    .c-kd-form__photo img { max-height: 190px; }
}

.c-kd-form__stock {
    margin: 12px 20px 18px;
    text-align: center;
}

.c-kd-form__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--kd-steel);
    background: var(--kd-sky);
    border-radius: 12px;
}

.c-kd-form__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kd-orange);
}

.c-kd-form__trap {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.c-kd-form__field {
    margin: 0 20px 14px;
}

.c-kd-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--kd-steel);
}

.c-kd-form__input {
    width: 100%;
    padding: 13px 14px;
    font-family: var(--kd-font);
    font-size: 16px;
    color: var(--kd-text);
    background: var(--kd-page);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.c-kd-form__input::placeholder {
    color: #97a5b3;
}

.c-kd-form__input:focus {
    background: var(--kd-white);
    border-color: var(--kd-orange);
}

.c-kd-form__submit {
    display: block;
    width: calc(100% - 40px);
    margin: 6px 20px 0;
    padding: 15px;
    cursor: pointer;
    font-family: var(--kd-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--kd-white);
    background: var(--kd-orange);
    border: 0;
    border-radius: 12px;
    transition: background .2s ease;
}

.c-kd-form__submit:hover {
    background: var(--kd-orange-dark);
}

.c-kd-form__note {
    margin: 14px 20px 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: var(--kd-muted);
}

/* підвал */
.c-kd-footer {
    margin-top: 48px;
    padding: 26px 20px 22px;
    text-align: center;
    color: #b7c6d6;
    background: var(--kd-steel-dark);
}

.c-kd-footer__inner {
    max-width: 880px;
    margin: 0 auto;
}

.c-kd-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-bottom: 14px;
}

.c-kd-footer__nav a {
    font-size: 13px;
    color: var(--kd-white);
    text-decoration: none;
}

.c-kd-footer__nav a:hover {
    color: var(--kd-orange);
}

.c-kd-footer__contacts {
    margin: 0 auto 12px;
    font-size: 13px;
    font-style: normal;
}

.c-kd-footer__contacts a {
    color: var(--kd-orange);
}

.c-kd-footer__note {
    font-size: 12px;
}

.c-kd-footer__legal {
    max-width: 760px;
    margin: 10px auto 0;
    font-size: 11px;
    line-height: 1.7;
    color: #8497ab;
}

.c-kd-form__tel {
    letter-spacing: .03em;
}
