@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-base: 'Inter', Arial, sans-serif;
    /* Типографическая шкала: 8 уровней + 1 переходный (xl=24).
       Все font-size в проекте должны использовать эти переменные. */
    --text-xs:   13px;
    --text-sm:   14px;
    --text-base: 16px;
    --text-md:   18px;
    --text-lg:   20px;
    --text-xl:   24px;
    --text-2xl:  28px;
    --text-3xl:  clamp(28px, 3.5vw, 36px);
    --text-hero: clamp(32px, 4.5vw, 48px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    font-size: var(--text-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: var(--text-base);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

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

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 74px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

/* Dropdown меню */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 280px;
    max-width: 900px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

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

/* Многоколоночное меню для десктопа */
/* Многоколоночное меню ТОЛЬКО для .dropdown-columns */
.dropdown-columns .dropdown-menu {
    column-count: 4;
    column-gap: 20px;
    column-rule: 1px solid var(--gray-light);
    /* Центрирование по экрану */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: fit-content;
    max-width: calc(100vw - 40px); /* не выходит за края экрана */
    min-width: 800px; /* минимальная ширина для 4 колонок */
}

/* Обычное меню — 1 колонка */
.dropdown-menu {
    column-count: 1;
    column-gap: 0;
    column-rule: none;
    min-width: 150px;        /* Уменьшили с 280px до 220px */
    max-width: none;         /* Убрали ограничение в 900px */
    left: 0;                 /* Выравниваем по левому краю родителя */
    transform: translateY(10px); /* Только вертикальное смещение */
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    transition: var(--transition);
    break-inside: avoid;
}

.dropdown-menu a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-contacts .phone {
    font-weight: 700;
    color: var(--primary);
    font-size: var(--text-md);
}

.header-contacts .email {
    color: var(--gray);
    font-size: var(--text-sm);
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
    background-image: var(--page-hero-bg, none);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: 40px;
    opacity: 0.95;
}

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

/* ===== SECTIONS ===== */
section {
    padding: 10px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: var(--text-base);
    color: var(--gray);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--gray-light);
}

.about-intro {
    padding: 56px 0 48px;
}

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

.about-content--single {
    grid-template-columns: minmax(0, 920px);
    justify-content: center;
}

.about-text p {
    margin-bottom: 15px;
    font-size: var(--text-base);
    line-height: 1.8;
}

.about-motto {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
    margin-top: 30px !important;
    text-align: center;
}

.about-actions {
    justify-content: center;
    margin-top: 30px;
}

.about-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.section-header--left {
    text-align: left;
}

.products-home {
    background: #fff;
}

.catalog-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.catalog-home-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.catalog-home-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
}

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

.catalog-home-body {
    padding: 22px 22px 24px;
}

.catalog-home-body h3 {
    margin-bottom: 12px;
    font-size: var(--text-xl);
    line-height: 1.25;
}

.catalog-home-body h3 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.catalog-home-body p {
    margin-bottom: 16px;
    color: var(--gray);
    line-height: 1.7;
}

.catalog-home-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.media-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.media-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: 36px;
    align-items: center;
}

.media-copy > p {
    margin-bottom: 18px;
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--gray);
}

.media-points {
    margin: 0 0 24px;
    padding-left: 20px;
    color: var(--primary-dark);
}

.media-points li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.media-actions {
    justify-content: flex-start;
    margin-bottom: 18px;
}

.media-note {
    margin: 0;
    font-size: var(--text-sm) !important;
    color: var(--gray);
}

