:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-light: #e0e0e0;
    --text-dark: #a0a0a0;
    --accent-color: #c2ad0e;
    --accent-hover: #cccccc;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-strong: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

header {
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
    padding: 25px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 5px 20px var(--shadow-strong);
    position: relative;
    z-index: 10000;
    transition: all 0.3s ease;
    height: auto;
    overflow: visible;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-width: 175px;
    height: auto;
    margin-right: 15px;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, max-width 0.3s ease, opacity 0.3s ease;
}

.logo img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px var(--accent-hover);
}

.CompanyName-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 10px 0 0;
}

.CompanyName {
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: font-size 0.3s ease;
}

nav {
    background-color: var(--bg-tertiary);
    padding: 15px 50px;
    box-shadow: 0 2px 10px var(--shadow-medium);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.navMenu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.navMenu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navMenu a:hover::before,
.navMenu a:focus::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navMenu a:hover,
.navMenu a:focus {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.navMenu.has-dropdown {
    position: relative;
}

.navMenu.has-dropdown > a::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    transform: translateY(-5px);
    background: rgba(20, 20, 20, 0.98);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    list-style: none;
    margin: 0;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, display 0s 0.25s;
    z-index: 10001;
}

.dropdown-menu::before {
    display: none;
}

.navMenu.has-dropdown:hover .dropdown-menu,
.navMenu.has-dropdown.dropdown-open .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s, display 0s;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(194, 173, 14, 0.15);
    color: var(--accent-color);
    padding-left: 25px;
}

.dropdown-menu li a:hover::before {
    transform: scaleY(1);
}

.dropdown-menu li a:hover::after {
    transform: scaleY(1);
}

.dropdown-menu li:first-child a:hover {
    border-radius: 12px 12px 0 0;
}

.dropdown-menu li:last-child a:hover {
    border-radius: 0 0 12px 12px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.close-menu-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 2em;
    cursor: pointer;
    z-index: 10003;
    padding: 10px;
    transition: color 0.3s ease;
}

.close-menu-btn:hover {
    color: var(--accent-color);
}

main {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0;
    align-items: center;
}

.content-block {
    padding: 40px;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    z-index: -1;
    border-radius: 12px;
}

.content-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-strong);
}


.photo {
    margin-bottom: 30px;
}

.photo img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-strong);
    transition: transform 0.4s ease;
}

.photo img:hover {
    transform: scale(1.05);
}

.text {
    flex: 1;
    min-width: unset;
}

.text h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.text p {
    font-size: 1.05em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.text ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 auto 20px;
    max-width: 400px;
}

.text ul li {
    background-color: var(--bg-tertiary);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.text ul li::before {
    content: '';
    margin-right: 0;
}

footer {
    background-color: var(--bg-secondary);
    color: var(--text-dark);
    text-align: center;
    padding: 25px 50px;
    margin-top: 60px;
    border-top: 1px solid var(--border-subtle);
    box-sizing: border-box;
    box-shadow: 0 -5px 20px var(--shadow-strong);
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

.img-comp-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-strong);
    flex-shrink: 0;
}

.img-comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-comp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    top: auto;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-color: var(--accent-color);
    opacity: 0.9;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease;
    will-change: left;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.img-comp-slider::before {
    content: '\f1b9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.img-comp-slider:hover {
    opacity: 1;
}

.img-comp-slider.dragging {
    box-shadow: none;
    opacity: 1;
}

.language-selector {
    position: relative;
    z-index: 1000;
    margin-left: auto;
    margin-right: 20px;
}

.current-language {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.current-language:hover {
    background-color: var(--bg-secondary);
    box-shadow: 0 0 10px rgba(194, 173, 14, 0.2);
    color: var(--accent-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    
    z-index: 10001;
}

.lang-dropdown.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.lang-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-light);
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
}

.lang-dropdown li:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

