:root {
    --primary: #2E86AB;
    --primary-dark: #1B5E7A;
    --secondary: #F26419;
    --accent: #A23B72;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.vibe {
    display: grid;
    font-style: italic;
    margin-left: auto;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 88px;
    margin-right: 10px;
}

.logo span {
    font-family: Montserrat;
    font-weight: 600;
    font-size: 1.1rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn.primary {
    background-color: #1b5d7a2d;
    border-radius:10px;
    font-style: italic;
    font-size: 15px;
    color: white;
    border: 1.5px solid var(--primary);
    line-height: 1.2;
}

.btn.primary2 {
    background-color: #1b5d7a2d;
    border-radius:10px;
    font-style: italic;
    font-size: 15px;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    line-height: 1.2;
}

@media (max-width: 830px) {
    .btn.primary {
        position: relative;
        bottom: 10px;
    }
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn.primary2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--primary);
}

.btn.secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 50px;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.9);
    color: var(--dark);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

#card1 {
    top: 15px;
    right: 120px;
    animation-delay: 0s;
    background: linear-gradient(135deg, #FFD166, #FF9E00);
    color: var(--dark);
}

#card2 {
    top: 160px;
    right: 40px;
    animation-delay: 1s;
    background: linear-gradient(135deg, #06D6A0, #049C75);
    color: white;
}

#card3 {
    top: 270px;
    right: 180px;
    animation-delay: 2s;
    background: linear-gradient(135deg, #118AB2, #0A5A7A);
    color: white;
}

/* Новая карточка */
#card4 {
    top: 60px;
    right: 300px;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, #A23B72, #7D2C58);
    color: white;
}

/* Services Preview */
.services-preview {
    padding: 5rem 0;
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.3rem;
}

.service-card p {
    padding: 0 1rem 1.5rem;
    color: var(--gray);
}

.text-center {
    text-align: center;
}

/* Special Offer */
.special-offer {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.special-offer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.special-offer p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* NDS Banner */
.nds-banner {
    padding: 2rem 0;
    background-color: var(--secondary);
    color: white;
}

.nds-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-bottom: 2px solid var(--secondary);
    padding: 3.2rem 0;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
    font-size: 2.3rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.accreditation {
    margin: 2rem 0;
}

.accreditation-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.accreditation-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.branches {
    margin: 2rem 0;
}

.branch-card {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
}

/* Services Page */
.services-tabs {
    padding: 3rem 0;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    background: white;
    border: 2px solid var(--light);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-button:hover:not(.active) {
    border-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane p {
    font-size: 17px;
    padding: 5px;
}

.tab-pane.active {
    display: block;
}

.price-list {
    display: grid;
    gap: 2rem;
}

.price-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.price-category h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light);
}

.price-item:last-child {
    border-bottom: none;
}

.special-conditions {
    padding: 3rem 0;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.condition-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.condition-card:hover {
    transform: translateY(-5px);
}

.free-testing {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--accent), #7D2C58);
    color: white;
    text-align: center;
}

.free-testing h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.free-testing p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Contacts Page */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-item p {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: rgb(165, 165, 165);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.work-area {
    width: 100%;
    background: var(--primary);
    padding: 2rem 0;
    text-align: center;
    border-radius: 10px;
}

.work-area h2 {
    color: white;
    margin-bottom: 1rem;
}

.work-area p {
    color: white;
}

.close-menu {
    display: none;
}

/* Hero Services Section */
.hero-services {
    background: linear-gradient(#53463c, #9e9e9e);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.services-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.service-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.service-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.service-slide .slide-content {
    flex: 1;
    padding-right: 2rem;
}

.service-slide .slide-content h1,
.service-slide .slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-slide .slide-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slide-visual {
    flex: 1;
    position: relative;
    height: 300px;
}

.slide-image {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.service-features {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: var(--secondary);
    font-weight: bold;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px) rotate(-5deg);
}

.nav-btn:nth-child(1) { animation-delay: 0.1s; }
.nav-btn:nth-child(2) { animation-delay: 0.2s; }
.nav-btn:nth-child(3) { animation-delay: 0.3s; }
.nav-btn:nth-child(4) { animation-delay: 0.4s; }
.nav-btn:nth-child(5) { animation-delay: 0.5s; }
.nav-btn:nth-child(6) { animation-delay: 0.6s; }

.nav-btn:nth-child(odd) {
    transform: translateY(15px) rotate(3deg);
}

.nav-btn:nth-child(even) {
    transform: translateY(-10px) rotate(-2deg);
}

.nav-btn:nth-child(3) {
    transform: translateY(8px) rotate(5deg);
}

.nav-btn:nth-child(4) {
    transform: translateY(-5px) rotate(-3deg);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.nav-btn:hover:not(.active) {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 6px 15px rgba(255,255,255,0.2);
}

.nav-btn:hover:not(.active)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    animation: gentleShake 0.5s ease-in-out;
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.nav-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-btn:hover .nav-icon {
    transform: scale(1.2) rotate(10deg);
}

.nav-btn.active .nav-icon {
    transform: scale(1.3);
}

.nav-text {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn[data-slide="info"]:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,215,0,0.3));
}

.nav-btn[data-slide="beton"]:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(52,152,219,0.3));
}