.media-video-card {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.media-video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0f172a;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services .section-header h2 {
    font-size: var(--text-3xl);
    color: #333;
    margin-bottom: 15px;
}

.services .section-header p {
    font-size: var(--text-md);
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
    z-index: 1;
}

.service-content h3 {
    font-size: var(--text-xl);
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-content p {
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.service-content a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.service-content a:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--gray-light);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-number {
    font-size: var(--text-hero);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: var(--text-lg);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
}

/* ===== PROJECTS PREVIEW ===== */
.projects-preview {
    background: var(--gray-light);
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 30px 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    font-size: var(--text-lg);
    margin-bottom: 5px;
}

.project-overlay p {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

/* ===== CONTACTS SECTION ===== */
.contacts {
    background: var(--gray-light);
}

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

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

.contact-item h3 {
    font-size: var(--text-md);
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--primary);
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.modal-contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.modal-contact-form .form-group {
    margin-bottom: 18px;
}

.modal-contact-form .form-group input,
.modal-contact-form .form-group textarea,
.modal-contact-form .form-group .iti__input {
    padding: 15px;
}

.modal-contact-form .form-group .iti__input {
    padding-left: 60px !important;
}

.modal-contact-form .form-group textarea {
    min-height: 116px;
    resize: vertical;
}

.modal-contact-form .form-footer {
    display: grid;
    gap: 14px;
}

.modal-contact-form .checkbox-label {
    font-size: var(--text-sm);
    color: #334155;
}

.modal-contact-form .checkbox-label a {
    color: var(--primary);
}

.modal-contact-form .form-group label[for="phone"] {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    background: transparent;
    padding: 0;
    pointer-events: none;
}

.modal .iti__country-list {
    z-index: 10020;
}

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

/* Стили для intl-tel-input */
.form-group .iti {
    width: 100%;
    display: block;
}

.form-group .iti__input {
    width: 100%;
    padding: 15px;
    padding-left: 60px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: var(--text-base);
    transition: var(--transition);
    font-family: inherit;
}

.form-group .iti__input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group .iti__selected-country {
    padding: 0 0 0 15px;
}

.form-group .iti__dropdown {
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-group .iti__country-list {
    max-height: 200px;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.form-group .iti__country.iti__highlight {
    background-color: rgba(30, 64, 175, 0.1);
}

/* Label для телефона (без floating) */
.form-group label[for="phone"] {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    background: transparent;
    padding: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 5px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: var(--text-base);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Label для input/textarea с floating эффектом */
.form-group input + label,
.form-group textarea + label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--gray);
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: var(--text-xs);
    color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.5;
}

.error-message {
    display: block;
    color: var(--danger);
    font-size: var(--text-sm);
    margin-top: 5px;
}

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-submit.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.recaptcha-note {
    font-size: var(--text-xs);
    color: var(--gray);
    text-align: center;
    margin-top: 15px;
}

.recaptcha-note a {
    color: var(--primary);
}

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

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

.footer-col h4 {
    font-size: var(--text-md);
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.82);
}

/* ===== PROJECTS PAGE ===== */
.page-hero {
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.48)), var(--page-hero-bg, none);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    color: #f7f7f7;
    text-align: center;
    padding: 44px 20px 52px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    width: 100%;
    min-height: clamp(320px, 52vh, 520px);
    height: auto;
}

/* Контент ограничен по ширине */
.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Внутренний контент с отступами */
.page-hero .hero-content {
    padding: 36px 24px;
    max-width: 100%;
}

.page-hero .hero-content h1 {
    font-size: var(--text-hero);
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero .hero-content p {
    font-size: var(--text-base);
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.company-main {
    display: grid;
    gap: 28px;
}

.company-copy {
    display: grid;
    gap: 16px;
}

.company-lead {
    font-size: var(--text-md);
    line-height: 1.85;
    color: var(--primary-dark);
}

.company-feature-grid,
.partner-grid,
.company-contact-grid {
    display: grid;
    gap: 20px;
}

.company-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-feature-card,
.company-contact-card,
.partner-card,
.company-doc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.company-feature-card,
.company-contact-card {
    padding: 24px;
}

.company-feature-card h3,
.company-contact-card h3,
.partner-card h3,
.company-doc-section h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.company-list {
    padding-left: 20px;
    color: #475569;
}

.company-list li + li {
    margin-top: 10px;
}

.company-stats-grid {
    margin-top: 0;
}

.company-actions {
    justify-content: flex-start;
}

.company-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #dbe3ef;
}

.company-map iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
}

.company-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-doc-section {
    display: grid;
    gap: 18px;
}

.company-doc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.company-doc-list--single {
    grid-template-columns: 1fr;
}

.company-doc-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.company-doc-card strong {
    color: var(--primary-dark);
    line-height: 1.55;
}

.company-doc-card__label,
.company-doc-card__link {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.company-doc-card__label {
    color: var(--primary);
}

.company-doc-card__link {
    color: #64748b;
}

.company-video {
    max-width: 920px;
}

.partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-card {
    padding: 18px;
    text-align: center;
}

.partner-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.partner-card__logo img {
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

.service-section .container {
    position: relative;
}

.service-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.service-sidebar .catalog-sidebar__title {
    margin-bottom: 18px;
}

.service-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.service-main > :first-child {
    margin-top: 0;
}

.service-main h1,
.service-main h2,
.service-main h3 {
    color: var(--primary-dark);
}

.service-main ul {
    padding-left: 20px;
}

.service-main li + li {
    margin-top: 10px;
}

/* Projects Categories */
/* ===== PROJECTS CATEGORIES - COMPACT VERSION ===== */
.projects-categories {
    padding: 60px 0;
}

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

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: var(--text-hero);
    margin-bottom: 15px;
}

.category-card h2 {
    font-size: var(--text-xl);
    margin-bottom: 12px;
    color: var(--dark);
}

/* ===== PRODUCT CATALOG PAGE ===== */
.catalog-hero {
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 64, 175, 0.5)), var(--catalog-hero-bg, none);
    background-position: center, var(--catalog-hero-position, center);
    background-repeat: no-repeat, no-repeat;
    background-size: cover, var(--catalog-hero-size, cover);
    color: var(--white);
    padding: 46px 0 74px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.76);
    font-size: var(--text-sm);
    margin-bottom: 86px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.catalog-hero__content {
    max-width: 820px;
}

