:root {
    --primary: #062E6F;
    /* синий */
    --primary-dark: #0C2B55;
    --gold: #C7B446;
    /* золотой */
    --enamel: #ffffff;
    /* «эмаль» подложка */
    --bs-primary: var(--primary);
    --bs-body-bg: #ffffff;
    --bs-body-color: var(--primary-dark);
}


html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box
}

*,
*::before,
*::after {
    box-sizing: inherit
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto
}

/* Fonts */
body {
    font-family: "PT Root UI", sans-serif;
    background-image: url(/фон.svg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: .2px;
}

/* Navbar */
.navbar {
    background-color: var(--primary) !important;

}

.navbar .nav-link,
.navbar-brand,
.navbar a {
    color: #fff !important;
}

.navbar .nav-link:hover {
    opacity: .9
}

.navbar .email-desktop {
    color: #fff !important;
}

.navbar-brand small {
    opacity: .85;
    transform: translateY(3px);
    font-size: 10px
}

/* Hero (картинка слева, контент справа; на мобиле — текст поверх) */
.hero-static {
    position: relative;
    overflow: hidden
}

.hero-static .container-fluid {
    padding: 0 15vh;
}

.hero-static .row>* {
    padding-left: 0;
    padding-right: 0
}



/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #DEE7FF;
    color: var(--primary);
    border-color: var(--primary)
}

/* Section titles */
.section-title {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
}


/* Contacts */

.contacts {
    margin-bottom: 5vh;
    margin-top: 10vh;
}

.contact-item i {
    color: var(--primary);
    width: 3.2rem;
    font-size: 2.4rem;
}

.contact-item {
    font-size: 28px;
}

/* Footer */
footer {
    background: var(--primary);
    color: #fff;
    position: relative;
    bottom: -15vh;
}

footer a {
    color: #fff;
    text-decoration: none
}

footer a:hover {
    opacity: .9
}

/* HERO: фон под картинкой, чтобы цвет не «плыл» на чисто белом */
.hero-media {
    min-height: 360px;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
}

.inner {
    display: grid;
    gap: 3vh;
    line-height: 0.6;
}

.inner-adaptive {
    display: flex;
    /* gap: 17px; */
}

.inner-adaptive>p {
    width: max-content;
}

/* CTA-кнопка в primary */
.btn-cta {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
    color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 54px;
}

.btn-cta:hover {
    background: #DEE7FF;
    color: var(--primary);
    border-color: var(--primary);
}

/* Заголовки — тонкая золотая линия для акцента */
.section-title {
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 8px;
    margin: .5rem auto 0;
    border-radius: 20px;
    background: var(--gold);
}

/* Иконки контактов сделаем золотыми, чтобы золото было в интерфейсе */
.contact-item i {
    color: var(--gold);
}

/* ===== GALLERY full-bleed без превьюшек ===== */
.gallery-wide .container-fluid {
    padding: 0;
}

.container-custom {
    box-sizing: border-box;
    border: 0px solid transparent;
    border-width: 2vh 15vh;
}

.container-custom-navbar {
    box-sizing: border-box;
    border: 0px solid transparent;
    border-width: 0 15vh;
}

.title-welcome {
    font-size: 64px;
}

.section-paragraph {
    font-size: 24px;
    margin-bottom: 60px;
}

@media (min-width: 1855px) {
    .hero-content {
        width: 900px;
    }

    .title-welcome {
        font-size: 64px;
    }

    .btn-cta {
        font-size: 54px;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }

}

@media (max-width: 1854px) {
    .hero-content {
        width: 750px;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }
}

@media (max-width: 1791px) {
    .inner {
        line-height: 0;
    }

    .inner-adaptive {
        display: grid;
        gap: 0.45vh;
        line-height: 0.7;
    }

    .title-welcome {
        font-size: 48px;
    }

    .btn-cta {
        font-size: 42px;
    }


}

@media (min-width: 1621px) {

    .btn-cta {
        width: 700px;
    }

    .hero-img {
        display: block;
        width: 80%;
        height: 100%;
        margin-left: 17vh;
    }

    .welcome {
        margin-top: 5vh;
    }

    .curl-one {
        position: absolute;
        z-index: -1;
        width: 1011px;
        height: 2301px;
        left: -25vh;
    }

}


