/* tarmino.world — головна */

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

:root {
    --tm-navy: #1f2d4d;
    --tm-navy-2: #2f416b;
    --tm-sun: #f5b700;
    --tm-sun-dark: #d99e00;
    --tm-ink: #1b2233;
    --tm-grey: #5d6678;
    --tm-rule: #dde2ec;
    --tm-bg: #f4f6fa;
    --tm-white: #ffffff;
    --tm-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background: var(--tm-bg);
    color: var(--tm-ink);
    font-family: var(--tm-font);
    line-height: 1.55;
}

/* шапка */
.tm_header {
    padding: 16px 20px 14px;
    text-align: center;
    background: var(--tm-white);
    box-shadow: 0 1px 0 var(--tm-rule);
}

.tm_header_logo {
    display: inline-block;
    padding-bottom: 4px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--tm-navy);
    border-bottom: 3px solid var(--tm-sun);
}

.tm_header_logo:hover {
    color: var(--tm-navy-2);
}

/* заголовок */
.tm_title {
    max-width: 960px;
    margin: 0 auto;
    padding: 42px 20px 26px;
    text-align: center;
    font-size: clamp(25px, 4.1vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--tm-navy);
}

.tm_title_hl {
    padding: 0 4px;
    background: var(--tm-sun);
    color: var(--tm-navy);
}

/* відео */
.tm_video_area {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
    padding: 0 16px;
}

#tm_box {
    position: relative;
    width: 100%;
    max-width: 908px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(31, 45, 77, .22);
}

#tm_clip {
    display: block;
    width: 100%;
    height: auto;
}

#tm_gate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 14px;
    padding: 14px 22px;
    cursor: pointer;
    color: var(--tm-white);
    background: var(--tm-navy);
    border-radius: 6px;
    border-left: 5px solid var(--tm-sun);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transition: opacity .25s ease, visibility .25s ease, background .2s ease;
}

#tm_gate:hover {
    background: var(--tm-navy-2);
}

.tm_gate_eq {
    grid-row: span 2;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
}

.tm_gate_eq_line {
    display: block;
    width: 4px;
    height: 24px;
    background: var(--tm-sun);
    animation: tmBounce 0.9s ease-in-out infinite;
}

.tm_gate_eq_line:nth-child(2) { animation-delay: .12s; }
.tm_gate_eq_line:nth-child(3) { animation-delay: .24s; }
.tm_gate_eq_line:nth-child(4) { animation-delay: .36s; }

@keyframes tmBounce {
    0%, 100% { transform: scaleY(.35); }
    50% { transform: scaleY(1); }
}

.tm_gate_label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.tm_gate_sub {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .7);
    white-space: nowrap;
}

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

#tm_expand {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: var(--tm-sun);
}

#tm_expand:hover {
    background: var(--tm-sun-dark);
}

#tm_expand svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--tm-navy);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

#tm_box:fullscreen #tm_clip,
#tm_box:-webkit-full-screen #tm_clip {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 520px) {
    #tm_gate {
        padding: 11px 16px;
        column-gap: 10px;
    }
    .tm_gate_label {
        font-size: 14px;
    }
}

/* форма */
.tm_order {
    padding: 38px 16px 0;
}

.tm_order_inner {
    max-width: 560px;
    margin: 0 auto;
}

.tm_form {
    padding: 22px 20px;
    background: var(--tm-white);
    border: 1px solid var(--tm-rule);
    border-radius: 6px;
}

.tm_form_head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--tm-navy);
    border-bottom: 1px dashed var(--tm-rule);
}

.tm_form_img {
    display: flex;
    justify-content: center;
}

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

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

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

.tm_form_stock {
    margin: 12px 0 16px;
    text-align: center;
}

.tm_form_tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: #fff6d6;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #7a5a00;
}

.tm_form_tag_dot {
    width: 7px;
    height: 7px;
    background: var(--tm-sun-dark);
}

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

.tm_form_field {
    margin-bottom: 12px;
}

.tm_form_label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tm-navy);
}

.tm_form_input {
    width: 100%;
    padding: 12px 13px;
    font-family: var(--tm-font);
    font-size: 16px;
    color: var(--tm-ink);
    background: var(--tm-bg);
    border: 1px solid var(--tm-rule);
    border-radius: 4px;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.tm_form_input::placeholder {
    color: #9aa2b3;
}

.tm_form_input:focus {
    background: var(--tm-white);
    border-color: var(--tm-navy-2);
}

.tm_form_btn {
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    cursor: pointer;
    font-family: var(--tm-font);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--tm-navy);
    background: var(--tm-sun);
    border: none;
    border-radius: 4px;
    transition: background .2s ease;
}

.tm_form_btn:hover {
    background: var(--tm-sun-dark);
}

.tm_form_text {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: var(--tm-grey);
}

/* підвал */
.tm_footer {
    margin-top: 44px;
    padding: 24px 20px;
    text-align: center;
    background: var(--tm-navy);
    color: #c3cadb;
}

.tm_footer_wrap {
    max-width: 880px;
    margin: 0 auto;
}

.tm_footer_menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
    margin-bottom: 12px;
}

.tm_footer_menu a {
    font-size: 13px;
    color: var(--tm-white);
    text-decoration: none;
}

.tm_footer_menu a:hover {
    color: var(--tm-sun);
}

.tm_footer_copy {
    font-size: 12px;
}

.tm_footer_info {
    max-width: 760px;
    margin: 10px auto 0;
    font-size: 11px;
    line-height: 1.7;
    color: #95a0b8;
}

.tm_form_tel {
    letter-spacing: .03em;
}