.catalog-eyebrow,
.catalog-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.catalog-hero .catalog-eyebrow {
    color: #bfdbfe;
    margin-bottom: 14px;
}

.catalog-hero h1 {
    font-size: var(--text-hero);
    line-height: 1.12;
    margin-bottom: 18px;
    max-width: 760px;
}

.catalog-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--text-md);
    max-width: 740px;
}

.catalog-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.catalog-hero__pdf {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.72);
    color: var(--white);
}

.catalog-hero__pdf:hover {
    background: var(--white);
    color: var(--primary);
}

.catalog-page {
    background: #f8fafc;
    padding: 48px 0 80px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.catalog-sidebar__title {
    padding: 18px 20px;
    background: #0f172a;
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 800;
}

.catalog-sidebar__nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.catalog-sidebar__nav a {
    color: #334155;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: var(--text-sm);
    line-height: 1.3;
    transition: var(--transition);
}

.catalog-sidebar__nav a:hover,
.catalog-sidebar__nav a.is-active {
    background: #eff6ff;
    color: var(--primary);
}

.catalog-sidebar__nav a.is-active {
    font-weight: 700;
}

.catalog-main {
    min-width: 0;
}

.catalog-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 32px;
    align-items: center;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 34px;
}

.catalog-overview h2,
.catalog-section-head h2 {
    color: #111827;
    font-size: var(--text-3xl);
    line-height: 1.18;
    margin: 10px 0 16px;
}

.catalog-overview p,
.catalog-section-head p {
    color: #475569;
    font-size: var(--text-base);
    line-height: 1.75;
}

.catalog-note {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 13px 16px;
    margin-top: 18px;
}

.catalog-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.catalog-specs span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 6px;
    background: #eef6ff;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: var(--text-xs);
}

.catalog-overview__media {
    position: relative;
}

.catalog-overview__media img {
    display: block;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
}

.catalog-pdf-card {
    display: block;
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 8px;
    background: #0f172a;
    color: var(--white);
    transition: var(--transition);
}

.catalog-pdf-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.catalog-pdf-card span {
    display: block;
    color: #bfdbfe;
    font-size: var(--text-xs);
    margin-bottom: 4px;
}

