@charset "UTF-8";

:root {
    --font-family: Manrope, "Open Sans", sans-serif;
	--gear:"⚙";
    --width-unit:250px;

    /* corporate colors  */
    --green-xxs:#49965C;
	--tt-green:#3F8558;
    --green-xs:#3F8558;
    --green-s:#357352;
    --green-m:#2A5E49;
    --green-l:#1F4A3F;
    --green-xl:#1F4A3F;
    --green-xxl:#1C4343;

	--tt-link:#05f;
    --tt-dark-green:#356957;
    --tt-border:solid 1px #D9D9D9;
    --tt-bg-gray:#f7f7f7;
    --tt-dark-gray:#34343A;
    --tt-lightblue:#dff0ff;
    /* corporate colors  */

    --shadow-a:1px 3px 5px #888;
    --shadow-b:0 7px 10px rgba(0, 0, 0, .1);
    --text-primary: #212121;
    --text-secondary: #96A097;
    --radius-big: 12px;
    --radius-small: 5px;
    --green: #538B76;
    --green-white: #EFF6F2;
    --primary: #191919
}

.bg-blue {
    background-color: var(--tt-lightblue);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope';
    background-repeat:no-repeat;
    text-decoration-skip-ink: none;
    text-underline-offset:.16em;
    text-overflow:ellipsys;
	hyphens: auto;
}

::placeholder {
  opacity:.5;
}


.disabled{
   opacity:0.3;
   pointer-events: none;
}

.hover-up:hover {
    box-shadow: var(--shadow-a);
}
/* ----------- A_Z ---------------- */

a {
    color: var(--black);
    text-decoration: none;
    display: inline-block;
    font:inherit;
}

body {
    font-display: swap;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    position: relative;
    -webkit-font-smoothing: antialised;
    overflow-x: hidden;
    background-color: var(--background-base);
    color: var(--text-primary);
    box-sizing: border-box;
}

body input:focus:required:invalid,
body textarea:focus:required:invalid {
    color: red;
}

body input:required:valid,
body textarea:required:valid {
    color: green;
}

button {
    margin: 2px;
    padding:.35em 1em;
    hyphens: none;
    cursor:pointer;
    border:none;
    border-radius:var(--radius-small);
    outline:var(--tt-border);
    background:white;
    color:var(--text-primary);
    transition: transform 0.1s ease;
    &:hover {
    	background:var(--text-primary);
    	color:white;
    }
    &:active {
        transform: translate(1px, -1px);/* Сдвигаем кнопку на 1px по диагонали */
    }
}


button.url,
a.button.url {
    font-weight: 500;
    font-size: 17px;
    min-width: 200px;
}


figure {
    position:relative;
    figcaption {position:absolute;}
}

h1,h2,h3,h4 {
    font-family:Open Sans,Manrope,sans-serif;
    letter-spacing:-.03em;
}

h1 {
    font-size: 40px;
    line-height: 1.1;
}

h2 {
    font-size: 30px;
    line-height: 1.2;
}

h3 {
    font-size: 22px;
    line-height: 1.2;
}

h4 {
    font-size: 16px;
	line-height: 1.2;
	hyphens: auto;
}

h1, h2, h3 {
    font-weight: 700;
    color:#445;
}

/* mobile */
@media only screen and (max-width: 600px)  {
    h1, h2 {
        font-size:28px;
        hyphens:auto;
    }
}

img {
    max-width: 100%;
    object-fit:cover;
}

iframe {
    width: 100%;
    border:none;
}

label {position:relative; left:-.1em; top:-.1em; }

input:not([type="submit"]),
textarea {
    width: 100%;
}

input:not([type="submit"]),
select,
textarea {
    font:inherit;
    border-radius: var(--radius-small);
    border:var(--tt-border);
    padding: .3em .7em;
}

textarea {
    height: auto;
}

input[type="checkbox"] {
    width: auto;
    height: auto;
}

select {
    cursor: pointer;
    display: block;
    background-color:#e9e9e9;
    font-weight: 500;
    &#geos{margin-bottom:30px;}
    option {
        font-family:var(--font-family);
    }
}

