/* ===== LOCAL FONTS ===== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/lnter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/lnter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/lnter_28pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/lnter_28pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('../fonts/Geist-Mono/GeistMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A0C10;
    color: #FFFFFF;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== COLORS ===== */
:root {
    --accent: #C17B3E;
    --accent-dark: #D98E4A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.1);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent);
}

/* ===== LINKS ===== */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(193, 123, 62, 0.2);
    padding: 16px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: #E0E0E0;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

.nav-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.nav-btn-call {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.nav-btn-call:hover {
    background: var(--accent);
    color: #0A0C10;
}

.nav-btn-write {
    background: var(--accent);
    color: #0A0C10;
}

.nav-btn-write:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dropdown-btn i {
    font-size: 12px;
    transition: transform 0.2s;
}

.dropdown.active .dropdown-btn i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 200px;
    list-style: none;
    border: 1px solid rgba(193, 123, 62, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    color: #C17B3E;
    background: rgba(193, 123, 62, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.hero-subtitle-top {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    color: #B0B0B0;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 32px auto 0 auto;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    line-height: 1.2;
}

.btn img {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: #0A0C10;
    border: 1px solid #000000;
}

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

.btn-secondary {
    border: 1px solid rgba(193, 123, 62, 0.5);
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(193, 123, 62, 0.1);
    transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 80px 0;
    border-top: 1px solid var(--border-light);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 48px;
    text-align: center;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 28px 28px 32px 28px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: rgba(193, 123, 62, 0.4);
    transform: translateY(-4px);
}

.card-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card-list {
    list-style: none;
    margin-bottom: 0;
    flex-grow: 1;
}

.card-list li {
    color: #B0B0B0;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.card-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.section-btn-wrapper {
    text-align: center;
    margin-top: 32px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(193, 123, 62, 0.5);
    color: white;
    background: transparent;
}

.btn-outline i {
    font-size: 0.875rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(193, 123, 62, 0.1);
    transform: translateY(-2px);
}

/* ===== ENGINEERING BLOCK ===== */
.engineering-block {
    text-align: center;
    padding: 60px 0;
}

.engineering-block h3 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.engineering-block p {
    color: #B0B0B0;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== TWO COLUMNS ===== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text {
    color: #B0B0B0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text strong {
    color: var(--accent);
}

.form-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-light);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
}

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

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

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #0A0C10;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* ===== FOOTER BUTTONS ===== */
.footer-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 40px 0;
}

.btn-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-footer-call {
    background: var(--accent);
    color: #0A0C10;
}

.btn-footer-call:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-footer-write {
    border: 1px solid rgba(193, 123, 62, 0.5);
    color: white;
    background: transparent;
}

.btn-footer-write:hover {
    border-color: var(--accent);
    background: rgba(193, 123, 62, 0.1);
    transform: translateY(-2px);
}

/* ===== STATS ===== */
.stats-bottom {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Geist Mono', monospace;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
}

/* ===== FOOTER GRID ===== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.footer-col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.footer-col:hover {
    border-color: rgba(193, 123, 62, 0.3);
    background: rgba(193, 123, 62, 0.02);
}

.footer-col h4 {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--accent);
}

.footer-col p, 
.footer-col a {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 6px;
    display: block;
}

.footer-col a {
    transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.footer-col img {
    transition: opacity 0.2s;
    border-radius: 10px;
    max-width: 100%;
}

.footer-col img:hover {
    opacity: 0.95;
}

.footer-copyright {
    text-align: center;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.footer-copyright p {
    font-size: 0.7rem;
    color: #888;
}

/* ===== ПОРТФОЛИО. ШУМОЗАЩИТА ===== */
/* Hero секция для страницы портфолио */
.portfolio-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.portfolio-hero .hero-subtitle-top {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.portfolio-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.portfolio-hero .hero-description {
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-hero .hero-description p {
    color: #B0B0B0;
    font-size: 1.1rem;
}

/* Сетка проектов - ОСНОВНЫЕ СТИЛИ */
.project-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 60px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-photo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.project-photo:hover {
    transform: translateY(-4px);
}

.project-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

.project-photo:hover img {
    filter: brightness(0.95);
}

.project-description {
    text-align: center;
    padding: 20px;
}

.project-description h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.project-city {
    color: #B0B0B0;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.project-equipment {
    color: #B0B0B0;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 8px;
}

/* SEO блок на странице портфолио */
.seo-block {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border-left: 4px solid var(--accent);
}

.seo-block h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.seo-block p {
    color: #B0B0B0;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .nav-buttons {
        margin-left: 0;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .project-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .project-description {
        order: -1;
    }
    
    .seo-block {
        padding: 24px;
        margin: 40px auto;
    }
    
    .seo-block h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .project-row {
        margin-bottom: 40px;
        gap: 15px;
    } /* Главная страница — чуть выше */
.page-index .hero {
    padding-top: 30px;
}
}