.nav-btn[data-slide="grunt"]:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(46,204,113,0.3));
}

.nav-btn[data-slide="scheben"]:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(155,89,182,0.3));
}

.nav-btn[data-slide="pesok"]:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(230,126,34,0.3));
}

.nav-btn[data-slide="mobilization"]:hover:not(.active) {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(251, 255, 0, 0.3));
}

.nav-btn[data-slide="beton"] {
    position: relative;
    top: 16px;
}

.nav-btn[data-slide="scheben"] {
    position: relative;
    top: 16px;
}

.carousel-arrows {
    display: flex;
    gap: 0.5rem;
}

.nav-btn[data-slide="mobilization"] {
    position: relative;
    top: 16px;
}

@media (max-width: 1100px) {
    .carousel-nav {
        gap: 0.3rem;
    }
    
    .nav-btn {
        padding: 0.6rem 1rem;
        transform: none !important;
        animation: none;
        opacity: 1;
    }
    
    .nav-btn.active {
        transform: scale(1.05) !important;
    }
    
    .nav-btn:hover:not(.active) {
        transform: none !important;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-btn .nav-icon {
        margin: 0;
    }
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 52px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover::before {
    opacity: 1;
}

/* Эффект пульсации для активной кнопки */
.nav-btn.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 53px;
    background: var(--primary);
    opacity: 0.3;
    z-index: -1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.arrow-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.arrow-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}


/* Responsive Adjustments */
@media (max-width: 1100px) {
    .service-slide {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    .service-slide .slide-content {
        padding-right: 0;
        margin-bottom: 1.5rem;
        order: 1;
    }

    .slide-visual {
        order: 2;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Скрываем плавающие карточки на мобильных */
    .floating-card {
        display: none !important;
    }
    
    .slide-image {
        display: none;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carousel-nav {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel-arrows {
        order: 1;
    }
    
    .nav-btn .nav-text {
        display: none;
    }
    
    .nav-btn {
        padding: 0.8rem;
    }
}

/* Advantages Section */
.advantages {
    padding: 5rem 0;
    background: #f8f9fa; /* Fallback цвет */
    background-image: url('../images/advantages-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-bottom: 5px solid var(--secondary);
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Затемнение */
    z-index: 1;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: white; /* Явно укажите цвет */
    position: relative; /* Добавьте это */
    z-index: 10; /* Добавьте это */
    opacity: 1 !important; /* Принудительно сделайте видимым */
    visibility: visible !important; /* Принудительно сделайте видимым */
}

.advantages-content {
    position: relative;
    z-index: 10;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(271px, 1fr));
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.advantage-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.637);
    transition: all 0.4s ease;
    padding-bottom: 133.33%; /* Соотношение 3:4 */
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* ОБНОВЛЕННЫЙ ОВЕРЛЕЙ - светлый верх, темный низ */
.advantage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 20%,
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.7) 80%,
        rgba(0, 0, 0, 0.9) 100%);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
}

.advantage-overlay {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.95) 100%);
}