.catalog-pdf-card strong {
    display: block;
    font-size: var(--text-base);
}

.catalog-products {
    padding: 46px 0 0;
}

.document-sections {
    display: grid;
    gap: 28px;
}

.document-section {
    display: grid;
    gap: 18px;
}

.document-section__head {
    display: grid;
    gap: 8px;
}

.document-section__head h3 {
    margin: 0;
    font-size: var(--text-2xl);
    line-height: 1.1;
    color: #0f172a;
}

.document-section__head p {
    margin: 0;
    color: #475569;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.document-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.document-card__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.document-card h4 {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.2;
    color: #0f172a;
}

.document-card p {
    margin: 0;
    color: #475569;
}

.document-card .catalog-card-link {
    margin-top: auto;
}

.catalog-section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.catalog-accordion {
    display: grid;
    gap: 16px;
}

.catalog-group {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.catalog-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.catalog-group summary::-webkit-details-marker {
    display: none;
}

.catalog-group summary::after {
    content: '+';
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary);
    font-size: var(--text-xl);
    line-height: 1;
    transition: var(--transition);
}

.catalog-group[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.catalog-group[open] summary::after {
    content: '-';
    background: var(--primary);
    color: var(--white);
}

.catalog-group summary strong {
    display: block;
    color: #111827;
    font-size: var(--text-lg);
    margin-bottom: 4px;
}

.catalog-group summary small {
    display: block;
    color: #64748b;
    font-size: var(--text-sm);
    line-height: 1.45;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
}

.catalog-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.catalog-product-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-lg);
}

.catalog-product-card__image {
    display: grid;
    place-items: center;
    min-height: 178px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #eef2f7;
}

.catalog-product-card__image img {
    width: 100%;
    height: 136px;
    object-fit: contain;
}

.catalog-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.catalog-product-card__body span {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary-dark);
    font-size: var(--text-xs);
    font-weight: 800;
}

.catalog-product-card h3 {
    color: #111827;
    font-size: var(--text-base);
    line-height: 1.28;
    margin-bottom: 9px;
}

.catalog-product-card h3 a:hover {
    color: var(--primary);
}

.catalog-product-card p {
    color: #64748b;
    font-size: var(--text-sm);
    line-height: 1.55;
    margin-bottom: 16px;
}

.catalog-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: auto;
    padding: 9px 14px;
    border-radius: 6px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-sm);
}

.catalog-card-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.catalog-product-hero {
    padding-bottom: 62px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: start;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 32px;
}

.product-detail__gallery {
    display: grid;
    gap: 14px;
}

.product-detail__image {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    cursor: zoom-in;
}

.product-detail__image::after {
    content: 'Увеличить';
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.86);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 800;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
}

.product-detail__image:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.product-detail__image:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.product-detail__image--main {
    min-height: 360px;
}

.product-detail__image img {
    width: 100%;
    height: 132px;
    object-fit: contain;
}

.product-detail__image--main img {
    height: 300px;
}

.product-detail__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-detail__summary h2,
.product-panel h2 {
    color: #111827;
    font-size: var(--text-3xl);
    line-height: 1.2;
    margin: 10px 0 14px;
}

.product-detail__summary p,
.product-panel p {
    color: #475569;
    font-size: var(--text-base);
    line-height: 1.75;
}

.product-code {
    display: grid;
    gap: 6px;
    margin: 22px 0 16px;
    padding: 18px;
    border-radius: 8px;
    background: #0f172a;
    color: var(--white);
}

.product-code span {
    color: #bfdbfe;
    font-size: var(--text-xs);
    font-weight: 700;
}

.product-code strong {
    font-size: var(--text-lg);
    line-height: 1.25;
}

.product-detail__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 24px;
    margin-top: 24px;
}

.product-panel {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.product-panel--accent {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 62%);
}

.product-panel--accent .btn {
    margin-top: 18px;
}

