@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070b15;
    --bg-card: rgba(13, 20, 38, 0.65);
    --border-color: rgba(59, 130, 246, 0.15);
    --primary: #2563eb;
    --primary-hover: #3b82f6;
    --accent: #d97706;
    --accent-hover: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(7, 11, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 6px;
}

.logo span {
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.phone-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--accent);
}

.phone-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    fill: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(217, 119, 6, 0.08) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1.2;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(13, 20, 38, 0.9);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
}

.hero-badge-text div:first-child {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.hero-badge-text div:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.service-img {
    width: 200px;
    min-width: 200px;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-info .btn-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.service-info .btn-link:hover {
    color: var(--accent-hover);
}

.service-info .btn-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s ease;
}

.service-info .btn-link:hover svg {
    transform: translateX(4px);
}

.features {
    background: rgba(13, 20, 38, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-hover);
    fill: none;
}

.feature-card:nth-child(even) .feature-icon {
    background: rgba(217, 119, 6, 0.1);
}

.feature-card:nth-child(even) .feature-icon svg {
    stroke: var(--accent);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(7, 11, 21, 0.95) 0%, rgba(13, 20, 38, 0.95) 100%),
                url('../images/hero_banner.jpg') no-repeat center center / cover;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.cta-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.cta-contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
}

.cta-contact-details span {
    display: block;
}

.cta-contact-details span:first-child {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-contact-details a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.hidden-hp {
    display: none !important;
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: rgba(37, 99, 235, 0.5);
    cursor: not-allowed;
}

.form-response {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-response.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #34d399;
}

.form-response.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #f87171;
}

.map-section {
    padding: 0;
    height: 450px;
    border-bottom: 1px solid var(--border-color);
    background: #000;
}

footer {
    background: #04070e;
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-info img {
    height: 48px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-nav h4, .footer-contacts h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-body {
    background-color: #0b0f19;
    color: #e2e8f0;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

.admin-login-card {
    background: #111827;
    border: 1px solid #1f2937;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 28px;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: #111827;
    border-right: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    padding: 24px;
    border-bottom: 1px solid #1f2937;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.admin-nav {
    padding: 24px 0;
    list-style: none;
    flex-grow: 1;
}

.admin-nav-item button {
    width: 100%;
    padding: 14px 24px;
    background: none;
    border: none;
    color: #9ca3af;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.admin-nav-item button:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.admin-nav-item.active button {
    color: #fff;
    background: rgba(37, 99, 235, 0.15);
    border-left: 4px solid var(--primary);
}

.admin-logout {
    padding: 24px;
    border-top: 1px solid #1f2937;
}

.admin-logout a {
    color: #f87171;
    text-decoration: none;
    font-weight: 500;
}

.admin-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-tab h2 {
    margin-bottom: 32px;
    font-size: 1.8rem;
    color: #fff;
}

.leads-table-wrapper {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 8px;
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leads-table th, .leads-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #1f2937;
}

.leads-table th {
    background: #1f2937;
    color: #9ca3af;
    font-weight: 600;
}

.leads-table tr:hover td {
    background: rgba(255,255,255,0.01);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-new {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-processed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-small-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-small-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.btn-small-secondary {
    background: #374151;
    color: #e5e7eb;
    border: none;
}

.admin-form-card {
    background: #111827;
    border: 1px solid #1f2937;
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.admin-form-card h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: #fff;
}

.admin-form-card .form-group {
    margin-bottom: 24px;
}

.admin-form-card .form-group:last-child {
    margin-bottom: 0;
}

.image-preview-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.image-preview-container {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    border: 1px solid #374151;
    overflow: hidden;
    background: #1f2937;
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-input-wrapper {
    flex-grow: 1;
}

.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #059669;
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #dc2626;
    color: #f87171;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #070b15;
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .header-contacts {
        display: none;
    }
    .hero {
        padding: 120px 0 60px 0;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-image-wrapper {
        aspect-ratio: 1.4;
    }
    .hero-badge {
        display: none;
    }
    .service-card {
        flex-direction: column;
    }
    .service-img {
        width: 100%;
        height: 200px;
        min-height: 200px;
    }
    .service-info {
        padding: 24px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1f2937;
    }
    .admin-logo {
        padding: 16px 24px;
    }
    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    .admin-nav-item button {
        padding: 16px 20px;
        white-space: nowrap;
    }
    .admin-nav-item.active button {
        border-left: none;
        border-bottom: 3px solid var(--primary);
    }
    .admin-logout {
        padding: 16px 24px;
    }
    .admin-content {
        padding: 24px 16px;
    }
}
