/* ===== ОСНОВНЫЕ АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-item,
.vacancy-item,
#advantages ul li, 
.contact-info {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
} 

/* Настройка задержки анимации для каждого элемента */
.product-item:nth-child(1) { animation-delay: 0.2s; }
.product-item:nth-child(2) { animation-delay: 0.4s; }
.product-item:nth-child(3) { animation-delay: 0.6s; }
.product-item:nth-child(4) { animation-delay: 0.8s; }
#advantages ul li { animation-delay: 0.3s; }
.contact-info { animation-delay: 1s; }

/* ===== СТИЛИ ВАКАНСИЙ ===== */
.vacancies-page {
    padding: 40px 0;
}

.vacancies-page h1 {
    margin-bottom: 20px;
}

.vacancies-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.vacancies-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vacancy-item {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    border-left: 5px solid  #003366;
    transition: 0.3s;
}

.vacancy-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* ===== КНОПКА ВАКАНСИЙ НА ГЛАВНОЙ ===== */
.vacancies-button {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    margin-left: 10%;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
    letter-spacing: 0.5px;
}

.vacancies-button:hover {
    background:  #003366;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.vacancies-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* ===== СТИЛИ ССЫЛОК ===== */
a {
    color: #005a9c;
    transition: color 0.3s ease;
}
a:hover {
    color: #003366;
}

/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.product-image-container {
    width: 300px;
    height: 220px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-image-link {
    display: block;
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    background: #f0f0f0;
    padding: 10px;
    box-sizing: border-box;
}

.product-image-link:hover img {
    transform: scale(1.05);
}

.product-image-link::after {
    content: "Подробнее →";
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0,90,156,0.9);
    color: white;
    padding: 8px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
}

.product-image-link:hover::after {
    opacity: 1;
}

/* ===== ОСНОВНАЯ СТРУКТУРА ===== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #000000;
    background-color: #eeeded;
}

header {
    background: #005a9c;
    color: #000000;
    padding: 20px 0;
    margin-bottom: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 190px;
    width: auto;
}

.header-title {
    margin: 0;
    font-size: 2.2em;
    font-weight: bold;
}
.header-title span{
    font-size: 16px;
    font-weight: normal;
}
.header-contacts {
    text-align: right;
    color: #026ebb;
}

.header-contacts p {
    margin: 5px 0;
    font-size: 16px;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    color: #005a9c;
    border-bottom: 2px solid #005a9c;
    padding-bottom: 5px;
}

.contact-info {
    background: #eaeaea;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}
.contact {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
.contact .contact-info {
    flex: 0 0 calc(50% - 30px);
}

/* ===== СПИСОК ПРОДУКЦИИ ===== */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.product-item {
    flex-basis: 100%;
    margin-bottom: 40px;
    padding: 15px;
    background: #fafafae8;
    border-left: 4px solid #005a9c;
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.product-content {
    padding-right: 320px;
    box-sizing: border-box;
    font-size: 18px;
}

/* ===== ПОДВАЛ ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #005a9c;
    color: #fff;
    margin-top: 20px;
}

/* ===== ОТЗЫВЫ ===== */
#reviews {
    margin: 60px auto 40px;
    width: 80%;
}

#reviews-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 20px;
    margin-top: 25px;
}

