/* ========== ОБЩИЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: #0F1A2E;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовки */
h1, h2 {
    color: #003366;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #FFA500;
    padding-bottom: 0.5rem;
    display: inline-block;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #003366;
}
p {
    margin-bottom: 1rem;
    color: #0F1A2E;
}
.subtitle {
    color: #4A6078;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
}
.btn-primary {
    background: #FFA500;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255,165,0,0.18);
}
.btn-primary:hover {
    background: #FF8C00;
    box-shadow: 0 6px 16px rgba(255,140,0,0.25);
}
.btn-secondary {
    background: transparent;
    color: #003366;
    border: 2px solid #003366;
}
.btn-secondary:hover {
    background: #003366;
    color: #FFFFFF;
}

/* ========== ШАПКА (БЕЛАЯ) ========== */
.site-header {
    background: #FFFFFF;
    border-bottom: 2px solid #003366;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,51,102,0.05);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo img {
    max-height: 60px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 1px;
}

/* Основное меню (десктоп) */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    text-decoration: none;
    color: #003366;
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover {
    color: #FFA500;
}

/* Выпадающее меню (десктоп) */
.menu-item-has-children {
    position: relative;
}
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #DDE6F0;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 240px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 101;
    list-style: none;
    margin: 0;
    display: block;
}
.sub-menu li {
    display: block !important;
    margin: 0;
    padding: 0;
}
.sub-menu a {
    display: block;
    padding: 8px 20px;
    color: #003366;
    white-space: nowrap;
    text-decoration: none;
    font-weight: normal;
}
.sub-menu a:hover {
    background: #F8FAFC;
    color: #FFA500;
}
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.header-contacts a {
    text-decoration: none;
    color: #003366;
}
.phone {
    font-weight: 700;
    font-size: 1.2rem;
}
.email {
    font-size: 0.9rem;
    color: #4A6078;
}
.btn-callback {
    padding: 8px 16px;
    font-size: 0.9rem;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #003366;
}
.mobile-phone-icon {
    display: none;
    font-size: 1.8rem;
    color: #003366;
    text-decoration: none;
    margin-right: 10px;
}

/* ========== ПОДВАЛ (СИНИЙ) ========== */
.site-footer {
    background: #003366;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    border-bottom: 2px solid #FFA500;
    padding-bottom: 8px;
    display: inline-block;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #DDE6F0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #FFA500;
}
/* Жёлтые только телефон и email (специальные классы) */
.footer-col a.footer-phone,
.footer-col a.footer-email {
    color: #FFA500;
}
.footer-col a.footer-phone:hover,
.footer-col a.footer-email:hover {
    color: #FF8C00;
}
.footer-col:nth-child(4) ul {
    column-count: 2;
    column-gap: 20px;
}
.footer-col:nth-child(4) li {
    margin-bottom: 8px;
    break-inside: avoid;
}
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #4A6078;
    padding-top: 20px;
    color: #DDE6F0;
}

/* ========== ОСТАЛЬНЫЕ СТИЛИ (все блоки без изменений) ========== */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    color: white;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,51,102,0.7);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    max-width: 800px;
    margin: 0 auto 30px;
    color: white;
    border: none;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.services-block {
    background: #FFFFFF;
    padding: 60px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.service-card {
    background: #F8FAFC;
    border: 1px solid #DDE6F0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,51,102,0.1);
    border-color: #FFA500;
}
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #DDE6F0;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.service-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F4F8;
    color: #4A6078;
    font-size: 3rem;
}
.service-content {
    padding: 20px;
    flex: 1;
    position: relative;
}
.service-content h3 {
    margin-bottom: 10px;
    color: #003366;
}
.service-content p {
    color: #4A6078;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.service-more {
    display: inline-block;
    color: #FFA500;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 12px;
    transition: all 0.2s;
}
.service-card:hover .service-more {
    transform: translateX(5px);
    color: #FF8C00;
}

