/* Variables */
:root {
    --primary: rgb(49, 109, 97);
    --dark: #0A0A0A;
    --gray: #1E1E1E;
    --light: #FFFFFF;
    --lightgray: #637a73;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: var(--light);
}
ul {
    list-style: none;
}
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: var(--gray);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Позволяет элементам переноситься */
  padding: 5px 20px;
}
.disclaimer {
    color: var(--lightgray);
}
.logo-container {
  display: flex;
  align-items: center;
    margin: 0;
  padding: 0;
  line-height: 1;
}
.logo-text {
  margin-left: 10px;
  white-space: nowrap; /* Запрет переноса текста */
  vertical-align: middle;
  font-size: 1.25rem;
  font-weight: bold;
}

  .logo-placeholder {
    width: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.logo-placeholder img 
{
  display: block;           /* убирает baseline-смещение */
  max-height: 100%;
}
.company-box {
    max-width: 1400px;
    margin: 40px auto;
    padding: 50px;
    background-color: var(--gray); /* фон как у карточек и форм */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: inherit;
    color: var(--light); /* светлый текст */
}

    .company-box h2 {
        color: var(--primary); /* зелёный заголовок */
        margin-bottom: 10px;
    }

    .company-box p {
        font-size: 1.1em;
        line-height: 1.6;
    }
.company-subtitle {
    margin-top: 40px;
}
  #mxil 
  {
    margin-left: 10px;
    display: block;
    float: left;
    font-weight: bold;
    color: var(--light);
    font-size: 1.5rem;
  }
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 15px;
}
.nav-links a {
    display: block;
    padding: 8px 12px; /* вместо 10–15px по вертикали/горизонтали */
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary);
}
    .nav-links a.active {
        color: rgb(49, 109, 97); /* например, синий */
        font-weight: bold;
        border-bottom: 2px solid rgb(49, 109, 97);
    }

/* Hero Section */
.hero {
    background: url("/fon.png") no-repeat center center fixed; 
  background-size: cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero .btn {
    font-size: 1rem;
    padding: 12px 24px;
}
.map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    padding: 10px;
    border: 2px solid rgb(49, 109, 97); /* неоново-зелёная обводка */
    border-radius: 1px;
    max-width: 600px; /* фиксированная макс. ширина для больших экранов */
    width: 90%; /* на маленьких экранах будет 90% ширины */
    box-sizing: border-box;
}

    .map-wrapper iframe {
        width: 100%;
        height: 400px;
        border: none;
        border-radius: 8px;
    }

/* 📱 Адаптив для маленьких экранов */
@media (max-width: 768px) {
    .map-wrapper {
        max-width: 100%;
        padding: 8px;
    }

        .map-wrapper iframe {
            height: 300px;
        }
}

@media (max-width: 480px) {
    .map-wrapper iframe {
        height: 250px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--dark);
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary);
}

/* Search */
.search-container {
    text-align: center;
    margin: 40px 0 20px 0;
}
.search-container input {
    width: 80%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid var(--primary);
    border-radius: 30px;
    background-color: var(--dark);
    color: var(--light);
}
.search-container input::placeholder {
    color: var(--light);
}
/* Contact Page */
.contact-page {
    padding: 40px 20px;
}
.contact-page h1 {
    text-align: center;
    margin-bottom: 20px;
}
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.contact-form, .contact-info {
    background-color: var(--gray);
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 300px;
    min-width: 300px;
}
.contact-form h2, .contact-info h2 {
    color: var(--primary);
    margin-bottom: 15px;
}
.contact-info h2 {
    text-align:center;
}
.contact-form label {
    display: block;
    margin: 10px 0 5px 0;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    background-color: var(--dark);
    color: var(--light);
    resize: vertical;
}
.contact-form textarea {
    height: 100px;
}
.contact-form button {
    margin-top: 15px;
}
.phone-link {
    text-decoration: underline;
    color: #fff; /* Зеленый цвет для выделения */
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: rgb(49, 109, 97); /* Цвет меняется при наведении */
}
.email-link {
    text-decoration: underline;
    color: #fff; /* Зеленый цвет для выделения */
    transition: color 0.3s ease;
}
.email-link:hover {
    color: rgb(49, 109, 97); /* Цвет меняется при наведении */
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
    }
    /* Секция "О компании" */
    #about {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--dark);
        color: var(--gray);
        padding: 60px 0;
    }

        #about .container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        #about h2 {
            color: var(--primary);
            font-size: 2em;
            margin-bottom: 20px;
        }

        #about p {
            font-size: 1.1em;
            line-height: 1.6;
            margin-bottom: 15px;
        }

    body {
        overflow-x: hidden;
    }

    html, body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    /* Адаптивность для мобильных устройств */
    @media (max-width: 600px) {
        /* Hero */
        .hero-content h1 {
            font-size: 1.8rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

        /* Продукты */
        .products-grid {
            grid-template-columns: 1fr; /* Один столбец на мобильных */
            padding: 0 10px;
        }

        .product-card {
            padding: 15px; /*  Меньше отступов */
            max-width: 100%;
        }

        /* Контактная форма */
        .contact-form, .contact-info {
            flex: 1 1 100%; /* Блоки заполняют весь экран */
        }


        #about {
            padding: 40px 20px;
        }

            #about h2 {
                font-size: 1.6rem;
            }

            #about p {
                font-size: 1rem;
            }
    }

    .fixed-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #316d61; /* такой же цвет, как у шапки */
        color: white;
        text-align: center;
        padding: 10px 0;
        font-size: 14px;
        z-index: 1000;
    }

        .fixed-footer a {
            color: white;
            text-decoration: none;
        }

            .fixed-footer a:hover {
                text-decoration: underline;
            }
}


.site-footer {
    background-color: #0A0A0A;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}