.advantage-card-highlight .advantage-overlay {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 20%,
        rgba(0, 0, 0, 0.35) 50%, 
        rgba(0, 0, 0, 0.75) 80%,
        rgba(0, 0, 0, 0.92) 100%);
}

.advantage-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 1.5rem;
    width: 100%;
    transition: transform 0.3s ease;
}

.advantage-card:hover .advantage-content {
    transform: translateY(-5px);
}

.advantage-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.advantage-card p {
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Individual advantage card backgrounds */

.advantage-card-price {
    background-image: url('../images/advantage-price.jpg') !important;;
}

.advantage-card-schedule {
    background-image: url('../images/advantage-schedule.jpg') !important;;
}

.advantage-card-mobilization {
    background-image: url('../images/advantage-free.jpg') !important;;
}

.advantage-card-accuracy {
    background-image: url('../images/advantage-accuracy.jpg') !important;;
}

.advantage-card-support {
    background-image: url('../images/advantage-support.jpg') !important;;
}

.advantage-card-vat {
    background-image: url('../images/advantage-vat.jpg') !important;;
}

/* Fallback background colors if images are not available */
.advantage-card-mobilization {
    background-color: #1a3d4d;
}

.advantage-card-price {
    background-color: #8c3d10;
}

.advantage-card-schedule {
    background-color: #5d2545;
}

.advantage-card-accuracy {
    background-color: #0d3b66;
}

.advantage-card-support {
    background-color: #4a235a;
}

.advantage-card-vat {
    background-color: #1a5c2a;
}

/* Search Styles */
.header-search {
    position: relative;
    margin-left: 2rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 300px;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.2);
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    background: transparent;
    font-size: 0.9rem;
    color: var(--dark);
}

#search-input::placeholder {
    color: var(--gray);
}

#search-button {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