.design-block {
    background: #F8FAFC;
    padding: 60px 0;
}
.design-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}
.design-left h2 {
    border-bottom: none;
    margin-bottom: 20px;
}
.design-left p {
    color: #4A6078;
    margin-bottom: 30px;
}
.design-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.feature-item {
    display: flex;
    gap: 15px;
}
.feature-icon {
    font-size: 2rem;
    color: #FFA500;
}
.feature-item h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366;
}
.feature-item p {
    margin: 0;
    color: #4A6078;
    font-size: 0.9rem;
}
.object-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.object-icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.object-icon-item i {
    font-size: 2rem;
    color: #FFA500;
    width: 40px;
    text-align: center;
}
.object-icon-item span {
    color: #0F1A2E;
    font-weight: 500;
}
.design-right {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #DDE6F0;
    box-shadow: 0 5px 15px rgba(0,51,102,0.05);
}
.design-right h3 {
    color: #003366;
    margin-bottom: 15px;
}
.design-right p {
    color: #4A6078;
}
.design-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

/* Иконки для объектов */
.icon-factory::before { content: "🏭"; }
.icon-warehouse::before { content: "📦"; }
.icon-farm::before { content: "🌾"; }
.icon-office::before { content: "🏢"; }
.icon-infra::before { content: "⚡"; }
.icon-shop::before { content: "🛒"; }
.icon-cottage::before { content: "🏡"; }
.icon-logistics::before { content: "🚚"; }

.about-block {
    background: #FFFFFF;
    padding: 60px 0;
}
.about-video {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}
.about-video iframe {
    width: 100%;
    height: 340px;
    border: none;
    border-radius: 12px;
    border: 1px solid #DDE6F0;
}
.video-caption {
    margin-top: 10px;
    color: #4A6078;
}

.advantages-list.enhanced {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.advantages-list.enhanced li {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #DDE6F0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.advantages-list.enhanced li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,51,102,0.08);
    border-color: #FFA500;
}
.advantage-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
    color: #FFA500;
}
.advantage-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0F1A2E;
    line-height: 1.4;
}

.comparison-block {
    background: #F8FAFC;
    padding: 60px 0;
}
.comparison-intro {
    max-width: 800px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #4A6078;
}
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.comparison-col {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,51,102,0.05);
    border: 1px solid #DDE6F0;
}
.comparison-header {
    background: #003366;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}
.comparison-header.integrator {
    background: #FFA500;
    color: #003366;
}
.comparison-item {
    padding: 15px 20px;
    border-bottom: 1px solid #DDE6F0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.comparison-item:last-child {
    border-bottom: none;
}
.comparison-icon {
    font-size: 1.8rem;
    min-width: 40px;
    color: #FFA500;
}
.comparison-content {
    flex: 1;
}
.comparison-content strong {
    display: block;
    margin-bottom: 5px;
    color: #003366;
}
.comparison-content p {
    margin: 0;
    color: #4A6078;
    font-size: 0.95rem;
}

.works-block, .videos-block {
    background: #F8FAFC;
    padding: 60px 0;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.work-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,51,102,0.08);
    transition: transform 0.2s;
    border: 1px solid #DDE6F0;
    cursor: pointer;
}
.work-item:hover {
    transform: scale(1.02);
    border-color: #FFA500;
}
.work-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.work-info {
    padding: 15px;
}
.work-info h4 {
    color: #003366;
    margin-bottom: 5px;
}
.work-info p {
    color: #4A6078;
    font-size: 0.9rem;
    margin: 0;
}

.empty-portfolio {
    text-align: center;
    padding: 60px 20px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #DDE6F0;
    margin: 20px 0;
}
.empty-portfolio p {
    font-size: 1.2rem;
    color: #4A6078;
}
.empty-portfolio .emoji {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
}

.modal-gallery {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,51,102,0.9);
    align-items: center;
    justify-content: center;
}
.modal-gallery.active {
    display: flex;
}
.gallery-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    position: relative;
}
.gallery-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    color: #4A6078;
    cursor: pointer;
}
.gallery-close:hover {
    color: #FFA500;
}
.gallery-main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    margin-bottom: 15px;
}
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}
.gallery-thumb.active {
    border-color: #FFA500;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}
.video-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #DDE6F0;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 12px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-item h4 {
    color: #003366;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-promo-block {
    background: #F8FAFC;
    padding: 60px 0;
}
.quiz-promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) {
    .quiz-promo-content {
        grid-template-columns: 1fr;
    }
}

