/**
 * Kultiva — Service & parts, with Training (boards "Service" and "Mobile —
 * Service"). Phones first: one column, the forms after their text. From 992 px
 * each section puts its text beside its form, and Parts turns Night.
 * The form fields themselves come from pages/request.css.
 */

/* ============================================
   HEAD: WHAT YOU CAN DO HERE
   ============================================ */

.k-shero {
    padding-top: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--k-line);
    background: var(--k-ground);
}

.k-shero__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.k-shero__intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
}

.k-shero__intro .k-eyebrow,
.k-shero h1 {
    margin: 0;
}

.k-shero h1 {
    color: var(--k-night);
}

.k-shero__lead {
    margin: 0;
    color: var(--k-body);
    font-size: 16.5px;
    line-height: 1.55;
}

.k-stasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.k-stask {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--k-radius-card);
    background: var(--k-white);
    color: var(--k-ink);
    text-decoration: none;
}

.k-stask:hover {
    border-color: var(--k-chip-line);
    color: var(--k-ink);
}

.k-stask__icon {
    color: var(--k-green);
    font-size: 24px;
    line-height: 1;
}

.k-stask__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.k-stask__text strong {
    font-size: 16.5px;
}

.k-stask__text span {
    color: var(--k-muted);
    font-size: 14px;
}

/* A word longer than its card wraps inside it rather than spilling out */
.k-stask__text strong,
.k-stask__text span {
    overflow-wrap: break-word;
}

.k-stask__go {
    font-size: 18px;
}


/* ============================================
   SECTIONS: TEXT, THEN ITS FORM
   ============================================ */

.k-ssection {
    padding-block: 36px 32px;
    scroll-margin-top: 72px;
}

.k-ssplit {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.k-ssplit__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.k-ssplit__side .k-eyebrow,
.k-ssplit__side h2 {
    margin: 0;
}

.k-ssplit__side h2 {
    color: var(--k-night);
}

.k-ssplit__lead {
    margin: 0;
    color: var(--k-body);
    font-size: 16px;
    line-height: 1.55;
}

/* Book a service: the steps and the breakdown note */
.k-ssteps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15.5px;
    line-height: 1.45;
}

.k-ssteps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.k-ssteps__n {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--k-success-bg);
    color: var(--k-success);
    font-size: 14px;
    font-weight: 800;
}

.k-sbroken {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--k-warning-bg);
    color: var(--k-warning);
    font-size: 15px;
    text-decoration: none;
}

.k-sbroken:hover {
    color: var(--k-warning);
}

.k-sbroken .bi {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1.2;
}

.k-sbroken strong {
    font-size: 15.5px;
}

/* The forms: plain on phones, a card where the section has a tint */
.k-sform__title {
    margin: 0;
    color: var(--k-night);
    font-size: 20px;
    line-height: 1.2;
}

.k-sform__intro,
.k-sform__note {
    margin: 0;
    color: var(--k-muted);
    font-size: 14.5px;
    line-height: 1.45;
}

.k-sform__intro {
    color: var(--k-body);
    font-size: 15.5px;
}

.k-sform__mono {
    font-family: var(--k-mono);
}

/* "What does it need?": pills that wrap */
.k-choices.k-spills {
    display: flex;
    flex-wrap: wrap;
}

.k-spills .k-choice {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}

.k-spills .btn-check:checked + .k-choice {
    font-weight: 700;
}


/* ============================================
   PARTS
   ============================================ */

.k-sparts {
    background: var(--k-ground);
}

.k-sparts .k-eyebrow--harvest {
    color: var(--k-green);
}

.k-spoints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--k-ink);
    font-size: 15.5px;
    line-height: 1.45;
}

.k-spoints li {
    display: flex;
    gap: 10px;
}

.k-spoints .bi {
    flex: 0 0 auto;
    color: var(--k-green);
    font-size: 18px;
    line-height: 1.25;
}

.k-sparts .k-sform {
    padding: 20px 16px;
    border-radius: 16px;
    background: var(--k-white);
}

