:root {
    --primary: #000000;
    --primary-dark: #1b1e23;
    --secondary: #22495d;
    --accent: #24201f;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9fafb;
    color: var(--dark);
    line-height: 1.6;
    padding-top: 70px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #e55a2b;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-circle {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.navbar-logo h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

/* Кнопка Telegram */
.telegram-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(42, 171, 238, 0.3);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 171, 238, 0.4);
}

/* Главная секция */
.general {
    display: flex;
    min-height: 80vh;
    padding: 40px 5%;
    align-items: center;
    gap: 40px;
}

.general-left {
    flex: 1;
}

.general-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.general-left p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.general-post {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.general-post div {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
}

.general-post h2 {
    color: var(--accent);
    margin: 0;
    font-size: 2rem;
}

.general-post p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.general-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 400px;
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
}

.project-visualization {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-visualization img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.project-visualization img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .general-right {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .general-right {
        max-height: 200px;
    }
}

.footer::after {
    content: "© 2025 PivLab Inc. Все права защищены.";
    display: block;
    font-size: 10px;
    color: rgb(26, 24, 24);
    text-align: center;
    padding: 10px 0;
}

/* Блок услуг - ОБНОВЛЕННЫЕ СТИЛИ */
.services-section {
    background-color: white;
    padding: 80px 5%;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Стили для кликабельных карточек услуг */
.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    flex-grow: 1;
    margin: 0;
}

/* Блок процесса работы */
.process-section {
    padding: 80px 5%;
    background: var(--light);
}

.process-header {
    text-align: center;
    margin-bottom: 50px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.process-step {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.process-note {
    text-align: center;
    font-style: italic;
    color: var(--gray);
}

/* Блок документов */
.documents-section {
    padding: 80px 5%;
    background: white;
}

.documents-header {
    text-align: center;
    margin-bottom: 50px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.document-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Футер */
.footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .general {
        flex-direction: column;
        text-align: center;
    }

    .general-post {
        justify-content: center;
    }

    .navbar-menu {
        gap: 5px;
    }

    .navbar-menu a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-nav {
        position: static;
        transform: none;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .navbar-menu {
        gap: 5px;
    }

    .navbar-menu a {
        font-size: 13px;
        padding: 5px 10px;
    }

    .telegram-btn span {
        display: none;
    }

    .telegram-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .general-left h1 {
        font-size: 2rem;
    }

    .process-steps {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 15px;
    }

    .navbar-logo h1 {
        font-size: 20px;
    }

    .navbar-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .general-post {
        flex-direction: column;
    }

    .services-grid,
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 868px) {
    .menu-toggle {
        display: flex;
    }

    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in;
        z-index: 999;
    }

    .navbar-nav.active {
        transform: translateY(0);
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        display: block;
        padding: 15px;
        border-radius: 0;
    }
}

.feedback-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 5%;
    margin: 40px 0;
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.feedback-text {
    flex: 1;
    min-width: 300px;
}

.feedback-text h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.feedback-text p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.6;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.email-btn {
    background: #2A5CAA;
    color: white;
    border: 2px solid #2A5CAA;
}

.email-btn:hover {
    background: #1E4580;
    border-color: #1E4580;
    transform: translateY(-2px);
}

.telegram-btn-badge {
    background: transparent;
    color: white;
    border: 2px solid #2AABEE;
}

.telegram-btn-badge:hover {
    background: #2AABEE;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .feedback-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .feedback-buttons {
        justify-content: center;
        width: 100%;
    }

    .feedback-btn {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .feedback-buttons {
        flex-direction: column;
    }

    .feedback-btn {
        width: 100%;
    }
}