.product-spec-table {
    display: grid;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.product-spec-table div {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
    border-bottom: 1px solid #e5e7eb;
}

.product-spec-table div:last-child {
    border-bottom: 0;
}

.product-spec-table dt,
.product-spec-table dd {
    padding: 13px 16px;
}

.product-spec-table dt {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.product-spec-table dd {
    color: #111827;
    font-weight: 800;
}

.product-related {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
}

.product-related__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-related__links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 9px 13px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: var(--text-sm);
}

.product-related__links a:hover {
    background: var(--primary);
    color: var(--white);
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 23, 42, 0.92);
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox__dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 56px);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.product-lightbox__image-wrap {
    display: grid;
    place-items: center;
    min-height: 320px;
    max-height: calc(100vh - 150px);
    padding: 34px;
    background: #f8fafc;
}

.product-lightbox__image-wrap img {
    width: 100%;
    max-height: calc(100vh - 220px);
    object-fit: contain;
}

.product-lightbox__caption {
    padding: 18px 24px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-size: var(--text-base);
    font-weight: 800;
}

.product-lightbox__close,
.product-lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.88);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover {
    background: var(--primary);
}

.product-lightbox__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: var(--text-2xl);
    line-height: 1;
}

.product-lightbox__nav {
    top: 50%;
    width: 44px;
    height: 52px;
    transform: translateY(-50%);
    font-size: var(--text-2xl);
}

.product-lightbox__nav--prev {
    left: 14px;
}

.product-lightbox__nav--next {
    right: 14px;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: var(--text-sm);
}

.category-link {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-base);
    display: inline-block;
    margin-top: 5px;
}

/* Hover backgrounds */
.category-electrical:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03), rgba(59, 130, 246, 0.03));
}

.category-lighting:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), rgba(251, 191, 36, 0.03));
}

/* Featured Projects */
.featured-projects {
    background: var(--gray-light);
}

.project-directions {
    padding: 28px 0 18px;
    background: #f8fafc;
}

.project-directions__intro {
    max-width: 880px;
    margin: 0 auto 28px;
    text-align: center;
}

.project-directions__intro h2 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: var(--text-3xl);
}

.project-directions__intro p {
    color: #475569;
    line-height: 1.75;
}

.project-direction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.project-direction-card {
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
    background: #fff;
    box-shadow: var(--shadow);
}

.project-direction-card h3 {
    font-size: var(--text-2xl);
    color: var(--primary-dark);
}

.project-direction-card p {
    color: #475569;
    line-height: 1.7;
}

.project-direction-meta {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 700;
}

.project-direction-list {
    padding-left: 18px;
    color: #334155;
}

.project-direction-list li + li {
    margin-top: 8px;
}

.project-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-preview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    box-shadow: var(--shadow);
}

.project-preview-card__media {
    min-height: 100%;
}

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

.project-preview-card__body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.project-preview-card__body h3 {
    font-size: var(--text-lg);
    line-height: 1.25;
    color: var(--primary-dark);
}

.project-preview-card__meta,
.project-preview-card__body p {
    font-size: var(--text-sm);
    color: #475569;
    line-height: 1.65;
}

.project-preview-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 700;
}

.project-preview-card__badge--light {
    background: var(--accent);
    color: #111827;
}

.projects-grid {
    display: grid;
    gap: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 400px 1fr;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
}

.project-badge-light {
    background: var(--accent);
}

.project-content {
    padding: 40px;
}

.project-content h3 {
    font-size: var(--text-2xl);
    margin-bottom: 10px;
    color: var(--dark);
}

.project-location {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: var(--text-base);
}

.project-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-specs {
    list-style: none;
    border-top: 1px solid var(--gray-light);
    padding-top: 20px;
}

.project-specs li {
    margin-bottom: 10px;
    color: var(--gray);
}

.project-specs strong {
    color: var(--dark);
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: var(--text-hero);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: var(--text-lg);
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.cta-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 40px;
    border-radius: 8px;
    width: 95%;
    max-width: 540px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: var(--text-2xl);
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #000;
}
/* Увеличиваем левый отступ для поля телефона, чтобы текст не налезал на флаг */
.iti {
    width: 100%; /* Чтобы контейнер занимал всю ширину */
    display: block;
}

