/**
 * 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-block: var(--k-section-y);
    border-bottom: 1px solid var(--k-line);
    background: var(--k-surface-2);
}

.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-text-max);
}

.k-shero__lead {
    max-inline-size: 68ch;
    margin: 0;
    color: var(--k-text);
    font-size: 17px;
    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-surface);
    color: var(--k-text-strong);
    text-decoration: none;
    transition: background-color var(--k-fast) ease-out, border-color var(--k-fast) ease-out,
        transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

.k-stask:hover {
    color: var(--k-text-strong);
}

@media (hover: hover) and (pointer: fine) {
    .k-stask:hover {
        border-color: var(--k-text-strong);
    }
}

.k-stask:active {
    background: var(--k-surface-3);
}

/* A card: the press waits 70 ms, so a scroll that starts on it does not flinch it */
@media (prefers-reduced-motion: no-preference) {
    .k-stask:active,
    .k-sbroken:active,
    .k-sphoto__drop:active {
        transform: scale(0.98);
        transition-delay: 0s, 0s, 70ms;
    }
}

.k-stask__icon {
    color: var(--k-text-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: 17px;
}

.k-stask__text span {
    color: var(--k-text-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: var(--k-section-y);
}

.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-text-max);
}

.k-ssplit__lead {
    max-inline-size: 68ch;
    margin: 0;
    color: var(--k-text);
    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: 16px;
    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: var(--k-radius-button);
    background: var(--k-warning-bg);
    color: var(--k-warning);
    font-size: 15px;
    text-decoration: none;
    transition: background-color var(--k-fast) ease-out, box-shadow var(--k-fast) ease-out,
        transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

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

/* Under a mouse, and under a finger: a line inside the edge, in the text's colour */
.k-sbroken:active {
    box-shadow: inset 0 0 0 1.5px currentColor;
}

@media (hover: hover) and (pointer: fine) {
    .k-sbroken:hover {
        box-shadow: inset 0 0 0 1.5px currentColor;
    }
}

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

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

.k-sbroken__go {
    align-self: center;
    margin-left: auto;
}

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

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

.k-sform__intro {
    color: var(--k-text);
    font-size: 16px;
}

.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: var(--k-control);
    padding: 0 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}


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

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

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

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

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

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

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

/* The photo: a large target that takes a picture or picks one */
.k-sphoto__or {
    color: var(--k-text-max);
    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: var(--k-radius-button);
    background: var(--k-surface-2);
    color: var(--k-text-strong);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--k-fast) ease-out, border-color var(--k-fast) ease-out,
        transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .k-sphoto__drop:hover {
        border-color: var(--k-text-strong);
    }
}

.k-sphoto__drop:active {
    border-color: var(--k-text-strong);
    background: var(--k-surface-3);
}

.k-sphoto__drop .bi {
    color: var(--k-text-green-strong);
    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-text-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-focus-inner);
}

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

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

/* Collect at, then the quantity: stacked on phones, side by side from 576 px */
.k-sform__collect {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

@media (min-width: 576px) {
    .k-sform__collect {
        grid-template-columns: minmax(0, 1fr) 132px;
    }
}

.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-surface-2);
    color: var(--k-text-strong);
    font-size: 18px;
    transition: background-color var(--k-fast) ease-out;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .k-stepper__btn:not(:disabled):hover {
        background: var(--k-surface-3);
    }
}

/* Pressed is a deeper fill, not a scale: the buttons are joined to the field, and a scale would open a seam */
.k-stepper__btn:not(:disabled):active {
    background: var(--k-chip-line);
    color: var(--k-text-max);
}

/* At the end of the range: the button stays in its place, flat and muted */
.k-stepper__btn:disabled {
    background: var(--k-surface);
    color: var(--k-text-muted);
    cursor: not-allowed;
}

.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-text-max);
}

@media (min-width: 768px) {
    .k-scenters__head {
        margin-bottom: 28px;
    }
}

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

.k-scenters__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--k-control);
    color: var(--k-text-strong);
    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-text-green);
    font-family: var(--k-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

/* Phones: no text under 14 px (brief, answer 1; QA-014) */
@media (max-width: 767.98px) {
    .k-scenter__kind {
        font-size: 14px;
    }
}

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

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

.k-scenter__phone {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: var(--k-control);
    color: var(--k-text-strong);
    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: var(--k-control);
    margin-top: -22px;
    border-radius: 50%;
    background: var(--k-success-bg);
    color: var(--k-text-green-strong);
    font-size: 18px;
}


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

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

.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-surface);
}

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

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

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


/* ============================================
   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-text-strong);
        background: var(--k-fill-ink);
        color: var(--k-white);
    }

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

    .k-stask--main:active {
        background: var(--k-band);
    }

    .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-text);
        background: var(--k-surface-2);
    }

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

    .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: 15px;
    }

    .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: 15px;
        line-height: 1.5;
    }

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

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .k-stask--main:hover {
        background: var(--k-band);
    }
}


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

@media (min-width: 992px) {
    .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-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-band);
        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-text-strong);
    }

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