/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --secondary: #F97316;
    --secondary-dark: #e8650d;
    --dark: #010101;
    --light: #ffffff;
    --gray: #6c757d;
    --text-dark: #010101;
    --text-light: #6c757d;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Липкая шапка */
.header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--primary-dark);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login:active {
    transform: translateY(0);
}

/* Основной контент */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero секция */
.hero-section {
    background: var(--primary);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Секции */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Сетки */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.grid-tech {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* Карточки */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.card-icon-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(249, 115, 22, 0.1));
    border-radius: 8px;
    transition: var(--transition);
}

.card-icon-large {
    width: 140px;
    height: 140px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 3px solid var(--primary);
}

.card-icon-large i {
    transition: var(--transition);
}

.card-interactive:hover .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.2), rgba(249, 115, 22, 0.2));
}

.card-interactive:hover .card-icon-large {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.card-interactive:hover .card-icon-large i {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-btn {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.card-btn:hover {
    background: var(--secondary-dark);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Статистика */
.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--primary);
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.stat-card:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.stat-card:hover .stat-label {
    color: white;
}

/* Технологии */
.tech-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--primary);
    color: white;
}

.tech-card i {
    font-size: 3rem;
    color: var(--primary);
    transition: var(--transition);
}

.tech-card:hover i {
    color: white;
}

.tech-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* Контент блоки */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.content-block {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-text {
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-list {
    list-style: none;
    margin-top: 1.5rem;
}

.content-list li {
    padding: 0.75rem 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Футер */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideDown 0.3s ease;
}

/* Модальное окно с контентом услуг */
.modal-content-large {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content-large::-webkit-scrollbar {
    width: 8px;
}

.modal-content-large::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.modal-content-large::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-content-large::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin: 0;
}

.modal-body {
    color: var(--text-dark);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-body h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.modal-body ul,
.modal-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.modal-body strong {
    color: var(--dark);
    font-weight: 600;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.login-form,
.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.success-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #28a745;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#successModal .modal-body {
    text-align: center;
    padding: 2rem 0;
}

#successModal .modal-body p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.captcha-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
    border: 2px solid var(--primary);
}

.btn-refresh-captcha {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh-captcha:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.btn-refresh-captcha i {
    font-size: 1.1rem;
}

#captchaModal .modal-body {
    text-align: center;
}

#captchaModal .form-group {
    margin-top: 1.5rem;
}

#captchaModal .form-group input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

#captchaModal #submitCaptchaBtn {
    margin-top: 1.5rem;
    width: 100%;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для 1920px */
@media (max-width: 1920px) {
    .container {
        max-width: 1920px;
    }
}

/* Адаптивность для 1600px */
@media (max-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Адаптивность для 1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .grid-5,
    .grid-tech {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для 992px */
@media (max-width: 992px) {
    .container {
        max-width: 992px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-5,
    .grid-tech {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Адаптивность для 768px */
@media (max-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 15px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .btn-login span {
        display: none;
    }
    
    .btn-login {
        padding: 0.75rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .tech-card i {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-block {
        padding: 2rem;
    }
}

/* Адаптивность для 420px */
@media (max-width: 420px) {
    .container {
        max-width: 420px;
        padding: 0 10px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .grid-5,
    .grid-tech {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tech-card {
        padding: 1.25rem;
    }
    
    .tech-card i {
        font-size: 2rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 20% auto;
    }
}

