/* ======================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ
   ====================== */
:root {
    --primary-bg: #2E3A59;
    --warm-white: #FEFEFE;
    --coral: #FF6B6B;
    --mint: #4ECDC4;
    --gradient-coral-mint: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    --gradient-bg: linear-gradient(135deg, #2E3A59 0%, #1A2239 100%);
    --shadow-light: 0 4px 20px rgba(255, 107, 107, 0.15);
    --shadow-medium: 0 8px 30px rgba(255, 107, 107, 0.2);
    --shadow-strong: 0 12px 40px rgba(255, 107, 107, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================
   ОСНОВНЫЕ СТИЛИ
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--warm-white);
    background: var(--gradient-bg);
    overflow-x: hidden;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* ======================
   АНИМАЦИИ
   ====================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ======================
   ТИПОГРАФИКА
   ====================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-coral-mint);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--warm-white);
}

h3 {
    font-size: 1.8rem;
    color: var(--coral);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ======================
   ХЕДЕР
   ====================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(46, 58, 89, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(46, 58, 89, 0.98);
    box-shadow: var(--shadow-light);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 120px;
}

/* Fallback для случаев, когда SVG не загружается */
.logo::after {
    content: "ComptaPlus";
    display: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--coral);
    background: var(--gradient-coral-mint);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img:not([src]) + ::after,
.logo img[src=""] + ::after {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--warm-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-coral-mint);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--mint);
    transform: translateY(-2px);
}

.phone-link svg {
    width: 20px;
    height: 20px;
}

/* ======================
   ГЛАВНЫЙ БАННЕР
   ====================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/MdzjxP.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--mint);
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ======================
   КНОПКИ
   ====================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-coral-mint);
    color: var(--warm-white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--warm-white);
    border: 2px solid var(--coral);
}

.btn-secondary:hover {
    background: var(--coral);
    transform: translateY(-2px);
}

/* ======================
   СЕКЦИИ
   ====================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--mint);
    opacity: 0.9;
}

/* ======================
   GRID СИСТЕМЫ
   ====================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ======================
   КАРТОЧКИ
   ====================== */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-coral-mint);
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--coral);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-coral-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    animation: pulse 0.6s ease-in-out;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--warm-white);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--warm-white);
}

.card-description {
    opacity: 0.8;
    line-height: 1.6;
}

/* ======================
   SERVICE CARDS
   ====================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card .card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    z-index: 2;
    box-shadow: var(--shadow-medium);
}

/* ======================
   ФОРМА
   ====================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 107, 107, 0.1);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--warm-white);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--warm-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-select {
    background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FEFEFE' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0.75rem center/1.5em 1.5em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.form-select option {
    background: var(--primary-bg);
    color: var(--warm-white);
    padding: 0.5rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(254, 254, 254, 0.5);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--coral);
}

.form-checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.form-checkbox-label a {
    color: var(--mint);
    text-decoration: underline;
}

.form-checkbox-label a:hover {
    color: var(--coral);
}

/* ======================
   ПОДВАЛ
   ====================== */
.footer {
    background: linear-gradient(135deg, #1A2239 0%, #0F1419 100%);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--coral);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(254, 254, 254, 0.8);
    text-decoration: none;
    line-height: 1.5;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--mint);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 107, 107, 0.1);
    color: rgba(254, 254, 254, 0.6);
    font-size: 0.85rem;
}

/* ======================
   COOKIE BANNER
   ====================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 58, 89, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 107, 107, 0.2);
    padding: 1.5rem 2rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cookie-text a {
    color: var(--mint);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */
@media (max-width: 768px) {
    :root {
        --border-radius: 10px;
    }
    
    /* Компактная мобильная шапка */
    .header {
        background: rgba(46, 58, 89, 0.98);
        backdrop-filter: blur(15px);
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .header-contact {
        order: -1;
    }
    
    .phone-link {
        font-size: 0.9rem;
    }
    
    .phone-link svg {
        width: 16px;
        height: 16px;
    }
    
    /* Адаптация хиро секции с увеличенным padding-top */
    .hero {
        padding-top: 8rem;
        min-height: 85vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .hero-image img {
        max-height: 250px;
        object-fit: cover;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Адаптация сервисных карточек */
    .service-image {
        height: 180px;
    }
    
    .service-card .card-icon {
        width: 45px;
        height: 45px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 7rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-card .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-card .card-icon svg {
        width: 20px;
        height: 20px;
    }
} 