/* ============================================
   POLSERVIS.COM - ОБЩИЕ СТИЛИ
   Версия: 1.0
   Обновлено: 2025
============================================ */

/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    /* Основные цвета */
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2980b9;
    
    --secondary: #ff6b35;
    --secondary-dark: #e55a2b;
    --secondary-light: #ff8a5c;
    
    /* Нейтральные цвета */
    --dark: #1a1a2e;
    --gray-900: #2d3748;
    --gray-700: #4a5568;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --gray-200: #e9ecef;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Дополнительные цвета */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Тени */
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Переходы */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Шрифты */
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
    
    /* Контейнер */
    --container-width: 1200px;
    --container-padding: 20px;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 1500;
}

/* ===== CSS СБРОС ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-lg);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.logo__text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.logo__text span {
    color: var(--secondary);
}

/* Навигация */
.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav__link {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link:hover::after {
    width: 100%;
}

/* Контакты в шапке */
.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header__phone-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.header__phone-number:hover {
    color: var(--secondary);
}

.header__phone-text {
    font-size: 12px;
    color: var(--gray);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn--primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
    background: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn--secondary {
    background: var(--primary);
    color: var(--white);
}

.btn--secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn--outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--gray-200);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--outline-white:hover {
    background: var(--white);
    color: var(--dark);
}

.btn--white {
    background: var(--white);
    color: var(--secondary);
}

.btn--white:hover {
    background: var(--dark);
    color: var(--white);
}

.btn--whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn--whatsapp:hover {
    background: #1fb855;
    color: var(--white);
}

.btn--telegram {
    background: #0088cc;
    color: var(--white);
}

.btn--telegram:hover {
    background: #006699;
    color: var(--white);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn--lg {
    padding: 18px 36px;
    font-size: 18px;
}

.btn--block {
    width: 100%;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 100px 0;
}

.section--gray {
    background: var(--light);
}

.section--dark {
    background: var(--dark);
    color: var(--white);
}

.section--gradient {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: var(--white);
}

.section--cta {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
}

/* Заголовки секций */
.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__tag {
    display: inline-block;
    background: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section--dark .section__tag,
.section--gradient .section__tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section--dark .section__title,
.section--gradient .section__title,
.section--cta .section__title {
    color: var(--white);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section--dark .section__subtitle,
.section--gradient .section__subtitle,
.section--cta .section__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card--bordered {
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.card--bordered:hover {
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: #0d0d1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer__brand {
    max-width: 300px;
}

.footer__brand .logo {
    margin-bottom: 20px;
}

.footer__brand .logo__text {
    color: var(--white);
}

.footer__brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__requisites {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.8;
}

.footer__requisites strong {
    color: var(--white);
}

.footer__column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer__column ul {
    list-style: none;
    margin: 0;
}

.footer__column li {
    margin-bottom: 12px;
}

.footer__column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer__column a:hover {
    color: var(--secondary);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer__contact-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__bottom a:hover {
    color: var(--secondary);
}

/* ===== ПЛАВАЮЩИЕ КНОПКИ ===== */
.float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn--whatsapp {
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: var(--white);
}

.float-btn--scroll-top {
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
}

.float-btn--scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== УТИЛИТЫ ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gray { color: var(--gray); }
.text-white { color: var(--white); }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); }
.bg-white { background: var(--white); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* ===== АНИМАЦИИ ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: 80px 0;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .section__header {
        margin-bottom: 40px;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    /* Header mobile */
    .nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
    }
    
    .nav__list.active {
        display: flex;
    }
    
    .nav__list li {
        border-bottom: 1px solid var(--gray-200);
        margin: 0;
    }
    
    .nav__list li:last-child {
        border-bottom: none;
    }
    
    .nav__link {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header__contacts {
        display: none;
    }
    
    /* Footer mobile */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer__brand {
        max-width: 100%;
    }
    
    .footer__brand .logo {
        justify-content: center;
    }
    
    .footer__contact-item {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Float buttons mobile */
    .float-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .float-btn--whatsapp {
        bottom: 20px;
        left: 20px;
    }
    
    .float-btn--scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    
    .section {
        padding: 50px 0;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn--lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .card {
        padding: 20px;
    }
}
/* Скрыть все кнопки WhatsApp */
.float-btn--whatsapp,
.cta-btn--whatsapp,
.contacts__cta-btn--whatsapp,
.article__share-btn--wa,
a[href*="wa.me"],
a[href*="whatsapp"] {
    display: none !important;
}