// <weight>: Use a value from 100 to 900
// <uniquifier>: Use a unique and descriptive class name

.science-gothic-<uniquifier> {
    font-family: "Science Gothic", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings: "slnt" 0, "wdth" 100, "CTRS" 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4ebd9;
    font-family: "Science Gothic", sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

p::first-letter {
    font-size: 2em;
    color: #f49a1d;
    font-weight: bold;
    text-align: justify;
}

p {
    width: 100%;
    text-align: justify;
}

h2 {
    font-size: 30px;
    margin-bottom: 24px;
    font-weight: 700;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #3b3a4b;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-logo {
    vertical-align: top;
    width: 200px;
    min-width: .5cm;
    object-fit: contain;
}

.lang-wrapper {
    position: relative;
    top: -20px;
}

.lang-btn {
    width: 32px;
    height: 40px;
    border: none;
    background: #f49a1d;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.lang-menu {
    position: absolute;
    top: 52px;
    right: 0;
    width: 60px;
    background: #3b3a4b;
    border: 1px solid rgba(255, 255, 255, .2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.lang-menu.active {
    display: flex;
}

.lang-menu a {
    color: white;
    text-decoration: none;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

#page {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #3b3a4b;
    font-size: 14px;
    line-height: 14pt;
    color: #B7B0B7;
}

.hreff {
    position: relative;
    bottom: 80px;
}

.cap {
    font-size: 125%;
    display: inline-block;
}

/* .intro {
    padding:18px 18px;
}
.intro h2 {
    font-size: 30px;
    margin-bottom: 24px;
    font-weight: 700;
}

.intro p {
    width: 100%;
    color: #B7B0B7;
    text-align: justify;
} */
.intro_first {
    padding: 18px 18px;
}

.intro_second {
    padding: 18px 18px;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
}

.overlay_2 {
    position: relative;
    width: 240px;
    height: 260px;
    bottom: 250px;
}

.hero-text {
    position: absolute;
    bottom: 150px;
    right: 18px;
    width: 100%;
    text-align: right;
    letter-spacing: 1px;
    font-size: 10px;
    /* font-weight: bold; */
    color: #f49a1d;
}

.table_first {
    padding: 18px 18px;
}

.table_second {
    padding: 18px 18px;
}

.rules-section {
    padding: 18px 18px;
}

.rules-content {
    width: 100%;
    margin: 0 auto;
}

.rules-content h2 {
    font-size: 30px;
    margin-bottom: 24px;
    /* color: white; */
    font-weight: 700;
}

.rules-text {
    width: 100%;
}

.rules-text p {
    text-align: justify;
}

.rules-video {
    float: right;
    width: 50%;
    aspect-ratio: 1 / 1;
    /* делаем контейнер квадратным */
    margin: 20px 0 20px 20px;
    overflow: hidden;
    /* обрезаем всё, что выходит за пределы */
}

.rules-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* заполняет контейнер, обрезая лишнее, сохраняя пропорции */
    display: block;
}

/* .footer{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:#3b3a4b;
  backdrop-filter:blur(10px);
  z-index:1000;
}
 */

.contacts-section {
    width: 100%;
    padding: 20px 20px;
}

.contacts-section h2 {
    font-size: 30px;
    margin-bottom: 40px;
    /* color: white; */
}

.contacts-grid {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 40px; */
}

.contact-card {
    text-align: center;
}

.contact-photo {
    width: 80px;
    aspect-ratio: 1/1;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    /* color: white; */
}

.contact-card p {
    /* font-size: 16px; */
    /* color: rgba(255, 255, 255, .75); */
    /* line-height: 1.7; */
}

.contact-text p {
    /* font-size: 14px;
    line-height: 1.4; */
    /* color: rgba(255, 255, 255, .82); */
    text-align: justify;
}

.contact-text a {
    color: #f49a1d;
}

.mentions_legales {
    padding: 20px;
}

.legal-section {
    font-size: 14px;
    text-align: justify;
    color: #938677;
}

.legal-section a {
    color: #f49a1d;
}

.legal-section ul {
    padding: 20px 0 20px 20px;
}

.legal-section p::first-letter {
    font-size: 1em;
    color: #f49a1d;
    font-weight: bold;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* на всю ширину экрана */
    display: flex;
    justify-content: center;
    /* центрируем содержимое */
    background: #3b3a4b;
    backdrop-filter: blur(1px);
    z-index: 1000;
    height: 80px;
}

.footer-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    background-image: url('../img/fb.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 12px;
    max-height: 54px;
}

.footer a {
    text-decoration: none;
    color: #B7B0B7;
    text-align: center;
    padding: 16px 5px;
    transition: .3s;
}

.footer-legale {
    position: fixed;
    top: 55px;
    color: #938677;
    font-size: 9px;
}

.footer-legale a {
    padding: 0;
}

.slider-container {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    background-color: #2c3e4e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0);
    transition: background 0.2s;
}

.click-zone.left {
    left: 0;
}

.click-zone.right {
    right: 0;
}

.dots-panel {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dot {
    width: 28px;
    height: 5px;
    border-radius: 20px;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.7;
}

.dot.active {
    background-color: #1e3a5f;
    width: 40px;
    opacity: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================ */
/* DESCKTOP ( 768px & UP) */
/* ============================================ */
@media(min-width:768px) {
    body {
        background-image: url('../img/bg.jpg');
        background-attachment: fixed;
        background-size: cover;
        min-height: 400px;
    }

    html {
        height: 100%;
        /* scroll-snap-type: y mandatory;
        overflow-y: scroll; */
        scroll-padding-top: 120px;
    }

    section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        /* scroll-margin-top: 120px; компенсация фиксированного хедера */
    }
    .header {
        height: 8vh;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 10% 0 5%;
    }

    .header_cont {
        margin-left: auto;
        margin-right: auto;
    }

    .logo {
        width: 200px;
    }

    .nav-logo {
        vertical-align: top;
        /* width: 300px; */
        min-width: 100px;
        object-fit: contain;
    }

    .lang-wrapper {
        position: relative;
        /* top: -35px; */
    }

    .lang-btn {
        width: 35px;
        height: 50px;
    }

    .lang-menu {
        width: 80px;
    }

    #page {
        margin-left: 5%;
        margin-right: 5%;
        /*   padding-top: 110px;
        padding-bottom: 90px; */
        font-size: 1vw;
        /*text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); Смещение на 2 пикселя вправо и вниз, размытие 5 пикселей, полупрозрачный чёрный цвет */
        line-height: 20pt;
        color: #fff;
        background-color: transparent;
    }

    h2 {
        color: #3b3a4b;
        ;
    }

    .hreff {
        position: relative;
        bottom: 150px;
    }

    .hero {
        top: 50px;
        width: 35%;
        /* 	padding: 0 0 20px 20px;  */
        shape-outside: inset(0);
        float: left;
        /* border-radius: 20px; */
    }

    .hero-video {
        float: left;
        aspect-ratio: 1 / 1;
        shape-outside: inset(0);
        /* padding: 0 0 20px 20px; */
    }

    .hero-text {
        color: #f49a1d;
        font-size: 0.75vw;
        text-align: right;
        font-weight: normal;
        bottom: 35%;
        right: 5%;
        margin-top: 200px;
    }

    .intro {
        width: 100%;
        min-height: 90vh;
    }

    .intro_first {
        position: relative;
        width: 55%;
        float: right;
        top: 50px;
    }

    .intro_second {
        width: 55%;
        float: right;
        margin-top: 5%;
    }

    .table {
        width: 100%;
        min-height: 90vh;
    }

    .table_first {
        position: relative;
        width: 55%;
        float: left;
        /* top:50px; */
    }

    .table_second {
        width: 55%;
        float: left;
        /* margin-top:10%; */
    }

    /* 	.slider-wrapper {
        border-radius: 20px;
    } */
    .rules {
        width: 100%;
       min-height: 90vh;
    }

    .rules-section {
        /* position:relative; */
        width: 100%;
        /* top:40px; */
    }

    .rules-content h2 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .rules-text p {
        text-align: justify;
    }

    .rules-video {
        float: right;
        width: 25%;
        aspect-ratio: 1/1;
        shape-outside: inset(0);
        margin: 20px 0 20px 20px;
    }

    .contacts-section {
        width: 100%;
        min-height: 90vh;
        padding: 0 20px;
    }

    .contacts-section h2 {
        font-size: 30px;
    }

    .contact-text {
        /* padding-right:60%;
        float:left; */
    }

    .contact-text2 {
        padding-top: 3%;
        /*float:right; */
    }

    .contacts-grid {
        width: 100%;
        padding: 0 25% 0 25%;
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }

    .contact-photo {
        width: 120px;
        margin: 0 auto 10px;
    }

    .contact-card h3 {
        font-size: 30px;
    }

    .contact-card p {
        font-size: 16px;
        text-align: center;
    }

    .contact-text a {
        color: #3b3a4b;
    }

    .footer {
        /*  left: 50%;
        transform: translateX(-50%); */
        /* width: 560px; */
        height: 70px;
        background-color: transparent;
    }

    .footer-content {
        /* left: 50%; */
        transform: translateX(50%);
        width: 50%;
        padding: 0 20px;
        background-size: 100% 100%;
        max-height: 75px;
        font-size: 1vw;
    }

    .footer a {
        padding: 24px 0;
        font-size: 0.9vw;
        color: #f49a1d;
        text-transform: uppercase;
        /* font-weight: bold; */
    }

    .footer-legale {
        position: fixed;
        top: -10px;
        right: 10px;
        color: #938677;
        font-size: 0.7vw;
    }

    .footer-legale a {
        padding: 0;
        color: #938677;
        font-size: 0.7vw;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 1);
    }

    /* главный контейнер-карточка — десктоп */
    .slider-container {
        /* top: 50px; */
        width: 35%;
        shape-outside: inset(0);
        float: right;
    }

    .click-zone.left:hover {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 80%);
    }

    .click-zone.right:hover {
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 80%);
    }

    /* панель точек — десктоп */
    .dots-panel {
        gap: 0.75rem;
        margin-top: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .dot {
        width: 44px;
        height: 6px;
        cursor: pointer;
        background-color: #fff;
    }

    .dot.active {
        width: 56px;
        background-color: #f49a1d;
    }

    .dot:hover {
        background-color: #f49a1d;
        opacity: 0.9;
        transform: scaleY(1.2);
    }

    .mentions_legales {
        line-height: 14pt;
        backdrop-filter: blur(10px);
    }

    .legal-section {
        color: #fff;
        font-size: 0.9vw;
    }
}