ul,
ol {
	list-style-type: none;
    list-style-position: inside;
}


video {
  display: block;
  margin: 0 auto;
  padding: 0;
  max-width: 99%;
  height: auto;
}

/*  --------------- SLIDER -------------- */

.slider {margin:0 20px}

.slick-arrow {
    width: 30px;
    height: 30px;
    &:before {
        color:#777;
	    font-size:30px;
	}
}

.slick-prev {
    left: -35px;
}

.slick-next {
    right: -35px;
}

.slick-slide {
    margin: 0 10px; /* Задайте желаемое расстояние (например, 10px) */
    img {width:100%;}
}
.slick-list {
    margin: 0 -10px; /* Компенсирует марджины крайних слайдов */
}

/*  --------------- TABLE --------------- */
table + table {
    margin-top: 30px;    /* Корректируем отступ */
}

table {
	width: 98%;
	margin:.7em 1%;
	font-size: 16px;
    border: var(--tt-border);
    border-radius: var(--radius-big);
	border-collapse: separate;
	border-spacing: 0;
	background-color:#d0e0ef;
    overflow: hidden;
    th,td {
        padding:.5em .7em;
        text-align:center;
    }
    th {
        font-weight: 500;
    }
    caption {
        text-align:left;
        font-weight: 600;
        font-size:1.05em;
        padding:.2em .7em;
    }
    tbody {
        td {background-color:white; }
        tr:nth-of-type(2n) td { background-color:var(--tt-bg-gray); }
    }
    &.border {
        tr {
            td, th {
                border:var(--tt-border);
                border-width:0 1px 1px 0;
                &:last-of-type {border-right:none;}
            }
            th { border-color:white; }
            &:last-of-type td, th {border-bottom:none; }
        }
    }
}

@media only screen and (max-width: 768px) {
    table {
        max-width:98%;
        td,th {
            font-size:14px;
            position:relative;
            min-width:0;
            padding:2px;
            hyphens:auto;
        }
    }
}


/* -------------  ELEMENTS ------------------- */

.container {
    max-width: 1400px;
    margin: auto;
    position: relative;
    padding:0 20px;
}

main {
    overflow: hidden;
    section {
        padding-bottom:10px;
        &:first-of-type {
            min-height: 200px;
        }
        &:last-child,
        &:only-child {
            padding-bottom:100px;
        }

        &:only-of-type{
            min-height:640px;
        }
    }
}

.hidden {
    display: none;
}

.over {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

.right {
    text-align: right;
}

/* ---------- LIVE IMG ----------- */

@keyframes qtilt {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(0, 1px) rotate(0.2deg);
  }
  50% {
    transform: translate(0, 0) rotate(0deg);
  }
  75% {
    transform: translate(1px, 0) rotate(0.2deg);
  }
      100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.live-img {
  animation: qtilt 10s infinite ease-in-out;
}


/* ----------------------  FLEX  -------------------- */
.wrap {flex-wrap:wrap;}
.gap30 { gap: 30px; }
.align-center { align-items: center !important;}
.justify-space { justify-content: space-between; }

.flex,
.flex-row {
    display: flex;
    align-items:flex-start;
    gap: 20px;
}

.flex-row {
    flex-flow:row nowrap;
}

.flex-column{
    display:flex;
    flex-flow:column nowrap;
    gap:30px;
}

[class^="flex-wrap"] {
    display:flex !important;
    flex-flow:row wrap;
    justify-content:space-evenly;
    align-items:flex-start;
}

[class^="grid"] {
    display: grid !important;
    justify-content: space-evenly !important;
    gap: 40px ;
}

.grid, .grid-wrap {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 17%));
    gap: 30px;
}

.grid-2, .grid-wrap2 {
    display: grid !important;
    justify-content:space-evenly !important;
    grid-template-columns: repeat(auto-fill, minmax(var(--width-unit), 48%));
    gap: 40px 2% ;
}

