/* ======================================== */
/* CUSTOM_MAIN.CSS - НАСТРАИВАЙТЕ ЗДЕСЬ     */
/* ======================================== */

/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,500,600,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

/* ========== ПЕРЕМЕННЫЕ - ИЗМЕНЯЙТЕ ЦВЕТА ЗДЕСЬ ========== */
:root {
    /* ОСНОВНЫЕ ЦВЕТА */
    --color-white: #ffffff;           /* Белый */
    --color-offwhite: #f8f9fa;        /* Светлый фон */
    --color-light: #e9ecef;            /* Светло-серый */
    --color-gray-light: #dee2e6;       /* Границы */
    --color-gray: #adb5bd;             /* Серый */
    --color-gray-dark: #6c757d;         /* Темно-серый */
    --color-dark: #343a40;              /* Основной темный */
    --color-black: #212529;             /* Почти черный */
    
    /* АКЦЕНТНЫЙ ЦВЕТ (измените на свой) */
    --color-primary: #0d6efd;           /* Синий - ОСНОВНОЙ ЦВЕТ */
    --color-primary-hover: #0a58ca;      /* Темнее при наведении */
    --color-primary-subtle: #e7f1ff;     /* Светлый фон */
    
    /* ВТОРИЧНЫЙ ЦВЕТ */
    --color-secondary: #343a40;          /* Темный */
    --color-secondary-hover: #212529;     /* Еще темнее */
    
    /* ТЕКСТ */
    --color-text: #ffffff;               /* БЕЛЫЙ текст */
    --color-text-light: #e0e0e0;          /* Светло-серый */
    --color-text-inverse: #343a40;        /* Темный текст */
    
    /* ГРАНИЦЫ */
    --color-border: rgba(255, 255, 255, 0.2); /* Полупрозрачная белая граница */
    
    /* ТЕНИ - регулируйте прозрачность */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    /* АНИМАЦИИ */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* ОТСТУПЫ - меняйте под свой дизайн */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-xxl: 4rem;     /* 64px */
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--color-text);
    background-image: url("../images/background/background-1.c6f1bf98fda8.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-wrapper {
    flex: 1 0 auto;
}

/* ========== ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ БЛОКОВ ========== */
#header,
#intro [class*="col-"] section,
.box,
#main .box form,
.project-description,
.project-specs,
.about-section,
#order_form .box {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    color: white;
}

/* ========== ТИПОГРАФИЯ ========== */
h1, h2, h3, h4 {
    color: white !important;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: var(--spacing-md);
    color: white;
}

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

a:hover {
    color: var(--color-primary-hover);
}

/* ========== КОНТЕЙНЕР ========== */
.container {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

/* ========== СИСТЕМА СЕТОК ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: calc(-1 * var(--spacing-sm));
}

.row > * {
    padding: var(--spacing-sm);
}

.col-1 { width: 8.333%; }
.col-2 { width: 16.666%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333%; }
.col-5 { width: 41.666%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333%; }
.col-8 { width: 66.666%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333%; }
.col-11 { width: 91.666%; }
.col-12 { width: 100%; }

/*
 * Content collections stay balanced when editors add or remove items.
 * Incomplete rows are centred and cards grow only to a readable width.
 */
.adaptive-grid {
    --adaptive-item-min: 260px;
    --adaptive-item-max: 370px;
    justify-content: center;
}

.adaptive-grid > * {
    flex: 1 1 var(--adaptive-item-min);
    width: auto;
    max-width: var(--adaptive-item-max);
}

.adaptive-grid-team {
    --adaptive-item-min: 250px;
    --adaptive-item-max: 340px;
}

.adaptive-grid-compact {
    --adaptive-item-min: 180px;
    --adaptive-item-max: 270px;
}

.project-grid > *,
.three-column-grid > * {
    flex: 0 0 33.333%;
    width: 33.333%;
    max-width: 33.333%;
}

/* ========== ШАПКА ========== */
#header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

#header h1 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: var(--spacing-md);
}

#header h1 a {
    color: white;
}

#header h1 a:hover {
    color: var(--color-primary);
}

/* ========== НАВИГАЦИЯ ========== */
#nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#nav a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: white;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Анимация при наведении на кнопки шапки */
#nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

#nav a:hover::before {
    width: 300px;
    height: 300px;
}

#nav a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Анимация для активной кнопки */
#nav .current a {
    background: var(--color-primary);
    color: white;
    animation: pulse 3s infinite;
}

#nav .current a:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

#nav .current a::before {
    display: none;
}

/* Анимация пульсации для активной кнопки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* ========== БАННЕР ========== */
#banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    border-radius: 8px;
    max-width: 1150px;
    margin: var(--spacing-lg) auto;
    width: 95%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Анимация блика - настраивайте */
#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 4s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 200%; }
}

#banner header {
    position: relative;
    z-index: 1;
}

#banner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#banner p {
    color: white;
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ========== ПРЕИМУЩЕСТВА КОМПАНИИ ========== */
#intro .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#intro [class*="col-"] {
    flex: 1 1 300px;
    max-width: 350px;
}

#intro [class*="col-"] section {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#intro [class*="col-"] section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

/* Стили для отступа */
.intro-actions {
    margin-top: var(--spacing-xl);
}