@media (max-width: 1620px) {
    .title-welcome {
        font-size: 46px;
    }

    .btn-cta {
        font-size: 42px;
        width: 500px;
    }

    .hero-img {
        display: block;
        width: 65%;
        height: 100%;
        margin-left: 15vh;
    }

    .welcome {
        margin-top: 5vh;
    }

    .curl-one {
        position: absolute;
        z-index: -1;
        width: 1011px;
        height: 2301px;
        left: -25vh;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }
}

@media (max-width: 1440px) {
    .title-welcome {
        font-size: 44px;
    }

    .btn-cta {
        font-size: 40px;
    }

    .hero-img {
        width: 65%;
        margin-left: 18vh;
        height: 80%;
    }

    .inner-adaptive {
        display: grid;
        gap: 0.5vh;
        line-height: 0.7;
    }
}

@media (max-width: 1400px) {
    .container {
        max-width: 1520px;
    }

    .title-welcome {
        font-size: 40px;
    }

    .btn-cta {
        font-size: 32px;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }
}

@media (max-width: 1280px) {
    .title-welcome {
        font-size: 40px;
    }

    .btn-cta {
        font-size: 33px;
        width: 450px;
    }

    .hero-img {
        width: 65%;
        margin-left: 15vh;
        height: 100%;
        margin-top: 2vh;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }
}

@media (max-width: 1140px) {
    .title-welcome {
        font-size: 36px;
    }

    .btn-cta {
        font-size: 28px;
        width: 350px;
    }

    .hero-img {
        width: 65%;
        margin-left: 15vh;
        height: 100%;
        margin-top: 3vh;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 160vh;
        max-height: 1000px;
        max-width: 850px;
    }
}

@media (max-width: 1140px) {
    .curl-one {
        position: absolute;
        z-index: -1;
        width: 1011px;
        height: 2301px;
        left: -25vh;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 205vh;
        max-height: 1000px;
        max-width: 605px;
    }
}

@media(min-width:992px) {
    .hero-content {
        color: var(--primary);
        text-align: left;
        margin-top: 5vh;
    }
}

@media(max-width:991.98px) {

    .hero-content {
        min-width: unset;
    }
    .hero-static::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45));
        z-index: 1;
        height: 100cqb;
    }

    .hero-content {
        position: absolute;
        transform: translateY(-160px);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-align: center;
        padding: 1rem;
        justify-self: center;
    }

    .container-custom,
    .container-custom-navbar {
        border-width: 0 0;
        padding: 0 20px;
    }

    .welcome {
        flex-flow: column-reverse;
    }

    .hero-content .btn {
        background: #fff;
        color: var(--primary);
        border-color: #fff
    }

    .title-welcome {
        font-size: 42px;
    }

    .hero-img {
        position: relative;
        left: 15vh;
    }

    .hero-content {
        margin-top: -10vh;
    }

    .inner-adaptive {
        display: flex;
    }

    .section-paragraph {
        font-size: 24px;
        text-align: justify;
        padding: 0 20px;
    }

    .btn-cta {
        font-size: 30px;
        width: fit-content;
        margin: 0 auto;
    }

    .hero-static .container-fluid {
        padding: 0;
    }

    .curl-one {
        position: absolute;
        background-repeat: no-repeat;
        z-index: -1;
        width: 605.5px;
        height: 1155.5px;
        top: 45vh;
    }

    .curl-two {
        display: none;
    }
}

@media (max-width: 905px) {
    .hero-img {
        position: relative;
        left: 11vh;
    }
}

@media (max-width: 712px) {

    .title-welcome {
        font-size: 38px;
    }

    .btn-cta {
        font-size: 30px;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 335vh;
        max-height: 1000px;
        max-width: 405px;
    }


    .hero-img {
        position: relative;
        left: 5vh;
    }
}

@media (max-width: 672px) {
    .title-welcome {
        font-size: 38px;
    }

    .btn-cta {
        font-size: 30px;
        width: fit-content;
        margin: 0 auto;
    }


    .curl-one {
        position: absolute;
        background-repeat: no-repeat;
        z-index: -1;
        width: 405.5px;
        height: 555.5px;
        top: 46vh;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 335vh;
        max-height: 1000px;
        max-width: 405px;
    }

    .hero-img {
        position: relative;
        left: 3vh;
    }
}

