/* ==========================================================================
   Universal Solutions for Technologies - style.css
   Корпоративные цвета Stäubli: Антрацит + Оранжевый
   ========================================================================== */

/* Основные цвета */
:root {
    --primary-color: #FF6B00;        /* Оранжевый Stäubli */
    --primary-hover: #e55a00;        /* Темнее оранжевого для hover */
    --secondary-color: #2F2F2F;      /* Антрацит */
    --light-gray: #F5F5F5;           /* Светло-серый фон */
    --medium-gray: #E5E7EB;          /* Средний серый */
    --text-color: #2F2F2F;           /* Основной цвет текста */
    --text-muted: #666666;           /* Приглушенный текст */
    --border-color: #D1D5DB;         /* Цвет границ */
    --white: #FFFFFF;                /* Белый */
    --shadow: 0 2px 10px rgba(47, 47, 47, 0.1);  /* Тени */
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые стили */
body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 50%, #D1D5DB 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Деликатный паттерн */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(47,47,47,0.02) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Навигация */
nav {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

nav a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

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

/* Основной контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Секции */
section {
    margin: 3rem 0;
}

/* Hero секция */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px),
        linear-gradient(rgba(47,47,47,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

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

.hero h1 {
    color: var(--secondary-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.hero h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

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

/* Параграфы */
p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Ссылки */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Карточки */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: linear-gradient(145deg, var(--white) 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(47, 47, 47, 0.15);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.card a:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

.card a::after {
    content: '→';
    transition: transform 0.3s ease;
}

.card a:hover::after {
    transform: translateX(3px);
}

/* Формы */
form {
    background: linear-gradient(145deg, var(--white) 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid var(--border-color);
}

form h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 2px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: #999;
    font-style: italic;
}

textarea {
    height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

select {
    cursor: pointer;
}

/* Кнопки */
.btn-primary, 
button[type="submit"], 
.button-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
button[type="submit"]:hover::before {
    left: 100%;
}

.btn-primary:hover, 
button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.btn-primary:active, 
button[type="submit"]:active {
    transform: translateY(-1px);
}

/* Разделители */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem 0;
    border-radius: 1px;
}

/* Списки */
ul {
    padding-left: 0;
}

li {
    list-style: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
}

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

li strong {
    color: var(--secondary-color);
}

/* Специальные секции */
.about, 
.advantages, 
.services, 
.why-us, 
.contact-cards, 
.general-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.contact-info, 
.contacts-preview {
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
}

.emergency-contacts {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--medium-gray) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.support-form, 
.contact-form {
    margin: 3rem 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    nav a {
        padding: 0.5rem 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .about, 
    .advantages, 
    .services, 
    .contact-cards,
    .general-info {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    nav ul {
        padding: 0 0.5rem;
    }
    
    main {
        padding: 0.5rem;
    }
    
    form {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    input, select, textarea {
        padding: 0.75rem;
    }
    
    .btn-primary, 
    button[type="submit"] {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Печать */
@media print {
    body {
        background: white;
    }
    
    nav {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Улучшение доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Высококонтрастный режим (исправлено для analyzer) */
@supports (prefers-contrast: high) {
    @media (prefers-contrast: high) {
        --primary-color: #CC5500 !important;
        --secondary-color: #000000 !important;
        --text-color: #000000 !important;
        --border-color: #000000 !important;
    }
}

@supports (prefers-contrast: low) {
    @media (prefers-contrast: low) {
        --primary-color: #FF8C00 !important;
        --text-color: #4A4A4A !important;
    }


/* Анимации для улучшения UX */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, 
.hero, 
form, 
.about, 
.services {
    animation: fadeIn 0.6s ease-out;
}

/* Утилитарные классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Конец файла */