/* CSS стили для сайта РН Техник */
/* Корпоративный дизайн с синей гаммой */

:root {
    /* Корпоративные цвета */
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    
    /* Дополнительные цвета */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --text-dark: #1e293b;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    --gradient-light: linear-gradient(135deg, var(--light-blue), var(--white));
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Шрифты */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Базовая структура */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem; /* Правильные отступы от краев */
    width: 100%;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--primary-blue);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

h3 {
    font-size: 1.875rem;
    color: var(--dark-blue);
}

h4 {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn: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:hover:before {
    left: 100%;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Плейсхолдеры для изображений */
.hero-image-placeholder,
.product-image-placeholder,
.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: scale(1.02);
}

.hero-image {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.hero-image-placeholder::after,
.product-image-placeholder::after {
    content: "🖼️ Изображение будет здесь";
    opacity: 0.9;
    text-align: center;
}

.project-image-placeholder::after {
    opacity: 0.9;
    text-align: center;
    font-size: 1rem;
}

.project-card:has(h3:contains("Система имитации звуков")) .project-image-placeholder::after {
    content: "🔊 Аудиосистема";
}

.project-card:has(h3:contains("Универсальная плата")) .project-image-placeholder::after {
    content: "🔌 Плата ввода-вывода";
}

.hero-image-placeholder::before,
.product-image-placeholder::before,
.project-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255,255,255,0.1) 75%),
        linear-gradient(45deg, 
        rgba(255,255,255,0.1) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0 0, 10px 10px; }
    100% { background-position: 20px 20px, 30px 30px; }
}

/* Навигация */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: flex-end; /* Прижимаем меню к правому краю */
    align-items: center;
    padding: 0 4rem; /* Правильные отступы навигации */
    max-width: none; /* Убираем ограничение ширины */
    gap: 2rem; /* Расстояние между логотипом и меню */
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-right: auto; /* Прижимаем логотип к левому краю */
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.company-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

.nav-home {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

.nav-home:hover {
    background: var(--gradient-primary);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-active {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

.nav-active:hover {
    background-color: var(--secondary-blue);
    color: var(--white) !important;
}

/* Мобильное меню */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background-color: var(--light-blue);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Основной контент */
main {
    padding-top: 120px; /* Правильный отступ сверху */
}

/* Секции */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--light-gray);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding: 120px 80px; /* Отступы сверху/снизу и слева/справа */
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.company-title {
    font-size: 6.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    line-height: 1;
    white-space: nowrap;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-highlight {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-blue); /* Fallback */
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-info {
    display: flex;
    gap: 2rem;
}

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

.info-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

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

/* Сетки */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--text-dark));
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    height: 40px;
    width: auto;
    opacity: 1;
}

.footer-logo .company-name {
    color: var(--white);
    font-size: 1.25rem;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--secondary-blue);
    font-size: 1.125rem;
}

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

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-column a:hover {
    color: var(--secondary-blue);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #94a3b8;
}

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--secondary-blue);
}

/* Специальные компоненты */
.breadcrumb {
    margin-bottom: 2rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

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

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 2px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.price-note {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.registry-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
}

.registry-link:hover {
    text-decoration: underline;
}

/* Табы */
.projects-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .container {
        padding: 0 3rem; /* Адаптивные отступы на планшетах */
    }
    
    .nav-container {
        padding: 0 3rem; /* Адаптивные отступы на планшетах */
        max-width: none; /* Убираем ограничение ширины на планшетах */
    }
    
    .hero {
        padding: 100px 60px; /* Адаптивные отступы hero на планшетах */
    }
    
    .company-title {
        font-size: 5rem;
        letter-spacing: 0.15em;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem; /* Адаптивные отступы на мобильных */
    }
    
    .nav-container {
        padding: 0 2rem; /* Адаптивные отступы на мобильных */
        max-width: none; /* Убираем ограничение ширины на мобильных */
    }
    
    main {
        padding-top: 120px; /* Правильный отступ сверху */
    }
    
    .hero {
        padding: 80px 40px 60px; /* Адаптивные отступы hero на мобильных */
        min-height: calc(100vh - 120px);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .company-title {
        font-size: 4rem;
        margin-bottom: 0.8rem;
        letter-spacing: 0.15em;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-info {
        justify-content: center;
        gap: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .projects-tabs {
        flex-direction: column;
        align-items: center;
    }
}

/* Дополнительные компоненты для страниц */

/* Направления деятельности */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.direction-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

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

.direction-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Продукты */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

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

.product-header {
    padding: 2rem 2rem 1rem;
    background: var(--gradient-light);
}

.product-header h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.product-tag {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-description {
    padding: 0 2rem 1rem;
}

.product-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--gray);
}

.product-projects {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--dark-blue);
}

.product-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

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

.service-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.service-category ul {
    list-style: none;
    padding: 0;
}

.service-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--gray);
}

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

.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient-light);
    border-radius: 16px;
}

/* Технологии */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

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

.tech-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Проекты */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.project-card h3 {
    padding: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-blue);
    font-size: 1.125rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Контакты */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

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

.company-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.detail-item {
    margin-bottom: 1rem;
    color: var(--gray);
}

.detail-item strong {
    color: var(--text-dark);
}

.detail-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.detail-item a:hover {
    text-decoration: underline;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 8px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Статистика */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.about-cta .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

/* Документация */
.documentation {
    padding: 4rem 0;
    background: var(--light-gray);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.doc-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.doc-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.doc-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.doc-item p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Адаптивность для документации */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .doc-item {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
