/* povar.css — в едином стиле с menu.css и product.css */

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

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-image: url(../img/hed.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

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

/* Header */
.header-line {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.header-logo img {
    height: 60px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    margin-right: 25px;
    transition: color 0.5s linear;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF7400;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #FF7400;
}

.nav-item:hover::after {
    width: 100%;
}

.phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.phone-holder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-img img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.num {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.5s linear;
}

.num:hover {
    color: #FF7400;
}

.phone-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 5px;
}

.button {
    background-color: #FF7400;
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s linear;
    box-shadow: 0 4px 15px rgba(255, 116, 0, 0.3);
}

.button:hover {
    background-color: #c1671d;
    box-shadow: 0 6px 20px rgba(255, 116, 0, 0.5);
    transform: translateY(-2px);
}

/* Page title */
.cook-title {
    font-family: 'Tinos', serif;
    font-size: 54px;
    text-align: center;
    margin: 50px 0 40px;
    color: #D67E35;
    position: relative;
    padding-bottom: 20px;
}

.cook-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF7400, transparent);
}

.cook-title span {
    color: #D67E35;
}

/* Карточки поваров — в стиле карточек из menu.css */
.cook-content, .cook-con {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.cook-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 280px;
    animation: fadeIn 0.8s ease-out;
}

.cook-card:hover {
    transform: translateY(-10px);
    border-color: #FF7400;
    box-shadow: 0 15px 40px rgba(255, 116, 0, 0.3);
}

.cook-card img {
    width: 240px;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #FF7400;
    transition: transform 0.3s ease;
}

.cook-card:hover img {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 116, 0, 0.5);
}

.cook-name {
    font-family: 'Tinos', serif;
    font-size: 24px;
    color: #D67E35;
    margin-top: 15px;
    margin-bottom: 5px;
}

.cook-position {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #FF7400;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 50px rgba(255, 116, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #FF7400;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-flex {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.modal-img {
    width: 250px;
    height: 330px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #FF7400;
}

.modal-info {
    flex: 1;
    min-width: 250px;
}

.modal-info h2 {
    font-family: 'Tinos', serif;
    font-size: 36px;
    color: #D67E35;
    margin-bottom: 5px;
}

.modal-position {
    font-size: 20px;
    font-weight: 600;
    color: #FF7400;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.modal-info p {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 10px;
}

.modal-info i {
    color: #D67E35;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 992px) {
    .cook-content, .cook-con {
        gap: 20px;
    }
    
    .cook-card {
        width: 240px;
    }
    
    .cook-card img {
        width: 200px;
        height: 270px;
    }
}

@media (max-width: 768px) {
    .header-line {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .cook-title {
        font-size: 42px;
    }
    
    .cook-content, .cook-con {
        flex-direction: column;
        align-items: center;
    }
    
    .cook-card {
        width: 280px;
        margin-bottom: 20px;
    }
    
    .modal-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-img {
        width: 200px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .cook-title {
        font-size: 32px;
    }
    
    .cook-card {
        width: 100%;
        max-width: 280px;
    }
    
    .cook-card img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
}

/* Анимации для карточек */
.cook-card:nth-child(1) { animation-delay: 0.1s; }
.cook-card:nth-child(2) { animation-delay: 0.2s; }
.cook-card:nth-child(3) { animation-delay: 0.3s; }
.cook-card:nth-child(4) { animation-delay: 0.4s; }
.cook-card:nth-child(5) { animation-delay: 0.5s; }
.cook-card:nth-child(6) { animation-delay: 0.6s; }