* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    -height: 100vh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    font-display: swap;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Блокировка скролла во время загрузки */
body.loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Заглушка загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100svh;
    height: -webkit-fill-available;
    background: #000000;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    position: relative;
    animation: glitch 2s infinite;
}

.loading-logo::before,
.loading-logo::after {
    content: 'EK';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading-logo::before {
    color: rgba(255, 255, 255, 0.3);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.loading-logo::after {
    color: rgba(255, 255, 255, 0.6);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    10% {
        transform: translate(-2px, 1px);
    }
    20% {
        transform: translate(2px, -1px);
    }
    30% {
        transform: translate(-1px, 2px);
    }
    40% {
        transform: translate(1px, -2px);
    }
    50% {
        transform: translate(-2px, -1px);
    }
    60% {
        transform: translate(2px, 1px);
    }
    70% {
        transform: translate(-1px, -2px);
    }
    80% {
        transform: translate(1px, 2px);
    }
    90% {
        transform: translate(-2px, 1px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    10% {
        transform: translate(-5px, 2px);
        opacity: 0.8;
    }
    20% {
        transform: translate(3px, -3px);
        opacity: 0.9;
    }
    30% {
        transform: translate(-2px, 4px);
        opacity: 0.7;
    }
    40% {
        transform: translate(4px, -2px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-3px, -3px);
        opacity: 0.9;
    }
    60% {
        transform: translate(5px, 1px);
        opacity: 0.7;
    }
    70% {
        transform: translate(-4px, -4px);
        opacity: 0.8;
    }
    80% {
        transform: translate(2px, 3px);
        opacity: 0.9;
    }
    90% {
        transform: translate(-5px, 2px);
        opacity: 0.8;
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    15% {
        transform: translate(4px, -2px);
        opacity: 0.8;
    }
    25% {
        transform: translate(-3px, 3px);
        opacity: 0.9;
    }
    35% {
        transform: translate(2px, -4px);
        opacity: 0.7;
    }
    45% {
        transform: translate(-4px, 2px);
        opacity: 0.8;
    }
    55% {
        transform: translate(3px, 3px);
        opacity: 0.9;
    }
    65% {
        transform: translate(-5px, -1px);
        opacity: 0.7;
    }
    75% {
        transform: translate(4px, 4px);
        opacity: 0.8;
    }
    85% {
        transform: translate(-2px, -3px);
        opacity: 0.9;
    }
    95% {
        transform: translate(4px, -2px);
        opacity: 0.8;
    }
}

.loading-text {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Скрываем контент до загрузки шрифтов */
.content-hidden {
    visibility: hidden;
}

/* Минималистичный фон */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    animation: float 12s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 200px;
    height: 120px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 3s;
    transform: rotate(-20deg);
}

.shape:nth-child(3) {
    width: 100px;
    height: 180px;
    bottom: 20%;
    left: 60%;
    animation-delay: 6s;
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) translateX(5px);
        opacity: 0.6;
    }
}

/* Основной контент */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.logo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 80px 100px;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease-out;
    position: relative;
    will-change: transform;
    max-width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    color: white;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -4px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.logo .tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
}

.main-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 20px 80px;
    max-width: 800px;
    width: 100%;
    animation: slideUp 0.8s ease-out 0.2s both;
    will-change: transform;
    box-sizing: border-box;
}

.status {
    color: white;
    margin-bottom: 30px;
}

.status h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.status p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
    font-weight: 300;
}

.services {
    margin: 40px 0;
    color: white;
}

.services h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.005) 100%);
    padding: 30px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.progress-bar {
    margin: 40px 0;
}

.progress-text {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, #ffffff 0%, #888888 100%);
    height: 100%;
    border-radius: 12px;
    animation: progress 3s ease-out;
    width: 75%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-form-section {
    margin-top: 30px;
    color: white;
}

.contact-form {
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    color: white;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    max-width: 500px
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 20px 30px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.submit-btn.loading .btn-loader {
    display: block;
}

.submit-btn.loading span {
    opacity: 0.7;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
}

.mail {
    width: 30svh;
}

.telegram {
    width: 20svh;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    padding: 20px 25px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.contact-item span{
    color:white;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progress {
    from { width: 0%; }
    to { width: 75%; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .logo .tagline {
        font-size: 1rem;
    }

    .main-content {
        padding: 30px 20px;
    }

    .status h2 {
        font-size: 2rem;
    }

    .status p {
        font-size: 1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }
}

/* iOS Safari фиксы */
@supports (-webkit-touch-callout: none) {
    .container {
        min-height: -webkit-fill-available;
    }

    .loading-overlay {
        height: -webkit-fill-available;
    }

    body {
        min-height: -webkit-fill-available;
    }
}

/* Дополнительные фиксы для мобильных */
@media screen and (max-width: 768px) {
    body {
        position: relative;
        overflow-x: hidden;
    }

    .container {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
    }

    .logo {
        padding: 30px 20px;
        margin-bottom: 15px;
        max-width: calc(100vw - 30px);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .logo h1 {
        font-size: 3rem !important;
        letter-spacing: -2px;
    }

    .main-content {
        padding: 30px 15px;
        max-width: calc(100vw - 30px);
        width: 100%;
        box-sizing: border-box;
    }

    .contact-info {
        width: 100%;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .contact-info a {
        width: 100%;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 25px 20px;
        text-align: center;
    }
}

/* Фиксы для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo {
        padding: 20px 15px;
        max-width: calc(100vw - 20px);
    }

    .logo h1 {
        font-size: 2.5rem !important;
        letter-spacing: -1px;
    }

    .main-content {
        padding: 25px 10px;
        max-width: calc(100vw - 20px);
    }

    .service-item {
        padding: 20px 15px;
    }

    .contact-form {
        -padding: 0 5px;
    }

    .contact-info {
        gap: 10px !important;
    }

    .contact-item {
        padding: 20px 15px;
        font-size: 0.9rem;
    }
}

/* Стили для согласия на обработку персональных данных */
.privacy-consent {
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    text-align: center;
}

.privacy-consent a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-consent a:hover {
    text-decoration: underline;
}

/* Стили для попапа политики конфиденциальности */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.privacy-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.privacy-modal-content {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Стили для скроллбара в попапе (WebKit) */
.privacy-modal-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.privacy-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.privacy-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.privacy-modal-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
}

.privacy-modal-body h3 {
    color: #ffffff;
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.privacy-modal-body p {
    margin: 0 0 15px 0;
}

.privacy-modal-body ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    list-style-type: none;
}

.privacy-modal-body li {
    margin: 8px 0;
    position: relative;
    padding-left: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.privacy-modal-body li::before {
    content: '•';
    color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.privacy-modal-body strong {
    color: #ffffff;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Адаптивность для попапа */
@media (max-width: 768px) {
    .privacy-modal-content {
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
    }

    .privacy-modal-title {
        font-size: 1.3rem;
    }

    .privacy-consent {
        font-size: 12px;
    }
}

/* Стили для загрузки контента политики */
.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.loading-content::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

.error-content {
    text-align: center;
    padding: 40px;
    color: rgba(255, 100, 100, 0.8);
    font-size: 14px;
}

/* Стили для уведомления о cookies */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 999;
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cookie-consent-text a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптивность для уведомления о cookies */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 15px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: auto;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        padding: 15px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
    }
}