/* Глобальные стили */
:root {
    --primary: #0A2463;
    --accent: #3E92CC;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --freelance: #1BC041;
    }

    *   {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        }

    body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    }
    
    h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    }
    
    .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    }
    
    section {
    padding: 60px 0;
    }
    
    .btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    }
    
    .btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .btn-freelance {
    background: var(--freelance);
    margin-left: 10px;
    }
    
    .btn-freelance:hover {
    background: #E05A2D;
    }
  
    /* Баннер фриланса */
    .freelance-banner {
    background: linear-gradient(135deg, var(--freelance) 0%, #2de0d7 100%);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    }
    
    .freelance-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    }
    
    .freelance-banner p {
    margin-bottom: 15px;
    font-size: 1rem;
    }
    
    .freelance-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    }
    
    .freelance-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    }
    
    .freelance-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    }
    
  /* Шапка */
header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1E3B8B 100%);
    color: var(--white);
}

.hero-content {
    width: 50%; /* Изменено с 100% на 50% */
    max-width: 800px;
    text-align: left;
    position: relative;
    z-index: 3;
    padding-left: 5%; /* Добавлено для отступа от края */
    margin-right: 50%; /* Добавлено для предотвращения наезжания на галерею */
}

.hero-buttons {
    display: flex;
    justify-content: flex-start; /* Изменено с center на flex-start */
    flex-wrap: wrap;
    gap: 10px;
}

/* Галерея в шапке */
.hero-gallery {
    position: absolute;
    right: 5%; /* Изменено с 1% на 5% */
    top: 50%;
    transform: translateY(-50%);
    width: 40%; /* Уменьшено с 45% */
    height: 70%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0.95;
}

.pricing-badge {
    display: none;
}

@media (max-width: 992px) {
    .hero-content {
        width: 100%;
        padding: 0 20px;
        margin-right: 0;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-gallery {
        display: none;
    }
}
    /* Стили для галереи в шапке */
    .hero-gallery {
    position: absolute;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 70%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0.95;
    }
    
    .gallery-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .gallery-image.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
    }
    
    .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,36,99,0.8), transparent);
    color: white;
    padding: 20px;
    z-index: 2;
    font-size: 1rem;
    font-weight: 500;
    }
    
    .gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 3;
    width: 0%;
    transition: width 0.1s linear;
    }
    
    .gallery-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 4;
    background: rgba(10,36,99,0.7);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    }
    
    .gallery-logo::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    }
    
    /* Прайс-лист */
    .pricing-section {
    background-color: var(--light);
    }
    
    .section-title {
    text-align: center;
    margin-bottom: 40px;
    }
    
    .section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    }
    
    .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    }
    
    .pricing-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    }
    
    .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }
    
    .pricing-card.recommended {
    border: 3px solid var(--accent);
    }
    
    .pricing-header {
    padding: 25px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    }
    
    .pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    }
    
    .price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    }
    
    .pricing-header span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    }
    
    .pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .pricing-features {
    padding: 25px;
    }
    
    .pricing-features ul {
    list-style: none;
    margin-bottom: 20px;
    }
    
    .pricing-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    }
    
    .pricing-features i {
    color: var(--accent);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
    }
    
    .tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    }
    
    .tech-badge {
    background: rgba(62, 146, 204, 0.1);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    }
    
    .toggle-options {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: var(--white);
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    }
    
    .toggle-options:hover {
    background: var(--primary);
    transform: translateY(-3px);
    }
    
    .toggle-options i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    }
    
    .toggle-options.active i {
    transform: rotate(180deg);
    }
    
    .pricing-options {
    display: none;
    margin-top: 15px;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 8px;
    padding: 20px;
    }
    
    .pricing-options.active {
    display: block;
    }
    
    .option-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    }
    
    .option-tab {
    padding: 8px 15px;
    background: var(--light);
    cursor: pointer;
    border-radius: 4px;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    }
    
    .option-tab.active {
    background: var(--primary);
    color: white;
    }
    
    .option-content {
    display: none;
    }
    
    .option-content.active {
    display: block;
    }
    
    .option-content ul {
    list-style: none;
    margin-bottom: 20px;
    }
    
    .option-content li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    }
    
    .option-content i {
    color: var(--accent);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
    }
    
    .option-content strong {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 15px;
    color: var(--primary);
    }
    
    /* Контакты */
    .contact-section {
    background-color: var(--white);
    }
    
    .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    }
    
    .contact-info {
    background: var(--light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    }
    
    .contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    }
    
    .contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .contact-info p i {
    margin-right: 10px;
    color: var(--dark);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    }
    
    .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    }
    
    .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    }
    
    .social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    }
    
    /* Футер */
    footer {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    }
    
    .terminal {
    background: var(--dark);
    color: #00FF41;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    max-width: 100%;
    margin: 0 auto 20px;
    text-align: left;
    font-size: 0.9rem;
    overflow-x: auto;
    }
    
    footer p {
    font-size: 0.9rem;
    }
    
    /* Анимации */
    @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
    }
    
    /* Адаптивность */
    @media (max-width: 992px) {
    .hero-gallery {
    display: none;
    }
    
    Copy
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    }
    
    @media (max-width: 768px) {
    .pricing-grid {
    grid-template-columns: 1fr;
    }
    
    Copy
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-freelance {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    }
/* Добавьте в конец файла */
.option-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-tab:hover {
    background: rgba(62, 146, 204, 0.2);
}

.toggle-options i {
    transition: transform 0.3s ease;
}

.toggle-options.active i {
    transform: rotate(180deg);
}

/* Для заголовков как в main.html */
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}