.contact-section {
    background: #FFFFFF;
    padding: 60px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #DDE6F0;
    border-radius: 8px;
    font-family: inherit;
    background: #F8FAFC;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FFA500;
}
.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}
.contact-info p {
    margin-bottom: 15px;
}
.contact-info a {
    color: #FFA500;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
.contact-map {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #DDE6F0;
}
.contact-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

.requisites-table {
    width: 100%;
    border-collapse: collapse;
    background: #F8FAFC;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #DDE6F0;
}
.requisites-table tr {
    border-bottom: 1px solid #DDE6F0;
}
.requisites-table tr:last-child {
    border-bottom: none;
}
.requisites-table td {
    padding: 12px;
}
.requisites-table td:first-child {
    font-weight: 600;
    width: 40%;
    background-color: #f0f4fa;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,51,102,0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid #FFA500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #003366;
    text-align: center;
}
.modal-content .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #4A6078;
}
.modal-content .close:hover {
    color: #FFA500;
}
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #DDE6F0;
    border-radius: 8px;
    font-family: inherit;
    background: #F8FAFC;
    font-size: 1rem;
}
.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #FFA500;
}
.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}
.modal-content button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.service-page, .design-page, .about-page, .contacts-page, .works-page, .licenses-page, .sitemap-page {
    padding: 40px 0;
    background: #FFFFFF;
}
.service-header .lead,
.design-header .lead {
    color: #4A6078;
    font-size: 1.2rem;
}
.features-list {
    list-style: none;
    margin: 20px 0;
}
.features-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #0F1A2E;
}
.features-list li::before {
    content: '✔';
    color: #FFA500;
    font-weight: bold;
    position: absolute;
    left: 0;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.step {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #DDE6F0;
}
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #FFA500;
    color: #003366;
    font-weight: bold;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 15px;
}
.step h3 {
    margin-bottom: 10px;
}
.step p {
    color: #4A6078;
}
.facts-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.facts-list li {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FFA500;
    color: #0F1A2E;
}
.license-item {
    background: #F8FAFC;
    border: 1px solid #DDE6F0;
    border-radius: 12px;
    overflow: hidden;
}
.works-intro {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
}
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.sitemap-col ul {
    list-style: none;
}
.sitemap-col li {
    margin-bottom: 8px;
}
.sitemap-col a {
    color: #003366;
    text-decoration: none;
}
.sitemap-col a:hover {
    color: #FFA500;
    text-decoration: underline;
}