.review{
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.review:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.review b{
    display:block;
    font-size:16px;
    margin-bottom:4px;
}

.review small{
    color:#777;
    font-size:12px;
}

.review .stars{
    color:#f5b400;
    margin:6px 0;
    font-size:16px;
}

.review p{
    margin-top:8px;
    line-height:1.4;
}

/* форма */
.review-form{
    max-width:500px;
    margin:40px auto 0;
    background:#f9f9f9;
    padding:25px;
    border-radius:14px;
    border:1px solid #ddd;
}

.review-form input,
.review-form select,
.review-form textarea{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:15px;
}

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

.review-form button{
    width:100%;
    padding:12px;
    background:#005a9c;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
}

.review-form button:hover{
    background:#00457a;
}

@media (max-width:768px){
    #reviews{ width:95%; }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1524px) {
    .product-image-container {
        width: 250px;
        height: 200px;
    }
    .product-content {
        padding-right: 270px;
        font-size: 17px;
    }
    
    .logo {
        height: 160px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        width: 95%;
        padding: 15px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
        gap: 10px;
    }

    .logo {
        height: 180px;
        margin-bottom: 15px;
        width: auto;
    }
    
    .header-title {
        font-size: 1.8em;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .header-title span {
        font-size: 15px;
        display: block;
        margin-top: 5px;
    }

    .header-contacts {
        text-align: center;
        margin-top: 15px;
        font-size: 16px;
    }
    
    .header-contacts p {
        margin: 8px 0;
        font-size: 15px;
    }

    .product-item {
        flex-basis: 100%;
        margin-bottom: 30px;
        padding: 20px;
        min-height: auto;
    }

    .product-image-container {
        position: static;
        width: 100%;
        max-width: 320px;
        height: 220px;
        margin: 20px auto;
        transform: none;
        top: auto;
    }
    
    .product-item img {
        width: 100%;
        height: 100%;
        padding: 15px;
    }

    .product-content {
        padding-right: 0;
        font-size: 16px;
        line-height: 1.6;
    }

    #about p, #advantages li, .contact-info p, .product-content p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.5em;
        padding-bottom: 8px;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    
    .contact-info {
        padding: 20px;
        margin-top: 15px;
        font-size: 16px;
    }
    
    .contact .contact-info {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }

    /* Адаптивность для вакансий на мобильных */
    .vacancies-list {
        grid-template-columns: 1fr;
    }
    
    /* Кнопка вакансий на мобильных */
    .vacancies-button {
        margin-left: 5%;
        margin-right: 5%;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 12px;
        width: 97%;
    }
    
    .product-item {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .logo {
        height: 160px;
        margin-bottom: 10px;
    }
    
    .header-title {
        font-size: 1.6em;
    }
    
    .header-title span {
        font-size: 14px;
    }
    
    .product-image-container {
        max-width: 280px;
        height: 200px;
        margin: 15px auto;
    }
    
    .product-content {
        font-size: 15px;
    }
    
    .product-content p {
        margin: 12px 0;
        line-height: 1.5;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    #reviews-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review {
        padding: 15px;
    }
    
    .review b {
        font-size: 15px;
    }
    
    .review p {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .logo {
        height: 140px;
    }
    
    .header-title {
        font-size: 1.4em;
    }
    
    .product-image-container {
        max-width: 250px;
        height: 180px;
    }
    
    .container {
        padding: 10px;
    }
    
    .product-item {
        padding: 12px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .product-content {
        padding-right: 240px;
    }
    
    .product-image-container {
        width: 220px;
        height: 180px;
    }
}

/* Стили для детальной страницы товара */
.product-detail {
    position: relative;
    margin-top: 20px;
}

.product-image {
    width: 100%;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f0f0f0;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #005a9c;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.order-section {
    padding-top: 20px;
}

@media (min-width: 768px) {
    .product-image {
        width: 40%;
        float: right;
        margin-left: 30px;
        margin-bottom: 20px;
    }
    
    .product-info {
        margin-right: calc(40% + 40px);
    }
    
    table {
        font-size: 16px;
    }
    
    th, td {
        padding: 10px;
    }
}

/* Скрытый элемент */
.organization {
    display: none;
}
/* ===== СТИЛИ ДЛЯ НАШИХ ПРЕДПРИЯТИЙ (kalash) ===== */
.kalash {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 60px;
}

.kalash h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.kalash-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.kalash-item {
    flex: 1;
    min-width: 0;
    text-align: center;
    background: #e6e6e6;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #868181;
    transition: box-shadow 0.3s;
}

.kalash-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kalash-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.kalash p {
    text-align: center;
    margin-top: 40px;
}

.kalash a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.kalash a:hover {
    background-color: #0056b3;
}

/* Адаптив для kalash */
@media (max-width: 768px) {
    .kalash-list {
        gap: 15px;
    }
    
    .kalash-item {
        flex: 0 1 calc(50% - 15px);
        min-width: 150px;
        padding: 12px;
    }
    
    .kalash-item img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .kalash-list {
        gap: 12px;
    }
    
    .kalash-item {
        flex: 0 1 calc(50% - 12px);
        min-width: 130px;
        padding: 10px;
    }
    
    .kalash h1 {
        font-size: 24px;
    }
    
    .kalash-item img {
        height: 130px;
    }
}

@media (max-width: 360px) {
    .kalash-item {
        flex: 0 1 calc(50% - 10px);
        min-width: 110px;
        padding: 8px;
    }
    
    .kalash-item img {
        height: 110px;
    }
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container, 
.kalash,
.kalash-list,
.product-item,
.vacancies-list,
.products {
    overflow-x: hidden !important;
    max-width: 100% !important;
}