@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-text-main: #1a1a1a;
    --color-text-muted: #666666;
    --color-accent: #0056d2;
    /* Blueprint Blue */
    --color-accent-hover: #0044a5;
    --color-border: #e0e0e0;
    --color-surface: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 100px;
    --header-height: 80px;

    /* Effects */
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Lock when Lightbox is Open */
html.lightbox-open,
body.lightbox-open {
    overflow: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-bg {
    background-color: var(--color-bg-secondary);
    background-image:
        linear-gradient(rgba(0, 86, 210, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 210, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Specific pattern for workflow to look more "blueprinted" */
#services .section-bg,
.process-steps {
    background-image:
        linear-gradient(rgba(0, 86, 210, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 210, 0.05) 1px, transparent 1px);
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border-color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: #fff;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
}

.logo span {
    color: var(--color-accent);
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/pexels-thirdman-5582.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-top: var(--header-height);
}

.hero-content h1 {
    font-size: 56px;
    color: #fff;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Features / Services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--color-surface);
    padding: 40px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-text-main);
    /* Dark active state */
    color: #fff;
    border-color: var(--color-text-main);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    /* Consistent ratio */
    cursor: pointer;
    background-color: #f0f0f0;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}


/* Stack Card Styles */
.portfolio-stack {
    background: linear-gradient(135deg, #1a1a1a, #333);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-stack:hover {
    transform: translateY(-5px) scale(1.02);
}

.stack-content {
    text-align: center;
    z-index: 5;
}

.stack-count {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-accent);
}

.stack-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Simulated Stack Layers */
.stack-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: all 0.3s ease;
}

.layer-1 {
    top: 5px;
    left: 5px;
    z-index: 1;
    opacity: 0.8;
}

.layer-2 {
    top: 10px;
    left: 10px;
    z-index: 0;
    opacity: 0.6;
}

.portfolio-stack:hover .layer-1 {
    top: 8px;
    left: 8px;
}

.portfolio-stack:hover .layer-2 {
    top: 16px;
    left: 16px;
}

/* Collapse Card */
.portfolio-collapse-card {
    background: #f8f9fa;
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-collapse-card:hover {
    border-color: var(--color-text-main);
    background: #fff;
}

.collapse-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-main);
}

.collapse-content span:first-child {
    font-size: 32px;
    margin-bottom: 10px;
}

.collapse-content span:last-child {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

/* Zoom Icon (Existing) */
.zoom-icon {
    /* ... existing styles preserved ... */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.zoom-icon svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.portfolio-item:hover .zoom-icon {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 16px;
    text-align: center;
    max-width: 80%;
}


/* Contact Form */
.contact-section {
    background-color: var(--color-bg-secondary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-info-card {
    background: #fff;
    padding: 25px;
    box-shadow: var(--shadow-soft);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 86, 210, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.success {
    border-left: 4px solid #10b981;
}

.notification-toast.error {
    border-left: 4px solid #ef4444;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification-icon.success {
    color: #10b981;
}

.notification-icon.error {
    color: #ef4444;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    color: var(--color-text-main);
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    cursor: pointer;
    color: #999;
    font-size: 20px;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--color-text-main);
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 30px 0 15px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h4 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-nav ul {
    display: flex;
    gap: 30px;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
    color: #888;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--color-text-main);
}

/* Process Timeline */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--color-surface);
    padding: 40px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card.highlight {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 86, 210, 0.1);
    transform: translateY(-10px);
}

.pricing-card.highlight::before {
    content: 'Популярный';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--color-accent);
    color: #fff;
    padding: 5px 30px;
    font-size: 11px;
    text-transform: uppercase;
    transform: rotate(45deg);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: block;
}

.pricing-price span {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-accent);
    margin-right: 10px;
    font-weight: bold;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    font-size: 15px;
    color: var(--color-text-muted);
    padding: 0 20px 20px 0;
    margin: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}



/* Deliverables - Info List */
.deliverables-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.deliverable-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.deliverable-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.file-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    margin-right: 15px;
    text-transform: uppercase;
}

/* Mobile Responsive Additions */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps::before {
        width: 2px;
        height: 100%;
        left: 25px;
        top: 0;
    }

    .step-number {
        margin: 0;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .process-step {
        display: flex;
        align-items: flex-start;
        text-align: left;
    }

    .process-step h3 {
        margin-top: 10px;
    }
}