.lang-dropdown li.active {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    pointer-events: none;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* responsive styles */
@media (min-width: 992px) {
    .header-content-wrapper {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .hamburger-menu {
        display: none;
    }
    
    .close-menu-btn {
        display: none;
    }

    .language-selector {
        margin-right: 0;
        margin-left: auto;
    }
    
    .content {
        align-items: flex-start;
    }
    
    .content-block {
        width: 85%;
        max-width: 900px;
        background-color: var(--bg-secondary);
        box-shadow: 0 10px 30px var(--shadow-strong);
    }
    
    .content-block:nth-child(odd) {
        margin-right: auto;
        margin-left: 5%;
    }
    .content-block:nth-child(even) {
        margin-left: auto;
        margin-right: 5%;
    }

    .content-block .photo {
        margin-bottom: 0;
    }

    .content.services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: stretch;
    }

    .content.services-grid .content-block {
        width: 100%;
        max-width: 100%;
        margin: 0 !important; 
        flex-direction: column !important; 
        padding: 20px;
    }
    
    .content.services-grid .content-block .text {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    
    .content.services-grid .content-block .img-comp-container {
        width: 425px;
        max-width: 100%;
        flex: none;
        margin: 15px auto;
        height: 280px;
    }
}

@media (min-width: 1200px) {
    main {
        max-width: 1500px;
    }
    
    .content-block:nth-child(odd) {
        margin-left: 8%;
    }
    .content-block:nth-child(even) {
        margin-right: 8%;
    }
}

/* Большие мониторы */
@media (min-width: 1600px) {
    main {
        max-width: 1700px;
    }
    
    .content-block {
        max-width: 920px;
    }
    
    .content-block:nth-child(odd) {
        margin-left: 12%;
    }
    .content-block:nth-child(even) {
        margin-right: 12%;
    }
}

@media (min-width: 1920px) {
    main {
        max-width: 1900px;
    }
    
    .content-block {
        max-width: 820px;
    }
    
    .content-block:nth-child(odd) {
        margin-left: 10%;
    }
    .content-block:nth-child(even) {
        margin-right: 8%;
    }
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(194, 173, 14, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(194, 173, 14, 0.3);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-primary i {
    margin-right: 8px;
}

@media (max-width: 991px) {
    .mobile-only {
        display: inline-block;
    }
    
    .desktop-only {
        display: none;
    }

    .navMenu.has-dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7em;
        margin-left: 8px;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .navMenu.has-dropdown.dropdown-open > a::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        margin: 5px 0 0 0;
        width: 100%;
        min-width: auto;
        border-radius: 8px;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .dropdown-menu::before {
        display: none;
    }

    header {
        padding: 0 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        box-shadow: 0 5px 25px var(--shadow-strong);
        height: 100px;
        box-sizing: border-box;
        transition: height 0.3s ease, background 0.3s ease;
        overflow: visible;
        z-index: 10000;
    }
    
    .header-content-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease;
    }
    
    .logo img {
        max-width: 70px;
        margin-right: 0;
        transition: max-width 0.3s ease, opacity 0.3s ease;
    }
    
    .CompanyName-wrapper {
        flex-grow: 1;
        justify-content: center;
        margin: 0 10px;
    }
    
    .CompanyName {
        font-size: 1.6em;
        text-align: center;
    }

    .language-selector {
        margin-right: 0;
    }
    
    #mainHeader.sticky {
        height: 70px;
    }
    
    #mainHeader.sticky .header-content-wrapper {
        transform: translateY(-30px);
    }
    
    #mainHeader.sticky .logo img {
        max-width: 50px;
        opacity: 1;
    }
    
    #mainHeader.sticky .CompanyName {
        font-size: 1.4em;
    }
    
    main {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #mainHeader.sticky + main {
        padding-top: 70px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--bg-tertiary);
        box-shadow: -5px 0 20px var(--shadow-strong);
        transition: right 0.4s ease-in-out;
        padding-top: 80px;
        z-index: 10001;
        overflow-y: auto;
        border-top: none;
        border-bottom: none;
        display: block;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 30px;
        color: var(--text-light);
        font-size: 1.2em;
        border-bottom: 1px solid var(--border-subtle);
        background-color: transparent;
        border-radius: 0;
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--accent-color);
        transform: translateX(5px);
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 10002;
    }
    
    .close-menu-btn {
        display: block;
        color: var(--accent-color);
        z-index: 10003;
    }
    
    body.no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .logo img {
        max-width: 60px;
    }
    .CompanyName {
        font-size: 1.4em;
    }
    #mainHeader.sticky .logo img {
        max-width: 40px;
    }
    #mainHeader.sticky .CompanyName {
        font-size: 1.2em;
    }
    main {
        padding-top: 90px;
    }
    #mainHeader.sticky + main {
        padding-top: 60px;
    }
    nav {
        padding-top: 70px;
    }

    .language-selector {
        order: 1; 
        margin-right: 15px;
    }
    .hamburger-menu {
        order: 3; 
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 280px; /* Match the img-comp-container width */
    margin: 0 auto;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--accent-color);
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 280px;
    }
    .prev-btn {
        left: -40px;
    }
    .next-btn {
        right: -40px;
    }
}

@media (max-width: 479px) {
    .logo img {
        max-width: 50px;
    }
    .CompanyName {
        font-size: 1.2em;
        letter-spacing: 1px;
    }
    #mainHeader.sticky .logo img {
        max-width: 35px;
    }
    #mainHeader.sticky .CompanyName {
        font-size: 1.1em;
    }
    .navMenu a {
        padding: 8px 15px;
    }
    .content-block {
        padding: 25px 15px;
    }
    
    .carousel-container {
        width: calc(100% - 70px);
        max-width: 280px;
    }
    
    .prev-btn {
        left: -35px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .next-btn {
        right: -35px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .img-comp-container {
        max-height: none;
    }
    .img-comp-slider {
        width: 30px;
        height: 30px;
    }
    main {
        padding-top: 80px;
    }
    #mainHeader.sticky + main {
        padding-top: 55px;
    }
    nav {
        padding-top: 60px;
    }
}