#search-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-source {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.search-result-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.search-result-preview {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-result-highlight {
    background-color: #fff3cd;
    color: var(--dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

/* Search highlight in content */
.search-highlight {
    background-color: #ffeb3b;
    color: var(--dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    animation: highlight-pulse 2s ease-in-out;
}

.search-carousel-highlight {
    animation: carousel-highlight 2s ease-in-out;
    position: relative;
}

/* Global Search Styles */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--gray);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-results-content {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-title a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
}

.search-result-title a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.search-result-preview {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.search-result-url {
    font-size: 0.8rem;
    color: var(--success);
    font-family: monospace;
}

.search-highlight {
    background-color: #fff3cd;
    color: var(--dark);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-results-hint {
    font-size: 0.9rem;
}

.search-show-all {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.search-show-all a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.search-show-all a:hover {
    text-decoration: underline;
}

.search-error {
    text-align: center;
    padding: 1.5rem;
    color: var(--danger);
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-text {
    font-weight: 500;
}

/* Enhanced search container for global search */
.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .search-results {
        left: 0;
        right: 0;
        margin: 0 1rem;
    }
    
    .search-result-item {
        padding: 0.8rem;
    }
}

@keyframes highlight-pulse {
    0% { background-color: #ffeb3b; }
    50% { background-color: #ffd54f; }
    100% { background-color: #ffeb3b; }
}

@keyframes carousel-highlight {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.3);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Responsive search */
@media (max-width: 1100px) {
    .header-search {
        margin-left: 1rem;
    }
    
    .search-container {
        min-width: 250px;
    }
}

@media (max-width: 1100px) {
    .header-search {
        order: 3;
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-container {
        min-width: auto;
        width: 100%;
    }
    
    .search-results {
        left: 0;
        right: 0;
    }
}

/* Promotions Page Styles */
.promotions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
    align-items: start;
}

.promotion-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.promotion-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.promotion-badge {
    position: absolute;
    top: -10px;
    right: 2rem;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.promotion-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.promotion-card.featured h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.promotion-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.promotion-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.discount-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.loyalty-levels {
    margin: 1.5rem 0;
}

.loyalty-level {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
}

.loyalty-level:last-child {
    border-bottom: none;
}

/* NDS GIF Animation Styles */
.nds-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nds-gif {
    height: 100px;
    opacity: 0;
    transform: scale(0.8) translateX(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    position: absolute;
    right: 0;
    bottom: -40px;
    z-index: 2;
}

.nds-gif.show {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.nds-gif.hiding {
    opacity: 0;
    transform: scale(0.8) translateX(20px);
}

/* GIF pulse effect when visible */
@keyframes gif-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.nds-gif.pulse {
    animation: gif-pulse 0.5s ease-in-out;
}

/* Mobile adaptation for NDS GIF */
@media (max-width: 1100px) {
    .nds-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .nds-gif {
        position: absolute;
        bottom: -25px;
    }
}

/* Адаптация навигации для мобильных устройств */
@media (max-width: 1100px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }
    
    .promotion-card.featured {
        grid-column: 1;
    }
    
    .promotion-details {
        flex-direction: column;
        gap: 1rem;
    }

    /* NDS Banner */
    .nds-banner {
        padding: 1rem 0;
        text-align: center;
    }
    
    .nds-badge {
        display: block;
        margin: 0 auto 0.5rem;
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nds-content p {
        text-align: center;
    }
}

/* Улучшение бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 1100px) {
    .burger {
        display: flex;
    }
}

/* Добавьте эти стили в конец файла style.css */

/* Мобильная адаптация для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    /* Header и навигация */
    header .container {
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }
    
    .logo {
        flex: 1;
        min-width: 200px;
    }
    
    .logo img {
        height: 70px;
    }
    
    .logo span {
        font-size: 0.9rem;
    }
    
    .header-search {
        order: 3;
        margin: 0.5rem 0 0;
        width: 100%;
    }
    
    .search-container {
        min-width: auto;
        width: 100%;
    }

    /* Hero Services Section */
    .hero-services {
        padding: 2rem 0;
    }
    
    .services-carousel {
        height: auto;
        min-height: 400px;
    }
    
    .service-slide .slide-content h1,
    .service-slide .slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .service-slide .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    
    .floating-card {
        display: none; /* Скрываем плавающие карточки на очень маленьких экранах */
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }

    /* Carousel Controls */
    .carousel-controls {
        margin-top: 1rem;
    }
    
    .carousel-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-text {
        display: none;
    }
    
    .carousel-arrows {
        margin-top: 0.5rem;
    }
    
    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Advantages Section */
    .advantages {
        padding: 3rem 0;
    }
    
    .advantages h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .advantage-content {
        padding: 1rem;
    }
    
    .advantage-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .advantage-card p {
        font-size: 0.85rem;
    }

    /* Special Offer */
    .special-offer {
        padding: 3rem 0;
        text-align: center;
    }
    
    .special-offer h2 {
        font-size: 1.6rem;
    }
    
    .special-offer p {
        font-size: 1rem;
    }

    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    /* Service Features */
    .service-features {
        margin: 1rem 0;
        padding-left: 1rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    /* Price Info */
    .price-info {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .price-info .btn {
        width: 100%;
    }
}


/* Улучшенная адаптация для панели навигации */
@media (max-width: 1100px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
        min-width: 250px;
    }
    
    .header-search {
        order: 3;
        margin: 0.8rem 0 0;
        width: 100%;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Overlay для мобильного меню */
    nav ul::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    nav ul.active::before {
        opacity: 1;
        left: 80%;
    }
}


/* Предотвращение горизонтального скролла */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 95%;
    padding: 0 10px;
}

/* Улучшенная читаемость текста на мобильных */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    .advantage-content {
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    }
}

/* Адаптация анимаций для мобильных устройств */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1100px) {
    .hero-services {
        padding: 2rem 0;
    }

    .slide-content {
        margin-bottom: 2rem;
    }

    .service-slide {
        gap: 0.4rem; 
    }
    
    .service-slide {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    .service-slide .slide-content {
        padding-right: 0;
        margin-bottom: 1.5rem;
        order: 1;
    }

    .service-slide .slide-content h1,
    .service-slide .slide-content h2 {
        font-size: 1.7rem;
    }
    
    /* Плавающие карточки для мобильных */
    .floating-card {
        position: relative;
        display: inline-block;
        margin: 0.5rem;
        animation: none;
        transform: none;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    #card1, #card2, #card3, #card4 {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        margin: 0.3rem;
        animation: none;
    }
    
    .floating-cards-container {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin: 1rem 0;
        gap: 0.5rem;
    }

    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: auto !important;
        flex: 1;
        min-width: 140px;
        margin-bottom: 0 !important;
        text-align: center;
    }
}

/* Адаптация slide-visual для мобильных устройств */
@media (max-width: 1100px) {
    
    .floating-card {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        animation: none !important;
        transform: none !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
        flex: 1;
        min-width: 140px;
        max-width: 180px;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .floating-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    #card1, #card2, #card3, #card4 {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        animation: none !important;
        animation-delay: 0s !important;
    }
    
    /* Специфичные стили для каждой карточки */
    #card1 {
        background: linear-gradient(135deg, #FFD166, #FF9E00) !important;
        color: var(--dark);
    }
    
    #card2 {
        background: linear-gradient(135deg, #06D6A0, #049C75) !important;
        color: white;
    }
    
    #card3 {
        background: linear-gradient(135deg, #118AB2, #0A5A7A) !important;
        color: white;
    }

    #card4 {
        background: linear-gradient(135deg, #A23B72, #7D2C58) !important;
        color: white;
    }
}

/* Дополнительная адаптация для маленьких экранов */
@media (max-width: 768px) {
    
    .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        min-width: 120px;
        max-width: 150px;
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        min-height: 55px;
    }
}

/* Убедимся, что на мобильных плавающие карточки видны */
@media (max-width: 800px) {
    .floating-card {
        display: none !important;
    }
}

/* Enhanced Mobile Menu Styles */
@media (max-width: 1100px) {
    /* Improved mobile menu overlay */
    nav ul::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(104, 104, 104, 0.6);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    nav ul.active::before {
        opacity: 1;
        left: 0;
    }

    /* Smooth menu animation */
    nav ul {
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        left: -100%;
    }
    
    nav ul.active {
        left: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }

    /* Improved burger animation */
    .burger {
        transition: transform 0.3s ease;
        z-index: 1002;
    }
    
    .burger.active {
        transform: rotate(90deg);
    }
    
    .burger span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background-color: var(--primary);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background-color: var(--primary);
    }

    /* Enhanced menu items */
    nav ul li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for menu items */
    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.15s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.25s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(6) { transition-delay: 0.35s; }

    /* Improved menu links */
    nav ul li a {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        padding-left: 2.5rem;
        color: var(--primary);
    }
    
    nav ul li a::before {
        content: '›';
        margin-right: 1rem;
        opacity: 0.5;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover::before {
        opacity: 1;
        margin-right: 1.5rem;
        color: var(--primary);
    }

    /* Body scroll lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Additional smooth transitions for desktop */
@media (min-width: 1101px) and (max-width: 1300px) {
    nav ul li a {
        transition: color 0.3s ease, transform 0.2s ease;
    }
    
    nav ul li a:hover {
        transform: translateY(-2px);
    }
}

/* Уменьшение поиска при 1300px */
@media (min-width: 1101px) and (max-width: 1300px) {
    .header-search {
        margin-left: 1rem;
    }
    
    .search-container {
        min-width: 150px;
        width: 150px;
    }
    
    #search-input {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    #search-input::placeholder {
        font-size: 0.8rem;
    }
    
    #search-button {
        width: 28px;
        height: 28px;
    }
    
    #search-button svg {
        width: 16px;
        height: 16px;
    }
}


/* Градиентный текст с окантовкой и односторонней анимацией */
.gradient-text {
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--accent) 50%, 
        #06D6A0 75%, 
        #118AB2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    display: inline-block;
    background-size: 400% 100%;
    
    /* Бесконечная анимация в одну сторону */
    animation: gradient-flow 20s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 400% center;
    }
}

/* Новая структура изображений для слайдов */
.image-grid {
    display: flex;
    width: 100%;
    height: 430px;
    gap: 7px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    bottom: 90px;
}

.main-image {
    flex: 2; /* 2/5 ширины */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.side-images {
    flex: 3; /* 3/5 ширины */
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 7px;
}

.side-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Адаптация для мобильных устройств */
@media (max-width: 1100px) {
    .image-grid {
        flex-direction: column;
        height: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .main-image {
        flex: none;
        height: 200px;
    }
    
    .side-images {
        flex: none;
        flex-direction: row;
        height: 150px;
    }
    
    .side-image {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .image-grid {
        max-width: 100%;
    }
    
    .side-images {
        height: 120px;
    }
    
    .main-image {
        height: 180px;
    }
}

/* Дополнительные стили для улучшения внешнего вида */
.image-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.main-image, .side-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Плавное появление */
.image-grid {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 530px) {
    .nds-gif {
        display: none;
    }
}

@media (max-width: 1100px) {
    .hero-services {
        padding: 3rem 0;
        min-height: 400px;
        display: flex;
        align-items: center;
    }
    
    .services-carousel {
        height: 400px;
        min-height: 400px;
    }

    .image-grid {
        display: none;
    }
}

/* Обновленные стили для видео-фона */

#video-hero {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет весь контейнер */
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Легкое затемнение */
    z-index: 2;
}

.video-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1200px) {
    #video-hero {
        height: 500px;
    }
}

@media (max-width: 530px) {
    #video-hero {
        height: 250px !important;
    } 
}

.corner-photo {
    position: absolute;
    bottom: -55px;
    left: 0;
    width: 320px;
    z-index: 10;
}

@media (max-width: 768px) {
    .contacts-grid {
        display: block;
    }
}

/* Стили для фонового изображения на странице контактов */
.contacts-content {
    background-image: url("../images/phone.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    padding: 3rem 0;
}

/* Добавляем затемняющий overlay для лучшей читаемости текста */
.contacts-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contacts-content .container {
    position: relative;
    z-index: 2;
}

/* Обновляем цвета текста для лучшей читаемости на темном фоне */
.contact-info {
    
    color: white;
}

.contact-info h2 {
    color: white;
}

.contact-item {
    color: white;
}

.contact-item p {
    color: #f0f0f0;
}

.contact-form h3 {
    color: white;
}

.special-offers-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #007bff;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.special-offers-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
}

.special-offers-content {
    max-width: 800px;
}

.special-offers-list {
    margin: 20px 0;
    padding-left: 20px;
}

.special-offers-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #495057;
}

.special-offers-note {
    font-style: italic;
    color: #6c757d;
    margin: 25px 0;
    border-left: 3px solid #28a745;
    padding-left: 15px;
}

.special-offers-section .btn {
    margin-top: 20px;
}

.about-content {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.section-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.section-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.intro-text {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Секция миссии */
.mission-section {
    margin-bottom: 3rem;
}

.mission-card {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.mission-icon {
    margin-right: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.mission-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark);
}

/* Секция стандартов */
.standards-section {
    margin-bottom: 3rem;
}

.standards-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.standards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.standard-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.standard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.standard-icon {
    margin-right: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.standard-item p {
    line-height: 1.5;
    margin: 0;
}

/* Секция партнерства */
.partnership-section {
    margin-bottom: 3rem;
}

.partnership-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.partnership-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.company-name {
    font-weight: 700;
    font-style: italic;
}

/* Секция преимуществ */
.advantages-section {
    margin-bottom: 3rem;
}

.advantages-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.advantages-list {
    margin-bottom: 1.5rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.advantage-check {
    color: var(--success);
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.advantages-note {
    text-align: center;
    font-style: italic;
    color: var(--gray);
}

/* Секция призыва к действию */
.cta-section {
    margin-bottom: 3rem;
}

.cta-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid var(--secondary);
}

.cta-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cta-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

/* Аккредитация */
.accreditation {
    margin-bottom: 3rem;
}

.accreditation h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.accreditation-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.accreditation-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Правая колонка */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stats-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.stats-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
}

.branches {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.branches h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.branch-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
}

.branch-icon {
    margin-right: 1rem;
    color: var(--primary);
}

.branch-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.values-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.values-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.value-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light);
}

.value-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.value-title {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Адаптация для мобильных устройств */
@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .standards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    .mission-card {
        flex-direction: column;
        text-align: center;
    }
    
    .mission-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .standard-item {
        flex-direction: column;
        text-align: center;
    }
    
    .standard-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        padding: 2rem 0;
    }
    
    .section-intro h2 {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .mission-card,
    .partnership-card,
    .cta-card,
    .stats-card,
    .branches,
    .values-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