#phone {
    padding-left: 90px !important; /* Принудительный отступ для текста внутри поля */
}

/* Сдвигаем плавающую метку (Label), чтобы она тоже не мешала флагу */
.contact-form .form-group input[id="phone"] ~ label {
    left: 90px;
}

/* Когда поле в фокусе или заполнено, поднимаем метку */
.contact-form .form-group input[id="phone"]:focus ~ label,
.contact-form .form-group input[id="phone"]:not(:placeholder-shown) ~ label {
    left: 10px; /* Возвращаем к левому краю, когда она улетает вверх */
    transform: translateY(-20px) scale(0.85);
}

.modal-contact-form .form-group label[for="phone"] {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    background: transparent;
    padding: 0;
    pointer-events: none;
}

/* Адаптивность для мобилок */
@media (max-width: 480px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }

    .modal-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ===== RESPONSIVE ===== */
/* ===== ПЛАНШЕТЫ: 769px – 1024px ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-preview-grid,
    .project-direction-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 300px;
    }

    /* Адаптация для планшетов */
    .hero-title {
        font-size: var(--text-2xl) !important;
        line-height: 1.3 !important;
        text-align: center;
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: var(--text-md);
        text-align: center;
        padding: 0 20px;
    }

    /* Контакты в хедере - планшеты */
    .header-contacts {
        gap: 10px;
    }

    .header-contacts .phone {
        font-size: var(--text-base);
        font-weight: 700;
    }

    .header-contacts .email {
        font-size: var(--text-sm);
    }

    /* Два столбца в выпадающем меню. Для планшетов - 2 колонки */
    .dropdown-columns .dropdown-menu {
        column-count: 2 !important;
        min-width: 500px;
    }

    /* Для устройств с мышью - оставляем hover */
    @media (hover: hover) {
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* Для тач-устройств на планшетах - отключаем hover */
    @media (hover: none) {
        .dropdown .dropdown-menu {
            opacity: 1;
            visibility: hidden;
            transform: translateX(-50%) translateY(10px);
        }

        .dropdown.active .dropdown-menu {
            opacity: 1;
            visibility: hidden;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* Services grid - 2 колонки */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ТЕЛЕФОНЫ: до 768px ===== */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition);
    }

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

    /* ===== ВЫПАДАЮЩЕЕ МЕНЮ НА МОБИЛЬНЫХ ===== */
    /* Скрываем все выпадашки по умолчанию */
    .dropdown .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        padding: 0;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        min-width: auto !important;
        max-width: none !important;
        column-count: 1 !important;
    }
        .dropdown-columns .dropdown-menu {
        column-count: 1 !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
    }

    /* Показываем ТОЛЬКО при клике (класс .active на .dropdown) */
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
        overflow: visible;
        padding-left: 20px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* УБИРАЕМ hover-эффект на мобильных */
    .dropdown:hover .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
    }

    /* УБИРАЕМ это правило - оно открывало все меню */
    .nav .dropdown-menu {
        display: none;
    }

    .nav.active .dropdown-menu {
        display: none;
    }

    /* Прокрутка для всего меню навигации */
    .nav {
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }

    /* Отступы для пунктов меню внутри выпадашки */
    .dropdown-menu a {
        padding-left: 40px !important;
        padding-right: 20px !important;
    }

    /* Убираем тень у выпадашки на мобильных */
    .dropdown-menu {
        box-shadow: none;
    }

    /* ===== ИСПРАВЛЕНИЯ ДЛЯ ЗАГОЛОВКА ГЕРОЯ ===== */
    .hero-title {
        font-size: var(--text-xl) !important;
        line-height: 1.3 !important;
        text-align: center;
        padding: 0 20px;
        margin: 0 auto 15px;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        text-align: center;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* ===== КОНТАКТЫ В ХЕДЕРЕ - ТЕЛЕФОНЫ ===== */
    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .header-contacts .phone {
        font-size: var(--text-sm);
        font-weight: 600;
    }

    .header-contacts .email {
        font-size: var(--text-xs);
    }

    /* ===== ОСТАЛЬНЫЕ СТИЛИ ===== */
    .page-hero h1 {
        font-size: var(--text-3xl);
    }

    .section-header h2 {
        font-size: var(--text-3xl);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .catalog-home-grid {
        grid-template-columns: 1fr;
    }

    .media-layout {
        grid-template-columns: 1fr;
    }

    .media-video-card {
        order: -1;
    }

    .project-direction-grid,
    .project-preview-grid {
        grid-template-columns: 1fr;
    }

    .project-preview-card {
        grid-template-columns: 1fr;
    }

    .project-preview-card__media {
        min-height: 220px;
    }

    .contacts-wrapper {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: var(--text-2xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 350px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: var(--text-lg);
    }

    .service-content p {
        font-size: var(--text-sm);
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 30px 25px;
    }

    .category-icon {
        font-size: var(--text-hero);
    }

    .category-card h2 {
        font-size: var(--text-lg);
    }

    .category-card p {
        font-size: var(--text-sm);
    }

    .category-link {
        font-size: var(--text-sm);
    }

    .project-direction-card {
        padding: 20px;
    }

    .project-preview-card__body h3 {
        font-size: var(--text-lg);
    }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ: до 480px ===== */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .about-actions,
    .media-actions {
        align-items: stretch;
    }

    .catalog-home-body {
        padding: 18px;
    }

    .catalog-home-body h3 {
        font-size: var(--text-lg);
    }

    .media-section {
        padding: 56px 0;
    }

    .btn {
        width: 100%;
    }

    /* Адаптация для маленьких телефонов */
    .hero-title {
        font-size: var(--text-lg) !important;
        line-height: 1.2 !important;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: var(--text-sm);
        padding: 0 15px;
    }

    /* ===== КОНТАКТЫ В ХЕДЕРЕ - МАЛЕНЬКИЕ ТЕЛЕФОНЫ ===== */
    .header-contacts {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .header-contacts .phone::before,
    .header-contacts .email::before {
        content: "📞 ";
        font-size: var(--text-xs);
    }

    .header-contacts .email::before {
        content: "✉️ ";
    }

    .header-contacts .phone,
    .header-contacts .email {
        font-size: var(--text-xs);
        line-height: 1.2;
    }

    .category-card {
        padding: 25px 20px;
    }

    .category-icon {
        font-size: var(--text-3xl);
    }

    .category-card h2 {
        font-size: var(--text-lg);
    }

    .category-card p {
        font-size: var(--text-xs);
    }
}

@media (max-width: 1100px) {
    .catalog-layout,
    .service-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 22px;
    }

    .partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .company-contact-grid {
        grid-template-columns: 1fr;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail,
    .product-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .catalog-hero {
        padding: 34px 0 56px;
    }

    .breadcrumbs {
        margin-bottom: 54px;
    }

    .catalog-hero h1 {
        font-size: var(--text-3xl);
    }

    .catalog-layout,
    .service-layout,
    .catalog-overview {
        grid-template-columns: 1fr;
    }

    .company-feature-grid,
    .company-doc-list,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar,
    .service-sidebar {
        position: static;
    }

    .catalog-sidebar__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-main {
        padding: 24px;
    }

    .company-map iframe {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .catalog-page {
        padding: 28px 0 54px;
    }

    .catalog-hero h1 {
        font-size: var(--text-2xl);
    }

    .catalog-hero p {
        font-size: var(--text-base);
    }

    .catalog-hero__actions .btn {
        width: 100%;
        max-width: none;
    }

    .catalog-overview {
        padding: 22px;
    }

    .catalog-overview h2,
    .catalog-section-head h2,
    .document-section__head h3 {
        font-size: var(--text-xl);
    }

    .catalog-sidebar__nav,
    .catalog-product-grid,
    .document-grid {
        grid-template-columns: 1fr;
    }

    .catalog-group summary {
        padding: 18px;
    }
