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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #1a1a1a;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Мобильное меню - стили применяются в медиа-запросе ниже */

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header.scrolled .nav-menu a {
    color: var(--text-color);
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .nav-menu a:hover {
    color: var(--accent-color);
}

.cta-button {
    padding: 12px 28px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.header.scrolled .cta-button {
    background: var(--primary-color);
    color: var(--white);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.header.scrolled .cta-button:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    padding: 8px;
    margin-left: 12px;
    order: 3;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    display: block;
}

.header.scrolled .mobile-toggle span {
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 26, 26, 0.85) 100%);
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(26, 26, 26, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-light);
}

.btn-full {
    width: 100%;
}

/* Section Titles */
.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 48px;
    font-weight: 700;
    text-align: center;
}

.section-title.center {
    text-align: center;
}

/* About Work Section */
.about-work {
    padding: 100px 0;
    background: var(--white);
}

.work-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.work-item {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.work-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.work-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.1) 0%, rgba(26, 26, 26, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.work-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.work-item p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.micro-offer {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
}

.micro-offer-text {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.portfolio-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e8eef2 0%, #d4dce3 100%);
}

.portfolio-info {
    padding: 32px;
}

.portfolio-info h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.portfolio-task,
.portfolio-time,
.portfolio-solutions {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.6;
}

.portfolio-note {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
}

.portfolio-note p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.process-step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-intro {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.pricing-intro p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--white);
    padding: 48px 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.price {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.price-description {
    font-size: 14px;
    color: var(--text-light);
}

.pricing-footer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pricing-footer p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-label {
    text-align: left;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.about-content {
    display: grid;
    grid-template-columns: 750px 700px; /* Фото 750px, текст 700px */
    gap: 60px;
    align-items: start;
    margin-top: 40px;
    justify-content: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.about-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-text-wrapper .section-title {
    text-align: left;
    margin-bottom: 0;
}

.about-text p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-list {
    list-style: none;
    margin: 16px 0 24px 0;
    padding-left: 0;
}

.about-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.about-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 20px;
}

.about-stats {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 8px;
}

.stat-item {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px; /* Уменьшено с 42px */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-light);
    font-size: 13px; /* Уменьшено с 14px */
    line-height: 1.4;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.testimonial-text {
    margin-bottom: 24px;
}

.testimonial-text p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 15px;
}

.author-project {
    font-size: 14px;
    color: var(--text-light);
}

/* Special Offer Section */
.special-offer {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.offer-title {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 32px;
}

.offer-content {
    max-width: 700px;
    margin: 0 auto;
}

.offer-content p {
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.offer-list {
    list-style: none;
    margin: 24px 0 32px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.offer-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.offer-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 20px;
    font-weight: 700;
}

.offer-cta-text {
    font-weight: 600;
    margin-top: 32px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-color);
    font-size: 15px;
}

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

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
    font-style: italic;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-light);
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    padding: 48px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 32px;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-content: stretch;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-text-wrapper {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .about-text-wrapper .section-title {
        text-align: center;
    }
    
    .about-label {
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header {
        z-index: 10000; /* Header выше когда меню закрыто */
    }
    
    .header .nav-menu.active {
        z-index: 9999; /* Меню выше header когда открыто */
    }
    
    .mobile-toggle {
        display: flex;
        order: 3; /* Кнопка меню справа */
        z-index: 10001; /* Кнопка меню всегда видна */
    }
    
    .cta-button {
        display: none; /* Скрываем кнопку "Обсудить проект" на мобильных */
    }
    
    .nav {
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 80px 20px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999 !important;
        display: flex !important;
        list-style: none;
        margin: 0;
        overflow-y: auto;
        box-shadow: none;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        color: var(--text-color) !important;
        font-size: 18px;
        font-weight: 600;
        padding: 12px 0;
        width: 100%;
        display: block;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        transition: color 0.3s ease;
    }
    
    .nav-menu a:hover {
        color: var(--primary-color) !important;
    }
    
    /* Кнопка закрытия меню */
    .nav-menu::after {
        content: '×';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 36px;
        color: var(--text-color);
        cursor: pointer;
        z-index: 1002;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--bg-light);
        transition: all 0.3s ease;
        line-height: 1;
    }
    
    .nav-menu::after:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .hero {
        padding: 140px 0 80px;
        background-attachment: scroll;
    }
    
    .hero::before {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 26, 26, 0.75) 100%);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid,
    .pricing-grid,
    .testimonials-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about-image {
        max-width: 100%;
    }
    
    .about-text-wrapper {
        max-width: 100%;
    }
    
    .about-text-wrapper .section-title {
        text-align: center;
        font-size: 24px;
    }
    
    .about-label {
        text-align: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .about-label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}
