/* ====================================
   NewYard 2005 - Main Stylesheet
   ==================================== */

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

:root {
    --primary: #2d6a4f;
    --accent: #52b788;
    --black: #0a0a0a;
    --white: #fff;
    --gray: #f8f9fa;
}

/* ====================================
   BASE STYLES
   ==================================== */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #212529;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Navigation */
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s;
}

.nav a:hover {
    background: var(--gray);
    color: var(--primary);
}

.nav a.active {
    background: var(--primary);
    color: white;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ====================================
   LANGUAGE DROPDOWN (НОВОЕ!)
   ==================================== */
.language-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.lang-dropdown-btn .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s;
}

.lang-dropdown-btn:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.lang-dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    transition: all 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.lang-dropdown-item:last-child {
    border-bottom: none;
}

.lang-dropdown-item:hover {
    background: var(--gray);
    color: var(--primary);
}

.lang-name {
    font-weight: 500;
}

/* ====================================
   SOCIAL LINKS
   ==================================== */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
}

/* Social Link Colors */
.social-link.whatsapp {
    background: #25D366;
}

.social-link.whatsapp:hover {
    background: #1ebe57;
}

.social-link.telegram {
    background: #0088cc;
}

.social-link.telegram:hover {
    background: #006699;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.facebook:hover {
    background: #145dbf;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover {
    filter: brightness(1.1);
}

.social-link.email {
    background: #EA4335;
}

.social-link.email:hover {
    background: #d33426;
}

.social-link.phone {
    background: var(--primary);
}

.social-link.phone:hover {
    background: #5568d3;
}

/* Social Link Icon Animation */
.social-link i {
    transition: transform 0.3s;
}

.social-link:hover i {
    transform: rotate(360deg);
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    position: relative;
    padding: 120px 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Видео-фон */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Затемнение поверх видео */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Контент поверх видео */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

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

/* ====================================
   PROJECTS SECTION
   ==================================== */
.projects-section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

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

/* ====================================
   PROJECT CARD
   ==================================== */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card-image {
    height: 250px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

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

.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #495057;
}

.project-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ====================================
   FORMS
   ==================================== */
.form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

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

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

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background: #212529;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #e9ecef;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================================
   RESPONSIVE / MEDIA QUERIES
   ==================================== */

/* Гамбургер-меню (скрыто на десктопе) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Tablet и ниже (992px) */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Скрываем соцсети на планшетах */
    .social-links {
        display: none;
    }
}

/* Планшеты (768px) */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        min-height: 400px;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Header - показываем гамбургер */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        position: relative;
    }
    
    .header-right {
        gap: 10px;
    }
    
    /* Навигация становится мобильным меню */
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        gap: 0;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav a {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Логотип меньше */
    .logo-img {
        height: 40px;
    }
    
    /* Язык dropdown */
    .lang-dropdown-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Мобильные устройства (480px) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        min-height: 350px;
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    /* Мобильное видео (более сжатое) */
    .hero-video {
        display: block; /* Показываем видео на мобильных */
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.3); /* Немного темнее для читаемости */
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Header */
    .logo-img {
        height: 35px;
    }
    
    /* Язык - скрываем текст, оставляем только флаг */
    .lang-dropdown-btn {
        padding: 5px 10px;
        font-size: 12px;
        gap: 4px;
    }
    
    .lang-dropdown-btn .lang-name {
        display: none;
    }
    
    /* Typography */
    .section-title {
        font-size: 28px;
    }
    
    /* Filter buttons */
    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* ====================================
   FILTER BUTTONS (Кнопки фильтра)
   ==================================== */
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.filter-btn.active:hover {
    background: #1b4332;
    border-color: #1b4332;
}

/* Адаптивность фильтров */
@media (max-width: 768px) {
    .filter-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Страница проекта - мобильная адаптация */
@media (max-width: 768px) {
    /* Убираем padding у контейнера на странице проекта */
    section[style*="padding:60px"] {
        padding: 30px 0 !important;
    }
    
    section[style*="padding:60px"] .container {
        padding: 0 15px !important;
    }
    
    /* Заголовок проекта */
    section[style*="padding:60px"] h1 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    /* Характеристики - полная ширина */
    section[style*="padding:60px"] h3 {
        font-size: 20px !important;
    }
    
    /* Списки особенностей в одну колонку */
    ul[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Кнопки на полную ширину */
    .btn {
        width: 100% !important;
        text-align: center !important;
    }
}
