/********** Template CSS **********/
:root {
    --primary: #FEA116;
    --light: #F1F8FF;
    --dark: #0F172B;
}

.ff-secondary {
    font-family: 'Pacifico', cursive;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/* Сбросы */
html, body { height: 100%; }
body { margin: 0; overflow-x: hidden; }

/* Full-bleed видео */
#hero-video {
  width: 100%;
  height: clamp(420px, 70vh, 820px); /* можно подправить */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#hero-video video {
  position: absolute;
  inset: 0;              /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;     /* растягиваем с обрезкой краёв */
}


/*** Navbar 
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    font-size: 15px;
    color: var(--light) !important;
    text-transform: uppercase;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-dark .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, .1)
    }

    .navbar-dark .navbar-nav .nav-link,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-dark .navbar-brand img {
        max-height: 45px;
    }
}



@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        background: transparent !important;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: var(--dark) !important;
    }
}***/




/************ NAVBAR (fixed, always on top) ************/

/* База */
.navbar {
    min-height: 64px;
  }
  
  .navbar.fixed-top {
    position: fixed;         /* всегда фиксированная */
    top: 0; left: 0; right: 0;
    z-index: 1100;           /* поверх видео/контента */
    background: #0d1b2a !important;          /* постоянная тёмная полоса */
    box-shadow: 0 2px 6px rgba(0,0,0,.35);    /* читаемость на видео */
    /* по желанию — мягкое стекло: */
    /* backdrop-filter: saturate(160%) blur(6px); */
  }
  
  /* Ссылки меню */
  .navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 24px;
    padding: 22px 0;         /* единый вертикальный отступ */
    font-size: 15px;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 600;
    transition: color .2s ease;
  }
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    color: #FEA116 !important; /* фирменный акцент */
  }
  
  /* Логотип (img/iframe) */
  .navbar-dark .navbar-brand img,
  .navbar-dark .navbar-brand iframe {
    display: block;
    height: 38px;            /* твой размер */
    width: auto;
  }
  
  /* Мобильная версия */
  @media (max-width: 991.98px) {
    .navbar-dark .navbar-collapse {
      margin-top: 10px;
      border-top: 1px solid rgba(255,255,255,.1);
    }
    .navbar-dark .navbar-nav .nav-link {
      margin-left: 0;
      padding: 12px 0;
    }
  }
  
   /* Логотип в шапке — поднимаем чуть выше */
.navbar-dark .navbar-brand {
    display: flex;
    align-items: center;
    transform: translateY(-5px); /* поднять на 5px */
  }
  

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(15, 23, 43, .9), rgba(15, 23, 43, .9)), url(../img/bg-hero.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-header img {
    animation: imgRotate 50s linear infinite;
}

@keyframes imgRotate { 
    100% { 
        transform: rotate(360deg); 
    } 
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}

/* Рекламные сувениры опускаем на 10px */
.section-suveniri-title {
    margin-top: 15px;
  }


  
  /* Заголовок h2 */
  .news-title {
    margin-top: 0 !important;       /* убираем верхний отступ */
    margin-bottom: 40px !important; /* вместо mb-4 делаем меньше */
  }


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Food Menu ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}


/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img_o_nas/obratnaa_svaz_11.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    height: calc(100% - 38px);
    transition: .5s;
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item:hover {
    height: 100%;
}

.team-item .btn {
    border-radius: 38px 38px 0 0;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/* === Заголовок секции со звёздочками === */
.section-title{
  display:flex;
  justify-content:center;
}
  .section-title::before,
  .section-title::after{ display:none !important; } /* убираем линии темы */
  
  .section-title h2{
    display:inline-flex;
    align-items:center;
    gap:1.7rem;
    margin:3rem auto 2rem;
    padding:0;
    text-align:center;
    width:fit-content;
  }
  .section-title h2::before,
  .section-title h2::after{
    content:"★";
    font-size:1.9rem;
    color:#00729c;        
    opacity:.95;
    transform:translateY(-2px);
  }
  
  /* === Карточки === */
  .service-item{
    display:flex;
    flex-direction:column;
    height:100%;
    background:#cfcece;
    border-radius:4px;
    overflow:hidden;
    box-shadow:0 6px 24px rgba(0,0,0,.08);
    transition:transform .2s, box-shadow .2s;
  }
  .service-item:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
  }
  
  /* Верхняя картинка фиксированной пропорции */
  .service-item .overflow-hidden{
    width:100%;
    aspect-ratio:7/4;
  }
  .service-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  
  /* Нижний блок текста/кнопки */
  .service-item .card-body{
    padding:1.25rem 1.25rem 1.5rem;
    border:none !important;          /* убираем полосы/бордеры */
    transition:background .2s;
  }
  .service-item:hover .card-body{
    background:#00729c;              /* мягкий фон при наведении (изменяемый) */
  }
  
  /* Кнопка внизу, одинаковая высота карточек */
  .service-item .card-body .btn{
    margin-top:auto;
  }
  
  /* Кнопка: при наведении белая обводка и белые буквы */
  .btn.custom-blue.btn-outline-primary{
    border-width:2px;
  }
  .btn.custom-blue.btn-outline-primary:hover{
    border-color:#fff !important;
    color:#fff !important;
    background:rgba(255,255,255,.08);
  }

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

