/* Header Styles */
:root {
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.card-common {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.card-common:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.background-common {
    background-size: cover;
    background-position: center;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-header);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image,
.footer-brand .logo-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-image {
    width: 150px;
    height: 83px;
    background-image: url('../images/logo.svg');
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.header-contacts .phone:hover,
.header-contacts .email:hover,
.contact-item a:hover {
    color: var(--color-dark-blue);
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-white);
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    min-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .dropdown-menu li {
    width: 100%;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.3;
}

.nav-menu .dropdown-menu a:hover {
    color: var(--color-dark-blue);
    padding-left: 5px;
}


.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-dark-blue);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-contacts .phone,
.header-contacts .email {
    text-decoration: none;
    color: var(--color-dark-gray);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(23, 35, 55, 0.7), rgba(23, 35, 55, 0.7)), url('../images/d23157863056a205c1fd84ecb82577fc.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-white);
    padding: clamp(6rem, 15vw, 13rem) 0 clamp(5rem, 10vw, 10rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.1"><path fill="white" d="M0 0h1200v800H0z"/><path fill="none" stroke="white" stroke-width="2" d="M0 400h1200M600 0v800"/><circle cx="300" cy="200" r="50" fill="white"/><circle cx="900" cy="600" r="50" fill="white"/></svg>');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero .btn {
    position: relative;
    z-index: 1;
}

/* About Section */
.about {
    background-color: var(--color-light-gray);
    position: relative;
}

.about::before {
    content: '';
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.03"><path fill="%23172337" d="M0 0h1200v800H0z"/><rect x="200" y="100" width="200" height="150" fill="%23172337"/><rect x="800" y="550" width="200" height="150" fill="%23172337"/><circle cx="600" cy="400" r="80" fill="%23172337"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.advantage-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--color-dark-blue);
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--color-dark-gray);
}

.service-link::after {
    content: '→';
    transition: transform 0.3s;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* Projects Section */
.projects {
    background: url(../images/perspectiva.jpg);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 0;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(132, 151, 183, 0.7);
    z-index: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-item:hover {
    transform: translateY(-10px);
    background: var(--color-dark-blue);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Licenses Section */
/* Альтернативный вариант - плоский разворот */
.license-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.license-page-one,
.license-page-two {
    position: absolute;
    width: 300px;
    height: 400px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: all 0.5s ease;
}

.license-page-one {
    left: calc(50% - 310px);
    background-image: url(../images/Снимок\ экрана\ 2026-01-22\ 122927.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.license-page-two {
    left: calc(50% + 10px);
    background-image: url(../images/Снимок\ экрана\ 2026-01-22\ 122943.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Contact Section */

.contact {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Фон с псевдоэлементом */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/b2dacfd8f76c11f0a9ca7ebdba52a892_1.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Регулируем прозрачность только фона */
    z-index: 1;
}

/* Контейнер с контентом */
.contact > .container {
    position: relative;
    z-index: 2; /* Контент поверх фона */
    background: transparent; /* Прозрачный фон для контейнера */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-info h3 {
    color: var(--color-dark-blue);
}

.contact-item {
    margin-top: 1rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}
/* Footer */
.footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400" opacity="0.03"><path fill="white" d="M0 0h1200v400H0z"/><polygon points="600,50 650,150 550,150" fill="white"/><rect x="300" y="80" width="100" height="40" fill="white"/><rect x="800" y="80" width="100" height="40" fill="white"/><circle cx="200" cy="300" r="30" fill="white"/><circle cx="1000" cy="250" r="25" fill="white"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: clamp(1rem, 3vw, 3rem);
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo-image {
    width: 150px;
    height: 83px;
    background-image: url(../images/logo-footer.svg);
}

.footer-slogan {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-left: 20px;
}

.footer-contacts .phone,
.footer-contacts .email {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 1rem;
}

.footer-contacts .phone:hover,
.footer-contacts .email:hover {
    opacity: 0.8;
}

.footer-services h4,
.footer-nav h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.footer-services h4::after,
.footer-nav h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.services-column ul,
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.services-column a,
.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.services-column a:hover,
.footer-nav a:hover {
    color: var(--color-white);
    padding-left: 10px;
}

.services-column a::before,
.footer-nav a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
}

.services-column a:hover::before,
.footer-nav a:hover::before {
    opacity: 1;
    left: -5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.7rem 0;
    }
    
    .header-contacts {
        display: none;
    }
    
    .hero {
        padding: 8rem 0 6rem;
        min-height: 500px;
    }
    
    .advantages-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        width: 120px;
        height: 66px;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand .logo-image {
        width: 120px;
        height: 66px;
        margin: 0 auto;
    }
    
    .footer-slogan {
        font-size: 0.95rem;
    }
    
    .footer-contacts {
        margin-left: 0;
        align-items: center;
    }
    
    .footer-contacts .phone,
    .footer-contacts .email {
        font-size: 0.9rem;
    }
    
    .services-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-services h4,
    .footer-nav h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-services h4::after,
    .footer-nav h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        bottom: -6px;
    }
    
    .services-column ul,
    .footer-nav ul {
        gap: 0.6rem;
    }
    
    .services-column a,
    .footer-nav a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: 400px;
    }
    
    .advantage-card,
    .service-card {
        padding: 1.5rem 1rem;
    }

    .license-card{
        display: flex;
        

    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}