/*
Theme Name: Novinshstroi
Theme URI: https://novinshstroi.ru/
Author: Novinshstroi
Description: WordPress theme generated from the current static site.
Version: 1.0.0
Text Domain: novinshstroi
*/

/* ===== RESET & BASE STYLES ===== */
:root {
    --primary: #d12c2c;
    --primary-dark: #a81f1f;
    --primary-light: #ff6b6b;
    --primary-gradient: linear-gradient(135deg, #d12c2c 0%, #ff4b4b 100%);
    
    --secondary: #4a4a4a;
    --secondary-light: #f5f5f5;
    --accent: #333333;
    
    --text-main: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #888;
    --text-lighter: #b0b0b0;
    
    --bg-body: #ffffff;
    --bg-light: #f8f9fc;
    --bg-dark: #111111;
    --bg-glass: rgba(255, 255, 255, 0.9);
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(209, 44, 44, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 50px;
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Aliases for pages that use legacy variable names (e.g. some project pages) */
    --text: var(--text-main);
    --border-radius: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
    --shadow: var(--shadow-md);
    --border: rgba(0, 0, 0, 0.08);
}

/* -------------------------------------------------------------------- */
/* Custom mobile call bar and phone icon styles */

.mobile-callbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #d12c2c, #a01515);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    /* Must stay above page content, but below the mobile menu overlay */
    z-index: 995;
}

.mobile-callbar a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Show call bar on mobile screens */
@media (max-width: 768px) {
    .mobile-callbar {
        display: flex;
    }
    body {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }
}

/* Hide call bar when the mobile menu is open (so it doesn't cover nav items) */
body.menu-open .mobile-callbar {
    opacity: 0;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Improve readability for long-text blocks with headings */
.service-description h2,
.service-description h3,
.service-description h4,
.article-content h2,
.article-content h3,
.article-content h4,
.article-body h2,
.article-body h3,
.article-body h4 {
    text-align: left;
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(209, 44, 44, 0.2);
    color: var(--text-main);
}

.service-description h4,
.article-content h4,
.article-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.service-description p,
.article-content p,
.article-body p {
    text-align: left;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Articles block on the home page */
.articles-section .section-title {
    font-size: 2.7rem;
    letter-spacing: 0.2px;
}

.articles-section .section-subtitle {
    max-width: 760px;
    margin: 0 auto 34px;
    color: var(--text-secondary);
}

.articles-section .project-card.article-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 24px 24px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 320px;
}

.articles-section .article-card .project-title {
    font-size: 1.35rem;
    line-height: 1.35;
    color: var(--text-main);
}

.articles-section .article-card .project-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.articles-section .article-card .article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.articles-section .article-card .project-services {
    margin-top: auto;
}

.articles-section .article-card .btn {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .articles-section .project-card.article-card {
        padding: 20px;
        min-height: 0;
    }
    .articles-section .article-card .project-title {
        font-size: 1.2rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Service list section headers */
.service-subsection {
    margin-top: 35px;
}

.service-subsection-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: left;
    color: var(--text-main);
    margin: 0 0 18px;
}

.service-subsection-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
    margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    min-height: 44px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 8px;
}

.nav-link,
.dropdown-item,
.filter-btn,
.page-link {
    min-height: 44px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(209, 44, 44, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(209, 44, 44, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 2px solid #eee;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.header-contacts {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.25rem;
    min-width: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* Phone & email in the header should look identical */
.header-contacts .contact-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #d12c2c, #a01515);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
    white-space: nowrap;
}

.header-contacts .contact-value:hover {
    background: linear-gradient(90deg, #b52a2a, #850e0e);
    color: #fff !important;
}

.phone-link {
    /* Custom phone styling */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #d12c2c, #a01515);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.phone-link:hover {
    background: linear-gradient(90deg, #b52a2a, #850e0e);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Навигация */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}


/* Navigation list reset (no bullets/indent) */
.nav-list li,
.dropdown-menu li {
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);

    /*
     * Align icons (such as the chevron on the “Услуги” link) properly with
     * the link text. Using inline-flex ensures that the text and any
     * embedded icons sit on the same baseline, eliminating the vertical
     * misalignment seen in the navigation bar.
     */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Ensure icons inside navigation links align to the middle and do not
   disrupt baseline alignment */
.nav-link i {
    line-height: 1;
    vertical-align: middle;
    font-size: 0.75rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn-order {
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* ===== HERO SECTION ===== */
.hero {
    /* Используем собственное изображение для фоновой заставки героя. */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)),
                url('Images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 180px 0 100px;
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(209, 44, 44, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature i {
    color: white;
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(209, 44, 44, 0.05), rgba(209, 44, 44, 0.02));
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(209, 44, 44, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.service-title {
    font-size: 1.375rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ===== OBJECTS PRESENCE SECTION ===== */
.presence-objects {
    background-color: var(--bg-light);
}

.objects-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.object-logo-card {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.object-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.object-logo {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.object-logo-card:hover .object-logo {
    transform: scale(1.1);
}

.object-logo i {
    font-size: 32px;
    color: white;
}

.object-logo-card h3 {
    font-size: 1.125rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.object-status {
    margin-top: auto;
}

.status-badge {
    display: inline-block;
    background: rgba(209, 44, 44, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.more-objects {
    text-align: center;
    margin-top: 50px;
}

.more-objects-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== BOT SECTION ===== */
.bot-section {
    background: #f8f9fc;
}

.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bot-image img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ===== ARTICLE PAGES ===== */
.article-page .service-hero {
    padding-top: 140px !important;
}

@media (max-width: 768px) {
    .article-page .service-hero {
        padding-top: 120px !important;
    }
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Project pages gallery */
.project-hero-media {
    margin-top: 28px;
}

.project-hero-image {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0 10px;
}

.project-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-gallery img:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Service page info lists */
.info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-list-item::before {
    content: '';
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), #f2b35a);
    flex: 0 0 6px;
}

.info-list-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-list-item:hover {
    transform: translateY(-2px);
    border-color: rgba(209, 44, 44, 0.3);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .info-list-item {
        padding: 12px 14px;
    }
}

@media (max-width: 1024px) {
    .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
    .project-gallery img {
        height: auto;
    }
}

/* ===== ARTICLES (HOME) ===== */
.articles-section .section-title {
    font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.articles-section .section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    background: var(--primary);
    border-radius: 999px;
    margin: 16px auto 0;
}

.articles-section .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.articles-section .article-card {
    padding: 24px 24px 22px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.articles-section .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), #f2b35a);
}

.articles-section .article-card .project-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.articles-section .article-card .project-description {
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-section .article-card .project-services {
    margin-top: auto;
}

.articles-section .article-card .btn {
    width: max-content;
}

@media (max-width: 768px) {
    .articles-section .article-card {
        padding: 20px;
    }
}

.project-image-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.375rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    word-break: break-word;
}

.project-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.project-date {
    background: rgba(209, 44, 44, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.project-area {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-services {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.service-tag {
    background: rgba(128, 128, 128, 0.1);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hidden-project {
    display: none;
}

.projects-more {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    margin-left: 8px;
    transition: transform 0.3s;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-photo-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    height: 300px;
    position: relative;
    border: 1px solid transparent;
}

.certificate-photo-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.certificate-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* ===== MODAL WINDOWS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0,0,0,0.9);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    overflow: hidden;
}

.contact-info {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.contact-info .contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info .contact-item i {
    color: var(--primary);
    font-size: 1.25rem;
    min-width: 25px;
    padding-top: 2px;
}

.contact-form-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    min-height: 44px;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(209, 44, 44, 0.1);
    background: white;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-contacts {
    margin-bottom: 20px;
}

.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary);
    min-width: 20px;
    padding-top: 2px;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(209, 44, 44, 0.3);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(209, 44, 44, 0.4);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-button {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ===== ANIMATION CLASSES ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .header-contacts {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        border-top: none;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(209, 44, 44, 0.05);
        padding-left: 15px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid,
    .objects-logos-grid,
    .projects-grid,
    .certificates-photo-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .radio-option,
    .checkbox-option {
        min-height: 44px;
        align-items: center;
    }

    .service-hero-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .service-features {
        grid-template-columns: 1fr !important;
    }

    .service-features .feature {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }

    .service-content[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .service-content [style*="grid-template-columns: 1fr 1fr"],
    .service-content [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .projects-grid,
    .footer-grid,
    .bot-grid {
        grid-template-columns: 1fr !important;
    }
    
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav {
        max-width: 420px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header-top {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .services-grid,
    .projects-grid,
    .certificates-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 0 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-wrapper {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Mobile header tweaks */
    .header-top {
        padding: 12px 0;
    }

    .logo {
        gap: 8px;
    }

    .logo-title {
        font-size: 1.35rem;
        letter-spacing: -0.3px;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    /* Mobile menu panel spacing */
    .nav {
        padding: 90px 20px 20px;
    }

    .nav-link {
        padding: 14px 0;
        font-size: 1.05rem;
    }

}
/* ===== СТРАНИЦЫ УСЛУГ ===== */

/* Хлебные крошки */
.breadcrumbs {
    background: #f8f9fc;
    padding: 20px 0;
    margin-top: 100px;
    font-size: 0.95rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

.breadcrumbs i {
    color: var(--text-lighter);
    font-size: 0.75rem;
}

/* Герой секция услуги */
.service-hero {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 80px 0;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}

.service-hero-text .hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-main);
}

.service-feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

.service-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-hero-image:hover img {
    transform: scale(1.05);
}

/* Основной контент услуги */
.service-content {
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-description h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
}


.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Сайдбар услуги */
.service-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.price-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.price-item div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item span:first-child {
    color: var(--text-secondary);
}

.price-item span:last-child {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #333 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .service-hero-content,
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-hero-text h1 {
        font-size: 2.2rem;
    }
    
    .service-hero-image img {
        height: 300px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .service-content {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .breadcrumbs {
        margin-top: 80px;
        padding: 15px 0;
    }
}


/* ===== СТРАНИЦЫ УСЛУГ ===== */

/* Хлебные крошки */
.breadcrumbs {
    background: #f8f9fc;
    padding: 20px 0;
    margin-top: 100px;
    font-size: 0.95rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-light);
}

.breadcrumbs i {
    color: var(--text-lighter);
    font-size: 0.75rem;
}

/* Герой секция услуги */
.service-hero {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 80px 0;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}

.service-hero-text .hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-main);
}

.service-feature i {
    color: var(--primary);
    font-size: 1.2rem;
}

.service-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-hero-image:hover img {
    transform: scale(1.05);
}

/* Основной контент услуги */
.service-content {
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-description h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.service-item {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Сайдбар услуги */
.service-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.price-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.price-item div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item span:first-child {
    color: var(--text-secondary);
}

.price-item span:last-child {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #333 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .service-hero-content,
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-hero-text h1 {
        font-size: 2.2rem;
    }
    
    .service-hero-image img {
        height: 300px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .service-content {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .breadcrumbs {
        margin-top: 80px;
        padding: 15px 0;
    }
}
/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown > a i {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    list-style: none;
    margin: 0;
    padding-left: 0;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-item {
    display: block;
    padding: 12px 25px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(209, 44, 44, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Мобильное меню */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown > a {
        justify-content: space-between;
    }
    
    .dropdown-item {
        padding-left: 40px;
        border-left: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

@media (max-width: 1024px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown > a {
        justify-content: space-between;
    }

    .dropdown-item {
        padding-left: 40px;
        border-left: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

/* ===== НАВИГАЦИЯ: ОВЕРЛЕЙ + ДОРАБОТАННАЯ АНИМАЦИЯ (2025-12) ===== */

/* Затемнение фона при открытом мобильном меню */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 998;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Мобильное меню: немного “живее” появление */
@media (max-width: 1024px) {
    .nav {
        will-change: transform;
    }

    .nav-list {
        opacity: 0;
        transform: translateX(12px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav.active .nav-list {
        opacity: 1;
        transform: translateX(0);
    }

    .btn-order {
        width: 100%;
        display: inline-flex;
        justify-content: center;
        margin-top: 18px;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }
}

/* Чуть лучше фокус для доступности */
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgba(209, 44, 44, 0.35);
    outline-offset: 3px;
}

/* ==================================================================== */
/* ===== MOBILE-PERFECT PATCH (2025-12-28) ============================ */
/* ==================================================================== */

/* Better defaults on mobile */
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
table { width: 100%; border-collapse: collapse; }

/* Avoid horizontal cut-offs from long strings/urls */
body {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

/* Make anchors account for the fixed header */
section, [id] { scroll-margin-top: 120px; }
@media (max-width: 992px) {
    section, [id] { scroll-margin-top: 90px; }
}

/* Disable "fixed" background on mobile (jank on iOS/Android) */
@media (max-width: 992px) {
    .hero { background-attachment: scroll; }
}

/* Keep floating buttons above the mobile call bar */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px) + 14px);
    }

    .scroll-top {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px) + 84px);
    }
}

/* Footer lists should not be indented */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Mobile menu: give space for safe area + prevent last items hiding */
@media (max-width: 1024px) {
    .nav {
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
}

/* Smaller, tighter cards on very small screens */
@media (max-width: 480px) {
    section { padding: 50px 0; }

    .service-card { padding: 28px 20px; }
    .object-logo-card { padding: 26px 18px; }
    .project-content { padding: 20px; }
    .certificate-photo-item { height: 240px; }

    /* Service pages: do not squeeze the feature list into 2 columns */
    .service-features { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .logo-title { font-size: 1.25rem; }
    .nav { max-width: 100%; }
    .btn { max-width: 100%; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== All projects page: make filters & pagination mobile-friendly ===== */
.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 40px;
}

.filter-btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--text-main);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: rgba(209, 44, 44, 0.35);
    background: rgba(209, 44, 44, 0.06);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    /* Horizontal scroll for filters on small screens */
    .projects-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px 10px;
        margin: 20px -20px 30px;
        scrollbar-width: none;
    }

    .projects-filters::-webkit-scrollbar { display: none; }

    .filter-btn { flex: 0 0 auto; }

    .all-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* override inline padding-top on the page */
    .all-projects-page { padding-top: 110px !important; }
}



/* =========================
   ARTICLES (Blog)
   ========================= */
.articles-page { padding-top: 110px; }
.articles-hero { padding: 60px 0 30px; }
.articles-controls { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; margin-top:25px; }
.articles-search { flex:1 1 260px; max-width:420px; }
.articles-search input { width:100%; padding:12px 14px; border-radius: var(--radius-md); border:1px solid rgba(0,0,0,0.12); outline:none; }

.articles-page .all-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.articles-page .project-card.article-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 26px 26px 22px;
    min-height: 320px;
}

.articles-page .article-card .project-title {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.articles-page .article-card .article-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.articles-page .article-card .project-description {
    font-size: 1rem;
    line-height: 1.65;
    -webkit-line-clamp: 4;
}

.articles-page .article-card .project-services {
    margin-top: 12px;
}

.articles-page .article-card .btn {
    width: 100%;
    margin-top: 10px;
}

@media (min-width: 1024px) {
    .articles-page .all-projects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-page .project-card.article-card {
        padding: 22px 20px;
        min-height: 0;
    }
}

/* Article cards minimal layout: image + title + date */
.articles-section .project-card.article-card,
.articles-page .project-card.article-card {
    padding: 0;
    min-height: 0;
    overflow: hidden;
}

.article-card .article-thumb {
    display: block;
    line-height: 0;
}

.article-card .article-thumb-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.articles-section .article-card .project-title,
.articles-page .article-card .project-title {
    padding: 18px 20px 0;
    margin: 0 0 10px;
}

.article-card .project-title a {
    color: inherit;
    text-decoration: none;
}

.article-card .project-title a:hover {
    text-decoration: underline;
}

.articles-section .article-card .article-meta,
.articles-page .article-card .article-meta {
    padding: 0 20px 18px;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .articles-section .article-card .project-title,
    .articles-page .article-card .project-title {
        padding: 16px 16px 0;
    }

    .articles-section .article-card .article-meta,
    .articles-page .article-card .article-meta {
        padding: 0 16px 14px;
    }
}

.article-page { padding: 35px 0 80px; }
.article-layout { display:grid; grid-template-columns: 1fr 300px; gap:40px; align-items:start; }
@media (max-width: 992px) { .article-layout { grid-template-columns: 1fr; } .article-toc { position: relative; top: auto; } }

.article-body { font-size: 18px; line-height: 1.75; color: var(--text-main); }
.article-body p { color: var(--text-secondary); }
.article-body h2 { margin-top: 34px; margin-bottom: 14px; color: var(--text-main); }
.article-body h3 { margin-top: 26px; margin-bottom: 12px; color: var(--text-main); }
.article-body ul, .article-body ol { margin: 14px 0 18px; padding-left: 22px; }
.article-body li { color: var(--text-secondary); margin-bottom: 8px; }

.article-toc { position: sticky; top: 120px; border:1px solid rgba(0,0,0,0.10); border-radius: var(--radius-lg); padding: 18px 18px 10px; background:#fff; box-shadow: var(--shadow-sm); }
.article-toc-title { font-weight:800; margin-bottom:10px; color: var(--text-main); }
.article-toc a { display:block; padding:6px 0; color: var(--text-main); text-decoration:none; font-size:14px; line-height:1.35; opacity:.9; }
.article-toc a:hover { opacity:1; text-decoration:underline; }

.article-footer-cta { margin-top: 46px; padding: 26px; border-radius: var(--radius-lg); border:1px solid rgba(0,0,0,0.10); background: rgba(0,0,0,0.03); display:flex; flex-wrap:wrap; gap:16px 22px; align-items:center; justify-content:space-between; }
