/*
 * Product and service page: media, blocks and the enquiry form.
 * Same palette as the rest of the site: Montserrat, #09B1F6 accent, #373F41 text.
 */

.tk-product {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto 60px;
    font-family: Montserrat, sans-serif;
    color: #373F41;
}

/* ---------------------------------------------------------------- top part */

.tk-product__top {
    display: grid;
    grid-template-columns: minmax(320px, 40%) 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}

/*
 * Both columns are told they may be narrower than their contents.
 *
 * A grid item is min-width:auto by default, which resolves to the widest thing
 * inside it, and the strip of thumbnails is seventeen frames wide. Without this
 * the column claimed 1486 pixels on a phone and the whole page could be dragged
 * a screen and a half sideways, while the strip itself never scrolled.
 */
.tk-product__media,
.tk-product__info {
    min-width: 0;
}

.tk-product__main {
    background: #F3F5F8;
    border: 1px solid #DDDEDD;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    /*
     * The cap was here because the column beside the photo was almost empty:
     * price, availability and a button came to 108 pixels against a photo and a
     * sheet of thumbnails 580 tall, and a picture free to grow with the screen
     * made the hole beside it worse. The description now stands in that column,
     * so the photograph is allowed to be a photograph again.
     */
    max-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tk-product__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
}

/*
 * One row that scrolls, not a contact sheet.
 *
 * Nine products carry the photographs of the previous model, up to seventeen on
 * one, and wrapped into a grid they filled three rows and two hundred pixels
 * under the picture: the page opened with a wall of stamps before a word of
 * text. In a row they read as what they are, a strip to look through.
 */
.tk-product__thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 8px;
}

.tk-product__thumb {
    flex: 0 0 auto;
    width: 78px;
    height: 62px;
    padding: 0;
    border: 1px solid #DDDEDD;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.tk-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tk-product__thumb:hover,
.tk-product__thumb[aria-current="true"] {
    border-color: #09B1F6;
}

.tk-product__stage {
    position: relative;
}

.tk-product__nav,
.tk-product__strip-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
}

.tk-product__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #373F41;
    box-shadow: 0 1px 4px rgba(55, 63, 65, .18);
    font-size: 18px;
}

.tk-product__nav:hover {
    background: #09B1F6;
    color: #fff;
}

.tk-product__nav--prev {
    left: 10px;
}

.tk-product__nav--next {
    right: 10px;
}

.tk-product__thumbs-wrap {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    margin-top: 12px;
}

.tk-product__thumbs-wrap .tk-product__thumbs {
    margin-top: 0;
    min-width: 0;
}

.tk-product__strip-nav {
    display: none;
    width: 32px;
    height: 48px;
    border-radius: 4px;
    background: #F3F5F8;
    color: #373F41;
    border: 1px solid #DDDEDD;
    font-size: 16px;
}

.tk-product__thumbs-wrap--overflow {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
}

.tk-product__thumbs-wrap--overflow .tk-product__strip-nav {
    display: flex;
}

.tk-product__strip-nav:hover:not(:disabled) {
    background: #09B1F6;
    border-color: #09B1F6;
    color: #fff;
}

.tk-product__strip-nav:disabled {
    opacity: .35;
    cursor: default;
}

.tk-product__thumbs--dragging {
    cursor: grabbing;
}

.tk-product__title {
    font-size: 30px;
    line-height: 38px;
    font-weight: 500;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.tk-product__article {
    font-size: 15px;
    color: #7A8285;
    margin-bottom: 16px;
}

/*
 * The price, the availability and the button as one card.
 *
 * Loose in the column they read as three unrelated things adrift in white
 * space, which is exactly how the page looked with none of the commercial
 * fields filled: two lines and a button floating in a column 747 wide.
 */
.tk-product__buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 20px 24px;
    background: #F3F5F8;
    border: 1px solid #DDDEDD;
    border-radius: 6px;
    /*
     * Held to a width a price and a button need. Left to fill the column it
     * pushed the two of them to opposite ends of 747 pixels with nothing in
     * between, which is the same emptiness in a box.
     */
    max-width: 560px;
}

.tk-product__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tk-product__meta .tk-price {
    font-size: 26px;
}

/* On the card the badge floats over the image; here it sits inline. */
.tk-stock--static {
    position: static;
    font-size: 13px;
    padding: 7px 12px;
}

.tk-product__short {
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 26px;
}

.tk-product__short p {
    margin: 0 0 14px;
}

.tk-product__short p:last-child {
    margin-bottom: 0;
}

/* The description of the previous model brings headings and lists with it. */
.tk-product__short h2,
.tk-product__short h3 {
    font-size: 19px;
    line-height: 26px;
    margin: 22px 0 10px;
}

.tk-product__short img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ button */

.tk-product__cta {
    margin-top: 32px;
}

.tk-btn {
    display: inline-block;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 16px;
    /*
     * A label of one line is what these usually hold, but "Надіслати запит" and
     * its Russian twin do wrap on a narrow phone, and at 1 the two lines touched.
     */
    line-height: 1.25;
    padding: 16px 34px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, opacity .2s ease;
}

.tk-btn--primary {
    background: #09B1F6;
    color: #fff;
}

.tk-btn--primary:hover {
    background: #0BA9EA;
}

.tk-btn[disabled] {
    opacity: .6;
    cursor: default;
}

/* ------------------------------------------------------------------ blocks */

.tk-block {
    margin-top: 46px;
}

.tk-block__title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #09B1F6;
    display: inline-block;
}

.tk-specs {
    width: 100%;
    border-collapse: collapse;
}

.tk-specs th,
.tk-specs td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #E6E9ED;
    font-size: 16px;
}