.grid-3 {
    display: grid !important;
    justify-content: space-evenly !important;
    grid-template-columns: repeat(auto-fill, minmax(var(--width-unit), 30%));
    gap: 40px;

}

.grid-4 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(var(--width-unit), 22.5%));
    gap: 30px;
}

@media only screen and (max-width: 930px) {
    .grid-2,
    .grid-wrap2,
    .grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(var(--width-unit), 98%));
        gap: 30px 0;
    }
}


/* ------ FLEX section --------- */

.flex-section {/* По умолчанию (до 500px) делаем одну колонку. */
	display: grid;/* Элементы автоматически займут по 100% ширины и встанут друг под друга. */
	grid-template-columns: 1fr;
	gap:10px;
	width:96%;
	max-width:1000px;
	h1,h2,h3{ font-size:24px;
        hyphens:auto;
        margin-bottom:10px;
        text-shadow: unset;
        color: #444;
    }
    >*{
		min-width:var(--width-unit);
	}
}

@media (min-width: 600px) {
	.flex-section  {
		grid-template-columns: 1.2fr 2fr;
		gap:30px;
        h1, h2, h3 {
            font-size:30px;
        }
	}
}

[class^="grid-"],
.flex-section {
    .section {
        display:flex;
        flex-flow:column wrap;
        gap:5px;
        min-width:var(--width-unit);
        flex:1 1 40%;
        overflow:hidden;

        h2 {
            text-align:center;
            &.caption {
                margin:0;
                text-align:left;
            }
        }

        img.detail {
            object-fit:contain;
            display:block;
            aspect-ratio:16/10;
        }
    }
}

/* ------ main UL FINE  --------- */
main ul.fine,
main [class^="grid-"] ul,
main .flex-section ul {
    color:var(--text-primary);
    line-height:1.5;
    text-align:left;
    li {
        list-style-type: disc;
        _padding-left: .8em;
        &::marker {
            color:var(--tt-link);
            font-size:.9em;
        }
    }

    a {color:var(--tt-link);}

    a:hover {
        text-decoration:underline;
        text-decoration-thickness: 1.4px;
    }
}


/* -------------------- DOTTED -------------------*/

.dotted {
    margin:0 1% 30px;
    zborder-radius:var(--radius-big);

    dl {
        display:flex;
        flex-flow:row nowrap;
        justify-content:space-between;
        background: url('/local/templates/termotronik_bitrix/css/images/point-7x3-1.gif') repeat-x 1px 80%;
        gap:20px;
    }
    dt,dd {
        display:inline-block;
        background-color:#fff;
        padding:2px 3px;
    }
}

.hint {
    font-size:smaller;
    font-weight:200;
    padding-left:.5em;
}


/* ------- N E W S -------- */
.news-item {
    position:relative;
    color:#f5f7f3;
    background: currentColor;
    border:outset 1px #eee;
    margin-bottom:7px;
    h4,p {
        margin: 0 10px;
		hyphens: auto;
    }
    img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }
    a {
        display: block;
        overflow:hidden;
        font-size:smaller;
        color: var(--text-primary);
        padding:0 0 1.6em;
    }
    .date {
        padding: 2px 7px 0;
        color: var(--text-secondary);
        position:absolute;
        bottom:0;
        left:10px;
        background-color:var(--text-primary);
        opacity:.9;
        border-radius:7px 7px 0 0;
    }
}


/* ------------- TABS ----------------- */

