/* PRECIWORKS POPUP KONTAKT FORMA */

.confirm-modal{

position:fixed;
left:0;
top:0;
width:100%;
height:100%;
display:none;
justify-content:center;
align-items:center;
background:rgba(0,0,0,.65);
backdrop-filter:blur(6px);
z-index:999999;

}

.confirm-modal.active{

display:flex;

}

.confirm-box{

width:95%;
max-width:650px;

background:#111827;

border-radius:15px;

padding:40px;

color:#fff;

box-shadow:0 20px 50px rgba(0,0,0,.45);

animation:popup .25s ease;

}

@keyframes popup{

from{

opacity:0;
transform:translateY(20px) scale(.98);

}

to{

opacity:1;
transform:translateY(0) scale(1);

}

}

.confirm-box h2{

font-size:28px;

margin-bottom:20px;

}

.confirm-box p{

line-height:1.8;

color:#cbd5e1;

margin-bottom:30px;

}

#captchaHolder{

margin-bottom:25px;

}

.confirm-buttons{

display:flex;

gap:15px;

justify-content:flex-end;

}

.confirm-buttons button{

border:none;

padding:13px 28px;

border-radius:8px;

font-weight:600;

cursor:pointer;

transition:.25s;

}

#cancelModal{

background:#374151;

color:#fff;

}

#cancelModal:hover{

background:#4b5563;

}

#sendForm{

background:#4f46e5;

color:#fff;

}

#sendForm:hover{

background:#4338ca;

}


#sendForm:disabled{

background:#4b5563;
cursor:not-allowed;
opacity:.6;
transform:none;

}

#sendForm:not(:disabled){

background:#4f46e5;

}

#sendForm:not(:disabled):hover{

background:#4338ca;

}


/* ===== PRECIWORKS THEME (CLEAN, NON-DESTRUCTIVE) ===== */
:root {
  --primary: #0B3C5D; /*#0B3C5D;*/
  --primary-light: #1E5F8A;  /*#1E5F8A;*/
  --primary-dark: #072A40;

  --accent: #00AEEF;
  --accent-hover: #22C1FF;

  --bg-main: #0F172A;
  --bg-card: #1E293B;
  --border: #334155;

  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
}

/* GLOBAL */
body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* NAVBAR */
.navbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

/* CARDS / SECTIONS */
.card, .box, .content, .container-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  border: none;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* LINKS */
a {
  color: var(--accent);
  transition: 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* INPUTS */
input, textarea, select {
  background: #020617;
  border: 1px solid var(--border);
  color: var(--text-main);
}

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 5px var(--accent);
}

/* FOOTER */
footer {
  background: var(--primary-dark);
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
}


/********** Template CSS **********/
:root {
    --primary: #0B3C5D;
    --light: #1E5F8A;
    --dark: #072A40;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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-weight: 500;
    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;
}

.btn-outline-body {
    color: var(--primary);
    border-color: #777777;
}

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


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/novosti.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.carousel-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 1.8s ease-in-out;
}

.owl-carousel-item {
    height: 100vh;
}

.owl-carousel-item video,
.owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
}

.owl-carousel-inner {
    position: relative;
    z-index: 2;
}

.owl-carousel-item {
    position: relative;
    overflow: hidden;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}

.fact-item p {
  color: gray;
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

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

.service-item:hover * {
    color: #FFFFFF;
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}
/* ===== FAST MODAL THEME ===== */

.modal-content {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* HEADER */
.modal-header {
    background: #072A40;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 24px;
}

.modal-title {
    color: #E2E8F0;
    font-weight: 600;
}

/* CLOSE BUTTON */
.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

/* BODY */
.modal-body {
    background: #0F172A;
    color: #94A3B8;
    padding: 24px;
}

/* TITLES */
.modal-body h5 {
    color: #22C1FF;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* TEXT */
.modal-body p {
    line-height: 1.7;
}

/* BACKDROP */
.modal-backdrop.show {
    opacity: 0.75;
    background: #000;
}

/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    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;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

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

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

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


/* ===== IMPROVED NAVBAR ===== */
.navbar {
  background: rgba(7, 42, 64, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 174, 239, 0.15);
  padding: 0.8rem 1.5rem;

  transition: all 0.3s ease;
}

.navbar-brand {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: var(--text-muted);
  margin: 0 8px;
  position: relative;
  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--accent);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link.active {
  color: var(--accent);
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar .btn {
  background: var(--accent);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

.navbar .btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.4);
}

/* ===== NEWS SECTION ===== */

.news-section{
    background:#071633;
    padding:100px 0;
}

.news-header{
    margin-bottom:40px;
}

.news-mini-title{
    color:#00BFFF;
    letter-spacing:3px;
    font-size:14px;
    font-weight:600;
    display:block;
    margin-bottom:10px;
}

.news-header h1{
    color:#fff;
    font-size:52px;
    font-weight:800;
    margin:0;
}

/* GRID */

.news-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:25px;
    margin-bottom:25px;
}

/* FEATURED */

.featured-post{
    background:linear-gradient(180deg,#0B2347,#08172F);
    border-radius:24px;
    padding:45px;
    min-height:650px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    border:1px solid rgba(255,255,255,0.08);

    grid-row:span 2;
}

.post-date{
    color:#00BFFF;
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
    margin-bottom:20px;
    display:block;
}

.featured-post h2{
    color:#fff;
    font-size:48px;
    line-height:1.2;
    margin-bottom:20px;
}

.featured-post p{
    color:#AAB6CC;
    line-height:1.8;
    margin-bottom:30px;
}

.featured-post a{
    color:#00BFFF;
    text-decoration:none;
    font-weight:700;
}

/* SMALL POSTS */

.small-post{
    background:#0B1D3A;
    border-radius:22px;
    padding:30px;
    min-height:310px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    border:1px solid rgba(255,255,255,0.08);
}

.small-post h3{
    color:#fff;
    font-size:24px;
    margin-bottom:15px;
}

.small-post p{
    color:#94A3B8;
    line-height:1.7;
}

/* BOTTOM */

.bottom-posts{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:25px;
}

.bottom-post{
    background:#0B1D3A;
    border-radius:20px;
    padding:25px;
    min-height:180px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    border:1px solid rgba(255,255,255,0.08);
}

.bottom-post h4{
    color:#fff;
    font-size:20px;
    margin:0;
}

/* RESPONSIVE */

@media(max-width:1200px){

    .bottom-posts{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:992px){

    .news-grid{
        grid-template-columns:1fr;
    }

    .bottom-posts{
        grid-template-columns:repeat(2,1fr);
    }

    .featured-post{
        min-height:500px;
    }

}

@media(max-width:600px){

    .bottom-posts{
        grid-template-columns:1fr;
    }

    .featured-post h2{
        font-size:32px;
    }

}