@media (max-width: 568px) {
    .title-welcome {
        font-size: 38px;
    }

    .inner-adaptive {
        display: grid;
        justify-items: center;
    }

    .inner {
        display: grid;
        gap: 2vh;
    }

    .btn-cta {
        font-size: 30px;
        width: fit-content;
        margin: 0 auto;
    }

    .section-paragraph {
        font-size: 16px;
        text-align: justify;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 355vh;
        max-height: 1000px;
        max-width: 405px;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 230vh;
        max-height: 1000px;
        max-width: 605px;
    }

    .hero-img {
        position: relative;
        left: 0vh;
    }

    .contact-item {
        font-size: 24px;
    }
}

@media (max-width: 484px) {
    .title-welcome {
        font-size: 32px;
    }

    .btn-cta {
        font-size: 24px;
        width: fit-content;
        margin: 0 auto;
    }

    .section-paragraph {
        font-size: 16px;
        text-align: justify;
        width: fit-content;
    }

    .hero-img {
        left: -3vh;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 335vh;
        max-height: 1000px;
        max-width: 405px;
    }


    .contact-item {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .curl-one {
        position: absolute;
        background-repeat: no-repeat;
        z-index: -1;
        width: 305.5px;
        height: 355.5px;
        top: 46vh;
    }


    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 355vh;
        max-height: 1000px;
        max-width: 405px;
    }
}

@media (max-width: 364px) {
    .title-welcome {
        font-size: 24px;
    }

    .btn-cta {
        font-size: 18px;
        width: fit-content;
        margin: 0 auto;
    }

    .section-paragraph {
        font-size: 16px;
        text-align: justify;
        width: fit-content;
        position: relative;
    }

    .hero-img {
        position: relative;
        left: -4vh;
    }

    .inner-adaptive {
        display: grid;
        gap: 0;
    }

    .curl-two {
        position: absolute;
        z-index: -1;
        right: 0;
        top: 365vh;
        max-height: 1000px;
        max-width: 405px;
    }

    .contact-item {
        font-size: 18px;
    }
}


/* Слайдер */

.slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: auto;
    position: relative;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

.click-area {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

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

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

@media(max-width: 480px) {
    .slider {
        height: 250px;
    }
}


@media (max-width: 991.98px) {
  .col-12.col-lg-6.position-relative {
    min-height: 0px; /* или % от экрана */
  }

  .hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -100%); /* центрируем */
  }
  
  .welcome {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-img {
    position: relative;
    left: 0;            /* убираем ручные сдвиги */
    margin: 0 auto;     /* центрируем */
    max-width: 80%;     /* ограничим размер */
  }
}

@media (max-width: 542.98px) {
  .col-12.col-lg-6.position-relative {
    min-height: 0px; /* или % от экрана */
  }
  .hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -66%); /* центрируем */
    font-size: 14px;
  }

}

#slider + p {
    margin-top: 30px;
}



.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 5vh;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.slides {
  display: flex;
  overflow-x: auto;              /* включаем прокрутку */
  scroll-snap-type: x mandatory; /* фиксируем слайды */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: block;
object-fit: cover;
}

/* точки */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  scrollbar-width: none;      /* Firefox */
}
.slides::-webkit-scrollbar {  /* Chrome, Safari */
  display: none;
}

.slider-paragraph {
  font-size: 25px;
  line-height: 1.6;
  margin: 2rem 0;
  text-align: justify; /* можно убрать если нужен "justify" */
  color: var(--primary-dark);
}

.reg-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: var(--primary-dark);
}

.reg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  color: var(--primary);
}

.reg-icon {
  flex-shrink: 0;
  color: var(--primary);
}

.reg-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.reg-text p {
  font-size: 15px;
  margin: 0;
  line-height: 1.4;
  color: var(--primary-dark);
}