.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.useful-links-page {
    padding: 40px 0;
    background: #FFFFFF;
}
.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.useful-link-card {
    background: #F8FAFC;
    border: 1px solid #DDE6F0;
    border-radius: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: #0F1A2E;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.useful-link-card:hover {
    background: #FFA500;
    color: white;
    border-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,165,0,0.2);
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }

    body {
        overflow-x: hidden;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .mobile-menu-toggle {
        display: block;
    }
    .mobile-phone-icon {
        display: inline-block;
    }
    .header-contacts,
    .btn-callback {
        display: none !important;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 51, 102, 0.97);
        backdrop-filter: blur(8px);
        z-index: 1000;
        padding: 80px 20px 40px;
        overflow-y: auto;
        flex-direction: column;
        align-items: center;
        transition: all 0.3s ease;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }
    .main-nav a {
        color: white;
        font-size: 1.4rem;
        font-weight: 500;
        padding: 12px 20px;
        display: inline-block;
        width: 100%;
        text-align: center;
        border-radius: 40px;
        transition: all 0.2s;
    }
    .main-nav a:hover {
        background: rgba(255, 165, 0, 0.2);
        color: #FFA500;
    }

    .close-menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 32px;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-item-has-children {
        position: relative;
        width: 100%;
        text-align: center;
    }
    .menu-item-has-children > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .menu-item-has-children > a::after {
        content: '▼';
        font-size: 0.8rem;
        transition: transform 0.2s;
    }
    .menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
    .menu-item-has-children .sub-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 10px 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
        border: none;
        box-shadow: none;
    }
    .menu-item-has-children.open .sub-menu {
        display: block;
    }
    .sub-menu li {
        margin: 5px 0;
    }
    .sub-menu a {
        color: #FFA500 !important;
        font-size: 1.1rem;
        padding: 8px 20px;
        display: block;
        background: transparent;
    }
    .sub-menu a:hover {
        background: rgba(255, 165, 0, 0.2);
        color: white !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .services-grid,
    .works-grid,
    .videos-grid,
    .object-icons-grid,
    .comparison-table,
    .advantages-list.enhanced,
    .design-features,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .design-buttons {
        flex-direction: column;
    }
    .contact-map iframe {
        height: 300px;
    }
    .service-more {
        font-size: 1rem;
        padding: 8px 0;
    }
    /* Таблицы: горизонтальная прокрутка */
    table, .requisites-table, .camera-table, .price-table,
    .contact-info table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    .contact-form input,
    .contact-form textarea,
    .callback-form input {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Адаптация подвала */
    .footer-container {
        gap: 30px;
        grid-template-columns: 1fr !important;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4 {
        display: block;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
    .footer-col li {
        margin-bottom: 12px;
    }
    .footer-col p {
        word-break: break-word;
        hyphens: auto;
        margin-bottom: 8px;
    }
    .footer-col a {
        display: inline-block;
        word-break: break-word;
    }
    .footer-col:nth-child(4) ul {
        column-count: 1;
    }

    /* Исправление модального окна (виджет) – не вытянутое */
    .modal-content {
        width: 95% !important;
        max-width: 500px !important;
        padding: 20px !important;
        box-sizing: border-box;
    }
    .modal-content input,
    .modal-content textarea,
    .modal-content button {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }
    .modal-content .close {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }
}

@media (min-width: 1025px) {
    .menu-item-has-children {
        position: relative;
    }
    .menu-item-has-children .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border: 1px solid #DDE6F0;
        border-radius: 8px;
        padding: 10px 0;
        min-width: 240px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 101;
        list-style: none;
        margin: 0;
        display: block;
    }
    .menu-item-has-children .sub-menu li {
        display: block !important;
        margin: 0;
        padding: 0;
    }
    .menu-item-has-children .sub-menu a {
        display: block;
        padding: 8px 20px;
        color: #003366;
        white-space: nowrap;
        text-decoration: none;
        font-weight: normal;
    }
    .menu-item-has-children .sub-menu a:hover {
        background: #F8FAFC;
        color: #FFA500;
    }
    .menu-item-has-children:hover .sub-menu {
        opacity: 1;
        visibility: visible;
    }
}
/* Специально для блока "Почему интегратор?" на мобильных */
@media (max-width: 768px) {
    .design-right {
        padding: 15px !important;
        margin: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
    .design-right ul {
        padding-left: 10px !important;
    }
    .design-right li {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }
    .design-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .design-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}
/* Стили для чекбокса согласия в формах */
.form-checkbox {
    margin: 15px 0;
    text-align: left;
    font-size: 0.8rem;
}
.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4A6078;
}
.form-checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}
.form-checkbox a {
    color: #FFA500;
    text-decoration: none;
}
.form-checkbox a:hover {
    text-decoration: underline;
}
/* Стили для чекбокса согласия */
.form-checkbox, .callback-form .checkbox-wrapper {
    margin: 15px 0;
    text-align: left;
    font-size: 0.8rem;
}
.form-checkbox label, .callback-form .checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-checkbox input, .callback-form .checkbox-wrapper input {
    width: 18px;
    height: 18px;
    margin: 0;
}
.form-checkbox a, .callback-form .checkbox-wrapper a {
    color: #FFA500;
    text-decoration: none;
}
/* Единый стиль для всех чекбоксов согласия на сайте */
.contact-form div[style*="margin: 15px 0"],
.callback-form div[style*="margin: 15px 0"],
form div[style*="margin: 15px 0"] {
    margin: 15px 0 !important;
    text-align: left !important;
}

.contact-form div[style*="margin: 15px 0"] label,
.callback-form div[style*="margin: 15px 0"] label,
form div[style*="margin: 15px 0"] label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
}

.contact-form div[style*="margin: 15px 0"] input,
.callback-form div[style*="margin: 15px 0"] input,
form div[style*="margin: 15px 0"] input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.contact-form div[style*="margin: 15px 0"] a,
.callback-form div[style*="margin: 15px 0"] a,
form div[style*="margin: 15px 0"] a {
    color: #FFA500 !important;
    text-decoration: none !important;
}

.contact-form div[style*="margin: 15px 0"] a:hover,
.callback-form div[style*="margin: 15px 0"] a:hover,
form div[style*="margin: 15px 0"] a:hover {
    text-decoration: underline !important;
}
/* Исправление мобильной версии блока контактов на лендингах */
@media (max-width: 768px) {
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .contact-map iframe {
        height: 300px !important;
        width: 100% !important;
    }
    .contact-info table,
    .requisites-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}