/* === ASSIST-24 BASE STYLES v1.0 === */

/* CSS Variables — каждая страница переопределяет --accent */
:root {
    --accent: #4a5fff;        /* синий по умолчанию (главная) */
    --accent-rgb: 74, 95, 255;
    --accent-dark: #010673;
    --bg: #0a0a12;
    --bg-light: #0e0e1a;
    --bg-card: #0c0c16;
    --text: #E6E6E6;
    --text-dim: rgba(230, 230, 230, 0.5);
    --text-dimmer: rgba(230, 230, 230, 0.4);
    --border: #585858;
    --border-dim: rgba(88, 88, 88, 0.4);
}

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

html {
    overflow-y: scroll;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg);
    color: #ffffff;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100% !important;
    position: relative !important;
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes containerScaleIn {
    from { opacity: 1; transform: translateX(-50%) scale(1.15); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes mobileContainerFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 80px);
    max-width: 1200px;
    padding: 0 40px;
    z-index: 99999;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(217, 217, 217, 0.07);
    backdrop-filter: blur(14.3px);
    -webkit-backdrop-filter: blur(14.3px);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18);
    animation: headerFadeIn 0.8s ease-out forwards;
}

.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav a {
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 1;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3), inset 0 0 10px rgba(var(--accent-rgb), 0.1);
}

.header-btn:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5), inset 0 0 15px rgba(var(--accent-rgb), 0.2);
    transform: scale(1.05);
}

/* ============================================
   BURGER
   ============================================ */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100002;
    position: relative;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   FULLSCREEN MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu-nav a {
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-nav a {
    opacity: 0.8;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
    opacity: 1;
    color: var(--accent);
}

.mobile-menu-btn {
    margin-top: 50px;
    padding: 16px 48px;
    background: rgba(var(--accent-rgb), 0.2);
    border: 2px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s, background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.mobile-menu-overlay.active .mobile-menu-btn {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-btn:hover {
    background: rgba(var(--accent-rgb), 0.35);
    border-color: rgba(var(--accent-rgb), 0.9);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100001;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-menu-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================
   BUTTONS (общие)
   ============================================ */
.btn-primary {
    position: relative;
    display: inline-block;
}

.btn-primary a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 223px;
    height: 57px;
    background: rgba(var(--accent-rgb), 0.2);
    border: 2px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3), inset 0 0 15px rgba(var(--accent-rgb), 0.1);
}

.btn-primary a:hover {
    background: rgba(var(--accent-rgb), 0.35);
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5), inset 0 0 20px rgba(var(--accent-rgb), 0.2);
    transform: scale(1.05);
}

.btn-secondary {
    position: relative;
    display: inline-block;
}

.btn-secondary a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 223px;
    height: 57px;
    background: transparent;
    border: 2px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3), inset 0 0 15px rgba(var(--accent-rgb), 0.1);
}

.btn-secondary a:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5), inset 0 0 20px rgba(var(--accent-rgb), 0.2);
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: #08080e;
    border-top: 1px solid var(--border);
    padding: 80px 40px 40px;
    margin-top: 0;
    z-index: 20;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(88, 88, 88, 0.5);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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


.footer-tagline {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 250px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-contacts,
.footer-nav,
.footer-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: rgba(230, 230, 230, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-address {
    font-size: 14px;
    color: rgba(230, 230, 230, 0.6);
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-dimmer);
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal-link {
    font-size: 13px;
    color: var(--text-dimmer);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: rgba(230, 230, 230, 0.7);
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand {
        grid-column: span 2;
        align-items: center;
    }
    .footer-tagline { text-align: center; }
    .footer-contacts,
    .footer-nav,
    .footer-services { align-items: center; }
}

@media (max-width: 600px) {
    .footer { padding: 60px 20px 30px; }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-brand {
        grid-column: span 1;
        align-items: center;
    }
    .footer-tagline { text-align: center; }
    .footer-contacts,
    .footer-nav,
    .footer-services { align-items: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   CONTACTS SECTION (общие стили)
   ============================================ */
.contacts {
    position: relative;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 120px 40px;
    background: var(--bg);
    z-index: 15;
    overflow: hidden;
}

.contacts-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.contacts-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.contacts-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contacts-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contacts-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.contacts-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.contacts-subtitle {
    font-size: 18px;
    color: rgba(230, 230, 230, 0.6);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 400px;
}

.contacts-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(230, 230, 230, 0.8);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts-detail:hover {
    color: var(--accent);
}

.contacts-detail-icon {
    width: 44px; height: 44px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contacts-form-wrapper {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.contacts-form-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.contacts-form-glow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 150px;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.contacts-form {
    position: relative;
    z-index: 1;
    background: rgba(12, 12, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-dim);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contacts-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contacts-form-group {
    margin-bottom: 16px;
}

.contacts-form-group:last-of-type {
    margin-bottom: 24px;
}

.contacts-input,
.contacts-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(10, 10, 18, 0.6);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
}

.contacts-input::placeholder,
.contacts-textarea::placeholder {
    color: var(--text-dimmer);
}

.contacts-input:focus,
.contacts-textarea:focus {
    border-color: rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

.contacts-textarea {
    min-height: 120px;
    resize: vertical;
}

.contacts-submit {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
}

.contacts-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.5);
}

.contacts-form-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(88, 88, 88, 0.3);
}

.contacts-form-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts-form-info-label {
    font-size: 12px;
    color: var(--text-dimmer);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacts-form-info-value {
    font-size: 14px;
    color: rgba(230, 230, 230, 0.8);
}

.contacts-form-info-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts-form-info-value a:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .contacts-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contacts-info { text-align: center; }
    .contacts-title { font-size: 36px; text-align: center; }
    .contacts-subtitle {
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .contacts-details {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .contacts { padding: 80px 20px; }
    .contacts-title { font-size: 28px; text-align: center; }
    .contacts-subtitle { font-size: 14px; text-align: center; }
    .contacts-form { padding: 28px; }
    .contacts-form-row { grid-template-columns: 1fr; }
    .contacts-form-footer { grid-template-columns: 1fr; }
}

/* ============================================
   HEADER RESPONSIVE
   ============================================ */
@media (max-width: 1600px) {
    .header { padding: 0 60px; }
}

@media (max-width: 1200px) {
    .header { padding: 0 40px; max-width: 100%; }
    .nav a { font-size: 14px; }
    .nav { gap: 30px; }
    .header-btn { padding: 8px 18px; font-size: 13px; }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        width: calc(100vw - 40px);
    }
    .nav { display: none; }
    .header-btn { display: none; }
    .burger { display: flex; }
    .mobile-menu-overlay { display: block; }
}

@media (max-width: 400px) {
    .header { padding: 0 15px; max-width: 100%; width: calc(100vw - 30px); }
    .logo img { height: 28px; }
    .mobile-menu-nav a { font-size: 24px; }
    .mobile-menu-btn { font-size: 16px; padding: 14px 40px; }
}
