:root {
    --font-small: 0.875rem;
    --font-base: 1.5rem;
    --font-title: 2rem;

    --font-section-title: 5rem;
    --font-section-base: 2.75rem;

    --accent: #fbb03b;
    --text: #f2f1f7;
}


/* ШРИФТЫ */
.title-text {
    font-size: var(--font-title);
    font-weight: 700;
}

.standart-text {
    font-size: var(--font-base);
    font-weight: 400;
}

.small-text {
    font-size: var(--font-small);
    font-weight: 400;
}

.section__title {
    font-size: var(--font-section-title);
    font-weight: 700;
}

.section__text {
    font-size: var(--font-section-base);
    font-weight: 400;
}

.section__info {
    font-size: var(--font-title);
    font-weight: 400;
}

.text-center {
    text-align: center;
}


/*        БРЕНД          */
@font-face {
  font-family: 'Palatino Linotype';
  src: url('/static/fonts/Palatino Linotype.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background:
        radial-gradient(circle at top right, rgba(251,176,59,0.15) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(236, 152, 15, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #070709, #0d0d12 50%, #1a1a23 100%);
    background-repeat: no-repeat;
    background-size: cover;


    font-family: "Palatino Linotype", Arial, sans-serif;
    font-size: 16px;
    line-height: 1;

    color: var(--text);
    overflow-x: hidden;
}

/*        ШАПКА          */
.header {
    background: radial-gradient(circle at 15% 50%, #fbb03b22 0%, transparent 30%),
                radial-gradient(circle at 85% 50%, #fbb03b22 0%, transparent 30%),
                linear-gradient(135deg, #070709, #0d0d12 40%, #1a1a23 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 15px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(251, 176, 59, 0.1);

    border-bottom: 3px solid rgba(251, 176, 59, 0.25);


    padding: 10px 0;

    position: sticky;
    z-index: 100;
    top: 0;
}

.header__inner {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    max-height: 200px;
    padding: 0 15px;
}

.brand {
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
}

.brand__logo {
    height: 70px;
    width: auto;
}

.brand__text {
    display: flex;
    flex-flow: column nowrap;
    line-height: 1.1;
}

.brand__text span:last-child {
    color: var(--accent);
}

.header__navbar {
    display: flex;
    flex-flow: row wrap;

    align-content: center;
    justify-content: flex-start;
    gap: 1.25rem;

    min-width: 350px;
    max-width: 900px;

}

.header__navbar a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.3s;

    font-weight: 700;
    font-size: var(--font-title);
    white-space: nowrap;

    color: var(--accent);
}

.header__navbar a:hover {
    text-decoration-color: var(--accent)
}

.header__secondary-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(251, 176, 59, 0.25);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    font-size: var(--font-small);
    color: #f2f1f7;
    text-decoration: none;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(251, 176, 59, 0.1);
    color: var(--accent);
}

/* Показ при наведении */
.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/*        СЕКЦИИ          */

section {
    height: 1080px;
}

section .container {
    height: 100%;

    border-bottom: 5px solid #f2f1f7;
    border-left: 3px solid rgba(251, 176, 59, 0.25);
    border-right: 3px solid rgba(251, 176, 59, 0.25);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

main section:last-child .container{
    border-bottom: none;
}

.section__inner {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.5rem;
}

.contacts__inner {
    display: flex;
    flex-flow: row nowrap;
}

.text-block {
    display: flex;
    flex-flow: column wrap;

    line-height: 1.1;
    padding: 0 20px;
}


.title-wrap {
    position: relative;
    width: 100%;
}

.title-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 33%;
    height: 5px;
    background-color: var(--text);
}

#section1_1 {
    background-image: url('/static/images/section1_1.png');
}

#section1_2 {
    background-image: url('/static/images/section1_2.png');
}


.hero .text-block:first-child {
    height: 70%;
    padding-top: 20px;
}

.hero .container {
    position: relative;
    overflow-x: hidden;
}

.slider-wrapper {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-position: center;
    background-size:auto;
    background-repeat: no-repeat;
}

.slide .text-block:last-child {
    padding-bottom: 10px;
}

/* Стрелочные зоны */
.slider-zone {
    position: absolute;
    top: 0;
    width: 7%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease;
    display:flex;
    align-items:center;
    justify-content:center;
}

.slider-zone .arrow {
    width: 36px;
    height: 36px;
    opacity: 0.35;
    transition: opacity .2s ease;
}


.slider-zone.left {
    left: 0;
}

.slider-zone.right {
    right: 0;
}

.slider-zone:hover .arrow {
    opacity: 0.85;
}

.slider-zone:hover {
    background: rgba(255, 255, 255, 0.05);
}

.about .container {
    background-image: url('/static/images/section2.png');
}

.about .container .text-block {
    justify-content: center;
    line-height: 1.1;
    height: 33%;
    border-bottom: 3px solid var(--text);
}

.about .container .text-block:last-child {
    justify-content: end;
    padding-bottom: 30px;
    gap: 0.75rem;
    color: var(--accent);
    border-bottom: none;
}

.about .container .text-block a {
    color: var(--accent);
    text-decoration: rgb(from color r g b);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.monitor .container {
    background-image: url('/static/images/section3.png');
}

.physical .container {
    background-image: url('/static/images/section4.png');
}

.video .container {
    background-image: url('/static/images/section5.png');
}

.cargo .container {
    background-image: url('/static/images/section6.png');
}

.vacancy .container {
    background-image: url('/static/images/section7.png');
}

.vacancy .container .text-block:first-child {
    padding-top: 20px;
}

.vacancy .section__inner {
    gap: 5rem;
}

.vacancy .text-block {
    padding-left: 40px;
}

/*        ГЛОБАЛЬНОЕ          */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
}

.bordered-block {
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;

    border-left: 5px solid var(--text);

    padding: 10px 0;
    margin-left: auto;
    width: 95%;
    height: 100%;
}

.bordered-block .text-block.section__info:last-child {
    text-decoration: underline;
    text-decoration-color: rgb(from color r g b);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    padding-bottom: 20px;
}

.bordered-block .text-block.section__info {
    width: 70%;
    margin-right: auto;
}

.contacts__item {
    display: flex;
    flex-flow: column nowrap;
    width: 33.3%;
    border-right: 3px solid #f2f1f7;
}

.contacts__item:last-child {
    border-right: none;
}

.contacts-cell {
    display: flex;
    flex-flow: column nowrap;
    border-bottom: 3px solid #f2f1f7;
}

.contacts-cell:last-child {
    border-bottom: none;
    flex: 1;
}

.contacts-cell__wrap {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    margin: auto 0;
}

.contacts-cell__wrap a img {
    width: 144px;
    height: auto;
}

.contacts__item form input,
.contacts__item form textarea {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: 0;
    border-radius: 15px;
    padding: 12px 18px;
    font-size: var(--font-small);
}


.contacts__item form button {
    width: 100%;
    background: #ffffff;
    color: #000000;
    border: 0;
    border-radius: 15px;
    padding: 14px 18px;
    font-size: var(--font-base);
    cursor: pointer;
    margin-top: 20px;
}




/*        АДАПТИВ          */

@media (max-width: 1650px) {
    :root {
        --font-small: 0.8rem;
        --font-base: 1.35rem;
        --font-title: 1.9rem;

        --font-section-title: 4rem;
        --font-section-base: 2.25rem;
    }
}
@media (max-width: 1450px) {

    :root {
        --font-small: 0.8rem;
        --font-base: 1.35rem;
        --font-title: 1.8rem;

        --font-section-title: 4rem;
        --font-section-base: 2.25rem;
    }

    .brand__logo {
        height: 65px;
        width: auto;
    }

    .container {
        width: 100%;
    }
    .header__secondary-text {
        display: none;
    }
    .header__inner {
        justify-content: space-around;
        max-height: none;
        padding: 0 15px;
        gap: 1rem;
    }
    section .container {
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 1200px) {

    :root {
        --font-small: 0.75rem;
        --font-base: 1.2rem;
        --font-title: 1.7rem;

        --font-section-title: 2.75rem;
        --font-section-base: 2rem;
    }
    .video .text-block:nth-child(4) {
        display: none;
    }

    .brand__logo {
        height: 60px;
        width: auto;
    }

}

@media (max-width: 1000px) {
    :root {
        --font-small: 0.75rem;
        --font-base: 1.2rem;
        --font-title: 1.6rem;

        --font-section-title: 3.2rem;
        --font-section-base: 2rem;
    }
    section .contacts {
        height: auto;
        min-height: 80vh;
    }
    .contacts .contacts__item:first-child {
        height: 33vh;
    }

    section:last-child {
        height: auto;
    }

    .header__inner {
        max-height: none;
    }

    .header__navbar a {
        font-size: var(--font-base);
    }

    .bordered-block .text-block.section__info {
        width: 90%;
    }

    .contacts__inner {
        flex-direction: column;
    }

    .contacts__item {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #f2f1f7;
    }

    .contacts__item:last-child {
        border-bottom: none;
    }

    .contacts-cell__wrap a img {
        width: 90px;
    }

    .contacts__item:nth-child(2) .contacts-cell:first-child {
        display: none;
    }

    .contacts__item:nth-child(2) .contacts-cell:nth-child(3) {
        border-bottom: none;
    }

    .contacts__item:nth-child(3) .contacts-cell:first-child {
        display: none;
    }

    .brand__logo {
        height: 55px;
        width: auto;
    }
}

@media (max-width: 768px) {

    :root {
        --font-small: 0.7rem;
        --font-base: 1.3rem;
        --font-title: 1.5rem;

        --font-section-title: 2.7rem;
        --font-section-base: 1.8rem;
    }

    .header__inner {
        justify-content: space-between;
    }

    .brand__logo {
        height: 50px;
        width: auto;
    }

    .contacts .contacts__item:first-child {
        height: 33vh;
    }

    section:last-child {
        height: auto;
    }

    .header__inner {
        max-height: none;
    }

    .header__navbar a {
        font-size: var(--font-base);
    }

    section .contacts {
        height: auto;
        min-height: 80vh;
    }

    .bordered-block .text-block.section__info {
        width: 90%;
    }

    .contacts__inner {
        flex-direction: column;
    }

    .contacts__item {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #f2f1f7;
    }

    .contacts__item:last-child {
        border-bottom: none;
    }

    .contacts-cell__wrap a img {
        width: 90px;
    }

    .contacts__item:nth-child(2) .contacts-cell:first-child {
        display: none;
    }

    .contacts__item:nth-child(2) .contacts-cell:nth-child(3) {
        border-bottom: none;
    }

    .contacts__item:nth-child(3) .contacts-cell:first-child {
        display: none;
    }
}
