/* =============================================
   DOMAIN.COM - CSS СТИЛИ ДЛЯ ФИНАНСОВОГО АУДИТА
   ============================================= */

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS переменные для цветовой палитры */
:root {
    --primary-turquoise: #00FFD5;
    --background-purple: #1D1B3A;
    --accent-lime: #FFF500;
    --text-white: #FFFFFF;
    --text-light-gray: #E0E0E0;
    --gradient-start: #00FFD5;
    --gradient-end: #005F73;
    --shadow-color: rgba(0, 255, 213, 0.2);
}

/* Базовые стили */
html {
    scroll-behavior: smooth;
}

/* CSS анимации для замены JavaScript */
@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkmarkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Применение анимаций */
.service-card {
    animation: slideInUp 0.8s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

.section {
    animation: slideInUp 0.6s ease-out;
}

/* Анимация для галочки на странице благодарности */
.hero-text > div:first-child > div {
    animation: checkmarkAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both,
               checkmarkPulse 2s ease-in-out 1.2s;
}

/* Анимация для шагов */
li[style*="display: flex"] {
    animation: slideInLeft 0.5s ease-out;
}

li[style*="display: flex"]:nth-child(1) { animation-delay: 0.6s; }
li[style*="display: flex"]:nth-child(2) { animation-delay: 0.75s; }
li[style*="display: flex"]:nth-child(3) { animation-delay: 0.9s; }
li[style*="display: flex"]:nth-child(4) { animation-delay: 1.05s; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-purple);
    color: var(--text-light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 20px var(--shadow-color);
}

h2 {
    font-size: 2rem;
    text-shadow: 0 0 15px var(--shadow-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */

header {
    background: linear-gradient(135deg, var(--background-purple) 0%, rgba(29, 27, 58, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 213, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px var(--primary-turquoise);
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    fill: var(--primary-turquoise);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    fill: var(--accent-lime);
    transform: rotate(360deg);
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 213, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-turquoise), var(--gradient-end));
    border-color: var(--primary-turquoise);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 213, 0.3);
}

nav a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 255, 213, 0.2);
}

/* =============================================
   КНОПКИ И ФОРМЫ
   ============================================= */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-lime), var(--primary-turquoise));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.btn:hover::before {
    left: 0;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-turquoise);
    color: var(--primary-turquoise);
}

.btn-secondary:hover {
    background: var(--primary-turquoise);
    color: var(--background-purple);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-purple) 0%, #2a1f4a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 213, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 245, 0, 0.1) 0%, transparent 50%);
}



.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 255, 213, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* =============================================
   СЕКЦИИ
   ============================================= */

.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(29, 27, 58, 0.5) 0%, rgba(42, 31, 74, 0.5) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* =============================================
   КАРТОЧКИ УСЛУГ
   ============================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 213, 0.1) 0%, rgba(0, 95, 115, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 213, 0.3);
    border-color: var(--primary-turquoise);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-turquoise);
    margin-bottom: 1rem;
}

/* =============================================
   ФОРМА ЗАКАЗА
   ============================================= */

.order-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 213, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 213, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--background-purple);
    color: var(--text-white);
    padding: 10px;
    border: none;
}

.form-group select option:hover,
.form-group select option:checked {
    background: linear-gradient(135deg, var(--primary-turquoise), var(--gradient-end));
    color: var(--text-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-turquoise);
    box-shadow: 0 0 10px rgba(0, 255, 213, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: linear-gradient(135deg, #1a1735 0%, #0f0e23 100%);
    border-top: 1px solid rgba(0, 255, 213, 0.2);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-turquoise);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-turquoise);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 255, 213, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(224, 224, 224, 0.7);
}

/* =============================================
   COOKIE POPUP
   ============================================= */

.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--background-purple) 0%, rgba(29, 27, 58, 0.98) 100%);
    border: 1px solid var(--primary-turquoise);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-popup p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-white);
}

.cookie-decline {
    background: transparent;
    color: var(--text-light-gray);
    border: 1px solid rgba(224, 224, 224, 0.3);
}

/* =============================================
   АНИМАЦИИ
   ============================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.scale-in {
    animation: scale 0.6s ease-out;
}

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
    
    nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .hero {
        padding-top: 130px; /* Добавляем отступ чтобы шапка не закрывала текст */
        min-height: calc(100vh - 130px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 150px; /* Увеличиваем для очень маленьких экранов */
        min-height: calc(100vh - 150px);
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Компактный заголовок для очень маленьких экранов */
    .header-container {
        padding: 0.6rem 10px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .order-form {
        padding: 2rem 1rem;
    }
}

/* =============================================
   УТИЛИТЫ
   ============================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Стили для placeholder */
::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

/* Стили для выделения текста */
::selection {
    background: var(--primary-turquoise);
    color: var(--background-purple);
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-purple);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-turquoise);
} 