/* The photo: a large target that takes a picture or picks one */
.k-sphoto__or {
    color: var(--k-night);
    font-size: 15px;
    font-weight: 700;
}

.k-sphoto__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 132px;
    padding: 16px;
    border: 2px dashed var(--k-field);
    border-radius: 12px;
    background: var(--k-ground);
    color: var(--k-ink);
    text-align: center;
    cursor: pointer;
}

.k-sphoto__drop:hover {
    border-color: var(--k-ink);
}

.k-sphoto__drop .bi {
    color: var(--k-green-dark);
    font-size: 28px;
    line-height: 1;
}

.k-sphoto__drop strong {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.k-sphoto__drop span {
    color: var(--k-muted);
    font-size: 14px;
}

.k-sphoto__input:focus-visible + .k-sphoto__drop {
    outline: 3px solid var(--k-harvest);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--k-night);
}

.k-sphoto__input[aria-invalid="true"] + .k-sphoto__drop {
    border-color: var(--k-danger);
}

.k-sphoto__clear {
    align-self: flex-start;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--k-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Collect at, then the quantity beside it */
.k-sform__collect {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: start;
}

.k-sform__collect > .k-rfield:only-child {
    grid-column: 1 / -1;
}

.k-stepper {
    display: flex;
    align-items: stretch;
}

.k-stepper .form-control {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.k-stepper .form-control::-webkit-inner-spin-button,
.k-stepper .form-control::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.k-stepper__btn {
    flex: 0 0 44px;
    border: 1px solid var(--k-field);
    background: var(--k-ground);
    color: var(--k-ink);
    font-size: 18px;
}

.k-stepper__btn:first-child {
    border-right: 0;
    border-radius: var(--k-radius-control) 0 0 var(--k-radius-control);
}

.k-stepper__btn:last-child {
    border-left: 0;
    border-radius: 0 var(--k-radius-control) var(--k-radius-control) 0;
}

.k-stepper__btn:not([hidden]) ~ .form-control,
.k-stepper__btn:not([hidden]) + .form-control {
    border-radius: 0;
}


/* ============================================
   WHERE WE SERVICE
   ============================================ */

.k-scenters__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px 32px;
    margin-bottom: 14px;
}

.k-scenters__head h2 {
    flex: 1 0 100%;
    margin: 0;
    color: var(--k-night);
}

.k-scenters__hint {
    margin: 0;
    color: var(--k-muted);
    font-size: 15px;
}

.k-scenters__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--k-ink);
    font-weight: 700;
}

.k-scenters__list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--k-line);
    list-style: none;
}

.k-scenter {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 56px 12px 0;
    border-bottom: 1px solid var(--k-line);
}