#tabs {
    --tab-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cpath d='M80,60C34,53.5,64.417,0,0,0v60H80z'/%3E%3C/svg%3E");
    padding: 40px 0 20px;

    ul.tabs {
        color: #aaa;
        display: flex;
        flex-flow: row wrap;
        overflow: hidden;       /* обрезает линии li::after, растянутые на ±9999px */
        list-style: none;
        justify-content: center;
        margin-bottom: 30px;
        padding-bottom:1px;
        position: relative;     /* containing block для абсолютных ::after */

        > li {
            font-size: 18px;
            height: 2.2em;
            text-align: center;
            position: relative;
            top: 1px;

            &::after {/* опорная линия — тянется от стенки до стенки ul */
                content: '';
                position: absolute;
                left: -9999px;
                right: -9999px;
                bottom: 0;
                height: 2px;
                background: #ccc;
                z-index: 0;
            }

            a {
                position: relative; /* чтобы span и флажки лежали над li::after */
                z-index: 1;
                height: 100%;
                display: flex;
                flex-flow: row nowrap;
                align-items: stretch;
                color: #bbb;
                font-weight: 500;
                letter-spacing: -.3px;
                opacity: .5;
                --shape-fill: #aaa;

                &::before,
                &::after {
                    content: '';
                    flex: none;
                    height: 100%;
                    aspect-ratio: 80 / 60;
                    z-index: 10;
                    background-color: var(--shape-fill);
                    -webkit-mask-image: var(--tab-shape);
                            mask-image: var(--tab-shape);
                    -webkit-mask-repeat: no-repeat;
                            mask-repeat: no-repeat;
                    -webkit-mask-size: 100% 100%;
                            mask-size: 100% 100%;
                }
                &::before {
                    transform: scaleX(-1);
                }
                &::after {
                    position: absolute;
                    left: 100%;
                }

                span {
                    box-sizing: border-box;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    color: #000;
                    background-color: #aaa;
                    white-space: nowrap;
                    padding-left: 3px;
                    width: 100%;
                    margin-left: -1px;
                }
            }

            &.ui-tabs-active {
                z-index: 30;
                color: var(--tt-green);

                /* линия активного таба — поверх линий соседей */
                &::after {
                    background: var(--tt-green);
                    z-index: 31;
                }

                a {
                    opacity: 1;
                    --shape-fill: var(--tt-green);

                    span, &::before, &::after {
                        -webkit-transition: none;
                        transition: none;
                    }
                }
                span {
                    color: #fff;
                    background-color: var(--tt-green);
                }
            }

            &:not(.ui-tabs-active):hover {
                z-index: 20;
                span { color: #fff; }
            }
        }
    }
}


@media screen and (max-width: 58em) {
	#tabs ul.tabs {
		display: block;
		padding-top: 1.5em;
        border-bottom:none;
        box-shadow: 0 8px 4px -4px #aaa;
        li {
            margin: -0.3em 0 0;
            -webkit-flex: none;
            flex: none;
            z-index: 1;
			&::after{
                display:none;
			}
            &.ui-tabs-active,
            &:not(.ui-tabs-active):hover  {
                z-index: 1;
            }
            a {
				&::before,
                &::after{
					display:none;
                }
                span {
                    display: flex;
                    align-items:center;
                    justify-content:center;
                    border-radius: 20px 20px 0 0 !important;
                }
            }
        }
	}
}


#tab_content {
    padding: 15px 0;
    font-size:16px;
    margin:0 auto;
    table caption {
        font-weight:500;
        text-align:left;
    }
    table.price th:last-of-type{
        white-space:nowrap;
    }
    .flex-section {align-items:flex-start;}

    .video{
        gap:40px;
        justify-content: left;
    }
}


/* -------------- BIZCARD  --------------- */

.bizcard {
    font-size:16px;
    font-weight: 400;
    _min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-big);
    padding: 15px 0;
    display:flex;
    flex-flow:row nowrap;
    gap: 1.5em;

    > div {
        display:flex;
        flex-flow:column wrap;
        gap:3px;
    }
    a:has(img){
        width:120px;
        flex-shrink:0;
        margin-top:.3em;
    }
    img {
        zaspect-ratio:1;
        zobject-fit:contain;
        object-position:top;
        width:100%;
    }
    .contact-company {
        font-weight: 600;
    }
    .contact-name {
        font-size: .9em;
        color: var(--tt-link);
    }
    .contact-caption {
        font-size:20px;
        font-weight:700;
    }
}


/* --------------------- DOUBLE COLUMN ---------------------- */

.cols2 {
   display: flex;
   flex-flow: row wrap;
   justify-content: center;
   align-items: flex-start;
   gap:20px 60px;
}

