/* =========================================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ========================================= */
:root {
    --primary-color: #4a3728;
    --secondary-color: #8b6914;
    --accent-color: #ffd700;
    --text-dark: #2c1810;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* =========================================
   УВЕДОМЛЕНИЕ ВВЕРХУ
   ========================================= */
.top-notification {
    background: linear-gradient(90deg, #8b0000 0%, #cc0000 100%);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #ff3333;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification-content i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =========================================
   ВЕРХНЯЯ ПАНЕЛЬ С КОНТАКТАМИ
   ========================================= */
.top-bar {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: var(--accent-color);
}

.contact-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link i {
    color: var(--accent-color);
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box i {
    color: var(--accent-color);
    margin-right: 8px;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 120px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* =========================================
   ШАПКА С ЛОГОТИПОМ И МЕНЮ
   ========================================= */
.main-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(139, 105, 20, 0.1);
}

.nav-link i {
    font-size: 18px;
}

/* =========================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 600px;
    background-image: url('images/header-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .top-contacts {
        justify-content: center;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .top-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .navbar-collapse {
        margin-top: 15px;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        padding: 0 15px;
    }
    
    .top-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        margin-bottom: 10px;
    }
    
    .search-box input {
        width: 100px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .notification-content {
        font-size: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .top-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}


/* =========================================
   СЕКЦИЯ ДОМОКОМПЛЕКТОВ
   ========================================= */
.products-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.section-title {
    color: var(--text-dark);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-subtitle {
    color: #666;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    padding: 0 10px;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title {
        font-size: 18px;
    }
}

/* =========================================
   СЕКЦИЯ СТАТИСТИКИ
   ========================================= */
.stats-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.stats-section .section-header {
    margin-bottom: 60px;
}

.stats-section .section-title {
    color: var(--text-dark);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.stats-section .section-subtitle {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    color: var(--accent-color);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    display: inline-block;
}

.stat-number sup {
    font-size: 32px;
    vertical-align: super;
    margin-left: 2px;
}

.stat-label {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.stats-cta {
    text-align: center;
}

.btn-yellow {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    cursor: pointer;
}

.btn-yellow:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    color: var(--text-dark);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stats-section .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }

    .stats-section .section-header {
        margin-bottom: 40px;
    }

    .stats-section .section-title {
        font-size: 28px;
    }

    .stats-section .section-subtitle {
        font-size: 16px;
    }

    .stat-number {
        font-size: 42px;
    }

    .stat-label {
        font-size: 16px;
    }

    .btn-yellow {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-number sup {
        font-size: 24px;
    }
}

/* =========================================
   СЕКЦИЯ О КОМПАНИИ
   ========================================= */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    padding-right: 40px;
}

.about-title {
    color: var(--text-dark);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .about-section {
        padding: 70px 0;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-title {
        font-size: 38px;
    }

    .about-text p {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }

    .about-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.6;
    }

    .about-image {
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 28px;
    }
}

/* =========================================
   СЕКЦИЯ КАК МЫ РАБОТАЕМ
   ========================================= */
.process-section {
    padding: 80px 0;
    background: #fff;
}

.process-section .section-title {
    color: var(--text-dark);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-section .section-subtitle {
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.process-number {
    width: 70px;
    height: 70px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.process-item:hover .process-number {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: scale(1.1);
}

.process-title {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.process-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1199px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
    }

    .process-section .section-header {
        margin-bottom: 40px;
    }

    .process-section .section-title {
        font-size: 32px;
    }

    .process-section .section-subtitle {
        font-size: 16px;
    }

    .process-grid {
        gap: 30px;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .process-title {
        font-size: 17px;
    }

    .process-desc {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .process-section .section-title {
        font-size: 28px;
    }
}

/* =========================================
   СЕКЦИЯ КОНТАКТОВ
   ========================================= */
.contacts-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.contacts-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contacts-section .section-title {
    color: var(--text-dark);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contacts-section .section-subtitle {
    color: #555;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Контактная информация */
.contacts-info {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.contact-block:last-of-type {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-block:hover .contact-icon {
    background: var(--text-dark);
    transform: translateY(-3px);
}

.contact-icon i {
    color: var(--text-dark);
    font-size: 20px;
    transition: color 0.3s ease;
}

.contact-block:hover .contact-icon i {
    color: var(--accent-color);
}

.contact-content h4 {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.contact-content a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.contact-content a:hover {
    color: var(--secondary-color);
}

/* CTA кнопка в контактах */
.contact-cta {
    margin-top: 30px;
    text-align: center;
}

.contact-cta .btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

/* Карта */
.contacts-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 500px;
    background: #e0e0e0;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 991px) {
    .contacts-section {
        padding: 60px 0;
    }

    .contacts-info {
        padding: 30px;
        margin-bottom: 30px;
    }

    .contacts-map {
        min-height: 400px;
    }

    .contacts-map iframe {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contacts-section .section-title {
        font-size: 32px;
    }

    .contacts-section .section-subtitle {
        font-size: 16px;
    }

    .contacts-info {
        padding: 25px;
    }

    .contact-block {
        padding: 15px 0;
        gap: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 18px;
    }

    .contact-content h4 {
        font-size: 14px;
    }

    .contact-content a {
        font-size: 15px;
    }

    .contact-content p {
        font-size: 14px;
    }

    .contacts-map {
        min-height: 300px;
    }

    .contacts-map iframe {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .contacts-section .section-title {
        font-size: 28px;
    }

    .contact-cta .btn-yellow {
        font-size: 15px;
        padding: 14px 25px;
    }
}