.tk-specs th {
    width: 45%;
    font-weight: 500;
    color: #5A6367;
    background: #F8FAFC;
}

.tk-specs td {
    font-weight: 500;
}

.tk-advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 601px) and (max-width: 900px) {
    .tk-advantages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    .tk-advantages {
        grid-template-columns: repeat(3, 1fr);
    }

    .tk-advantages--n2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tk-advantages--n4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .tk-advantages--n5 {
        grid-template-columns: repeat(6, 1fr);
    }

    .tk-advantages--n5 > .tk-advantage {
        grid-column: span 2;
    }

    .tk-advantages--n5 > .tk-advantage:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .tk-advantages--n5 > .tk-advantage:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.tk-advantage {
    background: #F3F5F8;
    border-left: 3px solid #09B1F6;
    border-radius: 0 4px 4px 0;
    padding: 18px 20px;
}

.tk-advantage__title {
    font-weight: 500;
    font-size: 17px;
    margin-bottom: 6px;
}

.tk-advantage__text {
    font-size: 15px;
    line-height: 23px;
    color: #5A6367;
}

.tk-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.tk-videos video {
    width: 100%;
    border-radius: 6px;
    background: #000;
}

.tk-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tk-info-card {
    border: 1px solid #DDDEDD;
    border-radius: 6px;
    padding: 22px;
}

.tk-info-card__title {
    font-weight: 500;
    font-size: 19px;
    margin-bottom: 10px;
    color: #355B64;
}

.tk-info-card__text {
    font-size: 15px;
    line-height: 24px;
    color: #5A6367;
    text-align: left;
}

.tk-info-card__text p {
    text-indent: 0;
    text-align: left;
}

.tk-info-card__text ul {
    margin: 0;
    padding-left: 18px;
}

/* -------------------------------------------------------------------- form */

.tk-enquiry {
    margin-top: 56px;
    background: #F3F5F8;
    border-radius: 8px;
    padding: 32px;
}

.tk-enquiry__title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 22px;
}

.tk-enquiry__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.tk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tk-field--wide {
    margin-top: 18px;
}

.tk-field__label {
    font-size: 14px;
    font-weight: 500;
    color: #5A6367;
}

.tk-field__label em {
    font-style: normal;
    font-weight: 400;
    color: #9AA2A6;
}

.tk-field input,
.tk-field textarea {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid #CCD0D7;
    border-radius: 4px;
    background: #fff;
    color: #373F41;
    box-sizing: border-box;
    width: 100%;
}

.tk-field input:focus,
.tk-field textarea:focus {
    outline: none;
    border-color: #09B1F6;
}

.tk-field input.tk-invalid,
.tk-field textarea.tk-invalid,
.tk-field input[type="file"].tk-invalid {
    border-color: #D9534F;
}

.tk-field--file input[type="file"] {
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

.tk-file__hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    color: #9AA2A6;
    word-break: break-word;
}

.tk-enquiry__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.tk-enquiry__message {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
}

.tk-enquiry__message--ok {
    color: #1D7A45;
}

.tk-enquiry__message--error {
    color: #D9534F;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 900px) {
    .tk-product__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tk-product__title {
        font-size: 23px;
        line-height: 30px;
    }
}

@media (max-width: 600px) {
    .tk-product {
        width: 94%;
        margin-top: 52px;
    }

    .tk-block {
        margin-top: 34px;
    }

    .tk-block__title {
        font-size: 20px;
    }

    .tk-specs th,
    .tk-specs td {
        padding: 10px 12px;
        font-size: 15px;
    }

    .tk-enquiry {
        padding: 20px;
    }

    .tk-product__cta {
        display: block;
        text-align: center;
    }

    .tk-product__nav {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .tk-product__thumbs-wrap--overflow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tk-product__thumbs-wrap--overflow .tk-product__strip-nav {
        display: none;
    }
}

/* ------------------------------------------------ service specific blocks */

.tk-richtext {
    font-size: 16px;
    line-height: 27px;
}

.tk-richtext p {
    margin: 0 0 14px;
}

.tk-richtext ul,
.tk-richtext ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

/*
 * Five equal tiles on a desktop row. auto-fit jumped 5/4/3; a 3+2 flex
 * stopped the jump but made the cards huge (Olya 28.09). minmax(0, 1fr)
 * keeps a long caption from blowing the column.
 */
.tk-facilities {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.tk-facility {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-width: 0;
    border: 1px solid #DDDEDD;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.tk-facility img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.tk-facility figcaption {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #373F41;
}

.tk-stages {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.tk-stage {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #E6E9ED;
}

.tk-stage:last-child {
    border-bottom: 0;
}

.tk-stage__number {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    background: #09B1F6;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tk-stage__title {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 4px;
}

.tk-stage__text {
    font-size: 15px;
    line-height: 24px;
    color: #5A6367;
}

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

@media (max-width: 600px) {
    .tk-facilities {
        gap: 12px;
    }

    .tk-stage__number {
        flex-basis: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* A page with no photos at all: the text column takes the full width. */
.tk-product__top--text {
    grid-template-columns: 1fr;
}

/* Honeypot: out of sight for people, still present for bots. */
.tk-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/*
 * The header of the site is fixed, so a jump to the request form put its heading
 * underneath it: the visitor pressed "Надіслати запит" and landed on the fields
 * with the title of the block hidden. Reserving the height of the header plus a
 * little air makes the jump stop in the right place.
 */
.tk-enquiry {
    scroll-margin-top: 80px;
}

@media (max-width: 600px) {
    .tk-enquiry {
        scroll-margin-top: 66px;
    }
}