.tg-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.tg-icon {
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.tg-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.btn-tg {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn-tg:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

p.fw-bold.title-welcome.mb-3 {
    margin-left: 10px;
}

.hidden {display: none;}


/* ===== Dekorativnye krivye (curl-one, curl-two) ===== */
.curl-one,
.curl-two {
  position: absolute;
  z-index: -1;
  background-repeat: no-repeat;
}

.curl-two.--under {
    top: 304vh;
    left: 0px;
}

/* ----------- curl-one ----------- */
@media (min-width: 1621px) {
  .curl-one {
    width: 1011px;
    height: 2301px;
    left: -25vh;
  }
}

@media (max-width: 1620px) {
  .curl-one {
    width: 1011px;
    height: 2301px;
    left: -25vh;
  }
}

@media (max-width: 1140px) {
  .curl-one {
    width: 1011px;
    height: 2301px;
    left: -25vh;
  }
}

@media (max-width: 672px) {
  .curl-one {
    width: 405.5px;
    height: 555.5px;
    top: 46vh;
  }
}

@media (max-width: 568px) {
  .curl-one {
    width: 605.5px;
    height: 1155.5px;
    top: 45vh;
  }
}

@media (max-width: 400px) {
  .curl-one {
    width: 305.5px;
    height: 355.5px;
    top: 46vh;
  }
}

/* ----------- curl-two ----------- */
@media (min-width: 1855px) {
  .curl-two {
    right: 0;
    top: 160vh;
    max-height: 1000px;
    max-width: 850px;
  }
}

@media (max-width: 1854px) {
  .curl-two {
    right: 0;
    top: 160vh;
    max-height: 1000px;
    max-width: 850px;
  }
  .curl-two.--under {
    top: 424vh;
    left: 0px;
}
}

@media (max-width: 1620px) {
  .curl-two {
    right: 0;
    top: 160vh;
    max-height: 1000px;
    max-width: 850px;
  }
}

@media (max-width: 1400px) {
  .curl-two {
    right: 0;
    top: 160vh;
    max-height: 1000px;
    max-width: 850px;
  }
}

@media (max-width: 1280px) {
  .curl-two {
    right: 0;
    top: 160vh;
    max-height: 1000px;
    max-width: 850px;
  }
}

@media (max-width: 1140px) {
  .curl-two {
    right: 0;
    top: 205vh;
    max-height: 1000px;
    max-width: 605px;
  }
}

@media (max-width: 991.98px) {
  .curl-two {
    display: none;
  }
}

@media (max-width: 712px) {
  .curl-two {
    right: 0;
    top: 335vh;
    max-height: 1000px;
    max-width: 405px;
  }
}

@media (max-width: 672px) {
  .curl-two {
    right: 0;
    top: 335vh;
    max-height: 1000px;
    max-width: 405px;
  }
}

@media (max-width: 568px) {
  .curl-two {
    right: 0;
    top: 230vh;
    max-height: 1000px;
    max-width: 605px;
  }
  .curl-two.alt {
    right: 0;
    top: 355vh;
    max-height: 1000px;
    max-width: 405px;
  }
}

@media (max-width: 484px) {
  .curl-two {
    right: 0;
    top: 335vh;
    max-height: 1000px;
    max-width: 405px;
  }
}

@media (max-width: 400px) {
  .curl-two {
    right: 0;
    top: 355vh;
    max-height: 1000px;
    max-width: 405px;
  }
}

@media (max-width: 364px) {
  .curl-two {
    right: 0;
    top: 365vh;
    max-height: 1000px;
    max-width: 405px;
  }
}


a {
    color: var(--primary);
}

/* ====== МОДАЛКА РЕГИСТРАЦИИ ====== */
/* ====== МОДАЛКА РЕГИСТРАЦИИ ====== */
#register-modal h3 {
  color: var(--primary);
  font-weight: 700;
}

#register-modal .form-label {
  font-weight: 600;
  color: var(--primary-dark);
}

#register-modal .form-control,
#register-modal .form-select {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#register-modal .form-control:focus,
#register-modal .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(6,46,111,.25);
}

/* Чекбоксы */
#register-modal .form-check {
  margin-bottom: 0.4rem;
}

#register-modal .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Ошибки */
#register-modal .invalid-feedback {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Кнопка */
#register-modal .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  transition: background 0.3s, transform 0.2s;
}

#register-modal .btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Сообщения */
#regMsg.alert-success {
  background: #eaf5ea;
  color: #1e4620;
  border: 1px solid #b7dfb7;
  border-radius: 10px;
}

#regMsg.alert-danger {
  background: #fbeaea;
  color: #611a1a;
  border: 1px solid #f5c2c2;
  border-radius: 10px;
}

/* Подпись */
#register-modal p.small {
  font-size: 0.8rem;
  color: #666;
  margin-top: 1rem;
}


/* Базовые стили для radio блока */
.form-check {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.form-check-input[type="radio"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,46,111,0.2);
}

.form-check-label {
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 16px;
}

.was-validated .form-check-input:invalid ~ .invalid-feedback {
  display: block;
}
