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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background: url(../images/bg2.jpg) center fixed;
    background-size: cover;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: normal;
    color: #222;
    letter-spacing: 1.5px;
    line-height: 1.5em;
    overflow-x: hidden;
}

.maskbg {
    width: 100%;
    height: 100%;
    background-color: #232323a8;
}

ul {
    padding: 0;
    margin-left: 20px;
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

.content h2 {
    color: #ffed00;
    line-height: 1.5em;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2.16px;
}

.d14 h3, .d14 h2, .d14 h4 {
    position: relative;
    display: table;
    width: auto;
    margin: 15px auto;
    letter-spacing: 2px;
}

.dogovor {
    margin-top: 120px;
    color: #333;
    width: 100%;
    text-align: center;
}

.name {
    color: #333;
    padding: 2%;
    width: 96%;
    text-align: center;
}

.d14 h3 {
    color: #fff;
}

.d14 h2 {
    color: #222;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    border-bottom: 1px dashed #687b76;
    z-index: 1000;
    transition: all 0.5s ease-out;
    background-color: #404b53f0;
}

.nav.hidden {
	background-color: #343434;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
    border: none;
    top: 0;
}

.nav.hidden2 {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.nav-center {
    position: relative;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.menu {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 0 auto;
}

.menu li {
    margin: 0;
	padding: 15px 0;
}

.menu li a {
    display: flex;
    align-items: center;
    height: 22px;
    padding: 12px 15px;
    margin: 7px;
    color: #fff;
    line-height: 1.5em;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2.16px;
    text-decoration: none;
    transition: 0.3s ease-out;
}

.menu li a:hover {
    color: #ffed00;
}

.menu li a i {
    margin-right: 10px;
    font-size: 26px;
}

/* Logo */
.logo {
    margin: 0 auto;
    margin-top: 40px;
    padding: 50px 0 40px 0;
    width: 150px;
    height: 150px;
    background: url(../images/logo.png) center no-repeat;
    background-size: contain;
}

/* License */
.license img {
    width: 216px;
    height: 300px;
    margin: 15px auto;
    transition: 0.3s ease-out;
}

.license img:hover {
    box-shadow: 0 0 7px rgba(0,0,0,0.2);
}

/* Deviz */
.deviz {
    padding: 2%;
    text-align: center;
    width: 96%;
    border-bottom: 1px dotted #ffed00;
    border-top: 1px dotted #ffed00;
}

.deviz p {
    line-height: 1.5em;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2.16px;
    color: #fff;
}

/* Contacts Top */
.contacts-top {
    padding: 0 0 20px 0;
    width: 60%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.contacts-top a {
    display: block;
    margin: 15px;
    color: #ffed00;
    line-height: 1.5em;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2.16px;
    text-align: center;
    text-decoration: none;
}

.contacts-top a i {
    margin-right: 10px;
    padding-top: 10px;
    font-size: 30px;
    width: 46px;
    height: 35px;
    border-radius: 50%;
    color: #fded02;
}

/* Map and Contacts */
.contacts-map-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.map {
    width: 50%;
    padding: 15px;
}

.map img {
    width: 100%;
    height: auto;
}

.contacts {
    width: 50%;
    padding: 25px 15px 50px 15px;
}

.cs-nav {
    position: relative;
    width: 100%;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.cs-i {
    width: 46px;
    margin-right: 10px;
}

.cs-nav a, .cs-nav address {
    display: block;
    color: #fff;
    line-height: 1.5em;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2.16px;
    text-decoration: none;
    font-style: normal;
}

.cs-nav i {
    font-size: 30px;
    color: #fded02;
    text-align: center;
}

/* Bullets Block */
.bullets-container {
    width: 100%;
    padding: 20px 0;
}

.bulletsBlock {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
    padding-top: 30px;
}

.bullet-item {
    width: calc(33.333% - 30px);
    margin: 0 15px 30px;
    background: #fff;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.35s linear;
    padding: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bullet-item i {
    padding: 15px;
    margin: 0 auto 20px;
    height: 75px;
    width: 75px;
    line-height: 1.3em;
    font-size: 35px;
    color: #222;
    display: block;
    transition: all 0.35s ease;
    background: #fded02;
    border-radius: 50%;
}

.bullet-item p {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    margin-top: 20px;
}

.bullet-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Sections */
.section {
    position: relative;
    min-height: 100vh;
    padding: 80px 0;
}

#section1 {
    /*background: url(../images/pano.jpg) top no-repeat;*/
    background-size: cover;
    display: flex;
    align-items: center;
    background-color: #232323bf;
}

#section2 {
    background-color: #f1f1f1;
}

#section3 {
    background: url(../images/mask.png) repeat;
    background-color: #1b3e4a75;
    color: #fff;
}

#section4 {
    background: #1b3e4a;
    color: #fff;
}

/* Wrappers */
.wrapper, .wrapper1 {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    padding-top: 70px;
}

.content_table {
    display: table;
    width: 100%;
    height: 100%;
}

.content_center, .content_left, .content_right {
    display: table-cell;
    vertical-align: middle;
    padding: 15px;
}

.content_left {
    width: 60%;
}

.content_right {
    width: 40%;
}

/* Footer */
.footer {
    position: relative;
    padding: 20px 0;
    width: 100%;
    background-color: #1b3e4a;
    border-top: 1px dashed #18323c;
    text-align: center;
    font-size: 14px;
    color: #e0e0e0;
}

.footer p {
    color: #ccc;
    font-size: 12px;
}

/* Company Info */
.company_info p {
    margin-bottom: 20px;
}

/* Certificate */
.certificate {
    text-align: center;
}

.certificate p {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .bullet-item {
        width: calc(50% - 30px);
    }
    
    .contacts-top {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: #343434;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .menu.show {
        display: flex;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .menu li a {
        justify-content: center;
        padding: 15px;
    }
    
    .content_left, .content_right {
        display: block;
        width: 100%;
    }
    
    .contacts-map-container {
        flex-direction: column;
    }
    
    .map, .contacts {
        width: 100%;
    }
    
    .bullet-item {
        width: 100%;
        margin: 0 0 30px;
    }
    
    .dogovor {
        margin-top: 60px;
    }
    
    .logo {
        margin-top: 20px;
        padding: 30px 0;
    }
    
    .contacts-top {
        width: 100%;
        flex-direction: column;
    }
    
    .contacts-top a {
        width: 100%;
        margin: 5px 0;
    }
    
    .section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .wrapper {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .content h2 {
        font-size: 20px;
    }
    
    .name {
        font-size: 18px;
    }
    
    .deviz p {
        font-size: 16px;
    }
    
    .contacts-top a {
        font-size: 16px;
    }
    
    .cs-nav a, .cs-nav address {
        font-size: 16px;
    }
    
    .bullet-item {
        min-height: 250px;
    }
}

/* Animations */
.anim-elements {
    transition: all 1.5s ease;
    opacity: 0;
}

.animated {
    opacity: 1;
}

/* Shadowbox overrides */
#sb-title-inner, #sb-info-inner, #sb-loading-inner, div.sb-message {
    font-family: "Open Sans", sans-serif;
    font-weight: 200;
    color: #fff;
}

/* Font faces */
@font-face {
    font-family: "asf";
    src: url("../fonts/asf.otf") format("opentype");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "asf2";
    src: url("../fonts/asf2.otf") format("opentype");
    font-style: normal;
    font-weight: normal;
}

/* Секция отзывов */
#section5 {
    background: url(../images/mask.png) repeat;
    background-color: #1b3e4a75;
    color: #fff;
}

.top-s5 {
    height: 32px;
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
}

.review-item {
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
}

.review-item a {
    display: block;
    margin-bottom: 10px;
}

.review-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.review-item img:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.review-item p {
    font-size: 16px;
    color: #fff;
    margin-top: 10px;
    font-weight: 600;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .reviews-container {
        gap: 20px;
    }
    
    .review-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Модальное окно для изображений */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#imageModal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#imageModal.show {
    opacity: 1;
}

#imageModal.show img {
    transform: scale(1);
}

#imageModal .close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#imageModal .close:hover {
    color: #fded02;
}

/* Анимация появления */
@keyframes zoomIn {
    from {transform: scale(0.5); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}