/* Карточки новости */
/* Карточка: рамка, тень, скругление */
.news-card{
    background:#fff;
    border:4px solid #FEA116;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 10px 28px rgba(0,0,0,.12);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .news-card:hover{
    transform: translateY(-4px);
    box-shadow:0 18px 40px rgba(0,0,0,.18);
  }
  
  /* Изображение: пропорция 412×244 = 103:61, всегда заполняет ширину */
  .news-img-wrapper{
    position:relative;
    width:100%;
    aspect-ratio:103/61;     /* поддержка современных браузеров */
    overflow:hidden;
  }
  .news-img-wrapper img{
    width:100%; height:100%;
    object-fit:cover; display:block;
  }
  
  /* Ховер-кнопка поверх изображения */
  .news-img-wrapper .btn-hover{
    position:absolute; left:50%; top:50%;
    transform:translate(-50%,-50%) scale(.96);
    opacity:0; pointer-events:none;
    display:inline-block;
    padding:12px 24px;
    text-align:center;
    white-space: nowrap;      /* всегда в одну строку */
    overflow: hidden;
    text-overflow: ellipsis;  /* если вдруг слишком длинно — появятся "..." */

    background:#FEA116; color:#fff; text-decoration:none;
    font-weight:600; border-radius:999px;
    padding:10px 18px; line-height:1;
    transition:opacity .25s ease, transform .25s ease;
    box-shadow:0 6px 16px rgba(254,161,22,.35);
  }
  .news-card:hover .news-img-wrapper:hover .btn-hover{
    opacity:1; pointer-events:auto; transform:translate(-50%,-50%) scale(1);
  }
  
  /* Текстовая часть */
  .news-body{ padding:1rem 1.25rem 1.5rem; }
  .news-tag{ color:#ff0000; margin:0 0 .25rem; }
  .news-title{ color:#00484e; }
  .news-text{ font-size:.9rem; text-align:justify; margin-bottom:0; }
  
  /* ——— АДАПТИВ ——— */
  
  /* База: мобильный (до 360) — карточка тянется на 100% колонки */
  .news-card{ width:100%; }
  
  /* ≥360px — чуть уютнее отступы и кнопка поменьше */
  @media (min-width:360px){
    .news-body{ padding:1.1rem 1.25rem 1.6rem; }
    .news-img-wrapper .btn-hover{ padding:10px 20px; font-size:.95rem; }
  }
  
  /* ≥768px — 2 в ряд (ты уже используешь col-md-6), ширина карточки = ширина колонки */
  @media (min-width:768px){
    .news-card{ width:100%; }
  }
  
  /* ≥1440px — 3 в ряд, фиксированная «визуальная» ширина карточки 412px и авто-центрирование */
  @media (min-width:1440px){
    .portfolio-item{ display:flex; }
    .news-card{ width:412px; margin-left:auto; margin-right:auto; }
    /* Общая высота будет зависеть от текста; если нужна строгая высота, задавай max-height */
  }
  
  /* Карточки новости */

  /* Кнопка меню */
  
.call-btn{
    position: relative;
    display: inline-flex;          /* ширина = по содержимому/мин-ширине */
    align-items: center;
    justify-content: center;
    min-width: 200px;              /* СДЕЛАЛИ БОЛЬШОЙ РАЗМЕР КНОПКИ */
    height: 40px;                  /* стабильная высота */
    padding: 0 18px;               /* боковые отступы */
    overflow: hidden;
  }
  
  /* Стэкаем оба текста друг на друга */
  .call-btn span {
    position: absolute;
    left: 0; right: 0;
    opacity: 0;
    transition: opacity .3s ease-in-out;
  }
  
  .call-btn span:first-child {
    animation: showOrder 6s infinite;
  }
  .call-btn span:last-child {
    animation: showPhone 6s infinite;
  }
  
  /* 1 секунда "Заказать звонок" */
  @keyframes showOrder {
    0%   { opacity: 1; }
    33.3%{ opacity: 1; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
  }
  
  /* 2 секунды "Телефон" */
  @keyframes showPhone {
    0%   { opacity: 0; }
    33.3%{ opacity: 0; }
    34%  { opacity: 1; }
    100% { opacity: 1; }
  }
  
  
  /* Кнопка меню */

  
  