.k-scenter__kind {
    color: var(--k-green);
    font-family: var(--k-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

:lang(hy) .k-scenter__kind {
    letter-spacing: 0;
    text-transform: none;
}

.k-scenter__name {
    color: var(--k-night);
    font-size: 17px;
}

.k-scenter__where {
    color: var(--k-muted);
    font-size: 14px;
}

.k-scenter__phone {
    align-self: flex-start;
    color: var(--k-ink);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

/* Phones: a round call button, the number's twin */
.k-scenter__call {
    position: absolute;
    top: 50%;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: var(--k-success-bg);
    color: var(--k-green-dark);
    font-size: 18px;
}


/* ============================================
   TRAINING
   ============================================ */

.k-strain {
    background: var(--k-ground);
}

.k-sprogrammes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-sprogramme {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: var(--k-radius-card);
    background: var(--k-white);
}

.k-sprogramme h3 {
    margin: 0;
    color: var(--k-night);
    font-size: 17px;
}

.k-sprogramme p {
    margin: 0;
    color: var(--k-body);
    font-size: 15px;
    line-height: 1.45;
}

.k-sform--training {
    padding: 20px 16px;
    border: 1px solid var(--k-line);
    border-radius: 16px;
    background: var(--k-white);
}


/* ============================================
   768 PX AND UP
   ============================================ */

@media (min-width: 768px) {
    .k-shero__lead {
        font-size: 18px;
    }

    .k-stasks {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .k-stask {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 22px;
        border-color: var(--k-line);
    }

    .k-stask--main {
        border-color: var(--k-ink);
        background: var(--k-ink);
        color: var(--k-white);
    }

    .k-stask--main:hover {
        color: var(--k-white);
    }

    .k-stask--main .k-stask__icon {
        color: var(--k-harvest);
    }

    .k-stask--main .k-stask__text span {
        color: var(--k-on-night-2);
    }

    .k-stask__icon {
        font-size: 28px;
    }

    .k-stask__text {
        gap: 6px;
    }

    .k-stask__text strong {
        font-size: 20px;
        font-weight: 800;
        font-stretch: 90%;
    }

    .k-stask__go {
        display: none;
    }

    .k-ssplit__lead {
        font-size: 17px;
        line-height: 1.6;
    }

    .k-sbroken {
        color: var(--k-body);
        background: var(--k-ground);
    }

    .k-sbroken:hover {
        color: var(--k-body);
    }

    .k-sbroken .bi {
        color: var(--k-warning);
    }

    .k-scenters__head h2 {
        flex: 0 1 auto;
    }

    .k-scenters__hint {
        display: none;
    }

    .k-scenters__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
        gap: 14px;
        border-top: 0;
    }

    .k-scenter {
        gap: 8px;
        padding: 20px;
        border: 1px solid var(--k-line);
        border-radius: var(--k-radius-card);
    }

    .k-scenter__name {
        font-size: 20px;
        font-stretch: 90%;
    }

    .k-scenter__where {
        font-size: 14.5px;
    }

    .k-scenter__call {
        display: none;
    }

    .k-sprogrammes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
        gap: 12px;
    }

    .k-sprogramme {
        gap: 8px;
        padding: 20px;
    }

    .k-sprogramme h3 {
        font-size: 18px;
        font-stretch: 90%;
    }

    .k-sprogramme p {
        font-size: 14.5px;
        line-height: 1.5;
    }

    .k-sform--training,
    .k-sparts .k-sform {
        padding: 28px;
        border-radius: var(--k-radius-panel);
    }
}


/* ============================================
   992 PX AND UP: TEXT BESIDE ITS FORM
   ============================================ */

@media (min-width: 992px) {
    .k-shero {
        padding-top: clamp(40px, 5vw, 72px);
        padding-bottom: clamp(40px, 5vw, 72px);
    }

    .k-shero__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 40px;
    }

    .k-shero__intro {
        flex: 1 1 520px;
        gap: 20px;
    }

    /* The cards sit beside the intro only when each is wide enough for its
       longest word (about 200 px in English, 240 px in Armenian, whose
       "օպերատորներին" is one word); otherwise they go below it, full width */
    .k-stasks {
        flex: 1 1 600px;
    }

    :lang(hy) .k-stasks {
        flex-basis: 720px;
    }

    .k-ssection {
        padding-block: var(--k-section-y);
    }

    .k-ssplit {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
        gap: 40px 64px;
    }

    .k-ssplit--training {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .k-ssplit__side {
        gap: 18px;
    }

    .k-ssteps {
        gap: 14px;
        margin-top: 8px;
    }

    .k-ssteps__n {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .k-sbook .k-sform {
        padding: 28px;
        border: 1px solid var(--k-line);
        border-radius: var(--k-radius-panel);
        box-shadow: 0 16px 40px rgba(15, 26, 46, 0.07);
    }

    /* Parts on Night */
    .k-sparts {
        background: var(--k-night);
        color: var(--k-on-night);
    }

    .k-sparts .k-eyebrow--harvest {
        color: var(--k-harvest);
    }

    .k-sparts .k-ssplit__side h2 {
        color: var(--k-on-night);
    }

    .k-sparts .k-ssplit__lead {
        color: var(--k-on-night-2);
    }

    .k-sparts .k-spoints {
        color: var(--k-on-night-2);
    }

    .k-sparts .k-spoints .bi {
        color: var(--k-harvest);
    }

    .k-sparts .k-sform {
        color: var(--k-ink);
    }

    .k-sform__title {
        font-size: 24px;
        line-height: 1.15;
    }
}