.cols2 > * {
    flex: 1 1 360px; /* flex-grow: 1, flex-shrink: 1, flex-basis: 300px */
    min-width: 200px; /* Элементы будут сжиматься до 200px перед тем, как произойдет перенос */
    display: flex;
    flex-flow: column wrap;
    gap:15px;
}


/* -----------------  В И Д Е О ------------------    */

#video-list {
    grid-template-columns: repeat(auto-fill, 240px);

}

.video-box {
    color: #ccc; /* Задаем currentColor */
    background-color: currentColor;
    border: 1px solid currentColor;
    border-radius: var(--radius-big);
    overflow: hidden;
    line-height: 1.15;
    position: relative;
    font-size:14px;
    text-align:center;

    figcaption{
        display:block;
        bottom:0;
        width:100%;
        min-height:2.7em;
        opacity:.9;
        background-color:#555;
        color:#fff;
        padding:0.2em .5em .3em;
        hyphens:none;
        span{
            display:block;
       		&:empty{display:none;}
        }
	}

    img {
        width:100%;
        aspect-ratio: 16/11;
        object-fit: cover;
        display:block;
    }
    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white; /* Цвет значка */
      background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон для контраста */
      border-radius: 50%; /* Делает кнопку круглой */
      padding: 5px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: background 0.3s ease;
    }

    &:hover .play-button {
      background-color: rgba(230, 0, 0, 0.6); /* Красный фон (как у YouTube) */
    }
}



/* ------ PREVIEW PRODUCT --------- */
.item-preview { /* product */
    display: flex;
    flex-flow: column;
    gap: 5px;
    div, ul {
        font-size:14px;
        font-weight:300;
    }
    figure {
        text-align:center;
        img {
            width:90%;
            object-fit:contain;
            height:240px;
        }

        figcaption {
            font-size:16px;
            font-weight:500;
            position:relative;
        }

        div {
            position:absolute;
            top:15px;
            left:0;
            bottom:2em;
            right:30px;
            display:flex;
            flex-flow:column nowrap;
            align-items:flex-end;
            gap:3px;
            z-index:9;

            span {
                &:first-of-type{
                    flex-grow: 1;
                }
                &:before{
                    display: inline-block;
                }
            }
        }
        span.hit {
            &:before{
                content:'Хит';
                padding:0 10px 0 7px;
                background:red;
                font-size:14px;
                font-weight:700;
                color:#fff;
                clip-path: polygon(0 0, 100% 0, 85% 100% , 0 100%);
            }
        }

        span.ex {
            &:before{
                content:'Ex';
                padding:2px;
                background:#ff7;
                font-size:22px;
                font-weight:700;
                color:#335;
                border:solid 2px #335;
            }
        }

        span.gisp {
            &:before{
                content: "";
                width: 40px;
                height: 40px;
                background: url(/upload/medialibrary/524/wb8hirfvdr7oq62xayfcevfnwk9s13il/gisp.png);
                background-size: contain;
            }
        }

    }
}



/* ------------ технологии в индексах ------------ */
.list-technologies {
    gap: 30px;

    .techno-item {
        overflow:hidden;
        display:flex;
        &.item-border{
            border: solid 1px #ddd;
            border-radius: var(--radius-big);
        }
    }
}

.techno-article {
    gap:0;
    div:first-child {position: relative;}
    div:last-child {padding:10px 10px 15px 20px;}
    h1, h3 {margin: 0 0 .2em 0;}
    h3, i {color: var(--green-xl);}
    i {white-space: nowrap;}
    grid-template-columns: minmax(33%,var(--width-unit)) 1fr;

    img {
        height: 100%;
        width:100%;
        position: absolute;
        object-fit:cover;
        object-position: center ;
    }

    &.detail {
        max-width:900px;
        margin-bottom:30px;
        div {min-height:200px;}
    }
}


@media only screen and (max-width: 600px) {
    .techno-article {
        grid-template-columns: repeat(auto-fit, minmax(var(--width-unit),100%)) !important;
        gap:0;
        h1, h2, h3 { hyphens: auto;}
    }
}