/* СТИЛИ ДЛЯ ИКОНОК */
.featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 3.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

#intro [class*="col-"] section:hover .featured-icon {
    background: var(--color-primary);
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 30px var(--color-primary);
}

/* Заголовки в карточках */
#intro [class*="col-"] h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
    color: white;
}

#intro [class*="col-"] section:hover h2 {
    color: var(--color-primary);
}

/* Текст в карточках */
#intro [class*="col-"] p {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

#intro [class*="col-"] section:hover p {
    color: white;
}

/* ========== КНОПКИ ========== */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--color-primary);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.button.alt {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.button.alt:hover {
    background: rgba(255, 255, 255, 0.3);
}

.actions {
    display: flex;
    gap: 1rem;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== ПОРТФОЛИО ========== */
#main {
    padding: var(--spacing-xl) 0 var(--spacing-xxl) 0;
}

.major {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.major h2 {
    font-size: 2.2rem;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
    color: white;
}

.major h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-primary);
}

.box {
    overflow: hidden;
    transition: var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.image-cover {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

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

.image-cover:hover img {
    transform: scale(1.08);
}

.box header {
    padding: var(--spacing-md) var(--spacing-md) 0;
}

.box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.box p {
    padding: 0 var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.box footer {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* ========== СТРАНИЦА ПРОЕКТА ========== */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-slow);
    background: rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* ========== ФОРМЫ ========== */
#main .box form {
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.gtr-uniform {
    margin: -1rem;
}

.gtr-uniform > * {
    padding: 1rem;
}

/* Поля формы */
input, textarea, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:hover, textarea:hover, select:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
}

.about-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-section .major {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.about-section .major h2 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.about-section .major h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-primary);
}

.about-section img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ========== ПОДВАЛ ========== */
#footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

#footer h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
}

#footer p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-left {
    text-align: left;
    width: 100%;
}

.footer-left .actions {
    justify-content: flex-start;
    padding-left: 0;
    margin-left: 0;
}

.footer-left .button {
    margin-left: 0;
}

/* Контакты */
.contact {
    list-style: none;
}

.contact li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
}

.contact li:last-child {
    border-bottom: none;
}

.contact h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact h3 i {
    color: var(--color-primary);
}

.contact a {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact a:hover {
    color: white;
    border-bottom-color: white;
}

/* Социальные сети */
.social-section {
    margin: 3rem 0 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-card.vk:hover { background: #4a76a8; }
.social-card.telegram:hover { background: #0088cc; }
.social-card.youtube:hover { background: #ff0000; }
.social-card.rutube:hover { background: #34a7f0; }
.social-card.dzen:hover { background: #222222; }

/* Копирайт */
.copyright {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-standalone {
    margin-top: 0;
}

.copyright p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.copyright .small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== АДАПТАЦИЯ ========== */
@media screen and (max-width: 980px) {
    .col-4-medium { width: 50%; }
    .col-6-medium { width: 50%; }
    .col-12-medium { width: 100%; }

    .project-grid > *,
    .three-column-grid > * {
        flex-basis: 50%;
        width: 50%;
        max-width: 50%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media screen and (max-width: 736px) {
    .col-12-small { width: 100%; }

    .adaptive-grid > * {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
    
    :root {
        --spacing-xl: 2rem;
        --spacing-xxl: 3rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    #nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    #nav li {
        width: 100%;
        max-width: 300px;
    }
    
    #nav a {
        width: 100%;
        text-align: center;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .actions li {
        width: 100%;
        max-width: 250px;
    }
    
    .actions .button {
        width: 100%;
    }
    
    #intro [class*="col-"] {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .social-card {
        width: 100%;
        justify-content: center;
    }
    
    .main-image { 
        height: 300px; 
    }
    
    .project-specs { 
        grid-template-columns: 1fr; 
    }
    
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .about-section .col-6:first-child {
        margin-top: 1.5rem;
    }
}
/* Общие состояния изображений и системные сообщения */
.image-placeholder {
    display: flex;
    width: 100%;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.45);
    font-weight: 600;
}

.site-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    width: min(28rem, calc(100% - 2rem));
}

.site-message {
    margin-bottom: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    color: #fff;
    background: #245f9e;
    box-shadow: var(--shadow);
}

.site-message.success { background: #287a45; }
.site-message.warning { background: #91640d; }
.site-message.error { background: #9b3030; }
.site-logo { max-height: 44px; width: auto; vertical-align: middle; }
.section-spacer { margin-top: 3em; }
.cms-about-image { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.about-copy { font-size: 1.1rem; line-height: 1.8; }
.cms-card { text-align: center; padding: 2rem; }
.cms-icon { display: block; margin-bottom: 1rem; color: var(--color-primary); font-size: 4rem; }
.team-photo { width: 150px; height: 150px; margin: 1rem auto; border: 3px solid var(--color-primary); border-radius: 50%; object-fit: cover; }
.team-position { color: var(--color-primary); font-weight: 600; }
.stats-section { padding: 3rem; border-radius: 12px; color: white; text-align: center; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover)); }
.stats-section h2, .stats-section h3 { color: white; }
.stats-section h3 { margin-bottom: .5rem; font-size: 3rem; }
.stats-section p { color: rgba(255,255,255,.9); font-size: 1.2rem; }
